:root {
  --ocean: #0b132b;
  --ocean-2: #111d3b;
  --gold: #d4af37;
  --gold-2: #c5a059;
  --teal: #00a896;
  --ink: #1a202c;
  --muted: #718096;
  --light: #f8f9fa;
  --soft: #f0f4f8;
  --white: #ffffff;
  --line: rgba(11, 19, 43, 0.12);
  --shadow: 0 20px 60px rgba(11, 19, 43, 0.13);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--light);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select { font: inherit; }
p { color: var(--muted); line-height: 1.7; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 250, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-copy { display: grid; gap: 2px; }
.brand strong, h1, h2, h3 { margin: 0; font-family: "Montserrat", sans-serif; letter-spacing: 0; }
.brand strong { color: var(--ocean); font-size: 1.48rem; letter-spacing: 0.12em; }
.brand small { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 0.9rem; color: var(--ocean); font-weight: 700; }
.site-nav a:hover, .phone-link:hover, .footer-links a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { color: var(--ocean); font-weight: 800; white-space: nowrap; }
.icon-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #229ed9;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.26);
}
.icon-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  transform: translateX(-1px);
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ocean); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 23px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ocean);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(197, 160, 89, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: normal;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(197, 160, 89, 0.3); }
.button--small { min-height: 42px; padding: 11px 16px; font-size: 0.84rem; }
.button--ghost { background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
.button--ghost-dark { background: transparent; color: var(--ocean); border: 1px solid var(--line); box-shadow: none; }
.button--pulse { animation: pulse 2.2s infinite; }
.hero-actions .button--pulse { white-space: nowrap; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.34), 0 14px 34px rgba(197, 160, 89, 0.22); }
  50% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), 0 18px 44px rgba(197, 160, 89, 0.3); }
}

.hero {
  position: relative;
  min-height: 800px;
  padding: 92px 0 78px;
  overflow: hidden;
  color: var(--white);
  background: var(--ocean);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 44%, rgba(11,19,43,0.66) 0%, rgba(11,19,43,0.48) 25%, transparent 52%),
    linear-gradient(90deg, rgba(11,19,43,0.96) 0%, rgba(11,19,43,0.9) 38%, rgba(11,19,43,0.68) 64%, rgba(11,19,43,0.58) 100%),
    linear-gradient(180deg, rgba(11,19,43,0.18) 0%, rgba(11,19,43,0.32) 58%, rgba(11,19,43,0.94) 100%),
    url("assets/photos/sochi-evening-hero-bg-lite.webp") center/cover;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.56fr); align-items: end; gap: 34px; z-index: 2; }
.hero-copy { padding: 58px 0 36px; }
.eyebrow { margin: 0 0 14px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 900; }
.hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(4, 22, 18, 0.72);
}
h1 { max-width: 980px; font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.03; color: inherit; }
h2 { font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.03; color: var(--ocean); }
h3 { font-size: 1.35rem; line-height: 1.2; color: var(--ocean); }
.hero-lead { max-width: 800px; margin: 24px 0 0; color: rgba(255,255,255,0.78); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 10px 13px; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.86); font-weight: 800; font-size: 0.86rem; }
.hero-person {
  position: absolute;
  right: max(-62px, calc((100vw - var(--container)) / 2 - 116px));
  bottom: 0;
  z-index: 3;
  width: min(52vw, 700px);
  height: auto;
  max-height: 88%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 42px rgba(0,0,0,0.38));
  pointer-events: none;
}

.section { padding: 92px 0; scroll-margin-top: 96px; }
.section--light { background: var(--light); }
.section-head { max-width: 800px; margin-bottom: 34px; }
.section-head p { max-width: 660px; }
.section-head--wide { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head--wide p { max-width: 430px; margin: 0; }

.quiz-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; align-items: start; }
.quiz-card, .lead-card, .object-card, .modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.quiz-card { padding: clamp(20px, 3vw, 34px); }
.quiz-progress { display: grid; gap: 12px; margin-bottom: 26px; color: var(--ocean); font-weight: 900; }
.progress-line { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress-line span { display: block; height: 100%; width: 33.333%; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.25s ease; }
.quiz-step { display: none; }
.quiz-step.is-active { display: grid; gap: 20px; }
.option-grid { display: grid; gap: 12px; }
.option-grid label { cursor: pointer; }
.option-grid input { position: absolute; opacity: 0; }
.option-grid span {
  display: block;
  min-height: 56px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option-grid input:checked + span { border-color: var(--teal); background: rgba(0,168,150,0.1); color: var(--ocean); }
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 8px; color: #34445f; font-weight: 800; font-size: 0.9rem; }
.field-title { display: block; margin-bottom: 10px; color: #34445f; font-weight: 800; font-size: 0.9rem; }
.messenger-extra--hidden { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row label { display: block; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ocean);
}
.choice-row input:checked + span { border-color: var(--teal); background: rgba(0,168,150,0.1); }
input, select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  outline: 0;
}
input:focus, select:focus { border-color: var(--teal); }
.quiz-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
#quizSubmit { display: none; }

.story-section { background: linear-gradient(180deg, var(--ocean), var(--ocean-2)); color: var(--white); }
.story-grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: 54px; align-items: center; }
.story-photo { height: 680px; min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); box-shadow: 0 28px 90px rgba(0,0,0,0.34); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story-copy h2, .story-contact h3 { color: var(--white); }
.story-copy p { color: rgba(255,255,255,0.76); }
.story-contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.story-contact h3 { max-width: 620px; font-size: 1.35rem; }
.contact-actions { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px; margin-top: 18px; align-items: center; }
.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-weight: 800;
}
.contact-action:first-child { grid-column: 1 / -1; justify-self: start; }
.contact-action:hover { border-color: rgba(212,175,55,0.58); background: rgba(212,175,55,0.1); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-icon--phone { background: var(--gold); color: var(--ocean); }
.contact-icon--telegram { background: #229ed9; }
.contact-icon--whatsapp { background: #25d366; }
.contact-icon--mail { background: var(--teal); }

.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.object-card { overflow: hidden; transition: transform 0.2s ease; }
.object-card:hover { transform: translateY(-5px); }
.object-media {
  height: 220px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #182545, #00a896);
}
.object-media span { font-family: "Montserrat", sans-serif; font-size: 1.45rem; font-weight: 900; letter-spacing: 0.08em; }
.object-media--element { background: linear-gradient(135deg, rgba(11,19,43,0.25), rgba(11,19,43,0.78)), url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=900&q=80") center/cover; }
.object-media--vegas { background: linear-gradient(135deg, rgba(11,19,43,0.2), rgba(11,19,43,0.78)), url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80") center/cover; }
.object-media--palazzo { background: linear-gradient(135deg, rgba(11,19,43,0.2), rgba(11,19,43,0.78)), url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=900&q=80") center/cover; }
.object-media--gallery { background: linear-gradient(135deg, rgba(11,19,43,0.2), rgba(11,19,43,0.78)), url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=900&q=80") center/cover; }
.object-body { padding: 20px; display: grid; gap: 12px; }
.object-body p { margin: 0; font-size: 0.92rem; }
.object-body strong { color: var(--ocean); font-size: 1.08rem; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badges span { padding: 7px 9px; border-radius: 999px; background: rgba(0,168,150,0.1); color: #03786c; font-size: 0.72rem; font-weight: 900; }
.link-button { justify-self: start; border: 0; padding: 0; background: transparent; color: var(--teal); font-weight: 900; cursor: pointer; }

.objection-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11,19,43,0.96) 0%, rgba(11,19,43,0.9) 42%, rgba(11,19,43,0.72) 100%),
    linear-gradient(180deg, rgba(11,19,43,0.22) 0%, rgba(11,19,43,0.44) 58%, rgba(11,19,43,0.94) 100%),
    url("assets/photos/sochi-evening-hero-bg-lite.webp") center/cover;
  color: var(--white);
}
.objection-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: start; }
.objection-section .section-head { margin-bottom: 0; }
.objection-section h2 { color: var(--white); }
.objection-section .eyebrow { color: var(--gold); text-shadow: 0 2px 14px rgba(4, 22, 18, 0.72); }
.accordion details { border-top: 1px solid rgba(255,255,255,0.18); padding: 22px 0; }
.accordion details:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.accordion summary { cursor: pointer; color: var(--white); font-weight: 900; font-size: 1.06rem; }
.accordion p { margin-bottom: 0; color: rgba(255,255,255,0.78); }

.consultation-grid { display: grid; grid-template-columns: 1fr 0.72fr; gap: 54px; align-items: start; }
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.call-heading { margin-top: 26px; color: var(--ocean); }
.value-list span { padding: 17px; border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.05); font-weight: 800; color: var(--ocean); }
.lead-card { padding: 26px; display: grid; gap: 16px; }
.lead-card p { margin: 0; font-size: 0.82rem; }

.site-footer { padding: 54px 0 86px; background: var(--ocean); color: var(--white); }
.brand--footer strong { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 0.9fr 0.75fr; gap: 34px; align-items: start; }
.footer-grid p, .footer-bottom { color: rgba(255,255,255,0.62); }
.footer-grid p { margin: 16px 0 0; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts p { margin: 0; }
.footer-contacts a, .footer-links a, .footer-bottom a { color: rgba(255,255,255,0.86); }
.footer-links { display: grid; gap: 12px; color: rgba(255,255,255,0.78); font-weight: 700; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 22px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.9rem; }

.mobile-bar { display: none; }
.modal { width: min(520px, calc(100% - 28px)); border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(11,19,43,0.72); backdrop-filter: blur(7px); }
.modal-card { position: relative; padding: 28px; display: grid; gap: 14px; }
.modal-card h2 { font-size: 2rem; }
.modal-card p { margin: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 11px; top: 18px; width: 15px; height: 2px; background: var(--ocean); }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 130%); padding: 14px 18px; border-radius: var(--radius); background: var(--ocean); color: var(--white); font-weight: 900; box-shadow: var(--shadow); transition: transform 0.25s ease; }
.toast.is-visible { transform: translate(-50%, 0); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .header-actions .button { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { min-height: 70px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 70px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(248,249,250,0.98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .header-actions { display: none; }
  .hero { min-height: 0; padding: 70px 0 0; }
  .hero-bg {
    background: linear-gradient(180deg, #101d3f 0%, #0b1634 55%, #081126 100%);
  }
  .hero-grid, .quiz-layout, .story-grid, .objection-grid, .consultation-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero-person {
    position: relative;
    display: block;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(92vw, 540px);
    max-width: calc(100% - 16px);
    max-height: none;
    margin: 28px auto 0;
    transform: none;
  }
  .value-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head--wide { display: block; }
  .mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); background: rgba(11,19,43,0.88); backdrop-filter: blur(16px); }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--white); font-weight: 900; font-size: 0.86rem; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand small { display: none; }
  .brand strong { font-size: 1.18rem; }
  h1 { font-size: clamp(2.08rem, 10.5vw, 2.65rem); overflow-wrap: break-word; }
  h2 { font-size: 2.1rem; }
  .hero-actions, .quiz-controls { flex-direction: column; }
  .hero-copy, .hero-copy * { max-width: 100%; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { width: 100%; }
  .button { width: 100%; padding-left: 14px; padding-right: 14px; text-align: center; line-height: 1.22; }
  .hero-actions .button--pulse { font-size: clamp(0.84rem, 4vw, 0.96rem); }
  .trust-row { display: grid; grid-template-columns: 1fr; }
  .trust-row span { width: 100%; }
  .hero { min-height: 0; }
  .hero-person {
    width: min(94vw, 470px);
    max-width: calc(100% - 8px);
    margin-top: 24px;
  }
  .section { padding: 66px 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-action:first-child { grid-column: auto; }
  .story-photo { height: 540px; min-height: 0; }
  .toast { width: calc(100% - 24px); text-align: center; }
}
