/* 03.06.26 */

  :root {
    --cream: #F5EDE3;
    --cream-dark: #EBE0CF;
    --cream-warm: #EDE2D0;
    --wine: #8B1F2E;
    --wine-dark: #6B1822;
    --olive: #6B7A35;
    --olive-light: #8A9B49;
    --olive-soft: #E5EAD0;
    --ink: #1F1A17;
    --muted: #6B5F54;
    --line: #D9CFC0;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Manrope', system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }

  .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  .container-wide { max-width: 1680px; margin: 0 auto; padding: 0 40px; }
  .container-full { width: 100%; padding: 0; }
  @media (max-width: 1100px) { .container-wide { padding: 0 24px; } }
  @media (max-width: 720px) { .container, .container-wide { padding: 0 16px; } }

  a { color: inherit; }

  /* HEADER - sticky compact, ???? ?? ????????? ??? ??????? */
  header { position: sticky; top: 0; z-index: 100; background: rgba(245, 237, 227, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 0; transition: padding .25s, background .25s, box-shadow .25s; }
  header.compact { padding: 10px 0; background: rgba(245, 237, 227, 0.98); box-shadow: 0 4px 20px rgba(31,26,23,0.06); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; letter-spacing: 1px; transition: font-size .25s; flex-shrink: 0; }
  header.compact .logo { font-size: 22px; }
  .nav-menu { display: flex; gap: 22px; font-size: 14px; }
  .nav-menu a { color: var(--ink); text-decoration: none; transition: color .2s; }
  .nav-menu a:hover { color: var(--wine); }
  .header-right { display: flex; align-items: center; gap: 16px; }
  .header-phone { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
  .btn-primary { background: var(--wine); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s; white-space: nowrap; }
  .btn-primary:hover { background: var(--wine-dark); }
  
  .btn-cta-large { background: var(--wine); color: #fff; padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 6px 20px rgba(139,31,46,0.25); transition: transform .2s, background .2s; display: inline-block; border: none; cursor: pointer; }
  .btn-cta-large:hover { background: var(--wine-dark); transform: translateY(-1px); }
  .btn-outline { background: transparent; color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: 14px; border: 1px solid var(--ink); text-decoration: none; }
  .btn-outline:hover { background: var(--ink); color: #fff; }

  /* ??????-?????? - ?? ????????? ?????? ?? 960px */
  .burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: transparent; border: none; cursor: pointer; flex-shrink: 0; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; transform-origin: center; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ??????? - ?????? ?????? ???????? */
  @media (max-width: 1180px) {
    .header-phone.phone-secondary { display: none; }
  }

  /* ??????? - ??? ????????? ??? ??????? + ?????? */
  @media (max-width: 960px) {
    .burger { display: flex; }
    .nav-menu {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: rgba(245, 237, 227, 0.98);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 12px 28px rgba(31,26,23,0.10);
      padding: 8px 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease, padding .3s ease;
    }
    .nav-menu.open { max-height: 400px; padding: 12px 0; }
    .nav-menu a { padding: 14px 32px; font-size: 16px; border-bottom: 1px solid rgba(31,26,23,0.06); }
    .nav-menu a:last-child { border-bottom: none; }
    .header-right { gap: 10px; }
    .header-phone { font-size: 14px; }
    .btn-primary { padding: 10px 16px; font-size: 13px; }
  }

  /* ????????? ??????? - ???????? ?????? ???????, ?????? ??-???????????, ??? ?????? ?????? */
  @media (max-width: 640px) {
    header { padding: 10px 0; }
    .logo { font-size: 20px; letter-spacing: 0.5px; }
    header.compact .logo { font-size: 18px; }
    .header-phone { display: none; }
    .header-phone.phone-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--cream-dark);
      color: var(--ink);
    }
    .header-phone.phone-icon svg { width: 18px; height: 18px; }
    .btn-primary { padding: 10px 14px; font-size: 12px; }
    .nav { gap: 10px; }
  }

  /* TBD note      */
  .tbd { color: var(--olive); font-style: italic; font-size: 11px; opacity: 0.75; display: inline-block; }
  .tbd::before { content: "* "; }

  /* ===== HERO ===== */
  .case-hero {
    position: relative;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background: #1a1411;
    margin-top: 0;          /* ,     sticky,   */
  }
  @media (max-width: 1100px) { .case-hero { min-height: 580px; } }
  @media (max-width: 720px) { .case-hero { min-height: 460px; } }

  .case-hero-bg {
    position: absolute; inset: 0;
    background-image: var(--hero-img);   /* ? URL   HTML */
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
  }
  .case-hero.loaded .case-hero-bg { transform: scale(1); }
  .case-hero::after {
    content: ""; position: absolute; inset: 0;
    z-index: 1;
  }
  .case-hero-content {
    position: relative; z-index: 2;
    max-width: 1680px;
    margin: 0 auto;
    padding: 160px 40px 90px;    /*  140px   160px */
    color: #fff;
  }
  @media (max-width: 720px) { 
    .case-hero-content { padding: 110px 16px 60px; }
  }

  .case-hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #E5D78F;
    font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
    padding: 8px 16px; border-radius: 999px;
    margin-bottom: 28px; font-weight: 700;
  }
  .case-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: lining-nums;        /* ?     */
    font-feature-settings: "lnum" 1, "onum" 0; /* ?     */
    font-size: clamp(36px, 5.5vw, 78px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.5px;
    max-width: 1100px;
    margin-bottom: 22px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  }
  .case-hero h1 .accent { color: #E5D78F; font-style: italic; }
  .case-hero .lead {
    font-size: clamp(15px, 1.4vw, 19px);
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    line-height: 1.55;
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  }

  /* ===== HERO  v2     ,   ===== */
  @media (max-width: 720px) {
    .case-hero {
      min-height: auto;
      display: flex;
      flex-direction: column;
      background: var(--cream);
      overflow: visible;
    }
    
    /*    ,   */
    .case-hero-bg {
      position: relative;
      inset: auto;
      width: 100%;
      aspect-ratio: 3/2;          /*  ,   */
      transform: none;
      background-position: center 30%;  /*      / */
    }
    .case-hero.loaded .case-hero-bg { transform: none; }
    
    /*      */
    .case-hero::after {
      display: none;
    }
    
    /*  HERO      */
    .case-hero-content {
      position: relative;
      padding: 32px 20px 40px;
      color: var(--ink);
      max-width: 100%;
    }
    
    /* Eyebrow      */
    .case-hero .eyebrow {
      background: rgba(139, 31, 46, 0.08);
      border: 1px solid rgba(139, 31, 46, 0.2);
      color: var(--wine);
      backdrop-filter: none;
      margin-bottom: 18px;
    }
    
    /* H1  ,   */
    .case-hero h1 {
      color: var(--ink);
      text-shadow: none;
      font-size: clamp(28px, 7vw, 38px);
      margin-bottom: 16px;
    }
    .case-hero h1 .accent {
      color: var(--olive);
    }
    
    /* Lead   */
    .case-hero .lead {
      color: var(--muted);
      text-shadow: none;
      font-size: 15px;
    }
    
    /* Pills   cream */
    .case-hero .meta-pills {
      margin-top: 22px;
    }
    .case-hero .meta-pill {
      background: #fff;
      border: 1px solid var(--line);
      color: var(--ink);
      backdrop-filter: none;
      font-size: 13px;
      padding: 8px 14px;
    }
    .case-hero .meta-pill::before {
      color: var(--olive);
    }
  }
  
  /*      */
  @media (max-width: 480px) {
    .case-hero-bg {
      aspect-ratio: 4/3;          /*      */
      background-position: center 25%;
    }
    .case-hero-content {
      padding: 24px 16px 32px;
    }
  }

  /* META PILL STRIP  hero */
  .meta-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 36px;
  }
  .meta-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    font-size: 14px;
  }
  .meta-pill::before {
    content: "\2022";   /*  bullet  unicode-escape,     */
    color: #E5D78F;
    font-size: 18px;
    line-height: 0;
  }

  /* ===== BREADCRUMBS ===== */
  .breadcrumbs { padding: 22px 0; font-size: 14px; color: var(--muted); }
  .breadcrumbs a { color: var(--muted); text-decoration: none; }
  .breadcrumbs a:hover { color: var(--wine); }
  .breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }
  .breadcrumbs .current { color: var(--wine); }

  /* ===== INFO BLOCK ( 01, 02, 03, 04, 05  ) ===== */
  .info-block { padding: 56px 0; }
  .info-block.cream-bg { background: var(--cream); }
  .info-block.olive-light-bg { background: var(--olive-light); }
  .info-block.olive-bg { background: var(--olive-soft); }
  .info-block.dark-bg { background: var(--ink); color: rgba(255,255,255,0.9); }
  .info-block.dark-bg .info-label { color: #E5D78F; }
  .info-block.dark-bg .info-title { color: #fff; }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; gap: 20px; } }
  @media (max-width: 720px) { .info-grid { padding: 0 16px; } }

  .info-label {
    font-size: 11px;
    color: var(--olive);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .info-label .num {
    display: inline-block;
    background: var(--olive);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    letter-spacing: 1px;
  }
  .info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .info-title .accent { color: var(--olive); font-style: italic; }

  .info-text { font-size: 17px; line-height: 1.7; color: var(--ink); }
  .info-block.dark-bg .info-text { color: rgba(255,255,255,0.85); }
  .info-text p { margin-bottom: 16px; }
  .info-text p:last-child { margin-bottom: 0; }
  .info-text strong { color: var(--wine); font-weight: 700; }
  .info-block.dark-bg .info-text strong { color: #E5D78F; }
  .info-text .lead-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--olive);
    line-height: 1.4;
    margin-bottom: 18px;
  }

/* ============= GALLERY  Smart Grid (  + ) ============= */
.gallery-section {
  padding: 0 40px 80px;
  background: var(--cream, #faf6f0);
}
.gallery-section.alt {
  background: var(--cream-2, #f0ebe1);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: none;     /* full-bleed */
  margin: 0;
  padding: 0;
  --cols: 4;
}

.gallery-item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 4px) / var(--cols));
  height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: #e8e3da;
}

.gallery-item.stretch {
  flex: 1 1 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  pointer-events: none;
  user-select: none; 
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .gallery-item { height: 300px; }
}

@media (max-width: 768px) {
  .gallery-section { padding: 0 16px 48px; }
  .gallery-grid { gap: 4px; }
  .gallery-item { 
    height: 220px;
    flex: 0 0 calc((100% - (var(--cols) - 1) * 4px) / var(--cols));
  }
  .gallery-item.stretch { flex: 1 1 0; }
}

@media (max-width: 480px) {
  .gallery-item { height: 280px; }
}

/* .   CSS +       (   !) */

  .gallery-item, .gallery-item img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;  /* na iOS ne vsplyvaet menyu "S" */
  }
  .gallery-item img { -webkit-user-drag: none; }
  
/* Kartinka v laytbokse - PODSTAV svoy selektor */
  .lightbox img,
  .lightbox-img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;   /* iOS - ne vsplyvaet "S" */
    pointer-events: none;          /* KLYUCHEVOE: ubiraet panel Yandeksa */
  }

/*     */

  .gallery-item { position: relative; cursor: zoom-in; }

  /* Podskazka, poyavlyaetsya pri navedenii */
  .gallery-hint {
    position: absolute;
    left: 50%; bottom: 14px;
    transform: translateX(-50%) translateY(8px);
    z-index: 3;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(20,18,15,0.78);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;          /* podskazka ne meshaet kliku */
    transition: opacity .25s ease, transform .25s ease;
  }
  .gallery-item:hover .gallery-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Lyogkoe zatemnenie pri navedenii - dayot ponyat chto element klikabelen */
  .gallery-overlay { transition: background .25s ease; }
  .gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.12);
  }

  /* HERO-      */
  .gallery-hero {
    position: relative;          /* dlya shchita-overleya */
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    margin-bottom: 4px;
  }
  @media (max-width: 720px) { .gallery-hero { aspect-ratio: 16/10; } }

  .gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* Barery */
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;   /* iOS - ne vsplyvaet "S" */
  }

  /* Prozrachnyy shchit poverh kartinki:
     - ubiraet panel Yandeksa (kursor nad shchitom, a ne nad <img>)
     - perehvatyvaet pravyy klik */
  .gallery-hero-shield {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
  }

/*   gallery-item        */
.gallery-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: zoom-in;
}

  /* ===== STATS NUMBERS ( ) ===== */
  .stats-strip { padding: 60px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
  }
  @media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
  @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } }

  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 500;
    color: var(--olive);
    line-height: 1;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.3px;
    line-height: 1.4;
  }

  /* ===== INLINE CTA BUTTON ===== */
  .inline-cta-section { padding: 50px 0; background: var(--cream); text-align: center; }
  .inline-cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--wine);
    color: #fff;
    padding: 18px 38px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(139,31,46,0.25);
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .inline-cta-btn.outline {
    background: transparent;
    color: var(--wine);
    border: 2px solid var(--wine);
    box-shadow: none;
  }
  .inline-cta-btn.outline:hover {
    background: var(--wine);
    color: #fff;
    box-shadow: 0 8px 24px rgba(139,31,46,0.25);
  }
  .inline-cta-btn:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139,31,46,0.35);
  }
  .inline-cta-btn::after { content: ">"; transition: transform .2s; }
  .inline-cta-btn:hover::after { transform: translateX(4px); }

  /* ===== BIG CTA (centrirovannyy, s foto i vinnoy plenkoy 20%) ===== */
  .big-cta {
    position: relative;
    padding: 120px 24px;
    background-image: var(--cta-img);   /* <-- URL prihodit iz HTML */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
    text-align: center;
  }
  @media (max-width: 900px) {
    .big-cta { background-attachment: scroll; padding: 90px 20px; }
  }

  /* Tonkaya vinno-temnaya plenka 20% - dobavlyaet kontrast dlya teksta */
  .big-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(26, 22, 18, 0.55) 0%,    /* sverhu temnee dlya zagolovka */
      rgba(74, 35, 41, 0.45) 50%,   /* v centre legkiy vinnyy ottenok */
      rgba(26, 22, 18, 0.55) 100%   /* snizu temnee pod formu */
    );
    z-index: 0;
  }

  .big-cta-wrap {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
  }

  .big-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  }
  .big-cta h2 .accent {
    color: #E5D78F;
    font-style: italic;
  }

  .big-cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  }

  /* BIG CTA BTN   */
  .big-cta-btn {
    display: inline-block;
    background: var(--gold, #E5D78F);
    color: var(--ink, #2b2622);
    padding: 20px 56px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    transition: transform .2s, box-shadow .2s, background .2s;
    margin-bottom: 18px;
  }
  .big-cta-btn:hover {
    transform: translateY(-2px);
    background: #f0e4a3;
    box-shadow: 0 16px 40px rgba(0,0,0,0.32);
  }
  @media (max-width: 720px) {
    .big-cta-btn {
      padding: 16px 32px;
      font-size: 15px;
      width: 100%;
      max-width: 380px;
    }
  }

  /* ===== OTHER CASES ===== */
  .other-cases { padding: 90px 0; background: var(--cream); }
  .other-cases-head { text-align: center; margin-bottom: 50px; }
  .other-cases-eyebrow { font-size: 11px; color: var(--olive); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
  .other-cases-head h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; line-height: 1.15; }
  .other-cases-head h2 .accent { color: var(--olive); font-style: italic; }

  .other-cases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 900px) { .other-cases-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .other-cases-grid { grid-template-columns: 1fr; } }
  .other-case {
    position: relative; border-radius: 14px; overflow: hidden;
    text-decoration: none; color: #fff; aspect-ratio: 4/3;
    background-size: cover; background-position: center;
    display: block; transition: transform .25s;
  }
  .other-case:hover { transform: translateY(-4px); }
  .other-case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7) 100%); }
  .other-case-info { position: absolute; bottom: 20px; left: 22px; right: 22px; z-index: 2; }
  .other-case-tag { display: inline-block; font-size: 10px; color: #E5D78F; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; font-weight: 700; }
  .other-case-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
  .other-case-meta { font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 6px; }

  /* SECTIONS */
  section { padding: 90px 0; }
  .case-hero { padding: 0; }     /*   .case-hero-content */
  .gallery-section { padding: 0; }   /*      Memory Bank */
  @media (max-width: 720px) { section { padding: 60px 0; } }
  .section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
  .section-head .eyebrow { display: inline-block; color: var(--olive); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
  .section-head h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 3.8vw, 48px); font-weight: 500; line-height: 1.1; margin-bottom: 14px; }
  .section-head h2 .accent { color: var(--olive); font-style: italic; }
  .section-head p { font-size: 17px; color: var(--ink); }

  /* ========== FORM ========== */
  .form-section { background: var(--cream-dark); }
  .form-trust-bar { max-width: 880px; margin: 0 auto 40px; background: #fff; border-radius: 14px; padding: 18px 26px; display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; border: 1px solid var(--line); }
  .form-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .form-trust-item svg { flex-shrink: 0; color: var(--olive); }
  .form-trust-item strong { font-weight: 600; }
  .form-grid { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 40px 44px; border: 1px solid var(--line); }
  @media (max-width: 720px) { .form-grid { padding: 28px 24px; } }
  .form-grid h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; margin-bottom: 8px; }
  .form-grid .lead { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
  .form-field { margin-bottom: 16px; }
  .form-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
  .form-field input, .form-field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: #fff; font-family: inherit; }
  .form-field input:focus, .form-field select:focus { outline: none; border-color: var(--wine); }
  .form-submit { width: 100%; background: var(--wine); color: #fff; padding: 18px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; margin-top: 8px; }
  .form-submit:hover { background: var(--wine-dark); }
  .form-privacy { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
  .messengers { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
  .messengers-label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
  .messengers-row { display: flex; gap: 12px; justify-content: center; }
  .messenger-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: #fff; }
  .messenger-btn.wa { color: var(--wa); border-color: var(--wa); }
  .messenger-btn.tg { color: var(--tg); border-color: var(--tg); }
  .messenger-btn.vk { background: #0077FF; color: #fff; }
  .messenger-btn.vk:hover { background: #0066DD; }
  .messenger-btn.pin { background: #E60023; color: #fff; }
  .messenger-btn.pin:hover { background: #C5001E; }

  /* stili dlya rabochey formy ($form_html) */
  .form-grid .form-wrap { margin-bottom: 16px; }
  .form-grid .form-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
  .form-grid .form-input { width: 100%; padding: 12px 14px; border: 1px solid #d8d4cc; border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
  .form-grid .form-input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(139,31,46,0.12); }
  .form-grid textarea.form-input { resize: vertical; min-height: 120px; font-family: inherit; }
  .form-grid .button-primary { background: var(--wine); color: #fff; padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: background .2s, transform .2s; display: inline-block; font-family: inherit; }
  .form-grid .button-primary:hover { background: var(--wine-dark); transform: translateY(-1px); }
  /* soobschenie ob uspehe / oshibke iz $form_result */
  .form-grid .form-result { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }

  /* ==== SEARCH SECTION ==== */
  .search-section { 
    padding: 80px 0; 
    background: var(--cream, #f5efe4); 
  }
  .search-section .section-head { 
    text-align: center; 
    max-width: 720px; 
    margin: 0 auto 32px; 
  }
  .search-card { 
    max-width: 720px; 
    margin: 0 auto; 
    background: #fff; 
    border-radius: 20px; 
    padding: 28px; 
    box-shadow: 0 4px 24px rgba(0,0,0,0.04); 
    border: 1px solid rgba(0,0,0,0.05); 
  }
  .search-row { 
    display: flex; 
    gap: 12px; 
    align-items: stretch; 
    flex-wrap: wrap; 
  }
  .search-input { 
    flex: 1 1 280px; 
    margin: 0; 
    padding: 14px 18px; 
    border: 1px solid #d8d4cc; 
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 15px; 
    color: var(--ink, #2b2622); 
    background: #fff; 
    box-sizing: border-box; 
    transition: border-color .2s, box-shadow .2s; 
  }
  .search-input:focus { 
    outline: none; 
    border-color: var(--wine, #8B1F2E); 
    box-shadow: 0 0 0 3px rgba(139,31,46,0.12); 
  }
  .search-input::placeholder { 
    color: #a8a29a; 
  }
  .search-btn { 
    padding: 14px 28px; 
    background: var(--wine, #8B1F2E); 
    color: #fff; 
    border: none; 
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    white-space: nowrap; 
    transition: background .2s, transform .2s; 
  }
  .search-btn:hover { 
    background: var(--wine-dark, #6e1824); 
    transform: translateY(-1px); 
  }
  .search-results { 
    margin-top: 20px; 
  }
  /*     ( JS  /) */
  .search-results a { 
    color: var(--wine, #8B1F2E); 
    text-decoration: none; 
    border-bottom: 1px solid rgba(139,31,46,0.3); 
  }
  .search-results a:hover { 
    color: var(--wine-dark, #6e1824); 
    border-bottom-color: var(--wine-dark, #6e1824); 
  }
  @media (max-width: 540px) {
    .search-section { 
      padding: 56px 0; 
    }
    .search-card { 
      padding: 20px; 
      border-radius: 16px; 
    }
    .search-row { 
      flex-direction: column; 
    }
    .search-input, 
    .search-btn { 
      width: 100%; 
    }
  }

  /* FOOTER */
  footer { background: var(--ink); color: #DDD2C2; padding: 60px 0 32px; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-logo {
   font-family: 'Cormorant Garamond', serif;
   font-size: 28px;
   color: #fff;
   margin-bottom: 20px;
   letter-spacing: 1px;
  }
  @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
  .footer-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: #fff; margin-bottom: 14px; }
  .footer-col p, .footer-col a { font-size: 14px; color: #B8AC9C; line-height: 1.7; text-decoration: none; display: block; }
  .footer-col a:hover { color: #fff; }
  .footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    margin-top: 8px;
    font-size: 13px; 
    color: rgba(255,255,255,0.55); 
    line-height: 1.6;
  }
  .footer-bottom strong { 
    color: rgba(255,255,255,0.85); 
    font-weight: 600; 
  }
  .footer-bottom a { 
    color: #6FB7E8;
    text-decoration: none; 
    border-bottom: 1px solid rgba(111,183,232,0.4);
    transition: color .2s, border-color .2s;
    margin-left: 4px;
  }
  .footer-bottom a:hover { 
    color: #9BD0F0;
    border-bottom-color: #9BD0F0;
  }
  @media (max-width: 640px) {
    .footer-bottom { 
      font-size: 12px;
      padding: 20px 16px 0;
    }
  }

  /* ===== LIGHTBOX ===== */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .lightbox-close {
    position: absolute; top: 24px; right: 30px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 44px; height: 44px; border-radius: 50%;
    font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 56px; height: 56px; border-radius: 50%;
    font-size: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
  .lightbox-prev { left: 30px; }
  .lightbox-next { right: 30px; }
  @media (max-width: 720px) {
    .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox { padding: 60px 8px; }
  }

/* STICKY SIDE-CTA   */
  .side-cta { display: none !important; }

/* =====    -5% ===== */
  .discount-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--wine);
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    box-shadow: 0 14px 36px rgba(139,31,46,0.45);
    text-decoration: none;
    z-index: 80;
    border: 3px solid rgba(255,255,255,0.95);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    transition: opacity .35s, transform .35s, visibility .35s;
  }
  .discount-fab.visible {
    opacity: 1; visibility: visible; transform: scale(1);
    animation: fab-pulse 2.5s ease-in-out infinite;
  }
  @keyframes fab-pulse {
    0%, 100% { box-shadow: 0 14px 36px rgba(139,31,46,0.45), 0 0 0 0 rgba(139,31,46,0.45); }
    50% { box-shadow: 0 14px 36px rgba(139,31,46,0.45), 0 0 0 14px rgba(139,31,46,0); }
  }
  .discount-fab:hover { transform: scale(1.05); }
  .discount-fab .fab-percent { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 32px; 
    font-weight: 700; 
    line-height: 1; 
    color: #E5D78F; 
  }
  .discount-fab .fab-label { 
    font-size: 10px; 
    letter-spacing: 0.5px; 
    line-height: 1.2; 
    margin-top: 4px; 
    padding: 0 4px; 
  }
  @media (max-width: 720px) { .discount-fab { display: none; } }

  /* ===== STICKY-BOTTOM-CTA   (,   ) ===== */
  .mobile-cta { 
    display: none; 
    position: fixed; 
    bottom: 0; left: 0; right: 0; 
    background: rgba(255,255,255,0.96); 
    backdrop-filter: blur(10px); 
    border-top: 1px solid var(--line); 
    padding: 12px 16px; 
    z-index: 50; 
    gap: 10px; 
    align-items: center; 
  }
  .mobile-cta a.tel { 
    flex-shrink: 0; 
    width: 48px; height: 48px; 
    border-radius: 50%; 
    background: var(--cream-dark); 
    color: var(--ink); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
  }
  .mobile-cta button { 
    flex: 1; 
    background: var(--wine); 
    color: #fff; 
    border: none; 
    border-radius: 999px; 
    padding: 14px 20px; 
    font-weight: 600; 
    font-size: 15px; 
    cursor: pointer; 
  }
  @media (max-width: 720px) { 
    .mobile-cta { display: flex; } 
    body { padding-bottom: 80px; } 
  }
  
/* ============================================================ */
/* ===== Memory Bank 4.0     ================ */
/* ============================================================ */

:root {
    --section-gap: 4px;
}

/*     */
body {
    background: var(--cream);
}

/*       */
.case-hero,
.info-block,
.gallery-section,
.stats-strip,
.inline-cta-section,
.big-cta,
.other-cases,
footer {
    margin: 0 !important;
}

/*       */
.case-hero + section,
.case-hero + .info-block,
.case-hero + .gallery-section,
.case-hero + .stats-strip,
section + section,
section + .info-block,
section + .gallery-section,
section + .stats-strip,
section + .inline-cta-section,
section + .big-cta,
section + .other-cases,
section + footer,
.info-block + .info-block,
.info-block + .gallery-section,
.info-block + .stats-strip,
.info-block + .inline-cta-section,
.info-block + .big-cta,
.gallery-section + .info-block,
.gallery-section + .gallery-section,
.gallery-section + .stats-strip,
.gallery-section + .inline-cta-section,
.gallery-section + .big-cta,
.gallery-section + .other-cases,
.stats-strip + .info-block,
.stats-strip + .gallery-section,
.stats-strip + .inline-cta-section,
.stats-strip + .big-cta,
.inline-cta-section + .info-block,
.inline-cta-section + .gallery-section,
.inline-cta-section + .big-cta,
.big-cta + .other-cases,
.big-cta + footer,
.other-cases + footer {
    margin-top: var(--section-gap) !important;
}

/*     padding (gap  margin-top) */
.gallery-section {
    padding: 0 !important;
}

/*  grid    full-bleed,    gap  */
.gallery-section .gallery-hero {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* .gallery-grid            */

/*      grid-     */
.gallery-section .gallery-grid + .gallery-grid {
    margin-top: var(--section-gap);
}

/* Info-   padding ,  0 */
.info-block {
    padding: 90px 0;
}

/* Stats-strip  CTA    margin,   padding */
.stats-strip,
.inline-cta-section,
.big-cta {
    padding-top: 80px;
    padding-bottom: 80px;
}

/*   */
@media (max-width: 720px) {
    .info-block { padding: 56px 0; }
    .stats-strip,
    .inline-cta-section,
    .big-cta {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

  /*  ()       Cormorant */
  .logo,
  .case-hero h1,
  .info-title,
  .stat-num,
  .big-cta h2,
  .other-cases-head h2,
  .other-case-title,
  .section-head h2,
  .form-grid h3,
  .footer-logo,
  .footer-col h4,
  .info-text .lead-quote {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1, "onum" 0;
  }

  /* ===== CASE VIDEO (rezultat) - po shirine tekstovoy kolonki ===== */
  .case-video {
    margin-top: 32px;             /* otstup ot citaty vyshe */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    background: #1a1612;
    line-height: 0;
  }
  .case-video-el {
    display: block;
    width: 100%;                  /* = shirina kolonki info-text */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  @media (max-width: 720px) {
    .case-video { margin-top: 24px; border-radius: 12px; }
  }
  
  /* ===== UBIRAEM kompaktnyy variant s 2 kolonkami (byl plohoy) ===== */
  /* Udali ili zakomenti ves blok .info-grid.is-compact s column-count */

  /* ===== NOVAYA raskladka: tekst sleva + media sprava ===== */
  .info-grid.is-media {
    display: grid;
    grid-template-columns: 1fr 1.05fr;   /* tekst i media primerno popolam */
    gap: 64px;
    align-items: center;                 /* media po centru otnositelno teksta */
  }

  /* Levaya zona - zagolovok + tekst v ODNU kolonku (kak na skrine 4) */
  .info-grid.is-media .info-head { }     /* label + h2 */
  .info-grid.is-media .info-text {
    column-count: 1;                     /* VAZHNO: odna kolonka, ne dve! */
    margin-top: 28px;
  }
  .info-grid.is-media .info-text p { line-height: 1.55; }

  /* Pravaya zona - krupnoe foto/video */
  .info-grid.is-media .case-video,
  .info-grid.is-media .case-media {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.20);
  }
  .info-grid.is-media .case-video-el,
  .info-grid.is-media .case-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;                 /* podgoni pod svoy material */
    object-fit: cover;
  }

  @media (max-width: 900px) {
    .info-grid.is-media {
      grid-template-columns: 1fr;        /* na mobilke - drug pod drugom */
      gap: 28px;
    }
  }
  
/* =====     ,   ===== */

/* :     .
            .
   : 16/9, 1.85/1 (), 2.35/1 (). */
.info-grid.is-media .case-video.is-wide {
  align-self: center;
  width: 100%;
  aspect-ratio: 16 / 9;      /* <--      */
  background: #000;            /*  ,      */
}

/*   ,    */
.info-grid.is-media .case-video.is-wide .case-video-el {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;          /*   4/3 */
  object-fit: contain;         /* KEY: contain  cover    */
}

/*      ,    */
@media (max-width: 900px) {
  .info-grid.is-media .case-video.is-wide {
    align-self: stretch;
  }
}

<!-- ===== FAQ ===== -->
.faq-case{background:#f7efe8;padding:96px 0}
.faq-case .faq-case-inner{max-width:1000px;margin:0 auto;padding:0 24px}
.faq-case .faq-case-head{text-align:center;margin-bottom:44px}
.faq-case .faq-case-eyebrow{display:block;font-family:'Manrope',Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#7d8f5f;margin-bottom:18px}
.faq-case .faq-case-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(30px,4vw,46px);font-weight:500;line-height:1.15;color:#2b2622;margin:0 0 16px}
.faq-case .faq-case-title i{font-style:italic;color:#7d8f5f}
.faq-case .faq-case-sub{font-family:'Manrope',Arial,sans-serif;font-size:15px;line-height:1.6;color:#6e665f;margin:0;max-width:640px;margin-left:auto;margin-right:auto}
.faq-case .faq-case-list{display:flex;flex-direction:column;gap:14px}
.faq-case details{position:relative;background:#fff;border-radius:16px;padding:24px 74px 24px 30px;box-shadow:0 1px 2px rgba(43,38,34,.04);transition:box-shadow .25s ease}
.faq-case details[open]{box-shadow:0 6px 24px rgba(43,38,34,.07)}
.faq-case summary{list-style:none;cursor:pointer;font-family:'Manrope',Arial,sans-serif;font-size:16.5px;font-weight:500;line-height:1.45;color:#2b2622;outline:none}
.faq-case summary::-webkit-details-marker{display:none}
.faq-case summary::marker{content:''}
.faq-case summary::after{content:'+';position:absolute;top:22px;right:26px;width:30px;height:30px;border-radius:50%;background:#efe3d8;color:#9a8d80;font-size:17px;font-weight:400;line-height:30px;text-align:center;transition:all .25s ease}
.faq-case details[open] summary::after{content:'?';background:#4d5f3c;color:#fff;font-weight:600}
.faq-case .faq-case-a{font-family:'Manrope',Arial,sans-serif;font-size:15px;line-height:1.68;color:#6e665f;margin-top:16px}
.faq-case .faq-case-a strong{color:#2b2622;font-weight:600}
@media (max-width:600px){
  .faq-case{padding:64px 0}
  .faq-case details{padding:20px 60px 20px 22px;border-radius:14px}
  .faq-case summary{font-size:15.5px}
  .faq-case summary::after{right:18px;top:19px}
}

/* All modules end */