:root {
  --navy: #0f1730;
  --navy-soft: rgba(15, 23, 48, 0.82);
  --blue: #1673ff;
  --blue-deep: #0c58cf;
  --text: #101828;
  --muted: #5f6b84;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(255, 255, 255, 0.55);
  --shadow: 0 24px 70px rgba(11, 25, 54, 0.28);
  --radius: 24px;
  --container: 1180px;
  --header-height: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f9fc;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.top-band {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 10px 26px rgba(8, 15, 31, 0.08);
}
.top-band-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}
.brand img {
  width: min(520px, 84vw);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 48, 0.08));
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background: #060b18;
  overflow: hidden;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.03);
  filter: brightness(0.8) saturate(1.5) contrast(1.5);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 9, 22, 0.84) 0%, rgba(6, 10, 24, 0.70) 34%, rgba(7, 11, 24, 0.42) 56%, rgba(6, 9, 20, 0.26) 100%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.16) 0%, rgba(4, 8, 18, 0.34) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
  align-items: center;
  gap: 48px;
  padding: 72px 0 64px;
}
.hero-copy {
  max-width: 620px;
}
.eyebrow,
.card-kicker,
.section-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 115, 255, 0.1);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 700px;
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.hero-copy p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.calc-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-panel {
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.card-panel h2 {
  margin: 14px 0 20px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label,
.check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2a44;
  font-size: 14px;
  font-weight: 700;
}
.form-grid label span { color: #21304d; }
.field-help {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #6b7690;
}
.full-span { grid-column: 1 / -1; }
input,
select {
  width: 100%;
  border: 1px solid rgba(145, 158, 187, 0.45);
  background: rgba(255, 255, 255, 0.94);
  color: #12203c;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
input:focus,
select:focus {
  border-color: rgba(22, 115, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(22, 115, 255, 0.12);
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(22, 115, 255, 0.28);
}
.btn-secondary {
  background: #eef4ff;
  color: var(--blue-deep);
}

.result-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.result-main > div {
  background: #f7faff;
  border: 1px solid rgba(22, 115, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}
.result-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.price-box {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f2f7ff 0%, #edf4ff 100%);
  border: 1px solid rgba(22, 115, 255, 0.12);
  margin-bottom: 18px;
}
.price-box span,
.price-box small { display: block; }
.price-box span { font-weight: 700; color: #31415f; }
.price-box strong {
  display: block;
  margin: 6px 0 2px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #0d1c39;
  letter-spacing: -0.05em;
}
.price-box small { color: var(--muted); }
.line-items { display: grid; gap: 10px; }
.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fbfcff;
  border: 1px solid rgba(16, 24, 40, 0.06);
}
.line-item.total {
  background: #eef4ff;
  border-color: rgba(22, 115, 255, 0.18);
  font-weight: 800;
}
.notice-text {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
  color: #11213f;
}
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.reservation-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}
.reservation-block h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #0d1c39;
}
.reservation-copy {
  margin: 0 0 16px;
  color: #5f6b84;
  line-height: 1.55;
}
.reservation-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef8f1;
  border: 1px solid rgba(28, 151, 82, 0.2);
  color: #16653d;
  font-weight: 700;
  line-height: 1.5;
}
.reservation-message.is-error {
  background: #fff4f4;
  border-color: rgba(191, 45, 45, 0.2);
  color: #9b1c1c;
}
.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 4px 0;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.check input { width: auto; min-height: auto; }


.floating-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.floating-modal.hidden {
  display: none !important;
}
.floating-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, 0.58);
  backdrop-filter: blur(8px);
}
.floating-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(22, 115, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(6, 11, 24, 0.28);
  padding: 28px 28px 24px;
  text-align: center;
}
.floating-modal__dialog h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: #0d1c39;
}
.floating-modal__dialog p {
  margin: 0;
  color: #4a5671;
  line-height: 1.65;
  font-size: 1rem;
}
.floating-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.floating-modal__actions .btn {
  min-width: 180px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  padding: 42px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
.footer-brand-block {
  max-width: 560px;
}
.footer-logo {
  width: min(360px, 100%);
  height: auto;
  margin-bottom: 16px;
}
.footer-brand-block p {
  margin: 0 0 12px;
  color: #52607a;
  line-height: 1.75;
}
.site-footer h3 {
  margin: 10px 0 14px;
  font-size: 1.02rem;
  color: #101828;
  letter-spacing: -0.02em;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links li,
.footer-links a {
  color: #5f6b84;
  line-height: 1.7;
  text-decoration: none;
}
.footer-links a:hover,
.footer-mini-links a:hover {
  color: var(--blue-deep);
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p {
  margin: 0;
  color: #6a768e;
  font-size: 0.95rem;
}
.footer-mini-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6a768e;
}
.footer-mini-links a {
  color: #6a768e;
  text-decoration: none;
}

@media (max-width: 1080px) {
  :root { --header-height: 94px; }
  .top-band-inner { min-height: var(--header-height); }
  .brand img { width: min(440px, 82vw); }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 52px;
  }
  .hero-copy { max-width: 700px; }
  .calc-card { max-width: 540px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .floating-modal { padding: 18px; }
  .floating-modal__dialog { padding: 24px 20px 20px; border-radius: 22px; }

  :root { --header-height: 84px; }
  .container { width: min(calc(100% - 22px), var(--container)); }
  .top-band-inner { min-height: var(--header-height); }
  .brand img { width: min(360px, 86vw); }
  .hero { min-height: calc(100vh - var(--header-height)); }
  .hero-content { padding: 38px 0 40px; }
  .hero-copy h1 { font-size: clamp(2rem, 10vw, 2.9rem); }
  .hero-copy p { font-size: 0.98rem; }
  .calc-card { padding: 16px; border-radius: 22px; }
  .form-grid,
  .result-actions,
  .result-main { grid-template-columns: 1fr; }
  input, select, .btn { min-height: 50px; }
  .line-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-block { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
