:root{
  /* Фон — чернильный (богаче, чем зелёный фон) */
  --bg:  #0b0f12;
  --bg2: #070a0c;

  /* Поверхности (стекло) */
  --card:  rgb(255 255 255 / .045);
  --card2: rgb(255 255 255 / .060);

  /* Текст */
  --text:  #f4f2ee;
  --muted: rgb(244 242 238 / .72);

  /* === Главный цвет свадьбы: изумруд === */
  /* “Rich emerald” (не болотный) */
  --accent-rgb: 18 122 88;
  --accent: rgb(var(--accent-rgb));

  /* Производные от акцента */
  --accentLine:  rgb(var(--accent-rgb) / .28);
  --accentSoft:  rgb(var(--accent-rgb) / .14);
  --accentGlow:  rgb(var(--accent-rgb) / .10);
  --accentWater: rgb(var(--accent-rgb) / .10);

  /* Второй цвет, который очень дружит с зелёным (праздничный) */
  --warm-rgb: 226 205 176; /* шампань / айвори */
  --warm: rgb(var(--warm-rgb));
  --warmSoft: rgb(var(--warm-rgb) / .12);

  /* Линии/рамки */
  --ring: rgb(255 255 255 / .12);

  /* Тень */
  --shadow: 0 18px 70px rgb(0 0 0 / .45);
}



  
  *{box-sizing:border-box}
  html,body{
    margin:0;
    padding:0;
    font-family:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color:var(--text);
  
    /* ВАЖНО: подсветка фона НЕ зелёная, а нейтральная “лунная” */
    background: var(--bg);
  }
  
  a{color:inherit}

  /* === Headings === */
  .container h2,
  .container h3{
    color: var(--warm);
  }
  .container h2{
    font-weight: 600;
    letter-spacing: .01em;
  }

  
  .hero{
    position:relative;
    min-height:100vh;
    min-height:100svh;
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    display:grid;
    place-items:center;
    background:
    linear-gradient(180deg, rgb(0 0 0 / .45), rgb(0 0 0 / .82)),
    var(--hero-url) center/cover no-repeat;
    padding:48px 16px;
  }
  .hero-content{position:relative;max-width:980px;text-align:center}
  .kicker{letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
  .title{font-size:clamp(28px,4vw,56px);line-height:1.08;margin:0 0 18px}
  .date{color:var(--muted);margin:10px 0 18px}
  
  .hero-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
  
  .countdown{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:nowrap;
    margin:18px 0 10px;
  }
  .cd-item{
    background:rgba(255,255,255,.08);
    border:1px solid var(--ring);
    border-radius:18px;
    padding:14px 16px;
    min-width:84px;
    backdrop-filter: blur(6px);
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
  .cd-item span{display:block;font-size:clamp(18px, 5vw, 28px);font-weight:700}
  .cd-item small{color:var(--muted);font-size:clamp(10px, 2.5vw, 12px)}
  
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:14px;
    border:1px solid var(--accentSoft);
    background: var(--accentGlow);
    text-decoration:none;
    cursor:pointer;
    font-weight:700;
    color: var(--text);
    backdrop-filter: blur(6px);
  }
  .btn:hover{
    background: rgb(var(--accent-rgb) / .16);
    border-color: rgb(var(--accent-rgb) / .22);
  }
  .btn.secondary{
    background: transparent;
    border-color: rgb(255 255 255 / .14);
  }
  .btn.ghost{
    background: transparent;
    border-color: var(--accentSoft);
  }
  
  
  .container{max-width:980px;margin:0 auto;padding:34px 16px 64px}
  .section{margin:42px 0}
  .section h2{font-size:28px;margin:0 0 18px}
  .muted{color:var(--muted);margin:0 0 16px}
  
  .timeline{display:grid;gap:14px}
  .tl-item{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:start}
  .time{color:var(--muted);font-weight:800;letter-spacing:.02em;padding-top:10px}
  .card{
    background:var(--card);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    padding:16px 16px 14px;
  }
  .card h3{margin:0 0 6px}
  .card p{margin:0;color:var(--muted)}
  
  .info h3{margin:0 0 6px}
  .info p{margin:0;color:var(--muted)}
  
  .form{
    display:grid;
    gap:14px;
    background:var(--card);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    padding:16px;
  }
  label{display:grid;gap:8px;font-weight:700}
  input,textarea,select{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:var(--text);
    outline:none;
  }
  input:focus,textarea:focus,select:focus{border-color:rgba(255,255,255,.28)}
  .grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  
  .form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
  .hint{color:var(--muted)}
  
  /* footer moved to new styles below */
  
  @media (max-width: 820px){
    .info-grid{grid-template-columns:1fr}
    .tl-item{grid-template-columns:68px 1fr}
    .grid2{grid-template-columns:1fr}
  }

  /* Полезная информация — вертикально, с иконками */
.info-list{
    display:grid;
    gap:14px;
  }
  
  .info-item{
    display:grid;
    grid-template-columns: 56px 1fr;
    gap:14px;
    align-items:center;
  
    background:var(--card);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    padding:16px;
  }
  
  .info-icon{
    width:56px;
    height:56px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    display:grid;
    place-items:center;
  }
  
  .info-icon svg{
    width:26px;
    height:26px;
    color: rgba(255,255,255,.82);
  }
  
  .info-body h3{
    margin:0 0 6px;
  }
  
  .info-body p{
    margin:0;
    color:var(--muted);
    line-height:1.35;
  }
  
  @media (max-width: 520px){
    .info-item{
      grid-template-columns: 44px 1fr;
      padding:14px;
    }
    .info-icon{
      width:44px;
      height:44px;
      border-radius:14px;
    }
    .info-icon svg{
      width:22px;
      height:22px;
    }
  }

  /* Полезная информация — эстетичные вертикальные карточки с фото/картой */
.info-stack{
    display:grid;
    gap:16px;
  }
  
  .info-card{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap:16px;
  
    background:var(--card);
    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;
    overflow:hidden;
  }
  
  .info-media{
    position:relative;
    min-height:190px;
    background:rgba(255,255,255,.06);
  }
  
  .info-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  
  .info-media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.0));
    pointer-events:none;
  }
  
  /* Карта */
  .info-media-map{
    min-height:260px;
  }
  .info-media-map iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
  }
  
  .info-content{
    padding:18px 18px 16px;
    display:flex;              /* было grid */
    flex-direction:column;
    gap:12px;
    align-content:start;
    height: 100%;
  }

  /* Кнопку маршрута прижимаем вниз и делаем “дороже” */
  #routeBtn{
    width: fit-content;       /* можно заменить на 100% если хочешь full-width */
    min-width: 220px;
    justify-content: center;
    gap: 10px;                /* если добавим иконку */
  }

  @media (max-width: 520px){
    #routeBtn{
      width: 100%;
      min-width: 0;
    }
  }

/* чуть приятнее hover */
#routeBtn:hover{
  background: rgb(var(--accent-rgb) / .18);
  border-color: rgb(var(--accent-rgb) / .30);
}
  
  .info-head h3{
    margin:0 0 6px;
    font-size:20px;
  }
  .info-sub{
    margin:0;
    color:var(--muted);
    line-height:1.35;
  }
  
  .info-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-top: auto;
  }
  
  .info-note{
    margin:0;
    color:var(--muted);
    opacity:.9;
    line-height:1.35;
  }
  
  /* Адаптив */
  @media (max-width: 860px){
    .info-card{
      grid-template-columns: 1fr;
    }
    .info-media{
      min-height:220px;
    }
    .info-media::after{
      background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0));
    }
  }

  


  /* ===== ЛОКАЦИЯ: карусель (единая стилистика “стекла”) ===== */
  .loc-media{
    position:relative;
    padding:12px;
  }
  .loc-media::after{ display:none; }

  .loc-view{
    position:relative;
    width:100%;
    border-radius:16px;
    overflow:hidden;
    background: rgba(255,255,255,.06);
    aspect-ratio: 4 / 3;
    min-height:190px;
  }

  .loc-track{
    height:100%;
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .loc-track::-webkit-scrollbar{ display:none; }

  .loc-track img{
    flex: 0 0 100%;
    width:100%;
    height:100%;
    object-fit:cover;
    scroll-snap-align: start;
    cursor: zoom-in;
    user-select:none;
  }

  .car-btn{
    position:absolute;
    z-index: 2;
    top:50%;
    transform: translateY(-50%);
    width:38px;
    height:38px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    display:grid;
    place-items:center;
    cursor:pointer;
    opacity:.95;
  }
  .car-btn:hover{ background: rgba(0,0,0,.50); }
  .car-btn.prev{ left:10px; }
  .car-btn.next{ right:10px; }
  .car-btn span{ font-size:22px; line-height:1; }

  .loc-bottom{
    position:absolute;
    z-index: 2;
    left:10px;
    right:10px;
    bottom:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .loc-caption{
    font-size:14px;
    font-weight:600;
    color: rgba(255,255,255,.92);
    line-height:1.2;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: none;
  }

  .loc-dots{
    display:flex;
    gap:8px;
    align-items:center;
  }

  .loc-dots .dot{
    width:10px;
    height:10px;
    border-radius:999px;
    border:0;
    background: rgba(255,255,255,.35);
    cursor:pointer;
    transition: width .18s ease, background .18s ease, opacity .18s ease;
  }
  .loc-dots .dot:hover{ opacity:.95; }
  .loc-dots .dot.active{
    width:24px;
    background: rgba(255,255,255,.80);
  }

  @media (max-width: 860px){
    .loc-media{ padding:12px; }
    .loc-view{ min-height:220px; }
    .loc-bottom{ left:8px; right:8px; bottom:8px; }
    .loc-caption{ max-width: 55%; }
  }

/* ===== Lightbox (полный размер) ===== */
  .no-scroll{ overflow:hidden; }

  .lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    transition: opacity .18s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 28px;
  }
  .lightbox.open{
    opacity:1;
    pointer-events:auto;
  }
  .lb-backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .lb-dialog{
    position:relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 56px);
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(12,12,14,.72);
    box-shadow: 0 30px 120px rgba(0,0,0,.55);
  }
  .lb-stage{
  position:relative;
    z-index: 1;
  width:100%;
  height: min(calc(100vh - 120px), 760px);
  background: rgba(0,0,0,.25);
}
.lb-stage .lb-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  transition: opacity 220ms ease;
  opacity: 1;
  background: transparent;
}
.lb-stage .lb-img.hidden{ opacity: 0; }
.lb-stage .lb-img.visible{ opacity: 1; }


  .lb-bottom{
    position:absolute;
    z-index: 5;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 14px;
    border-top:1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .lb-caption{
    color: rgba(255,255,255,.88);
    font-size: 14px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: 65%;
  }
  .lb-dots{
    display:flex;
    gap:8px;
    padding:6px 8px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
  }
  .lb-dots .dot{
    width:10px;
    height:10px;
    border-radius:999px;
    border:0;
    background: rgba(255,255,255,.35);
    cursor:pointer;
    transition: width .18s ease, background .18s ease, opacity .18s ease;
  }
  .lb-dots .dot.active{
    width:24px;
    background: rgba(255,255,255,.80);
  }

  .lb-close{
    position:absolute;
    z-index: 5;
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .lb-close svg{ width:20px; height:20px; }

  .lb-nav{
    position:absolute;
    z-index: 5;
    top:50%;
    transform: translateY(-50%);
    width:44px;
    height:44px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .lb-nav span{ font-size:26px; line-height:1; }
  .lb-prev{ left:12px; }
  .lb-next{ right:12px; }

  /* ===== PROGRAM (торжественная "Программа") ===== */
.program-section{
    margin-top:52px;
  }
  
  .program-paper{
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
    color:#131318;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.16);
    padding:44px 22px 30px;
    box-shadow: 0 20px 80px rgba(0,0,0,.28);
  }
  
  .program-title{
    text-align:center;
    font-size: clamp(40px, 6.2vw, 86px);
    letter-spacing: .06em;
    font-weight: 300;
    margin: 0 0 26px;
    /* торжественный “узкий” эффект без внешних шрифтов */
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-transform: uppercase;
  }
  
  .program-list{
    display:grid;
    gap:28px;
    max-width: 920px;
    margin: 0 auto;
  }
  
  .program-item{
    display:grid;
    grid-template-columns: 140px 24px 1fr;
    gap:18px;
    align-items:center;
  }
  
  .pi-icon{
    display:grid;
    place-items:center;
    min-height:110px;
  }
  
  .pi-icon svg{
    width:92px;
    height:92px;
    color: rgba(10,10,12,.78);
  }
  
  .pi-line{
    position:relative;
    height:100%;
    display:grid;
    place-items:center;
  }
  
  .pi-line::before{
    content:"";
    position:absolute;
    top:-18px;
    bottom:-18px;
    left:50%;
    transform: translateX(-50%);
    width:1px;
    background: rgba(190,160,125,.85);
  }
  
  .pi-line-last::before{
    bottom: 8px;
  }
  
  .pi-heart{
    width:14px;
    height:14px;
    background: rgba(190,160,125,.95);
    transform: rotate(45deg);
    border-radius:3px;
    position:relative;
    box-shadow: 0 0 0 6px rgba(190,160,125,.10);
  }
  
  .pi-heart::before,
  .pi-heart::after{
    content:"";
    position:absolute;
    width:14px;
    height:14px;
    background: rgba(190,160,125,.95);
    border-radius:50%;
  }
  .pi-heart::before{ left:-7px; top:0; }
  .pi-heart::after{ left:0; top:-7px; }
  
  .pi-content{
    position:relative;
    padding: 14px 14px 14px 0;
  }
  
  .pi-time-bg{
    position:absolute;
    right:0;
    top:-12px;
    font-size: clamp(54px, 6vw, 86px);
    line-height:1;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 300;
    color: rgba(190,160,125,.38);
    letter-spacing: .02em;
    pointer-events:none;
    user-select:none;
  }
  
  .pi-title{
    font-size: 30px;
    letter-spacing: .03em;
    margin: 0 0 6px;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-transform: uppercase;
  }
  
  .pi-desc{
    margin:0;
    color: rgba(20,20,25,.72);
    font-size: 18px;
    max-width: 520px;
  }
  
  /* адаптив */
  @media (max-width: 860px){
    .program-item{
      grid-template-columns: 96px 18px 1fr;
      gap:12px;
    }
    .pi-icon svg{ width:72px; height:72px; }
    .pi-title{ font-size: 24px; }
    .pi-desc{ font-size: 16px; }
  }
  
  @media (max-width: 560px){
    .program-paper{ padding:32px 14px 22px; }
    .program-title{ margin-bottom: 18px; }
    .program-item{
      grid-template-columns: 70px 14px 1fr;
    }
    .pi-time-bg{
      opacity: .55;
      top: -8px;
    }
  }
  /* ====== PROGRAM (dark pastel, торжественно-минималистично) ====== */
.program-dark{
  margin-top:56px;
}

.program-h2{
  margin:0 0 18px;
  font-size: 34px;
  letter-spacing: .02em;
  color: var(--warm); /* тёплый акцент */
}

/* контейнер — “бархат” */
.program-wrap{
  border-radius:24px;
  border:1px solid rgb(255 255 255 / .10);
  background:
    radial-gradient(900px 380px at 20% 0%, rgb(255 255 255 / .07), transparent 60%),
    radial-gradient(700px 320px at 100% 60%, rgb(255 255 255 / .05), transparent 60%),
    rgb(255 255 255 / .03);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.program-items{
  display:grid;
  gap: 14px;
}

/* убираем “строгие карточки”, оставляем строки */
.pitem{
  display:grid;
  grid-template-columns: 82px 26px 1fr;
  gap: 16px;
  align-items:center;              /* ВАЖНО: выравниваем по центру */
  padding: 10px 8px;
  border-radius:18px;
}

.pitem:hover{
  background: rgba(255,255,255,.02);
}

/* иконка — легче и пастельнее */
.picon{
  display:grid;
  place-items:center;
  height: 68px;
  width: 68px;
  border-radius:18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.picon svg{
  width: 46px;
  height: 46px;
  color: rgba(244,242,238,.78);
}

/* линия — тоньше, теплее */
.pline{
  position:relative;
  height:100%;
  min-height: 68px;                /* равняем по высоте иконки */
  display:grid;
  place-items:center;              /* было start — из-за этого “съезжало” */
}


.pline::before{
  content:"";
  position:absolute;
  top:-26px;                       /* удлиняем линию, чтобы между пунктами не рвалась */
  bottom:-26px;
  left:50%;
  transform: translateX(-50%);
  width:1px;
  background: var(--accentLine);   /* единый цвет линии */
}

.pline-last::before{
  bottom: 14px;
}

/* узел — сердечко (если хочешь точки — скажи, заменю) */
.pnode{
  margin-top: 0;                   /* ВАЖНО: убираем сдвиг, из-за него узлы “плыли” */
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius:2px;
  position:relative;
  box-shadow: 0 0 0 7px var(--accentGlow);
}
.pnode::before,
.pnode::after{
  content:"";
  position:absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius:50%;
}
.pnode::before{ left:-5px; top:0; }
.pnode::after{ left:0; top:-5px; }

/* контент */
.pcontent{
  position:relative;
  padding-right: 16px;
}

.ptime{
  color: var(--accent);            /* время в твоём цвете */
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 6px;
  font-size: 18px;
}

/* торжественно, но мягко */

.ptitle{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: .04em;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase;
  color: rgb(244 242 238 / .92);
}

.pdesc{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  max-width: 640px;
}

/* большое время справа — совсем нежный водяной знак */
.pcontent::after{
  content: attr(data-time);
  position:absolute;
  right: 6px;
  top: -10px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: .02em;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--accentWater);       /* водяной знак — пастельный */
  pointer-events:none;
  user-select:none;
}

@media (max-width: 860px){
  .pitem{ grid-template-columns: 70px 22px 1fr; gap: 14px; }
  .picon{ width: 60px; height: 60px; border-radius:16px; }
  .picon svg{ width: 42px; height: 42px; }
  .ptitle{ font-size: 20px; }
  .pcontent::after{ font-size: 52px; }
}

@media (max-width: 520px){
  .program-wrap{ padding: 16px 12px; }
  .pitem{ padding: 8px 6px; }
  .pcontent::after{ display:none; }
  .picon{ width: 52px; height: 52px; border-radius: 14px; }
  .picon svg{ width: 42px; height: 42px; }
}

  


/* ===== ДРЕСС-КОД: мини-карусель + модалка с превью слева ===== */
.dc-media{ padding:12px; }
.dc-media::after{ display:none; }

.dc-view{
  position:relative;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  aspect-ratio: 4 / 3;
  min-height:190px;
}

/* горизонтальный трек как у локации */
.dc-track{
  height:100%;
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dc-track::-webkit-scrollbar{ display:none; }

.dc-track img{
  flex: 0 0 100%;
  width:100%;
  height:100%;
  object-fit:cover;
  scroll-snap-align: start;
  cursor: zoom-in;
  user-select:none;
}

.dc-bottom{
  position:absolute;
  z-index: 2;
  left:10px;
  right:10px;
  bottom:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dc-caption{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:600;
  color: rgba(255,255,255,.92);
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: none;
}

.dc-dots{
  display:flex;
  flex: 0 0 auto;
  gap:6px;
  align-items:center;

  /* NEW: если дотов много — они скроллятся, а не ломают подпись */
  max-width: 46%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 2px 2px; /* чтобы крайний дот не резался */
}
.dc-dots::-webkit-scrollbar{ display:none; }

.dc-dots .dot{
  flex: 0 0 auto;              /* важно */
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.35);
  cursor:pointer;

  /* BEST PRACTICE: не меняем width => нет дерганий раскладки */
  transform: scaleX(1);
  transform-origin: center;
  scroll-snap-align: center;

  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.dc-dots .dot.active{
  background: rgba(255,255,255,.80);
}


/* ===== Dressbox modal ===== */
.dressbox{
  position:fixed;
  inset:0;
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
}
.dressbox.open{
  opacity:1;
  pointer-events:auto;
}
.dcb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dcb-dialog{
  position:relative;
  width: min(1040px, 100%);
  height: min(calc(100vh - 56px), 720px);
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,12,14,.72);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);

  display:grid;
  grid-template-columns: 375px 1fr;
}

/* left: фото + превью */
.dcb-left{
  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  display:grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  overflow: hidden;
}

.dcb-stage{
  position:relative;
  width:100%;
  height: 100%;
  background: rgba(0,0,0,.22);
  overflow: hidden;
}
.dcb-stage .dcb-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  transition: opacity 220ms ease;
  opacity: 1;
  background: transparent;
}
.dcb-stage .dcb-img.hidden{ opacity:0; }
.dcb-stage .dcb-img.visible{ opacity:1; }

.dcb-thumbs{
  display:flex;
  gap:10px;
  padding: 16px;
  flex-wrap:wrap;
  justify-content: left;
  align-content: center;
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
}
.dcb-thumbs::-webkit-scrollbar{ display:none; }

.dcb-thumb{
  position:relative;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius:999px;
  padding:0;
  cursor:pointer;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  overflow:hidden;
}
.dcb-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  border-radius:inherit;
}

.dcb-swatchThumb{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
}
.dcb-thumb.active{
  border-color: rgb(var(--accent-rgb) / .70);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .28), 0 4px 16px rgba(0,0,0,.5);
  transform: scale(1.12);
}
.dcb-thumb:hover:not(.active){
  border-color: rgba(255,255,255,.45);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.dcb-thumb{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* превью цветов */
.dcb-thumbs-wrap{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* right: описание */
.dcb-right{
  padding:18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y: auto;
  /* растягиваем по высоте левой колонки через align-self */
  align-self: stretch;
}
.dcb-head{
  display:flex;
  padding-right:52px; /* место под крестик */
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.dcb-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}
.dcb-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.dcb-swatch{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: #127A58;
}
.dcb-color{
  font-size: 12px;
  color: rgba(255,255,255,.88);
  letter-spacing:.08em;
  text-transform: uppercase;
}
.dcb-desc{
  margin:0;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}
.dcb-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 4px;
}

.dcb-palette{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.dcb-palette-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.dcb-palette-swatches{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dcb-palette-swatch{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.dcb-palette-swatch:hover{
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.40);
}
.dcb-palette-swatch[title]:hover::after{
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,24,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
}

/* examples image (right bottom) */
.dcb-examples{
  margin-top: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow: hidden;
  height: 220px;
  display: grid;
}
.dcb-examples-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.dcb-examples-empty{
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  line-height: 1.35;
}
.dcb-examples.has-image .dcb-examples-img{ display:block; }
.dcb-examples.has-image .dcb-examples-empty{ display:none; }


/* nav buttons (best-practice: внутри левого окна, поверх фото) */
.dcb-stage .dcb-actions-left{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  pointer-events:none; /* чтобы клики по фото не блокировались */
}

.dcb-stage .dcb-nav{
  pointer-events:auto;
  width:44px;
  height:44px;
  padding:0;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-size:26px;
  line-height:1;

  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
}

.dcb-stage .dcb-nav:hover{ background: rgba(0,0,0,.50); }

/* close */
.dcb-close{
  position:absolute;
  z-index: 5;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.dcb-close svg{ width:20px; height:20px; }

@media (max-width: 920px){
  .dressbox{ padding: 16px; align-items: center; }

  .dcb-dialog{
    grid-template-columns: 1fr;
    height: auto;
    max-height: calc(100dvh - 32px);
    border-radius: 20px;
    width: 100%;
    overflow-y: auto;
  }

  .dcb-left{
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    height: auto;
  }

  .dcb-stage{ height: min(50dvh, 360px); }

  /* thumbs: горизонтальная прокрутка в одну строку */
  .dcb-thumbs-wrap{
    height: auto;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .dcb-thumbs{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-content: center;
    padding: 4px 0 8px;
    gap: 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .dcb-thumb{
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 52px;
    height: 52px;
  }

  /* правая колонка: убираем скролл, нормальный поток */
  .dcb-right{
    overflow-y: visible;
    padding: 16px 16px 24px;
  }

  /* заголовок: title и chip в одну строку */
  .dcb-head{
    padding-right: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* крестик поверх всего */
  .dcb-close{
    top: 10px;
    right: 10px;
    z-index: 10;
  }

  .dcb-examples{ height: 180px; }
}

@media (max-width: 860px){
  .dc-view{ min-height:220px; }
  .dc-bottom{ left:8px; right:8px; bottom:8px; }
  .dc-caption{ max-width: none; }
  .dcb-thumb{ width:60px; height:60px; }
}



/* ===== Scroll reveal (деликатно, как у Apple) ===== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1),
    transform .7s cubic-bezier(.2,.8,.2,1),
    filter .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform, filter;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


/* ====== ПОЖЕЛАНИЕ (иконка слева) ====== */
.wish-card{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:0;
  background: var(--card);
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  overflow:hidden;
  align-items: start;
}

.wish-media{
  background: rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  padding:32px 18px;
  align-self: stretch;
}

.wish-media img{
  width:100%;
  max-height:180px;
  object-fit:contain;
  display:block;
}

.wish-content{
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:0;
}

.wish-content p{
  margin:0 0 12px;
  color: rgb(244 242 238 / .88);
  line-height:1.6;
  font-size:16px;
}
.wish-content p:last-child{ margin-bottom:0; }
.wish-gorko{
  margin-top: 4px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgb(244 242 238 / .65) !important;
  font-size: 15px !important;
}
.wish-gorko + .wish-gorko{
  border-top: none;
  padding-top: 0;
  margin-top: 0 !important;
}

@media (max-width: 860px){
  .wish-card{ grid-template-columns: 1fr; }
  .wish-media{ padding:14px; }
  .wish-media img{ max-height:160px; }
}



/* ===== RSVP wizard (пошаговая форма) ===== */
.rsvp-wizard{
  position: relative;
}

.rsvp-wizard textarea{ resize: none !important; }
.rsvp-wizard, .rsvp-step{ overflow: hidden; }

.rsvp-progress{
  display:grid;
  gap:10px;
  padding: 2px 2px 10px;
}

.rsvp-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.rsvp-progress-label{
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 13px;
}

.rsvp-progress-bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}

.rsvp-progress-fill{
  display:block;
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .25), rgb(var(--accent-rgb) / .55));
  transition: width 240ms ease;
}

.rsvp-step[hidden]{ display:none !important; }
/* В 3 шаге визуально отделяем блок "пожелания" от предыдущих полей */
.rsvp-step[data-step="2"] > label{
  margin-top: 18px;
}

.rsvp-step-head h3{
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text);
}
.rsvp-step-head .muted{
  margin:0 0 10px;
}

/* STEP 3 spacing (чуть “воздуха” между полями) */
#rsvpPrefsBlock{
  display:grid;
  gap:22px;
}
.rsvp-step label{
  gap:12px;
}

/* Убираем возможность “растянуть” textarea и сломать сетку */
.form textarea{
  resize: none;
  max-width: 100%;
}


.rsvp-step[data-step="2"] .rsvp-nav,
.rsvp-step[data-step="3"] .rsvp-nav,   /* на всякий, если шаги 1..3 */
.rsvp-nav {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.rsvp-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  /* было: margin-top: 6px; */
  margin-top: 18px;

  /* чтобы выглядело “дороже” и визуально отделяло кнопки */
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 560px){
  .rsvp-nav{
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .rsvp-nav .btn{ width:100%; }
}

.choice-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.choice-card{
  text-align:left;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 14px 14px 12px;
  cursor:pointer;
  color: var(--text);
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
  min-height: 86px;
}
.choice-card:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.choice-card.active{
  border-color: rgb(var(--accent-rgb) / .45);
  background: rgb(var(--accent-rgb) / .12);
  box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .08);
}
.choice-title{
  display:block;
  font-weight: 800;
  letter-spacing: .01em;
}
.choice-sub{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.rsvp-details{
  margin-top: 6px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  padding: 10px 12px;
}

.rsvp-details > summary{
  cursor:pointer;
  font-weight: 800;
  color: rgb(244 242 238 / .90);
  list-style: none;
}
.rsvp-details > summary::-webkit-details-marker{ display:none; }
.rsvp-details > summary::after{
  content:"›";
  float:right;
  transform: rotate(90deg);
  opacity: .8;
  transition: transform .18s ease, opacity .18s ease;
}
.rsvp-details[open] > summary::after{
  transform: rotate(-90deg);
  opacity: 1;
}

.rsvp-details-body{
  display:grid;
  gap: 14px;
  padding-top: 12px;
}

@media (max-width: 820px){
  .choice-grid{ grid-template-columns: 1fr; }
}

#rsvp .form-actions{
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#rsvp .form-actions .btn[type="submit"]{
  margin-left: auto;
}




/* было: .form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap} */
.form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* RSVP шаг 3 использует .form-actions — даём ему тот же ритм/разделитель, что и .rsvp-nav */
.rsvp-step[data-step="2"] .form-actions{
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* hint внизу, чтобы не ломал “Назад слева / Отправить справа” */
.rsvp-step[data-step="2"] .form-actions .hint{
  flex: 1 0 100%;
  order: 3;
  margin-top: 8px;
}

/* RSVP — делаем разделитель компактнее (меньше воздуха вокруг линии) */
#rsvp .form-actions,
#rsvp .rsvp-nav,
#rsvp .rsvp-step[data-step="2"] .form-actions{
  margin-top: 12px;     /* было 18/22 */
  padding-top: 14px;    /* было 24/18 */
  border-top: 1px solid rgba(255,255,255,.08);
}


@media (max-width: 560px){
  /* RSVP шаг 3: на мобиле делаем как шаг 2 — кнопки на всю ширину */
  .rsvp-step[data-step="2"] .form-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .rsvp-step[data-step="2"] .form-actions .btn{ width:100%; }

  /* порядок: primary (Отправить) сверху, Назад ниже, hint — в самом низу */
  .rsvp-step[data-step="2"] .form-actions button[type="submit"]{ order: 1; }
  .rsvp-step[data-step="2"] .form-actions [data-prev]{ order: 2; }
  .rsvp-step[data-step="2"] .form-actions .hint{
    order: 3;
    text-align:center;
  }
}




/* ============================================
   ENHANCED: Apple-style ambient BG + new sections
   ============================================ */

html{
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* ===== APPLE-STYLE AMBIENT BACKGROUND ===== */
.ambient-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  will-change: transform;
  animation: orb-float 22s ease-in-out infinite alternate;
}
.orb-1{
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / .6), transparent 70%);
  top: -10%; left: -5%;
  animation-duration: 26s;
}
.orb-2{
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgb(var(--warm-rgb) / .4), transparent 70%);
  top: 40%; right: -8%;
  animation-duration: 20s;
  animation-delay: -8s;
}
.orb-3{
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgb(100 160 220 / .25), transparent 70%);
  bottom: 5%; left: 20%;
  animation-duration: 28s;
  animation-delay: -14s;
}

@keyframes orb-float{
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 50px) scale(.95); }
  100% { transform: translate(30px, 20px) scale(1.04); }
}

/* Film grain */
.grain{
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  animation: grain-drift 4s steps(4) infinite;
}
@keyframes grain-drift{
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,-2%); }
  100% { transform: translate(2%,1%); }
}

@media (prefers-reduced-motion: reduce){
  .orb, .grain{ animation: none !important; }
  .orb{ opacity: .2; }
}

/* ===== STICKY NAV (glass) ===== */
.topnav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.topnav.visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.topnav-inner{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .10);
  background: rgb(11 15 18 / .72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.topnav-logo{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--warm);
  text-decoration: none;
}
.topnav-links{ display: flex; gap: 6px; }
.topnav-links a{
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgb(255 255 255 / .68);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.topnav-links a:hover{
  color: var(--text);
  background: rgb(255 255 255 / .08);
}
@media (max-width: 640px){
  .topnav-links a{ padding: 6px 8px; font-size: 12px; }
  .topnav-logo{ font-size: 17px; }
}
@media (max-width: 420px){
  .topnav-links{ gap: 2px; }
  .topnav-links a{ padding: 5px 6px; font-size: 11px; }
}

/* ===== SECTION LABEL ===== */
.section-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===== DISPLAY HEADING ===== */
.display-heading{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 20px;
}

/* ===== HERO ENHANCEMENTS ===== */
.hero-names{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.hero-name{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--warm);
}
.hero-amp{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  /*font-style: italic;*/
  color: var(--accent);
  line-height: 1;
}

.hero-scroll-hint{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / .35);
  animation: bounce-hint 2s ease-in-out infinite;
}
@keyframes bounce-hint{
  0%, 100%{ transform: translateX(-50%) translateY(0); opacity: .35; }
  50%{ transform: translateX(-50%) translateY(8px); opacity: .7; }
}

.btn.primary-glow{
  background: rgb(var(--accent-rgb) / .18);
  border-color: rgb(var(--accent-rgb) / .35);
  box-shadow: 0 0 30px rgb(var(--accent-rgb) / .15), inset 0 1px 0 rgb(255 255 255 / .08);
}
.btn.primary-glow:hover{
  background: rgb(var(--accent-rgb) / .25);
  border-color: rgb(var(--accent-rgb) / .45);
  box-shadow: 0 0 40px rgb(var(--accent-rgb) / .2);
}

/* ===== LOVE STORY ===== */
.section-story{
  padding: 80px 0 60px;
  margin: 0;
}
.section-story .container{
  padding-top: 0;
  padding-bottom: 0;
}
.story-lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 48px;
}

.story-timeline{
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 44px;
}
.story-timeline::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accentLine), rgb(var(--accent-rgb) / .06));
}

.story-item{
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 20px 0;
}
.story-item::before{
  content: "";
  position: absolute;
  left: -36px; top: 28px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .12);
}
.story-year{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  color: rgb(var(--accent-rgb) / .55);
  line-height: 1;
  padding-top: 6px;
}

.story-card{
  background: var(--card);
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 18px;
  padding: 20px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.story-card:hover{
  border-color: rgb(255 255 255 / .14);
  background: var(--card2);
}
.story-card h3{
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--warm);
}
.story-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}
.story-card-accent{
  border-color: rgb(var(--accent-rgb) / .25);
  background: rgb(var(--accent-rgb) / .06);
}
.story-card-accent:hover{
  background: rgb(var(--accent-rgb) / .10);
  border-color: rgb(var(--accent-rgb) / .35);
}

@media (max-width: 640px){
  .story-timeline{ padding-left: 34px; }
  .story-timeline::before{ left: 10px; }
  .story-item::before{ left: -30px; }
  .story-item{ grid-template-columns: 48px 1fr; gap: 12px; }
  .story-year{ font-size: 28px; }
}

/* ===== QUOTE SECTION ===== */
.section-quote{
  padding: 60px 0;
  margin: 0;
}
.big-quote{
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgb(255 255 255 / .6);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.bq-mark{
  font-size: 4em;
  line-height: 0;
  vertical-align: -0.35em;
  color: rgb(var(--accent-rgb) / .3);
  margin-right: 4px;
}
.bq-author{
  display: block;
  margin-top: 18px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: rgb(255 255 255 / .35);
  letter-spacing: .02em;
}

/* ===== FAQ ===== */
.section-faq{ margin-top: 56px; }
.faq-grid{ display: grid; gap: 10px; }

.faq-item{
  background: var(--card);
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open]{
  border-color: rgb(var(--accent-rgb) / .2);
}
.faq-item summary{
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  transition: background .15s ease;
}
.faq-item summary:hover{
  background: rgb(255 255 255 / .03);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{
  transform: rotate(45deg);
}
.faq-body{
  padding: 12px 20px 18px;
}
.faq-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

/* ===== FOOTER (enhanced) ===== */
.footer{
  padding: 48px 16px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  color: var(--muted);
}
.footer-inner{
  max-width: 980px;
  margin: 0 auto;
}
.footer-names{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--warm);
  margin-bottom: 6px;
}
.footer-date{
  font-size: 14px;
  color: rgb(255 255 255 / .4);
  margin: 0 0 12px;
  letter-spacing: .04em;
}
.footer p:last-child{
  margin: 0;
  font-size: 14px;
}

/* ===== ENHANCED BUTTON ACTIVE STATE ===== */
.btn{ transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.btn:active{ transform: scale(.97); }

/* ===== ENHANCED INPUT FOCUS ===== */
input:focus,textarea:focus,select:focus{
  border-color: rgb(var(--accent-rgb) / .4) !important;
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .08);
}

/* ===== KICKER ENHANCEMENT ===== */
.kicker{
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgb(255 255 255 / .55) !important;
}

/* ===== TITLE ENHANCEMENT ===== */
.title{
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 300 !important;
  font-size: clamp(32px, 5vw, 64px) !important;
  letter-spacing: -.01em !important;
}

/* ===== COUNTDOWN TABULAR NUMS ===== */
.cd-item span{
  font-variant-numeric: tabular-nums;
}
/* ===== Custom Select ===== */
.custom-select{ position:relative; width:100%; }
.cs-trigger{
  width:100%; padding:12px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06);
  color:var(--text); font-size:15px; font-family:inherit; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  text-align:left; transition:border-color .15s;
}
.cs-trigger:focus,.cs-trigger:hover{ border-color:rgba(255,255,255,.28); outline:none; }
.cs-arrow{ width:16px; height:16px; flex-shrink:0; color:rgba(255,255,255,.4); transition:transform .2s; }
.custom-select.open .cs-arrow{ transform:rotate(180deg); }
.cs-list{
  display:none; position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#1a1e24; border:1px solid rgba(255,255,255,.14); border-radius:14px;
  overflow:hidden; z-index:100; box-shadow:0 16px 48px rgba(0,0,0,.55);
  list-style:none; padding:6px;
}
.custom-select.open .cs-list{ display:block; }
.cs-opt{
  padding:10px 14px; border-radius:10px; cursor:pointer;
  font-size:15px; color:rgba(255,255,255,.75); transition:background .12s,color .12s;
}
.cs-opt:hover{ background:rgba(255,255,255,.08); color:#f4f2ee; }
.cs-opt.selected{ color:#f4f2ee; background:rgba(18,122,88,.2); }

/* ===== Success Overlay ===== */
.success-overlay{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,12,10,.92);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  opacity:0; transition:opacity .4s ease;
  pointer-events:none;
}
.success-overlay.visible{ opacity:1; pointer-events:auto; }
.success-overlay-inner{
  display:flex; flex-direction:column; align-items:center; gap:16px;
  text-align:center; padding:40px 32px;
  animation:successPop .45s cubic-bezier(.34,1.56,.64,1) both;
}
.success-overlay.visible .success-overlay-inner{ animation:successPop .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes successPop{
  from{ opacity:0; transform:scale(.88) translateY(16px); }
  to{ opacity:1; transform:scale(1) translateY(0); }
}
.success-icon{ font-size:64px; line-height:1; }
.success-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(36px,6vw,56px); font-weight:400;
  color:#f4f2ee; margin:0;
}
.success-sub{
  font-size:16px; color:rgba(255,255,255,.55);
  line-height:1.6; margin:0;
}