/* Палітра за мотивами «Астрокалендар · Літо 2026»:
   графітово-нічний фон, колір Тіффані (бірюза) та золото */
:root {
  --bg: #0d1016;
  --bg-2: #11161e;
  --panel: #0f3b3a;
  --card: rgba(20, 28, 36, 0.66);
  --card-border: rgba(129, 216, 208, 0.16);
  --card-border-hover: rgba(129, 216, 208, 0.45);
  --tiff: #81d8d0;
  --tiff-2: #3cc8bc;
  --tiff-deep: #0f5f5a;
  --tiff-grad: linear-gradient(135deg, #a6ebe4 0%, #81d8d0 45%, #4cbfb4 100%);
  --gold: #e3c27a;
  --gold-grad: linear-gradient(135deg, #f8e7bd 0%, #e3c27a 45%, #b48a3e 100%);
  --lav: #a9a8e2;
  --text: #e8ecef;
  --muted: #9aa6b2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --script-lat: "Great Vibes", cursive;
  --script-ua: "Marck Script", cursive;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(60, 200, 188, .10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 45%, rgba(60, 200, 188, .07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(227, 194, 122, .06), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--tiff); margin-bottom: 14px; font-weight: 500;
}
.title {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: .02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.script {
  font-family: var(--script-lat); color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.25;
  text-shadow: 0 0 24px rgba(227, 194, 122, .25);
}
.script--ua { font-family: var(--script-ua); font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.muted { color: var(--tiff); }
.accent { color: var(--tiff); font-style: italic; font-family: var(--serif); font-size: 1.14rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 100px; border: 1px solid transparent;
  background: var(--gold-grad); color: #15130d; font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; font-family: var(--sans);
  box-shadow: 0 8px 30px rgba(227, 194, 122, .22);
  transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(227, 194, 122, .38); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn--ghost { background: transparent; color: var(--tiff); border-color: rgba(129, 216, 208, .4); box-shadow: none; text-transform: none; letter-spacing: .06em; font-size: .9rem; }
.btn--ghost:hover { border-color: var(--tiff); background: rgba(129, 216, 208, .07); box-shadow: 0 10px 30px rgba(60, 200, 188, .15); }
.btn--small { padding: 10px 22px; font-size: .7rem; }

/* ---------- header: hidden on hero, slides in on scroll ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 12px 0;
  background: rgba(13, 16, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(129, 216, 208, .1);
  transform: translateY(-110%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.header.show { transform: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.logo__moon { width: 22px; height: 30px; }
.logo__moon path, .hero__moon path, .contact__moon path { fill: var(--gold); }
.nav { display: flex; align-items: center; gap: 34px; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.nav a:not(.btn) { position: relative; color: var(--muted); transition: color .3s; }
.nav a:not(.btn):hover { color: var(--tiff); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--tiff); transition: width .3s; }
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--gold); transition: .3s; }
.burger span:nth-child(1) { top: 2px; } .burger span:nth-child(2) { top: 11px; } .burger span:nth-child(3) { top: 20px; }
.burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- hero (author) ---------- */
.hero { min-height: min(100vh, 1000px); overflow: hidden; display: flex; align-items: center; position: relative; padding: 30px 0 50px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.hero__name {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4rem, 10vw, 8.6rem); line-height: .95; letter-spacing: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__name span { padding-left: .9em; display: inline-block; }
.hero__slogan {
  font-family: var(--script-ua); color: var(--tiff); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.35;
  margin: 26px 0 22px; text-shadow: 0 0 22px rgba(129, 216, 208, .25);
}
.hero__lead { color: var(--muted); max-width: 540px; font-size: 1rem; }
.hero__facts { list-style: none; display: flex; gap: 0; margin: 34px 0 40px; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); max-width: 560px; }
.hero__facts li { flex: 1; padding: 18px 18px 16px; }
.hero__facts li + li { border-left: 1px solid var(--card-border); }
.hero__facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.3rem; line-height: 1; color: var(--gold); margin-bottom: 6px; }
.hero__facts span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; display: block; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--card-border); border-radius: 20px; z-index: 2; }
.scroll-down span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; background: var(--tiff); border-radius: 2px; animation: scroll 2s infinite; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section__head { text-align: center; margin-bottom: 64px; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* about / education */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__text > p:not(.eyebrow):not(.script) { color: var(--muted); margin-bottom: 10px; }
.about__text .script { margin: 10px 0 20px; }
.timeline { list-style: none; margin: 30px 0 28px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--tiff), rgba(129, 216, 208, .1)); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--tiff); box-shadow: 0 0 12px rgba(129, 216, 208, .6); }
.timeline__date { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tiff); }
.timeline h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gold); line-height: 1.2; margin: 2px 0 4px; }
.timeline p { color: var(--muted); font-size: .92rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--card-border); font-size: .74rem; color: var(--text); background: rgba(15, 59, 58, .35); }

.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 8, 12, .88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 90vh; width: auto; margin: auto; border-radius: 4px; box-shadow: 0 30px 100px rgba(0, 0, 0, .8); }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tiff); background: var(--bg); color: var(--tiff); cursor: pointer; font-size: 1rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1060px; margin-inline: auto; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 32px 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.card::before {
  content: ""; position: absolute; width: 280px; height: 280px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 200, 188, .18), transparent 70%); transition: opacity .4s; opacity: .7;
}
.card:hover { transform: translateY(-6px); border-color: var(--card-border-hover); box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(60, 200, 188, .12); }
.card:hover::before { opacity: 1; }
.card > *:not(.card__art) { position: relative; z-index: 1; }
.card__head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; margin-bottom: 10px; color: #f3ead6; }
.price {
  display: inline-block; padding: 4px 22px; border-radius: 100px; font-size: 1.3rem; font-weight: 600; color: #0b2826;
  background: var(--tiff-grad); box-shadow: 0 6px 22px rgba(60, 200, 188, .3);
}
.price small { font-size: .85rem; opacity: .8; font-weight: 500; }
.card > p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card > p b { color: var(--text); font-weight: 500; }
.features { list-style: none; margin-top: auto; padding-top: 8px; display: grid; gap: 12px; font-size: .9rem; }
.features li { display: flex; align-items: center; gap: 14px; }
.features svg { width: 22px; height: 22px; fill: none; stroke: var(--tiff); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card__link { margin-top: 24px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); align-self: flex-start; border-bottom: 1px solid transparent; transition: border-color .3s; }
.card__link:hover { border-color: var(--gold); }
.card__art {
  position: absolute; z-index: 0; pointer-events: none; opacity: .85;
  filter: drop-shadow(0 0 14px rgba(227, 194, 122, .28));
  transition: transform .8s ease, opacity .4s;
}
.card:hover .card__art { transform: scale(1.06) rotate(-3deg); opacity: 1; }
.card__art--br { width: 170px; right: 8px; bottom: 54px; }
.card__art--tr { width: 150px; right: 14px; top: 14px; }
.card__art--mr { width: 190px; right: -6px; top: 50%; translate: 0 -50%; }
.card__art--lovers { width: 150px; top: 22px; right: 20px; }
.card__art--small { width: 110px; right: 16px; bottom: 16px; opacity: .7; }
.card__text-narrow { max-width: 62%; }

.hint {
  max-width: 640px; margin: 50px auto 0; display: flex; align-items: center; gap: 22px;
  padding: 22px 30px; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card);
  transition: border-color .3s, transform .3s;
}
.hint:hover { border-color: var(--card-border-hover); transform: translateY(-3px); }
.hint img { flex: none; width: 58px; height: 58px; padding: 4px; border-radius: 50%; border: 1px solid var(--gold); }
.hint p { font-size: .92rem; color: var(--muted); }

/* banner */
.banner { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.banner__inner { position: relative; }
.banner .script { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.banner__sub { margin-top: 12px; letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--tiff); }

/* reviews marquee */
.reviews { overflow: hidden; }
.marquee {
  position: relative; overflow: hidden; padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 90s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.review {
  width: 380px; flex: none; margin-right: 24px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 28px 22px; border-radius: var(--radius); position: relative;
  background: linear-gradient(160deg, rgba(20, 30, 38, .9), rgba(14, 19, 26, .9));
  border: 1px solid var(--card-border); transition: border-color .3s, transform .3s;
}
.review:hover { border-color: var(--card-border-hover); transform: translateY(-4px); }
.review::before {
  content: "“"; position: absolute; top: -6px; left: 20px; font-family: var(--serif); font-size: 5rem; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .8;
}
.review p { font-size: .9rem; line-height: 1.65; color: #d6dde3; margin-top: 18px; }
.review footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.review__tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tiff); }
.review__stars { color: var(--gold); letter-spacing: .2em; font-size: .8rem; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--tiff), transparent); opacity: .4; }
.steps li { text-align: center; position: relative; }
.steps__num {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--bg-2); font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
  box-shadow: 0 0 30px rgba(60, 200, 188, .18);
}
.steps h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .9rem; }

/* faq */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.faq__photo { position: relative; max-width: 420px; margin-inline: auto; aspect-ratio: 1; display: grid; place-items: center; }
.faq__photo::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid var(--card-border); background: radial-gradient(circle, rgba(60, 200, 188, .16), transparent 70%); }
.faq__photo img { position: relative; width: 88%; animation: float 12s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(227, 194, 122, .3)); }
.accordion { margin-top: 34px; }
.accordion details { border-bottom: 1px solid var(--card-border); padding: 20px 0; }
.accordion summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "❆"; color: var(--tiff); transition: transform .4s; flex: none; }
.accordion details[open] summary::after { transform: rotate(90deg); }
.accordion details p { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.accordion details p b { color: var(--gold); font-weight: 500; }

/* contact */
.contact__box {
  position: relative; max-width: 820px; margin: 0 auto; text-align: center;
  padding: 70px 60px; border-radius: 32px; border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(15, 59, 58, .7), rgba(14, 19, 26, .9)); backdrop-filter: blur(12px);
  overflow: hidden;
}
.contact__box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--tiff), var(--gold)); }
.contact__moon { position: absolute; width: 56px; top: 34px; right: 44px; opacity: .85; filter: drop-shadow(0 0 16px rgba(227, 194, 122, .5)); }
.form { display: grid; gap: 18px; margin-top: 40px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label > span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tiff); margin-bottom: 8px; }
.form input:not([type=checkbox]), .form select, .form textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--card-border);
  background: rgba(13, 16, 22, .6); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .3s, box-shadow .3s;
}
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--tiff); box-shadow: 0 0 0 3px rgba(129, 216, 208, .14); }
.form .check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.form .check input { width: 18px; height: 18px; accent-color: var(--tiff); flex: none; }
.form .check span { margin: 0; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--muted); }
.form .btn { justify-self: center; margin-top: 10px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__err { text-align: center; color: #f0a8a8; font-size: .9rem; }
.form__err a { color: var(--tiff); text-decoration: underline; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form__ok { text-align: center; color: var(--tiff); font-family: var(--serif); font-size: 1.2rem; }
.socials { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 100px; border: 1px solid var(--card-border); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transition: border-color .3s, color .3s; }
.socials a:hover { border-color: var(--tiff); color: var(--tiff); }
.socials svg, .footer__links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* footer */
.footer { padding: 50px 0 40px; border-top: 1px solid rgba(129, 216, 208, .12); }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer__copy { font-size: .74rem; line-height: 1.6; color: var(--muted); letter-spacing: .04em; }
.footer__motto { text-align: center; min-width: 0; }
@media (max-width: 600px) { .footer .footer__motto { font-size: 1.35rem; } }
.footer__sign { text-align: center; }
.footer__handle { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.footer__role { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer__links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: .78rem; color: var(--muted); }
.footer__links a { color: var(--tiff); transition: color .3s; }
.footer__links a:hover { color: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes spin2 { to { transform: rotate(360deg); } }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 60px; }
  .hero__text { text-align: center; }
  .hero__lead, .hero__facts { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__name span { padding-left: 0; }
  .hero__visual { max-width: 520px; margin: 0 auto; height: min(110vw, 680px); justify-self: center; }
  .about__grid, .faq__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__diploma { max-width: 520px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; height: 100vh; flex-direction: column; justify-content: center; gap: 30px; font-size: .95rem;
    background: rgba(13, 16, 22, .97);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .card { padding: 28px 22px 24px; }
  .card__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .icon { width: 68px; height: 68px; }
  .card__art { opacity: .3; }
  .card__text-narrow { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .contact__box { padding: 50px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .hint { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer__copy { order: 3; }
  .footer__links { justify-content: center; }
  .hero__facts li { padding: 14px 8px; }
  .hero__facts b { font-size: 1.8rem; }
  .hero__facts span { font-size: .6rem; letter-spacing: .1em; }
  .extras__grid { grid-template-columns: 1fr; }
  .review { width: 300px; padding: 26px 22px 20px; }
}
/* ---------- hero visual: full portrait melting into the night + zodiac ring on top ---------- */
.hero__visual { position: relative; width: 100%; max-width: 660px; justify-self: end; height: min(88vh, 860px); }
.hero__glow { position: absolute; left: 10%; top: 8%; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(60, 200, 188, .22), transparent 65%); filter: blur(30px); }
.hero__moon { position: absolute; width: 54px; right: 6%; top: 6%; z-index: 2; filter: drop-shadow(0 0 16px rgba(227, 194, 122, .6)); animation: float 9s ease-in-out infinite; }

/* ---------- diploma + cover composition ---------- */
.about__diploma { position: relative; }
.about__diploma::before { content: ""; position: absolute; inset: 5% 0; border-radius: 50%; background: radial-gradient(circle, rgba(60, 200, 188, .2), transparent 65%); filter: blur(30px); }
.docs { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.02; border: 0; background: none; padding: 0; cursor: zoom-in; }
.docs img { position: absolute; border-radius: 4px; transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s; }
.docs__diploma { width: 66%; right: 2%; top: 0; transform: rotate(3deg); box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(227, 194, 122, .25); }
.docs__cover { width: 46%; left: 2%; bottom: 2%; transform: rotate(-7deg); box-shadow: 0 30px 70px rgba(0, 0, 0, .7); }
.docs:hover .docs__diploma { transform: rotate(1deg) translate(4%, -2%) scale(1.03); box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 50px rgba(60, 200, 188, .25); }
.docs:hover .docs__cover { transform: rotate(-10deg) translate(-6%, 3%); }
.docs__zoom {
  position: absolute; right: 18%; bottom: 10%; padding: 8px 18px; border-radius: 100px; z-index: 2;
  background: rgba(13, 16, 22, .85); border: 1px solid rgba(129, 216, 208, .4); color: var(--tiff);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .4s;
}
.docs:hover .docs__zoom, .docs:focus-visible .docs__zoom { opacity: 1; }

/* ---------- service icons (centered) ---------- */
.icon {
  flex: none; width: 84px; height: 84px; border-radius: 50%; position: relative;
  border: 1px solid rgba(227, 194, 122, .55); background: radial-gradient(circle, rgba(227, 194, 122, .08), transparent 70%);
  box-shadow: 0 0 22px rgba(227, 194, 122, .1) inset;
}
.icon img { position: absolute; left: 50%; top: 50%; width: 76%; height: 76%; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 0 6px rgba(227, 194, 122, .35)); }
.card:hover .icon img { animation: spinCenter 12s linear infinite; }
@keyframes spinCenter { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- extra services (accordion) ---------- */
.extras { max-width: 1060px; margin: 40px auto 0; }
.extras__toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; cursor: pointer;
  padding: 16px 34px; border-radius: 100px; border: 1px solid rgba(129, 216, 208, .45); background: rgba(15, 59, 58, .45);
  color: var(--tiff); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.extras__toggle:hover { background: rgba(15, 59, 58, .8); border-color: var(--tiff); box-shadow: 0 10px 30px rgba(60, 200, 188, .18); }
.extras__toggle i { position: relative; width: 14px; height: 14px; }
.extras__toggle i::before, .extras__toggle i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .4s; }
.extras__toggle i::after { transform: rotate(90deg); }
.extras__toggle[aria-expanded="true"] i::after { transform: rotate(0); }
.extras__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1); }
.extras__panel.open { grid-template-rows: 1fr; }
.extras__inner { overflow: hidden; }
.extras__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 28px; }
.extra {
  display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(15, 59, 58, .55), rgba(17, 22, 30, .85)); border: 1px solid var(--card-border);
  position: relative; overflow: hidden; transition: border-color .3s, transform .3s;
}
.extra:hover { border-color: var(--card-border-hover); transform: translateY(-4px); }
.extra > img { position: absolute; right: -26px; top: -26px; width: 104px; opacity: .2; }
.extra h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: #f3ead6; text-transform: uppercase; line-height: 1.15; margin-bottom: 10px; max-width: 80%; }
.extra p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.extra__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.extra__foot .btn { margin-left: auto; }
.btn--tiff { background: var(--tiff-grad); color: #0b2826; box-shadow: 0 6px 22px rgba(60, 200, 188, .28); }
.btn--tiff:hover { box-shadow: 0 10px 32px rgba(60, 200, 188, .45); }

/* reviews footer: stars only */
.review footer { justify-content: flex-start; }


/* ---------- zodiac halo above the portrait ---------- */
.halo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.halo .h-zodiac, .halo .h-scale, .halo .h-comet, .halo .h-orbit, .halo .h-breath, .halo .h-aura, .halo .h-aspects, .halo .h-sun { transform-box: view-box; transform-origin: 200px 200px; }
.halo .h-aura { animation: pulse 6s ease-in-out infinite; }
.halo .h-line { fill: none; stroke: rgba(227, 194, 122, .8); stroke-width: .8; }
.halo .h-line--faint { stroke: rgba(227, 194, 122, .35); }
.halo .h-ticks { fill: none; stroke: rgba(227, 194, 122, .55); stroke-width: 3; stroke-dasharray: .5 6.64; }
.halo .h-sep { stroke: rgba(227, 194, 122, .6); stroke-width: .8; }
.halo .h-sign { fill: #f0d595; font-family: "Noto Sans Symbols", "Segoe UI Symbol", serif; font-size: 16px; text-anchor: middle; }
.halo .h-tick { stroke: rgba(129, 216, 208, .7); stroke-width: .7; }
.halo .h-dot { fill: var(--gold); }
.halo .h-zodiac { animation: spin 140s linear infinite; }
.halo .h-scale { animation: spin 90s linear infinite reverse; }
.halo .h-comet { animation: spin 9s linear infinite; }
.halo .h-comet-trail { fill: none; stroke: url(#cometGrad); stroke: rgba(255, 246, 220, .55); stroke-width: 1.4; stroke-dasharray: 110 1106; stroke-dashoffset: 110; stroke-linecap: round; }
.halo .h-comet-head { fill: #fffaf0; }
.halo .h-comet-glow { fill: rgba(255, 240, 210, .9); }
.halo .h-orbit--a { animation: spin 26s linear infinite; }
.halo .h-orbit--b { animation: spin 44s linear infinite reverse; }
.halo .h-orbit-path { fill: none; stroke: rgba(129, 216, 208, .28); stroke-width: .7; stroke-dasharray: 3 5; }
.halo .h-orbit-path--dots { stroke: rgba(227, 194, 122, .35); stroke-dasharray: .1 6; stroke-linecap: round; stroke-width: 1.6; }
.halo .h-planet--tiff { fill: var(--tiff); }
.halo .h-planet--gold { fill: var(--gold); }
.halo .h-planet-glow { opacity: .7; }
.halo .h-planet-ring { fill: none; stroke: rgba(227, 194, 122, .7); stroke-width: .7; }
.halo .h-breath { fill: none; stroke: rgba(129, 216, 208, .3); stroke-width: .8; animation: breath 5s ease-in-out infinite; }
.halo .h-spark { fill: #f6e3b4; transform-box: fill-box; transform-origin: center; animation: twinkle 3.5s ease-in-out infinite; }
.halo .h-asp { stroke: rgba(227, 194, 122, .45); stroke-width: .7; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 9s ease-in-out infinite; }
.halo .h-asp--tiff { stroke: rgba(129, 216, 208, .55); stroke-dasharray: 4 4; animation: none; stroke-dashoffset: 0; }
.halo .h-asp-dot { fill: var(--gold); }
.halo .h-aspects { animation: spin 200s linear infinite reverse; opacity: .45; }
.halo .h-sun { animation: spin 30s linear infinite; }
.halo .h-sun-core { fill: none; stroke: rgba(227, 194, 122, .8); stroke-width: .9; }
.halo .h-sun-dot { fill: #f6e3b4; animation: pulse 3s ease-in-out infinite; }
.halo .h-ray { stroke: rgba(227, 194, 122, .7); stroke-width: .8; stroke-linecap: round; }
@keyframes draw { 0% { stroke-dashoffset: 260; } 45%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
@keyframes pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes breath { 0%, 100% { transform: scale(.97); opacity: .25; } 50% { transform: scale(1.03); opacity: .8; } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }


/* ---------- crest: big zodiac circle with the name inside ---------- */
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.crest { position: relative; width: min(530px, 88vw); aspect-ratio: 1; display: grid; place-items: center; margin: -22px 0 -18px; }
.crest::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(13, 16, 22, .85) 30%, rgba(13, 16, 22, 0) 72%); }
.crest__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.crest__role { font-size: .76rem; letter-spacing: .36em; text-transform: uppercase; color: var(--tiff); font-weight: 500; margin-bottom: 4px; }
.crest__name {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(3.2rem, 6.6vw, 6.2rem); letter-spacing: .08em; padding-left: .08em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(227, 194, 122, .25));
}
.crest__line { width: 70px; height: 1px; margin-top: 12px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__text .hero__slogan { margin: 6px 0 4px; }
.hero__text .hero__facts { margin: 14px auto 22px; }
.hero__text .hero__actions { justify-content: center; }
.sky-hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 1; white-space: nowrap;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(129, 216, 208, .6);
  animation: pulse 4s ease-in-out infinite;
}
.footer__tg { display: block; margin-top: 4px; font-size: .78rem; color: var(--tiff); letter-spacing: .06em; }
.footer__tg:hover { color: var(--gold); }
@media (hover: hover) and (min-width: 1001px) { .scroll-down { display: none; } }
@media (hover: none) { .sky-hint { display: none; } }
@media (max-width: 1000px) { .sky-hint { display: none; } }



.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.classic__photo { border-color: var(--card-border) !important; }
/* тонування під палітру сайту: м'який бірюзовий відтінок + затемнення знизу */
.classic__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(160deg, rgba(129, 216, 208, .35), rgba(13, 16, 22, 0) 45%, rgba(227, 194, 122, .25)); }
.classic__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(13, 16, 22, .75), rgba(13, 16, 22, 0) 38%), radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(13, 16, 22, .35)); }
.classic__photo img { filter: brightness(.93) contrast(1.05) saturate(.92); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.hero__visual:hover .classic__photo img { transform: scale(1.03); }
.spark { position: absolute; width: 22px; fill: #f6e3b4; filter: drop-shadow(0 0 6px rgba(246, 227, 180, .8)); animation: twinkleCss 3.4s ease-in-out infinite; z-index: 3; }
.spark svg { width: 100%; display: block; }
@keyframes twinkleCss { 0%, 100% { transform: scale(.55) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes lineDrift { to { translate: -14px -24px; } }
@keyframes floatCard { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* portrait: rounded card like the rest of the site + offset gold frame + glass plaque */
.classic__photo { position: absolute; left: 10%; right: 16%; top: 2%; bottom: 8%; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .06); }
.classic__frame { position: absolute; left: 18%; right: 6%; top: 9%; bottom: 0; border-radius: 28px; border: 1px solid rgba(227, 194, 122, .6); animation: lineDrift 10s ease-in-out infinite alternate; }
.classic__plaque {
  position: absolute; left: 2%; bottom: 14%; z-index: 2; padding: 14px 22px; border-radius: 16px;
  background: rgba(13, 17, 23, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 216, 208, .3); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: floatCard 7s ease-in-out infinite;
}
.classic__plaque b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--gold); line-height: 1.1; letter-spacing: .06em; }
.classic__plaque span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tiff); }
.portrait .s1 { right: 10%; top: 4%; }


/* banner divider: lines draw in from both sides, star ignites in the middle */
.divider { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px auto 0; width: min(900px, 100%); }
.divider__line { flex: 1; height: 1px; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65, 0, .35, 1); }
.divider__line.l { background: linear-gradient(90deg, transparent, var(--gold)); transform-origin: left center; }
.divider__line.r { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: right center; }
.divider__star { position: relative; width: 34px; height: 34px; flex: none; opacity: 0; transform: scale(0) rotate(-90deg); transition: opacity .5s ease 1.4s, transform .9s cubic-bezier(.2, 1.6, .4, 1) 1.4s; }
.divider__star svg { position: relative; width: 100%; height: 100%; fill: #fff6e0; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px rgba(227, 194, 122, .9)); }
.divider__star::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 194, 122, .45), transparent 60%); opacity: 0; }
.banner__inner.visible .divider__line { transform: scaleX(1); }
.banner__inner.visible .divider__star { opacity: 1; transform: scale(1) rotate(0); }
.banner__inner.visible .divider__star::before { animation: ignite 1.4s ease-out 1.5s forwards, glowPulse 3.5s ease-in-out 2.9s infinite; }
.banner__inner.visible .divider__star svg { animation: starTwinkle 3.5s ease-in-out 2.4s infinite; }
@keyframes ignite { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1.6); } 100% { opacity: .6; transform: scale(1); } }
@keyframes glowPulse { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }
@keyframes starTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.85) rotate(20deg); } }


/* ---------- portrait variants ---------- */
.pv { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease, visibility 0s .7s; }
.hero__visual .pv[aria-hidden="false"] { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease; }
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.hero__visual:not([data-variant="classic"]) .hero__moon { opacity: 0; }
.hero__moon { transition: opacity .5s; }

/* переходи країв фото у фон */
.pv__img { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pv__img img { filter: brightness(.94) contrast(1.04); }
/* поява: маска «розкривається» з центру */
.hero__visual[data-variant] .pv .pv__img { transition: -webkit-mask-size 1.2s cubic-bezier(.2, .8, .2, 1), mask-size 1.2s cubic-bezier(.2, .8, .2, 1); }
.pv[aria-hidden="true"] .pv__img { -webkit-mask-size: 70% 70%; mask-size: 70% 70%; -webkit-mask-position: center; mask-position: center; }
.pv--smoke .pv__img { animation: smokeBreath 9s ease-in-out infinite; -webkit-mask-position: center; mask-position: center; }
@keyframes smokeBreath { 0%, 100% { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } 50% { -webkit-mask-size: 95% 96%; mask-size: 95% 96%; } }
.pv--dust .pv__img img, .pv--halftone .pv__img img { filter: brightness(.98) contrast(1.06); }
/* мрійливий: розмита підкладка + чіткий центр */
.pv--dreamy .pv__img:first-child { filter: blur(14px) brightness(.85); transform: scale(1.04);
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, #000 55%, transparent 100%); }
.pv--dreamy .pv__img--sharp {
  -webkit-mask-image: radial-gradient(ellipse 34% 42% at 50% 38%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 34% 42% at 50% 38%, #000 50%, transparent 100%); }

/* switcher */
.pv-switch {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 4; display: flex; gap: 4px; padding: 5px;
  border-radius: 100px; background: rgba(13, 16, 22, .75); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; max-width: 100%; overflow-x: auto;
}
.pv-switch button {
  border: 0; background: none; color: var(--muted); cursor: pointer; padding: 7px 12px; border-radius: 100px;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; transition: color .3s, background .3s;
}
.pv-switch button:hover { color: var(--tiff); }
.pv-switch button.active { background: var(--tiff-grad); color: #0b2826; font-weight: 600; }
@media (max-width: 600px) { .pv-switch button { padding: 6px 8px; font-size: .55rem; letter-spacing: .06em; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
