/* home.css — стили главной (вынесено из index.html, порядок сохранён) */
    /* Safety net: спасает от horizontal scroll, который может появиться
       от fixed-элементов с translateX(100%) (drawer, mobile-menu) на iOS Safari */
    html, body {
      overflow-x: hidden;
      max-width: 100%;
      position: relative;
    }

    .scrollbar-hide::-webkit-scrollbar { display: none; }
    .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
    body {
      background-color: #faf8f3;
      color: var(--color-text-base);
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-image:
        radial-gradient(ellipse 1400px 700px at 50% 0%, rgba(201, 169, 97, 0.10), transparent 60%),
        radial-gradient(ellipse 900px 600px at 85% 35%, rgba(107, 140, 170, 0.06), transparent 65%),
        radial-gradient(ellipse 800px 500px at 10% 70%, rgba(255, 248, 230, 0.9), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
      background-attachment: fixed, fixed, fixed, fixed;
      background-size: auto, auto, auto, 240px 240px;
    }
    .sepia-mode { filter: sepia(0.85) brightness(0.95); }
    
    @keyframes swipe-hint {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(-15px); }
    }
    .animate-swipe-hint { animation: swipe-hint 1.5s ease-in-out 3 forwards; }
  
    /* ══ НОВЫЕ НАСТРОЙКИ ПОРТРЕТА ══ */
    .settings-dimmer{position:absolute;inset:0;background:rgba(255,255,255,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-radius:16px;opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:10}
    .settings-dimmer.visible{opacity:1;pointer-events:auto}
    .portrait-adv-drawer{position:absolute;top:0;right:0;bottom:0;width:100%;background:white;border-radius:16px;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .3s cubic-bezier(.32,.72,0,1);z-index:20;overflow:hidden;box-shadow:-4px 0 24px rgba(0,0,0,.08)}
    .portrait-adv-drawer.open{transform:translateX(0)}
    .portrait-adv-hint{font-size:11px;color:var(--color-text-gray);line-height:1.5;margin-top:5px;padding:0 2px;min-height:0;overflow:hidden;max-height:0;transition:max-height .3s ease,opacity .2s;opacity:0}
    .portrait-adv-hint:not(.empty){max-height:60px;opacity:1}
    .portrait-gender-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border-radius:10px;border:1.5px solid var(--color-border-light);background:var(--color-bg-input);cursor:pointer;font-size:14px;font-weight:500;color:var(--color-text-base);transition:all .18s;font-family:inherit}
    .portrait-gender-btn:hover{border-color:var(--color-primary);background:var(--color-primary-bg)}
    .portrait-gender-btn.active{border-color:var(--color-primary);background:var(--color-primary-bg);color:var(--color-primary-dark);box-shadow:0 0 0 2px rgba(201,169,97,.2)}
    .portrait-medium-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 8px;border-radius:10px;border:1.5px solid var(--color-border-light);background:var(--color-bg-input);cursor:pointer;font-size:12px;font-weight:500;color:var(--color-text-base);transition:all .18s;font-family:inherit;text-align:center;line-height:1.2}
    .portrait-medium-btn:hover{border-color:var(--color-primary);background:var(--color-primary-bg)}
    .portrait-medium-btn.active{border-color:var(--color-primary);background:var(--color-primary-bg);color:var(--color-primary-dark);box-shadow:0 0 0 2px rgba(201,169,97,.2)}
    .portrait-bg-opt{border-color:var(--color-border-light)}
    .portrait-bg-opt.sel{border-color:var(--color-primary)!important;box-shadow:0 0 0 2px rgba(201,169,97,.25)}
    .padv-param-row{display:flex;align-items:center;justify-content:space-between;padding:2px 0;min-height:34px}
    .padv-param-label{font-size:13px;color:var(--color-text-base);flex:1;padding-right:8px;line-height:1.35;display:flex;align-items:center;gap:5px}
    .padv-param-label.dim{color:var(--color-text-gray);font-size:12px}
    .padv-tog{position:relative;display:inline-flex;width:44px;height:24px;flex-shrink:0;cursor:pointer}
    .padv-tog input{opacity:0;width:0;height:0;position:absolute}
    .padv-tog-track{position:absolute;inset:0;border-radius:100px;background:#e5e7eb;transition:background .2s}
    .padv-tog input:checked~.padv-tog-track{background:var(--color-primary)}
    .padv-tog-dot{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
    .padv-tog input:checked~.padv-tog-dot{transform:translateX(20px)}
    .padv-seg{padding:5px 11px;border-radius:7px;border:1.5px solid var(--color-border-light);background:var(--color-bg-input);font-size:12px;font-weight:500;color:var(--color-text-base);cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}
    .padv-seg:hover{border-color:var(--color-primary);background:var(--color-primary-bg)}
    .padv-seg.active{border-color:var(--color-primary);background:var(--color-primary-bg);color:var(--color-primary-dark)}
    .padv-sub-params{margin-left:14px;padding-left:12px;border-left:2px solid var(--color-primary-light);overflow:hidden;max-height:0;opacity:0;transition:max-height .3s ease,opacity .2s ease,padding .2s}
    .padv-sub-params.open{max-height:400px;opacity:1;padding-top:6px;padding-bottom:2px}
    .padv-tip-wrap{display:inline-flex;align-items:center}
    .padv-tip-icon{color:var(--color-text-gray);cursor:help;font-size:14px;line-height:1;opacity:.65;transition:opacity .15s;margin-left:4px}
    .padv-tip-icon:hover,.padv-tip-icon.tip-open{opacity:1;color:var(--color-primary-dark)}
    #padv-tip-global{position:fixed;background:#1d1d1f;color:white;font-size:11.5px;line-height:1.5;padding:7px 10px;border-radius:8px;width:200px;white-space:normal;z-index:9999;pointer-events:none;opacity:0;transition:opacity .15s;box-shadow:0 4px 16px rgba(0,0,0,.25);display:none}
    #padv-tip-global.tip-visible{opacity:1;display:block}
    #padv-tip-global::after{content:"";position:absolute;top:100%;left:var(--arrow-left,50%);transform:translateX(-50%);border:5px solid transparent;border-top-color:#1d1d1f}
    .padv-count.zero{opacity:0}
  

    /* ───── Классический слой: Cormorant, облачная атмосфера, мрамор ───── */
    .font-display {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 300;
      letter-spacing: -0.005em;
    }
    h1.hero-h1, h2.section-h2, .classical-h2 {
      font-family: "Cormorant Garamond", Georgia, serif !important;
      font-weight: 300 !important;
      letter-spacing: -0.01em;
    }
    h1.hero-h1  { font-size: clamp(38px, 5.5vw, 64px) !important; line-height: 1.08 !important; }
    h2.section-h2, .classical-h2 {
      font-size: clamp(28px, 4vw, 44px) !important;
      line-height: 1.15 !important;
    }
    .hero-h1 em, .section-h2 em, .classical-h2 em {
      font-style: italic;
      color: var(--color-primary-dark);
      font-weight: 400;
    }
    /* Классический разделитель ◆ */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      color: var(--color-primary-dark);
      opacity: 0.55;
      font-size: 13px;
      letter-spacing: 0.25em;
      margin: 20px auto 32px;
      max-width: 280px;
    }
    .ornament::before, .ornament::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, currentColor, transparent);
    }
    /* Eyebrow — римские капители */
    .eyebrow-roman {
      font-family: "Inter", sans-serif;
      font-size: 11px;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--color-primary-dark);
      font-weight: 600;
      display: block;
      text-align: center;
      margin-bottom: 14px;
    }

    /* ═══ Hero ═══ */
    .lik-hero {
      position: relative;
      padding: calc(clamp(40px, 6vh, 90px) + 70px) 24px clamp(20px, 3vh, 40px);
      overflow: visible;
      isolation: isolate;
      background:
        linear-gradient(180deg, #fef6e2 0%, #faeed1 35%, #f9f1de 70%, #faf8f3 100%);
      border-bottom: none;
    }
    .lik-hero-clouds {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }
    .lik-hero-content {
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
      position: relative;
    }
    .lik-hero-title {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 300;
      font-size: clamp(44px, 6vw, 86px);
      line-height: 1.05;
      letter-spacing: -0.015em;
      color: var(--color-text-base);
      margin: 0 0 4px;
    }
    .lik-hero-title .no-wrap {
      white-space: nowrap;
    }
    /* 481–900px (landscape-телефоны, масштабированные экраны): десктоп-заголовок
       с nowrap не влезает и обрезался — разрешаем естественный перенос */
    @media (max-width: 900px) {
      .lik-hero-title .no-wrap { white-space: normal; }
    }
    .lik-hero-title em {
      font-style: italic;
      font-weight: 400;
      color: var(--color-primary-dark);
    }
    .lik-hero-title .em-inline {
      font-style: italic;
      font-weight: 400;
      color: var(--color-primary-dark);
    }
    .hero-sub-br { display: none; }
    @media (min-width: 768px) { .hero-sub-br { display: block; } }
    .lik-hero-sub {
      font-family: "Inter", sans-serif;
      font-size: clamp(16px, 1.4vw, 19px);
      line-height: 1.6;
      color: var(--color-text-dim);
      max-width: 56ch;
      margin: 0 auto 28px;
    }
    .lik-hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 18px 36px;
      background: #c9a961;
      color: #fff;
      border-radius: 999px;
      font-weight: 500;
      font-size: 16px;
      letter-spacing: 0.01em;
      text-decoration: none;
      transition: box-shadow 0.4s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1);
      position: relative;
      overflow: hidden;
      z-index: 0;
      box-shadow:
        0 0 0 4px rgba(201, 169, 97, 0.18),
        0 8px 32px rgba(201, 169, 97, 0.55),
        0 16px 48px rgba(201, 169, 97, 0.30),
        0 2px 6px rgba(201, 169, 97, 0.40);
    }
    .lik-hero-cta::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #d4b574 0%, #c9a961 100%);
      opacity: 1;
      transition: opacity 0.4s cubic-bezier(.2,.7,.2,1);
      z-index: -1;
      border-radius: inherit;
    }
    .lik-hero-cta:hover::after {
      opacity: 0;
    }
    .lik-hero-cta > * { position: relative; z-index: 1; }
    .lik-hero-cta:hover {
      transform: translateY(-2px);
      box-shadow:
        0 4px 20px rgba(201, 169, 97, 0.25),
        0 1px 3px rgba(201, 169, 97, 0.15);
    }
    /* ═══ Единый стиль кнопок — псевдоэлемент для чистого перехода ═══ */
    .btn-lik {
      position: relative;
      background: #c9a961;
      box-shadow:
        0 0 0 4px rgba(201, 169, 97, 0.18),
        0 8px 32px rgba(201, 169, 97, 0.55),
        0 16px 48px rgba(201, 169, 97, 0.30),
        0 2px 6px rgba(201, 169, 97, 0.40);
      transition: box-shadow 0.4s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1);
      overflow: hidden;
      z-index: 0;
    }
    .btn-lik::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #d4b574 0%, #c9a961 100%);
      opacity: 1;
      transition: opacity 0.4s cubic-bezier(.2,.7,.2,1);
      z-index: -1;
      border-radius: inherit;
    }
    .btn-lik:hover::after {
      opacity: 0;
    }
    .btn-lik:hover {
      box-shadow:
        0 4px 20px rgba(201, 169, 97, 0.25),
        0 1px 3px rgba(201, 169, 97, 0.15);
      transform: translateY(-2px);
    }
    .btn-lik > * { position: relative; z-index: 1; }

    
      100% { transform: translateX(0); }
    }


    /* ═══ Лента трансформации ═══ */
    .ts-wrap {
      width: 100%;
      overflow: hidden;
      padding: 32px 0;
      background: var(--color-bg-base);
    }
    .ts-stage {
      position: relative;
      height: 250px;
      touch-action: pan-y;
    }
    .ts-track {
      touch-action: pan-y;
    }
    /* Единый трек */
    .ts-track {
      display: flex;
      gap: 12px;
      width: max-content;
      will-change: transform;
      cursor: grab;
    }
    .ts-track.is-dragging { cursor: grabbing; }

    /* Карточка — контейнер двух слоёв */
    .ts-card {
      flex-shrink: 0;
      width: 188px;
      height: 250px;
      border-radius: 10px;
      position: relative;
      overflow: hidden;
    }

    /* Нижний слой — bad (всегда виден) */
    .ts-card__bad {
      position: absolute;
      inset: 0;
      border-radius: 10px;
    }

    /* Верхний слой — good, clip-path управляется JS */
    .ts-card__good {
      position: absolute;
      inset: 0;
      border-radius: 10px;
    }

    /* Разделитель */
    .ts-divider {
      position: absolute;
      top: -2px;
      bottom: -2px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      z-index: 10;
      display: flex;
      align-items: stretch;
      justify-content: center;
      pointer-events: none;
      touch-action: none;
    }
    .ts-divider * {
      pointer-events: none;
      touch-action: none;
    }
    .ts-divider-line {
      width: 7px;
      border-radius: 4px;
      background: rgba(255,255,255,0.98);
      /* Свечение только вправо — туда входят bad-фото */
      box-shadow:
        8px 0 16px 8px rgba(255,255,255,0.85),
        20px 0 40px 20px rgba(255,255,255,0.5),
        50px 0 90px 40px rgba(201,169,97,0.35),
        80px 0 140px 60px rgba(201,169,97,0.18),
        120px 0 200px 80px rgba(201,169,97,0.08);
    }



    /* Пульсирующая зелёная точка */
    .lik-pulse-wrap {
      position: relative;
      width: 10px;
      height: 10px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .lik-pulse-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #22c55e;
      position: relative;
      z-index: 1;
    }
    .lik-pulse-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: #22c55e;
      opacity: 0.35;
      animation: lik-pulse-ring 2s ease-out infinite;
    }
    @keyframes lik-pulse-ring {
      0%   { transform: scale(1); opacity: 0.35; }
      70%  { transform: scale(2.6); opacity: 0; }
      100% { transform: scale(2.6); opacity: 0; }
    }


    /* ═══ Hero title — мобильная версия с дугой ═══ */
    .hero-desktop { display: inline; }
    .hero-mobile  { display: none;   }

    @media (max-width: 480px) and (orientation: portrait) {
      .hero-desktop { display: none; }
      .hero-mobile  { display: block; text-align: center; }


    }

    /* Мобиль portrait — кнопка скрыта */
    @media (max-width: 480px) and (orientation: portrait) {
      #header-cta-mobile {
        display: none !important;
      }
    }

    /* Блок сравнения цен — мобиль portrait: карточки вертикально */
    @media (max-width: 480px) and (orientation: portrait) {
      .compare-cards { flex-direction: column !important; }
      .compare-mobile { display: none !important; }
    }

    /* Блок доверия — мобиль: ветви меньше */
    @media (max-width: 480px) and (orientation: portrait) {
      .trust-cols > div { padding: 16px 0 !important; }
      .trust-laurel { width: 40px !important; height: 14px !important; }
    }

    /* mob-br — перенос только на мобиле portrait */
    .mob-br { display: none; }
    @media (max-width: 480px) and (orientation: portrait) {
      .mob-br { display: block; }
    }

    /* Блок доверия — узкие экраны (≤700px, любая ориентация): вертикально,
       иначе в диапазоне 481–700px ряд не влезал и обрезался справа */
    @media (max-width: 700px) {
      .trust-cols {
        flex-direction: column !important;
        gap: 20px !important;
      }
      .trust-cols > div {
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--color-border-light);
        padding: 0 0 20px 0 !important;
      }
      .trust-cols > div:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
      }
      .trust-divider { display: none !important; }
    }

    .lik-hero-meta {
      margin-top: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      font-family: "Inter", sans-serif;
      font-size: 13px;
      letter-spacing: 0.02em;
      color: var(--color-text-gray);
    }
    .lik-hero-meta .dot { color: var(--color-primary-dark); opacity: 0.6; }

    /* Тонкий воздушный переход между hero и аплоад-секцией */
    .lik-hero + section { padding-top: 0 !important; }

    /* Римские цифры для шагов */
    .roman-num {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-weight: 400;
      font-style: italic;
      color: var(--color-primary-dark);
      letter-spacing: 0.05em;
    }


    /* ═══ Греческий меандр (Greek key) ═══ */
    .meander-band {
      height: 36px;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 36'><path d='M8 28 L8 10 L32 10 L32 26 L18 26 L18 18 L24 18 L24 22' stroke='%23c9a961' stroke-width='1.6' fill='none' stroke-linecap='square' stroke-linejoin='miter'/><path d='M48 28 L48 10 L72 10 L72 26 L58 26 L58 18 L64 18 L64 22' stroke='%23c9a961' stroke-width='1.6' fill='none' stroke-linecap='square' stroke-linejoin='miter'/></svg>");
      background-repeat: repeat-x;
      background-position: center;
      opacity: 0.55;
      width: 100%;
      max-width: none;
      margin: 24px 0;
    }
    .meander-band.thin {
      height: 22px;
      opacity: 0.4;
      max-width: 500px;
    }

    /* ═══ Лавровый венок под ornament ═══ */
    .laurel {
      display: block;
      width: 140px;
      height: 40px;
      margin: 10px auto 0;
      opacity: 0.75;
    }
    .laurel path { stroke: var(--color-primary); stroke-width: 1.4; fill: none; stroke-linecap: round; }
    .laurel .leaf { fill: var(--color-primary); opacity: 0.55; stroke: none; }

    /* ═══ Классическая рамка (золотые уголки) вокруг блока ═══ */
    .classical-frame {
      position: relative;
      padding: 32px 24px 24px;
    }
    .classical-frame::before,
    .classical-frame::after {
      content: "";
      position: absolute;
      width: 32px; height: 32px;
      border: 1px solid var(--color-primary);
      opacity: 0.7;
    }
    .classical-frame::before {
      top: 0; left: 0;
      border-right: 0; border-bottom: 0;
    }
    .classical-frame::after {
      bottom: 0; right: 0;
      border-left: 0; border-top: 0;
    }
    .classical-frame > .corners-right,
    .classical-frame > .corners-left {
      position: absolute;
      width: 32px; height: 32px;
      border: 1px solid var(--color-primary);
      opacity: 0.7;
    }
    .classical-frame > .corners-right {
      top: 0; right: 0;
      border-left: 0; border-bottom: 0;
    }
    .classical-frame > .corners-left {
      bottom: 0; left: 0;
      border-right: 0; border-top: 0;
    }

    /* ═══ Apple glass CTA ═══ */
    .lik-hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 18px 36px;
      background: #c9a961;
      color: #fff;
      border-radius: 999px;
      font-weight: 500;
      font-size: 16px;
      letter-spacing: 0.01em;
      text-decoration: none;
      transition: box-shadow 0.4s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1);
      position: relative;
      overflow: hidden;
      z-index: 0;
      box-shadow:
        0 0 0 4px rgba(201, 169, 97, 0.18),
        0 8px 32px rgba(201, 169, 97, 0.55),
        0 16px 48px rgba(201, 169, 97, 0.30),
        0 2px 6px rgba(201, 169, 97, 0.40);
    }
    .lik-hero-cta::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #d4b574 0%, #c9a961 100%);
      opacity: 1;
      transition: opacity 0.4s cubic-bezier(.2,.7,.2,1);
      z-index: -1;
      border-radius: inherit;
    }
    .lik-hero-cta:hover::after {
      opacity: 0;
    }
    .lik-hero-cta > * { position: relative; z-index: 1; }
    /* Glow halo на hover */
    .lik-hero-cta:hover {
      transform: translateY(-2px);
      box-shadow:
        0 4px 20px rgba(201, 169, 97, 0.25),
        0 1px 3px rgba(201, 169, 97, 0.15);
    }

    /* ═══ Hero tighten ═══ */
    .lik-hero { padding-bottom: clamp(40px, 6vh, 80px); }


    /* Fallback Georgia с подогнанной метрикой → Cormorant подменяется без скачка */
    @font-face {
      font-family: "Cormorant Garamond Fallback";
      src: local("Georgia");
      size-adjust: 95%;
      ascent-override: 92%;
      descent-override: 28%;
    }
    .lik-hero-title, .hero-h1, .section-h2, .classical-h2, .font-display {
      font-family: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif !important;
    }


    /* ═══ Cursor cloud trail (только устройства с hover) ═══ */
    /* По умолчанию скрыт — иначе на mobile висит пустым div'ом */
    .cursor-cloud { display: none; }

    @media (hover: hover) and (pointer: fine) {
      .cursor-cloud { display: block; }
      .cursor-cloud {
        position: fixed;
        top: 0; left: 0;
        width: 220px; height: 220px;
        pointer-events: none;
        z-index: 9999;
        opacity: 0;
        transform: translate(-50%, -50%);
        transition: opacity 0.5s ease;
        mix-blend-mode: screen;
        will-change: transform;
      }
      .cursor-cloud.is-visible { opacity: 0.85; }
      .cursor-cloud svg { width: 100%; height: 100%; display: block; }
      /* Поверх тёмных областей делаем менее заметным */
      .cursor-cloud.on-dark { mix-blend-mode: lighten; opacity: 0.45; }
    }
    @media (prefers-reduced-motion: reduce) {
      .cursor-cloud { display: none !important; }
    }




    /* ═══ Email-capture попап перед обработкой (DECISIONS №58) ═══ */
.lik-email-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lik-email-overlay.is-open { display: flex; opacity: 1; }
.lik-email-modal {
  background: #fffaf0;
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 32px clamp(20px, 5vw, 36px) 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(40, 30, 15, 0.3);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.lik-email-overlay.is-open .lik-email-modal { transform: translateY(0); }
.lik-email-modal h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center;
  color: var(--color-text-base);
}
.lik-email-modal .sub {
  text-align: center;
  color: var(--color-text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.lik-email-modal label {
  display: block;
  font-size: 13px;
  color: var(--color-text-base);
  font-weight: 500;
  margin: 0 0 6px;
}
.lik-email-modal input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-light);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-base);
  background: #ffffff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.lik-email-modal input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
.lik-email-modal .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-dim);
}
.lik-email-modal .consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary-dark);
  cursor: pointer;
}
.lik-email-modal .consent a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.lik-email-modal .submit {
  width: 100%;
  background: #c9a961;
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: box-shadow 0.4s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1);
  box-shadow:
    0 0 0 4px rgba(201, 169, 97, 0.18),
    0 8px 32px rgba(201, 169, 97, 0.55),
    0 16px 48px rgba(201, 169, 97, 0.30),
    0 2px 6px rgba(201, 169, 97, 0.40);
}
.lik-email-modal .submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4b574 0%, #c9a961 100%);
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
  border-radius: inherit;
}
.lik-email-modal .submit:hover:not(:disabled)::after { opacity: 0; }
.lik-email-modal .submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(201, 169, 97, 0.25),
    0 1px 3px rgba(201, 169, 97, 0.15);
}
.lik-email-modal .submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.lik-email-modal .submit > * { position: relative; z-index: 1; }
.lik-email-modal .error {
  color: #b91c1c;
  font-size: 13px;
  text-align: center;
  margin: 0 0 12px;
  display: none;
}
.lik-email-modal .error.is-visible { display: block; }
.lik-email-modal .meta {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-gray);
  margin: 14px 0 0;
}

/* ═══ Модалка «Реальные примеры работ» ═══ */
    .lik-examples-overlay {
      position: fixed;
      inset: 0;
      background: rgba(40, 30, 15, 0.65);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 10001;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding: 16px 8px;
      opacity: 0;
      transition: opacity 0.3s ease;
      overflow-y: auto;
      overflow-x: hidden;
    }
    @media (min-width: 720px) {
      .lik-examples-overlay { padding: 24px 16px; }
    }
    .lik-examples-overlay.is-open { display: flex; opacity: 1; }
    .lik-examples-modal {
      background: #fffaf0;
      border-radius: 18px;
      max-width: 920px;
      width: 100%;
      padding: 28px clamp(16px, 4vw, 44px) 32px;
      position: relative;
      box-shadow: 0 30px 80px rgba(40, 30, 15, 0.3);
      transform: translateY(20px);
      transition: transform 0.3s ease;
      margin: auto;
      box-sizing: border-box;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    .lik-examples-modal *,
    .lik-examples-modal *::before,
    .lik-examples-modal *::after { box-sizing: border-box; }
    .lik-examples-overlay.is-open .lik-examples-modal { transform: translateY(0); }
    .lik-examples-close {
      position: absolute;
      top: 14px; right: 14px;
      width: 38px; height: 38px;
      border: none;
      background: rgba(0,0,0,0.04);
      border-radius: 50%;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s, background 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }
    .lik-examples-close:hover { opacity: 1; background: rgba(0,0,0,0.08); }
    .lik-examples-modal h2 {
      font-family: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
      font-weight: 400;
      font-size: clamp(22px, 5vw, 36px);
      line-height: 1.15;
      text-align: center;
      margin: 4px 0 6px;
      padding: 0 12px;
      color: var(--color-text-base);
      overflow-wrap: break-word;
    }
    .lik-examples-sub { padding: 0 8px; }
    .lik-examples-modal .ornament { margin: 14px auto 24px; font-size: 12px; }
    .lik-examples-sub {
      text-align: center;
      color: var(--color-text-dim);
      font-size: 14px;
      max-width: 540px;
      margin: 0 auto 28px;
      line-height: 1.55;
    }

    /* ═══ Галерея применения портретов ═══ */
    .lik-gallery-masonry {
      column-count: 4;
      column-gap: 8px;
    }
    .lik-gallery-item {
      break-inside: avoid;
      margin-bottom: 8px;
      cursor: pointer;
      overflow: hidden;
      border-radius: 10px;
    }
    .lik-gallery-thumb {
      width: 100%;
      display: block;
      border-radius: 10px;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .lik-gallery-item:hover .lik-gallery-thumb {
      transform: scale(1.025);
      opacity: 0.92;
    }
    /* Мобайл — скрыть карточки с 7 по 12 */
    @media (max-width: 767px) {
      .lik-gallery-masonry {
        column-count: 2;
      }
      .lik-gallery-item.gallery-hidden-mobile {
        display: none;
      }
      .lik-gallery-item.gallery-hidden-mobile.gallery-visible {
        display: block;
      }
    }
    @media (min-width: 768px) and (max-width: 1023px) {
      .lik-gallery-masonry {
        column-count: 2;
      }
    }
    /* Попап */
    .lik-gallery-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10,8,6,0.90);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 56px 40px 48px;
      box-sizing: border-box;
    }
    .lik-gallery-overlay.active {
      display: flex;
    }
    .lik-gallery-popup {
      position: relative;
      /* Ограничение по ширине — не шире контентной */
      max-width: 1100px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* Высота = всё доступное пространство оверлея */
      max-height: 100%;
    }
    .lik-gallery-popup-img-wrap {
      /* Вписываем изображение в доступную область сохраняя пропорции */
      max-width: 100%;
      max-height: calc(100vh - 56px - 48px - 52px); /* отступы + футер */
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    /* Сам градиентный div — сохраняет aspect-ratio, вписывается в контейнер */
    .lik-gallery-popup-img-wrap > div {
      border-radius: 16px;
      /* Ширина и высота подбираются через JS под пропорции */
      max-width: 100%;
      max-height: calc(100vh - 56px - 48px - 52px);
    }
    @media (max-width: 600px) {
      .lik-gallery-overlay {
        padding: 56px 16px 44px;
      }
      .lik-gallery-popup-img-wrap {
        max-height: calc(100vh - 56px - 44px - 52px);
      }
      .lik-gallery-popup-img-wrap > div {
        max-height: calc(100vh - 56px - 44px - 52px);
      }
    }
    .lik-gallery-popup-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-top: 14px;
      padding: 0 4px;
    }
    .lik-gallery-caption {
      font-size: 13px;
      color: rgba(255,255,255,0.75);
      font-weight: 400;
    }
    .lik-gallery-counter {
      font-size: 12px;
      color: rgba(255,255,255,0.4);
      font-variant-numeric: tabular-nums;
    }
    .lik-gallery-close {
      position: fixed;
      top: 18px;
      right: 20px;
      background: rgba(255,255,255,0.1);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
      z-index: 1001;
    }
    .lik-gallery-close:hover { background: rgba(255,255,255,0.2); }
    .lik-gallery-arrow {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.1);
      border: none;
      color: white;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
      z-index: 1001;
    }
    .lik-gallery-arrow:hover { background: rgba(255,255,255,0.2); }
    .lik-gallery-arrow-prev { left: 16px; }
    .lik-gallery-arrow-next { right: 16px; }
    @media (max-width: 600px) {
      .lik-gallery-arrow-prev { left: 6px; }
      .lik-gallery-arrow-next { right: 6px; }
      .lik-gallery-arrow { width: 36px; height: 36px; }
    }
    /* ═══ /Галерея ═══ */

    .lik-examples-section-label {
      font-size: 11px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--color-text-gray);
      font-weight: 600;
      margin: 28px 0 14px;
      text-align: center;
    }
    .lik-examples-baslider-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }
    .lik-examples-baslider {
      position: relative;
      aspect-ratio: 1/1;
      overflow: hidden;
      border-radius: 14px;
      background: var(--color-bg-input);
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      cursor: ew-resize;
      user-select: none;
      touch-action: pan-y;
    }
    .lik-examples-baslider img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
    }
    .lik-examples-baslider .clip {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }
    .lik-examples-baslider .handle {
      position: absolute;
      top: 0; bottom: 0;
      width: 2px;
      background: white;
      box-shadow: 0 0 4px rgba(0,0,0,0.3);
      pointer-events: none;
      left: calc(50% - 1px);
    }
    .lik-examples-baslider .handle-knob {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 32px; height: 32px;
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      color: #86868b;
    }
    .lik-examples-baslider .label {
      position: absolute;
      top: 8px;
      font-size: 10px;
      font-weight: 700;
      color: white;
      padding: 3px 8px;
      border-radius: 5px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      backdrop-filter: blur(4px);
      pointer-events: none;
    }
    .lik-examples-baslider .label-before { left: 8px; background: rgba(0,0,0,0.6); }
    .lik-examples-baslider .clip .label,
    .slider-clip .label-before-inner {
      position: absolute;
      top: 8px; left: 8px;
      font-size: 10px; font-weight: 700;
      color: white;
      padding: 3px 8px;
      border-radius: 5px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      backdrop-filter: blur(4px);
      pointer-events: none;
      background: rgba(0,0,0,0.6);
    }
    .lik-examples-baslider .label-after  { right: 8px; background: rgba(201,169,97,0.85); }
    .lik-examples-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
    }
    .lik-examples-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      border: 1px solid var(--color-border-light);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .lik-examples-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .lik-examples-card img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      display: block;
      background: var(--color-bg-input);
    }
    .lik-examples-card-cap {
      padding: 10px 12px;
      font-size: 12.5px;
      color: var(--color-text-dim);
      line-height: 1.4;
    }
    .lik-examples-foot {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid var(--color-border-light);
      text-align: center;
      font-size: 13px;
      color: var(--color-text-gray);
    }

    
    /* ═══ Табы режимов в модалке примеров ═══ */
    .lik-modes-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-bottom: 24px;
    }
    .lik-modes-tab {
      padding: 9px 14px;
      border: 1.5px solid var(--color-border-light);
      background: white;
      color: var(--color-text-base);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      max-width: 100%;
    }
    .lik-modes-tab:hover {
      border-color: var(--color-primary-dark);
      color: var(--color-primary-dark);
    }
    .lik-modes-tab.is-active {
      background: var(--color-primary);
      color: white;
      border-color: var(--color-primary-dark);
      box-shadow: 0 2px 8px rgba(201,169,97,0.25);
    }
    .lik-modes-stage {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
      align-items: center;
    }
    .lik-modes-stage > * { min-width: 0; }
    @media (min-width: 720px) {
      .lik-modes-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    }
    .lik-modes-slider-wrap {
      position: relative;
      aspect-ratio: 3/4;
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(40,30,15,0.18);
      background:
        linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
        linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
      background-size: 20px 20px;
      background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
      cursor: ew-resize;
      user-select: none;
      touch-action: pan-y;
    }
    .lik-modes-slider-wrap img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
    }
    .lik-modes-slider-wrap .clip {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }
    .lik-modes-slider-wrap .handle {
      position: absolute;
      top: 0; bottom: 0;
      width: 2px;
      background: white;
      box-shadow: 0 0 6px rgba(0,0,0,0.3);
      pointer-events: none;
      left: calc(50% - 1px);
      z-index: 2;
    }
    .lik-modes-slider-wrap .handle-knob {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 38px; height: 38px;
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.25);
      color: #86868b;
    }
    .lik-modes-slider-wrap .label {
      position: absolute;
      top: 10px;
      font-size: 11px;
      font-weight: 700;
      color: white;
      padding: 4px 9px;
      border-radius: 6px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      backdrop-filter: blur(4px);
      pointer-events: none;
      z-index: 3;
    }
    .lik-modes-slider-wrap .label-before { left: 10px; background: rgba(0,0,0,0.65); }
    .lik-modes-slider-wrap .clip .label { position: absolute; }
    .lik-modes-slider-wrap .label-after  { right: 10px; background: rgba(201,169,97,0.9); }
    .lik-modes-info { min-width: 0; }
    .lik-modes-info h3 {
      font-family: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
      font-weight: 400;
      font-size: clamp(22px, 5vw, 28px);
      line-height: 1.2;
      margin: 0 0 10px;
      color: var(--color-text-base);
      overflow-wrap: break-word;
    }
    .lik-modes-info .badge {
      display: inline-block;
      font-size: 11px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-primary-dark);
      font-weight: 600;
      margin-bottom: 8px;
    }
    .lik-modes-info p {
      font-size: 14.5px;
      line-height: 1.6;
      color: var(--color-text-dim);
      margin: 0 0 14px;
    }
    .lik-modes-info .for-what {
      background: var(--color-primary-bg);
      border-left: 3px solid var(--color-primary);
      padding: 12px 14px;
      border-radius: 0 8px 8px 0;
      font-size: 13.5px;
      color: #6b4f1d;
    }
    .lik-modes-info .for-what strong { color: var(--color-primary-dark); }
    .lik-modes-cta {
      margin-top: 28px;
      text-align: center;
    }


        /* ═══ Mobile menu ═══ */
    @media (max-width: 480px) and (orientation: portrait) {
      .lik-mobile-menu-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        outline: none !important;
      }
      .lik-mobile-menu-btn i {
        font-size: 36px !important;
      }
    }
    .lik-mobile-menu-btn {
      display: none;
      background: transparent;
      border: 1px solid #e8e0c8;
      border-radius: 8px;
      padding: 8px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }
    .lik-mobile-menu-btn svg { display: block; color: #1d1d1f; }
    .lik-mobile-menu-btn:hover { background: #f5ecd6; }
    @media (max-width: 768px) {
      .lik-mobile-menu-btn { display: inline-flex; }
    }
    .lik-mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(40, 30, 15, 0.55);
      backdrop-filter: blur(6px);
      z-index: 9998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .lik-mobile-menu-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .lik-mobile-menu-panel {
      position: fixed;
      top: 0; right: 0; bottom: 0;
      width: 280px;
      max-width: 85vw;
      background: #fffaf0;
      z-index: 9999;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      padding: 24px 24px 32px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    }
    .lik-mobile-menu-panel.is-open { transform: translateX(0); }
    .lik-mobile-menu-panel .close-btn {
      align-self: flex-end;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 8px;
      margin-bottom: 16px;
      color: #424246;
    }
    .lik-mobile-menu-panel a {
      padding: 14px 12px;
      font-size: 16px;
      color: #1d1d1f;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 500;
      transition: background 0.2s;
    }
    .lik-mobile-menu-panel a:hover {
      background: #f5ecd6;
      color: #8a6f30;
    }
    .lik-mobile-menu-panel .menu-divider {
      height: 1px;
      background: #e8e0c8;
      margin: 12px 0 8px;
    }
    .lik-mobile-menu-panel .menu-cta {
      margin-top: auto;
      padding: 14px;
      background: #1d1d1f;
      color: white;
      text-align: center;
      border-radius: 999px;
      font-weight: 500;
    }
    .lik-mobile-menu-panel .menu-cta:hover {
      background: #c9a961;
      color: white;
    }

  
