:root {
  --bg-primary: #0d1b2a;
  --bg-secondary: #1b263b;
  --bg-soft: #f5f6f7;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-subtle: #475569;
  --border: #d7dde5;
  --accent: #d60812;
  --focus: #0488bb;
  --radius: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--bg-primary);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand img {
  display: block;
  width: 170px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav .nav-link,
.main-nav .nav-trigger {
  font-size: 0.92rem;
  opacity: 0.94;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover,
.main-nav .nav-trigger.active,
.main-nav .nav-trigger:hover {
  opacity: 1;
}

.main-nav .nav-link.active,
.main-nav .nav-trigger.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.nav-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(2, 16, 34, 0.18);
  padding: 8px;
  z-index: 50;
}

.submenu a {
  display: block;
  color: #0f172a;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.submenu a:hover,
.submenu a.active {
  background: #eef3f8;
}

.nav-item.has-menu:hover .submenu,
.nav-item.has-menu:focus-within .submenu,
.nav-item.open .submenu {
  display: block;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.lang-switch button.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: #fff;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-main);
}

.calculator-card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.87rem;
  color: var(--text-subtle);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--focus) 38%, white);
  border-color: var(--focus);
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #ffb800 0%, #ff3f45 100%);
  color: #fff;
}

.btn-secondary {
  background: #eef1f6;
  color: #6a7486;
}

.notice {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #667085;
}

.notice--error {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid #c0392b;
  background: #fdf2f2;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #c0392b;
}

.notice--success {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid #1a7f4b;
  background: #f0faf4;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a7f4b;
}

.calc-result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.calc-result-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.calc-result-label {
  font-size: 0.87rem;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.calc-result-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.calc-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3f3;
  border: 1px solid #fbc8c8;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #c0392b;
}

.calc-to-wrap {
  position: relative;
}

.calc-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(2, 16, 34, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}

.calc-suggestions li {
  padding: 9px 12px;
  font-size: 0.92rem;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-suggestions li:hover,
.calc-suggestions li.active {
  background: color-mix(in srgb, var(--focus) 10%, white);
  color: var(--focus);
}

.calc-recalculating {
  opacity: 0.45;
  transition: opacity 0.15s;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  scroll-margin-top: 84px;
}

.section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section a:hover {
  text-decoration-thickness: 2px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.section p {
  margin: 0;
  line-height: 1.65;
  color: #1f2937;
}

.section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.section li {
  margin-bottom: 7px;
  color: #1f2937;
}

.faq-accordion {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 12px 14px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #475569;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 14px 14px;
  color: #334155;
}

.photo-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f7;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trust-module {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-module img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}

.trust-module p {
  margin: 0;
  color: #334155;
}

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

.contact-form .field-wide {
  grid-column: span 2;
}

.site-footer {
  background: var(--bg-primary);
  color: #d4dbe7;
  padding: 34px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 0.9fr) minmax(320px, 1.35fr);
  gap: 22px;
  align-items: start;
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(212, 219, 231, 0.82);
  margin-top: 6px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-trust img {
  width: 34px;
  height: 34px;
}

.footer-trust-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.footer-trust-note {
  margin-top: 3px;
  font-size: 0.78rem;
  color: rgba(212, 219, 231, 0.82);
  line-height: 1.35;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.86rem;
}

.footer-group-title {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 219, 231, 0.72);
  margin-bottom: 8px;
}

.footer-group a {
  display: block;
  padding: 6px 0;
  color: #d4dbe7;
  text-decoration: none;
}

.footer-group a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a {
  color: #d4dbe7;
  text-decoration: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
.legal-nav {
  margin-top: 12px;
  font-size: 0.92rem;
}

.legal-nav a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .submenu {
    display: block;
    position: static;
    margin-top: 4px;
    min-width: 0;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
  }

  .submenu a {
    color: #fff;
  }

  .submenu a:hover,
  .submenu a.active {
    background: rgba(255, 255, 255, 0.16);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .calc-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .field-wide {
    grid-column: auto;
  }
}
