/* ============================================================
   Свадебный сайт «Chateau Blue» — Азирет & Алида
   Акварельное бело-голубое небо, дом-шато, плывущие облака,
   акварельные цветы. Cormorant Garamond + Alex Brush.
   ============================================================ */

:root {
  --sky-1:  #7fb4e0;   /* верх неба */
  --sky-2:  #b6d6ef;
  --sky-3:  #e9f3fb;   /* у горизонта */
  --paper:  #f3f9fd;   /* фон секций */
  --ink:    #2b405c;   /* основной текст (сине-стальной) */
  --ink-2:  #41618a;
  --ink-soft: #61789a;
  --blue:   #5b87b8;
  --blue-deep: #335f96;
  --gold:   #c4a35a;   /* приглушённое золото-акцент */

  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Alex Brush", "Marck Script", cursive;
  --cyr-script: "Marck Script", cursive;
  --sans:   "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* спокойный небесный фон за всеми секциями */
.sky-bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #cfe6f8 0%, #e4f1fb 45%, #f3f9fd 100%);
}

/* ---------- Падающие лепестки ---------- */
.petals { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.petal-fall { position: absolute; top: -40px; will-change: transform; }
@keyframes fall {
  0% { transform: translateY(-40px) translateX(0) rotate(0); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(var(--drift,40px)) rotate(360deg); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

/* ---------- Салют из цветочков (по кнопке «Открыть») ---------- */
.burst { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.burst-flower { --tx: 0px; --ty: 0px; --rot: 0deg; position: fixed; transform: translate(-50%, -50%); will-change: transform, opacity; }
@keyframes burstFly {
  0%   { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 0; }
  12%  { opacity: 1; }
  70%  { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--rot)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 44px)) scale(.85) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Проявление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ ЭКРАН-КОНВЕРТ ============ */
html.cover-on, body.cover-on { overflow: hidden; height: 100%; }
.cover {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 46px 22px; overflow: hidden;
  background: linear-gradient(180deg, #d3e7f8 0%, #eaf4fc 60%, #f6fbfe 100%);
  transition: transform 1.15s cubic-bezier(.76,0,.24,1), opacity 1.15s ease, filter 1.15s ease;
}
.cover.open { transform: translateY(-102%); opacity: 0; filter: blur(6px); pointer-events: none; }
.cover .corner-hoa { position: absolute; width: clamp(150px, 40vw, 280px); opacity: 0.95; pointer-events: none; }
.cover .corner-hoa.tl { top: -2%; left: -4%; transform: scaleX(-1); }
.cover .corner-hoa.br { bottom: -2%; right: -4%; transform: scaleY(-1); }
.cover-card { position: relative; z-index: 2; text-align: center; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cover-card > * { opacity: 0; animation: up 1s ease forwards; }
.cover-card > *:nth-child(1){animation-delay:.15s}.cover-card > *:nth-child(2){animation-delay:.3s}.cover-card > *:nth-child(3){animation-delay:.45s}.cover-card > *:nth-child(4){animation-delay:.6s}.cover-card > *:nth-child(5){animation-delay:.75s}.cover-card > *:nth-child(6){animation-delay:.9s}
@keyframes up { from { opacity:0; transform: translateY(16px);} to {opacity:1; transform:none;} }
.cover .rings-img { width: clamp(90px, 24vw, 130px); }
.cover .invited { font-family: var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); font-size: 0.72rem; }
.cover .guest { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 11vw, 3.8rem); line-height: 1.06; color: var(--ink); }
.cover .join { font-family: var(--serif); font-size: clamp(1.05rem, 4vw, 1.25rem); color: var(--ink-2); max-width: 26ch; }
.cover .cdate { font-family: var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); font-size: 0.72rem; }

.open-btn {
  margin-top: 8px; cursor: pointer; position: relative;
  padding: 15px 40px; border: 1px solid var(--blue); border-radius: 999px;
  background: rgba(255,255,255,0.55); color: var(--ink);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.open-btn:hover { background: var(--blue); color: #fff; }
.open-btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-left: 8px; }

/* ============ ГЕРО: дом + облака ============ */
.hero { position: relative; height: 100svh; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #6fa9da 0%, #9ccaea 38%, #cfe6f6 68%, #eef6fc 100%); }
.cloud { position: absolute; pointer-events: none; will-change: transform; opacity: 0.92; }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(130vw); } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none !important; } }

.house-wrap {
  position: absolute; bottom: -1%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 168%); pointer-events: none; line-height: 0;
}
.house {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
}
.bird { position: absolute; width: clamp(80px, 14vw, 150px); pointer-events: none; opacity: 0.9; }

.hero-text {
  position: absolute; left: 0; right: 0; top: clamp(10%, 14vh, 18%);
  text-align: center; z-index: 5; padding: 0 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-eyebrow { font-family: var(--sans); font-size: clamp(0.66rem,2.6vw,0.8rem); letter-spacing: 0.34em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(43,64,92,0.45); }
.hero-names { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(3rem, 13vw, 6rem); line-height: 1.0; text-shadow: 0 3px 20px rgba(43,64,92,0.4); }
.hero-names .amp { font-family: var(--script); font-weight: 400; font-size: 0.62em; color: #f2e6c4; margin: 0 0.06em; }
.hero-date { font-family: var(--serif); font-size: clamp(1.05rem,4vw,1.4rem); letter-spacing: 0.18em; color: #fff; text-shadow: 0 2px 12px rgba(43,64,92,0.45); }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(43,64,92,0.5); }
.scroll-hint svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ============ СЕКЦИИ ============ */
.section { position: relative; padding: clamp(64px, 12vw, 120px) 18px; }
.section .wrap { max-width: 660px; margin: 0 auto; text-align: center; }

.flower-div { width: min(420px, 86%); display: block; margin: 0 auto 8px; }
.sec-eyebrow { font-family: var(--sans); font-size: clamp(0.66rem,2.6vw,0.76rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }
.sec-title { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.08; margin-bottom: 10px; }
.sec-title .amp { font-family: var(--script); color: var(--blue-deep); }

.panel {
  position: relative;
  background: rgba(255,255,255,0.66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid rgba(91,135,184,0.28);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(43,64,92,0.12);
  padding: clamp(32px, 6vw, 58px) clamp(26px, 6vw, 54px);
}

.lead { font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.34rem); line-height: 1.8; color: var(--ink); }
.lead-em { font-family: var(--cyr-script); color: var(--blue-deep); font-size: 1.15em; }

.asset-img { display: block; margin: 0 auto; }
.asset-rings { width: clamp(160px, 44vw, 240px); }
.asset-banquet { width: min(440px, 92%); border-radius: 6px; }

.parents { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px,6vw,60px); margin-top: 22px; }
.parents .role { font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.parents .nm { font-family: var(--serif); font-size: clamp(1.1rem,4vw,1.35rem); color: var(--ink); font-weight: 600; }

/* дата одной строкой */
.date-line { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(1.35rem, 5.4vw, 2rem); letter-spacing: 0.04em; margin: 8px 0; }
.date-line b { font-weight: 600; }

/* строка даты */
.date-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px,4vw,28px); font-family: var(--serif); color: var(--ink); margin: 8px 0; }
.date-row .side { font-size: clamp(1.15rem,4.6vw,1.7rem); letter-spacing: 0.12em; text-transform: uppercase; }
.date-row .mid { text-align: center; line-height: 1; }
.date-row .mid .d { font-size: clamp(2.5rem,9vw,3.6rem); font-weight: 700; display: block; }
.date-row .mid .m { font-family: var(--sans); font-size: clamp(0.7rem,2.6vw,0.84rem); letter-spacing: 0.2em; text-transform: uppercase; }
.date-row .bar { width: 1px; align-self: stretch; background: rgba(91,135,184,0.5); }

/* колонки */
.cols { display: flex; justify-content: center; gap: clamp(18px,5vw,38px); text-align: center; margin-top: 22px; }
.col { flex: 1; max-width: 210px; }
.col .icon { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--blue); }
.col .t { font-family: var(--serif); font-size: clamp(1.15rem,4vw,1.4rem); font-weight: 700; }
.col .h { font-family: var(--sans); font-size: clamp(0.74rem,2.8vw,0.86rem); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.col .a { font-family: var(--serif); font-size: clamp(0.96rem,3.4vw,1.1rem); color: var(--ink-2); line-height: 1.5; }
.cols .bar { width: 1px; background: rgba(91,135,184,0.5); }

/* отсчёт */
.countdown { display: flex; gap: clamp(12px,5vw,28px); justify-content: center; margin-top: 8px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-box { width: clamp(58px,16vw,92px); height: clamp(58px,16vw,92px); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(91,135,184,0.4); border-radius: 6px; background: rgba(255,255,255,0.6); font-family: var(--serif); font-size: clamp(1.7rem,7vw,2.6rem); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-label { margin-top: 8px; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.cd-done { font-family: var(--cyr-script); font-size: clamp(2rem,8vw,3rem); color: var(--ink); }

/* карта / кнопки */
.map-frame { width: 100%; height: clamp(260px,50vw,380px); border: 1px solid rgba(91,135,184,0.4); border-radius: 6px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 10px;
  padding: 14px 34px; border: 1px solid var(--blue); color: var(--ink);
  text-decoration: none; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  border-radius: 999px; background: rgba(255,255,255,0.5); transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn svg { width: 15px; height: 15px; }
.note { font-family: var(--sans); font-size: 0.62rem; color: var(--ink-2); opacity: 0.75; margin-top: 12px; }

/* подвал */
.site-footer { text-align: center; padding: clamp(56px,10vw,92px) 18px clamp(44px,8vw,70px); }
.site-footer .fn { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem,9vw,3.2rem); color: var(--ink); }
.site-footer .fn .amp { font-family: var(--script); color: var(--blue-deep); }
.site-footer .fd { font-family: var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); font-size: 0.76rem; margin-top: 10px; }
/* кнопка музыки */
.music-btn { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--blue); background: rgba(255,255,255,0.72); color: var(--ink); display: none; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 6px 18px rgba(43,64,92,0.18); transition: opacity 0.25s; }
.music-btn.show { display: inline-flex; }
.music-btn svg { width: 22px; height: 22px; }
.music-btn.playing svg { animation: spin 4.5s linear infinite; }
.music-btn.muted { opacity: 0.55; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music-btn.playing svg { animation: none; } }

.end-birds { display: block; margin: 30px auto 0; width: clamp(190px, 54vw, 320px); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .end-birds { animation: none; } }

/* ============ ПЕЧАТЬ A5 (print.html) ============ */
.heart-div { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--blue); }
.heart-div::before, .heart-div::after { content: ""; width: 70px; height: 1px; background: var(--blue); opacity: 0.7; }
.heart-div svg { width: 16px; height: 16px; fill: var(--blue); }
.closing { font-family: var(--cyr-script); color: var(--ink); }
.eyebrow { font-family: var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
