:root {
  --bg: #f5f5f7;
  --bg-alt: #eef0f4;
  --bg-card: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --accent: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --border: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --max-width: 1100px;
  --header-blur: 16px;
}

/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0, var(--bg) 70%);
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 32px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: flex-start;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(var(--header-blur));
  background: color-mix(in srgb, var(--bg) 80%, rgba(255, 255, 255, 0.7) 20%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Nav (всегда бургер) */

.main-nav {
  position: absolute;
  inset-inline: 0;
  top: 56px;
  background: color-mix(in srgb, var(--bg) 92%, #ffffff 8%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding: 10px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.main-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--fg);
  background: var(--accent-soft);
}

/* Header controls */

.header-controls {
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Language dropdown */

.lang-dropdown {
  position: relative;
}

.lang-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  font-size: 0.75rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.lang-caret {
  font-size: 0.65rem;
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 190px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  z-index: 30;
}

.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-option {
  border-radius: 8px;
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

.lang-option.active {
  background: var(--accent);
  color: #ffffff;
}

/* Burger */

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero-section {
  padding: 96px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 16px;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px;
  transform: translateY(6px);
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Cards */

.section-side-box,
.service-card,
.contact-form-box {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.section-side-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--accent);
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Fee */

.important-text {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 10px;
  font-size: 0.9rem;
}

.contact-list span {
  font-weight: 500;
  margin-right: 6px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.company-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--fg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.contact-status {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.btn.outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--fg);
}

.btn.outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: color-mix(in srgb, var(--bg) 80%, #ffffff 20%);
  padding: 14px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  gap: 8px;
}

.footer-note {
  text-align: right;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-inner,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding-top: 80px;
  }

  .hero-panel {
    transform: none;
  }

  .section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 56px 0;
  }

  .hero-section {
    padding-top: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
