:root {
  --bg: #ffffff;
  --bg-alt: #f1f5fb;
  --panel: #e9f0f8;
  --text: #0f1a2b;
  --muted: #51607a;
  --primary: #354e70;
  --dark: #1f2a33;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 32, 46, 0.12);
  --radius: 22px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: radial-gradient(circle at top, #ffffff 0%, #f2f6fb 45%, #e9f0f8 100%);
  color: var(--text);
  line-height: 1.5;
}

html {
  scroll-padding-top: 90px;
}

section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 44px;
  }

  section[id] {
    scroll-margin-top: 44px;
  }
}

.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(120deg, #2f4462, #3a567c 60%, #324a6d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.logo-img {
  width: 140px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  padding: 4px 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  justify-content: center;
  flex: 1;
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-block {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.phone-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.phone {
  font-weight: 600;
  color: var(--white);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  padding: 84px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
}

.lead p {
  margin-bottom: 6px;
}

.lead p strong {
  color: var(--text);
  font-weight: 700;
}

.lead-title {
  margin-bottom: 10px;
}

.lead-accent {
  margin: 10px 0 12px;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(53, 78, 112, 0.35);
}

.btn.ghost {
  border-color: var(--dark);
  color: var(--dark);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 42, 51, 0.15);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.hero-stats div {
  background: var(--panel);
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-card {
  position: relative;
}

.card {
  background: var(--panel);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 12px;
}

.mini-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.mini-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 51, 0.15);
  background: #f6f8fc;
}

.mini-form input.invalid {
  border-color: #c64d45;
  background: #fff4f3;
  box-shadow: 0 0 0 2px rgba(198, 77, 69, 0.15);
}

.form-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.checkbox {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  color: var(--muted);
}

.checkbox input {
  margin-top: 3px;
}

.checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.form-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: #eaf1f9;
  color: var(--primary);
  display: none;
}

.form-message.show {
  display: block;
  animation: fadeUp 0.4s ease;
}

.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: #fdecea;
  color: #8a2f2b;
  display: none;
}

.form-error.show {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: var(--dark);
  color: var(--white);
  padding: 18px;
  border-radius: 18px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  width: 160px;
}

.badge span {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 8px;
}

.process {
  background: #f6f8fc;
}

.process-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.process-card {
  background: var(--white);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(22, 32, 46, 0.08);
}

.process-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(53, 78, 112, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.process-card h3 {
  margin-bottom: 8px;
}

.process-card p {
  color: var(--muted);
}

.cta-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.contact-cta {
  background: var(--bg);
  margin-top: -12px;
}

.contact-cta-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
}

.contact-cta-left h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}

.contact-cta-sub {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-cta-info {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.contact-cta-info a {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.contact-cta-socials {
  display: flex;
  gap: 12px;
}

.contact-cta-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(53, 78, 112, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.contact-cta-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-cta-right {
  background: var(--panel);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.achievements {
  background: var(--bg);
}

.achievements-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.achievements-copy {
  padding-right: 24px;
}

.achievements-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}

.achievements-copy p {
  color: var(--muted);
  margin-bottom: 12px;
}

.achievements-copy p strong {
  font-size: 18px;
}

.achievements-copy p strong {
  color: var(--text);
}

.achievements-copy strong {
  color: var(--text);
  font-weight: 700;
}

.roles-detail {
  background: #f6f8fc;
}

.roles-icon-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.roles-icon-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.roles-icon-card p {
  color: var(--muted);
}

.accent-line {
  display: inline-block;
  width: 38px;
  height: 4px;
  background: #8c98ff;
  border-radius: 999px;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  
}

.stat-item {
  padding: 24px 22px;
  border-right: 1px solid rgba(15, 26, 43, 0.12);
  border-bottom: 1px solid rgba(15, 26, 43, 0.12);
}

.stat-item strong {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-item span {
  color: var(--text);
  font-weight: 600;
  text-transform: lowercase;
}

.stat-item a {
  color: inherit;
}

.stat-item {
  border: 1px solid rgba(15, 26, 43, 0.12);
}

.stat-item:nth-child(-n + 2) {
  border-top: none;
}

.stat-item:nth-child(n + 5) {
  border-bottom: none;
}

.stat-item:nth-child(odd) {
  border-left: none;
}

.stat-item:nth-child(even) {
  border-right: none;
}

.policy-text {
  display: grid;
  gap: 12px;
  color: var(--muted);
  max-width: 860px;
}


.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(31, 42, 51, 0.08);
}

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

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 4vw;
    background: var(--panel);
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 12px;
    color: var(--text);
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    padding-top: 64px;
  }

  .badge {
    position: static;
    width: auto;
    margin-top: 18px;
  }

  .header-inner {
    position: relative;
  }

  .phone-block {
    display: none;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .roles-icon-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .contact-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 835px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    padding: 22px;
  }

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

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

  .roles-icon-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .hero-grid,
  .achievements-grid,
  .process-grid,
  .roles-icon-grid,
  .contact-cta-grid {
    gap: 18px;
  }

  .contact-cta-right,
  .card {
    padding: 18px;
  }

  .contact-form {
    padding: 18px;
  }

  .stat-item {
    border-left: none;
    border-right: none;
  }

  .stat-item:first-child {
    border-top: none;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}
