/* ═══════════════════════════════════════════════════════════════════
   CMS BÖLMƏLƏRİ — layihələr, paketlər, rəylər (2026-08-21 audit)
   Mövcud brend palitrası: teal #17414a / #0e2b32, mis #c99f7c / #8c6240
   ═══════════════════════════════════════════════════════════════════ */

.cms-page { padding: 32px 0 64px; }
.cms-page h1 { font-size: clamp(24px, 4vw, 34px); color: #0e2b32; font-weight: 800; margin-bottom: 10px; }
.cms-lead { color: #4b5f62; font-size: 16.5px; line-height: 1.7; max-width: 70ch; margin-bottom: 28px; }

.cms-crumbs { font-size: 14px; color: #6d7f82; margin-bottom: 16px; }
.cms-crumbs a { color: #17414a; text-decoration: none; }
.cms-crumbs a:hover, .cms-crumbs a:focus-visible { text-decoration: underline; }

/* ── Kartlar ── */
.cms-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cms-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: #fff; border: 1px solid #e2eaeb;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cms-card:hover, .cms-card:focus-within { box-shadow: 0 12px 28px rgba(14,43,50,.12); transform: translateY(-3px); border-color: #c99f7c; }
.cms-card-media { position: relative; aspect-ratio: 4 / 3; background: #eef2f2; overflow: hidden; }
.cms-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cms-card-title { font-size: 18px; font-weight: 700; color: #0e2b32; margin: 0; }
.cms-card-title a { color: inherit; text-decoration: none; }
.cms-card-title a:hover, .cms-card-title a:focus-visible { text-decoration: underline; }
.cms-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: #6d7f82; }
.cms-card-summary { color: #4b5f62; font-size: 14.5px; line-height: 1.65; margin: 0; }
.cms-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef4f4; color: #17414a; font-size: 12.5px; font-weight: 600; }
.cms-badge-featured { background: #f6e6d7; color: #8c6240; }

/* ── Detal ── */
.cms-detail-hero { border-radius: 16px; overflow: hidden; margin-bottom: 24px; background: #eef2f2; }
.cms-detail-hero img { width: 100%; height: auto; display: block; }
.cms-specs { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 22px 0 28px; padding: 18px 20px; border-radius: 14px; background: #f4f7f7; border: 1px solid #e0e8e9; }
.cms-spec-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: #7b8c8f; }
.cms-spec-value { font-size: 15.5px; color: #17414a; font-weight: 600; }
.cms-body { max-width: 78ch; color: #23383c; line-height: 1.85; font-size: 16px; }
.cms-body h2 { font-size: 21px; margin: 30px 0 12px; color: #0e2b32; }
.cms-body p { margin-bottom: 14px; }

.cms-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 26px 0; }
.cms-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }

.cms-beforeafter { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 26px 0; }
.cms-beforeafter figure { margin: 0; }
.cms-beforeafter img { width: 100%; border-radius: 12px; display: block; }
.cms-beforeafter figcaption { margin-top: 8px; font-size: 14px; color: #6d7f82; font-weight: 600; }

/* ── Paketlər ── */
.cms-packages { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cms-package { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 16px; background: #fff; border: 1px solid #e2eaeb; }
.cms-package.is-featured { border-color: #c99f7c; box-shadow: 0 10px 26px rgba(201,159,124,.18); }
.cms-package h2 { font-size: 21px; color: #0e2b32; margin-bottom: 4px; }
.cms-package-audience { color: #6d7f82; font-size: 14px; margin-bottom: 14px; }
.cms-price { font-size: 26px; font-weight: 800; color: #17414a; margin-bottom: 2px; }
.cms-price small { font-size: 14px; font-weight: 600; color: #7b8c8f; display: block; }
.cms-price-ask { font-size: 17px; font-weight: 700; color: #8c6240; margin-bottom: 12px; }
.cms-list { list-style: none; margin: 14px 0; padding: 0; }
.cms-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14.5px; color: #34494d; line-height: 1.55; }
.cms-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.cms-list-in li::before { content: "✓"; color: #218C56; }
.cms-list-out li::before { content: "×"; color: #C1363F; }
.cms-list-title { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #7b8c8f; margin: 16px 0 6px; }

/* ── Rəylər ── */
.cms-reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cms-review { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid #e2eaeb; }
.cms-review-body { color: #23383c; line-height: 1.75; font-size: 15.5px; margin-bottom: 14px; }
.cms-review-foot { display: flex; align-items: center; gap: 12px; }
.cms-review-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cms-review-name { font-weight: 700; color: #0e2b32; font-size: 15px; }
.cms-review-meta { color: #7b8c8f; font-size: 13px; }
.cms-stars { color: #c99f7c; letter-spacing: 2px; font-size: 15px; margin-bottom: 8px; }

/* ── Boş vəziyyət ── */
.cms-empty { text-align: center; padding: 52px 24px; border-radius: 16px; background: #f4f7f7; border: 1px dashed #cfdcdd; }
.cms-empty-icon { color: #a9bcbe; margin-bottom: 12px; }
.cms-empty-title { font-size: 20px; color: #0e2b32; margin-bottom: 8px; font-weight: 700; }
.cms-empty-text { color: #5f7377; max-width: 52ch; margin: 0 auto 20px; line-height: 1.7; }
.cms-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Düymələr ── */
.cms-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid #17414a; color: #17414a; background: #fff; }
.cms-btn:hover, .cms-btn:focus-visible { background: #eef4f4; color: #0e2b32; }
.cms-btn-primary { background: #17414a; color: #fff; }
.cms-btn-primary:hover, .cms-btn-primary:focus-visible { background: #0e2b32; color: #fff; }
.cms-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.cms-page a:focus-visible, .cms-btn:focus-visible { outline: 3px solid #c99f7c; outline-offset: 2px; }

@media (max-width: 576px) {
  .cms-grid, .cms-packages, .cms-reviews { grid-template-columns: 1fr; }
}
