:root {
  color-scheme: light;
  --bg-default: #f3f5f9;
  --bg-hero: radial-gradient(circle at top right, rgba(18, 66, 102, 0.14), transparent 58%),
    radial-gradient(circle at top left, rgba(241, 183, 34, 0.14), transparent 45%),
    #f8fbff;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.72);
  --primary: #174a70;
  --primary-accent: #0e7ba3;
  --primary-soft: rgba(17, 74, 112, 0.15);
  --secondary: #f1b722;
  --text: #17212f;
  --text-muted: #536173;
  --line-soft: rgba(17, 74, 112, 0.14);
  --line-strong: rgba(17, 74, 112, 0.24);
  --shadow-soft: 0 20px 60px rgba(13, 52, 82, 0.12);
  --shadow-card: 0 28px 60px rgba(17, 74, 112, 0.18);
  --shadow-floating: 0 30px 80px rgba(7, 44, 74, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container-width: min(1160px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-default);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover,
a:focus-visible {
  color: var(--primary-accent);
}

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

.container {
  width: var(--container-width);
  margin: 0 auto;
}

section {
  padding: clamp(72px, 12vw, 108px) 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(32px, 7vw, 48px);
  padding-top: 12px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  line-height: 1.18;
  color: var(--primary);
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-accent) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
}

.button.secondary {
  background: rgba(14, 123, 163, 0.12);
  border-color: rgba(14, 123, 163, 0.32);
  color: var(--primary);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(14, 123, 163, 0.2);
}

.button.ghost {
  background: transparent;
  border-color: rgba(17, 74, 112, 0.18);
  color: var(--primary);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(17, 74, 112, 0.08);
}

.button.full {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 123, 163, 0.12);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 253, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 74, 112, 0.12);
  box-shadow: 0 12px 30px rgba(11, 35, 52, 0.08);
}

.header-ribbon {
  border-bottom: 1px solid rgba(17, 74, 112, 0.08);
  font-size: 0.9rem;
  color: rgba(17, 33, 47, 0.78);
}

.header-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px !important;
  flex-wrap: wrap;
}

.ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 74, 112, 0.14);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

#admin-secret-badge:hover {
  background: rgba(17, 74, 112, 0.18);
}

#admin-secret-badge:active {
  transform: scale(0.95);
}

.ribbon-text {
  margin: 0;
  color: rgba(17, 33, 47, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ribbon-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ribbon-mail {
  font-weight: 600;
}

.ribbon-hotline {
  font-weight: 700;
  color: var(--primary);
}

.ribbon-divider {
  width: 1px;
  height: 16px;
  background: rgba(17, 74, 112, 0.2);
}


.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: clamp(16px, 2.6vw, 28px);
  padding: 6px !important;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  grid-area: brand;
}

.brand-mark {
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid rgba(17, 74, 112, 0.12);
  box-shadow: 0 12px 28px rgba(17, 74, 112, 0.18);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* Стили для десктопной версии */
@media (min-width: 768px) {
  .brand-mark {
    width: 64px !important;
    height: 64px !important;
    padding: 8px; /* Меньше отступы на десктопе */
  }
  
  .brand-mark img {
    width: 60px;
    height: 60px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.83rem;
  color: rgba(83, 97, 115, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  grid-area: nav;
}


.nav-toggle {
  display: none;
  /* background: rgba(23, 74, 112, 0.08); */
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 12px;
  padding: 10px;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle-line {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 26px);
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgba(23, 33, 47, 0.78);
  padding-bottom: 6px;
  white-space: nowrap;
}

.nav-menu-cta {
  display: none;
}

.nav-menu-call {
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0;
}

.nav-menu-button {
  width: 100%;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 24px;
}

.nav-backdrop {
  display: none;
}

.header-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  justify-self: end;
  grid-area: actions;
}

.header-bar-phone {
  font-weight: 700;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 74, 112, 0.08);
  border: 1px solid rgba(17, 74, 112, 0.16);
  font-size: 0.92rem;
  white-space: nowrap;
}

.header-bar-cta {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
}

.hero {
  background: linear-gradient(120deg, rgba(17, 74, 112, 0.08), rgba(14, 123, 163, 0.12)), #eef5fb;
  padding: clamp(110px, 14vw, 150px) 0 clamp(80px, 12vw, 120px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(40px, 9vw, 72px);
  align-items: start;
}

.hero-content h1 {
  margin: 20px 0;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-family: "Playfair Display", "Times New Roman", serif;
  line-height: 1.08;
  color: var(--primary);
}

.hero-content p {
  margin: 0 0 32px;
  font-size: 1.12rem;
  color: var(--text-muted);
}

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

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-trust li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--secondary), rgba(241, 183, 34, 0.62));
  box-shadow: 0 6px 12px rgba(241, 183, 34, 0.35);
}

.hero-card {
  position: relative;
  background: transparent;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(14, 123, 163, 0.2), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 44px);
  display: grid;
  gap: 22px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 74, 112, 0.12);
  box-shadow: var(--shadow-card);
}

.hero-card-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-card-text {
  margin: 0;
  color: var(--text-muted);
}

.hero-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.hero-social-buttons a {
  font-size: 0.9rem;
  padding: 12px 12px;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-social-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .hero-social-buttons a {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px 16px;
  }
}

.hero-card-meta {
  display: grid;
  gap: 18px;
  margin: 0;
}

.hero-card-meta div {
  display: grid;
  gap: 6px;
}

.hero-card-meta dt {
  font-size: 0.82rem;
  color: rgba(17, 33, 47, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.metrics {
  padding: clamp(48px, 9vw, 72px) 0 clamp(24px, 8vw, 48px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.metric {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 74, 112, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-label {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.about {
  padding-top: clamp(88px, 14vw, 120px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 9vw, 64px);
  align-items: start;
}

.about-intro p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--primary);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(14, 123, 163, 0.18), rgba(14, 123, 163, 0.32));
}

.about-highlights {
  margin-top: clamp(34px, 8vw, 48px);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.about-highlight {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 74, 112, 0.08);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.about-highlight h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--primary);
}

.about-highlight p {
  margin: 0;
  color: var(--text-muted);
}

.about-quote {
  background: linear-gradient(140deg, rgba(17, 74, 112, 0.16), rgba(14, 123, 163, 0.08)), var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 74, 112, 0.14);
  padding: clamp(28px, 6vw, 36px);
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow-card);
}

.about-quote p {
  margin: 0;
  font-size: 1.06rem;
  color: rgba(17, 33, 47, 0.9);
}

.about-meta {
  display: grid;
  gap: 18px;
  margin: 0;
}

.about-meta div {
  display: grid;
  gap: 4px;
}

.about-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(17, 33, 47, 0.58);
}

.about-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.audience-grid,
.grounds-grid,
.services-grid,
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.audience-card,
.ground-card,
.service-card,
.document-card {
  background: var(--surface);
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 74, 112, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-width: 0;
}

.audience-card h3,
.ground-card h3,
.service-card h3,
.document-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.audience-card p,
.ground-card p,
.service-card p,
.document-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.audience-card li {
  position: relative;
  padding-left: 18px;
}

.audience-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

.workflow {
  background: linear-gradient(130deg, rgba(17, 74, 112, 0.08), rgba(241, 183, 34, 0.12));
}

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  background: var(--surface);
  padding: clamp(24px, 6vw, 32px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 74, 112, 0.1);
  align-items: start;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(17, 74, 112, 0.1);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.12rem;
}

.cta {
  padding: clamp(72px, 12vw, 110px) 0;
}

.cta-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-accent) 65%);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 8vw, 64px);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 28px;
  color: #ffffff;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta .button.primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.cta .button.primary:hover,
.cta .button.primary:focus-visible {
  transform: translateY(-2px);
}

.cta .button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 74, 112, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: clamp(20px, 4vw, 26px) clamp(24px, 5vw, 32px);
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 clamp(24px, 5vw, 32px) clamp(20px, 4vw, 26px);
  color: var(--text-muted);
  font-size: 0.98rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 48px);
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 9vw, 70px);
  box-shadow: var(--shadow-soft);
}

.credentials-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 12px;
}

.testimonial {
  padding: clamp(26px, 6vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 123, 163, 0.14), rgba(241, 183, 34, 0.16));
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--primary);
}

.testimonial-author {
  margin: 0;
  color: var(--text-muted);
}

.guarantees {
  background: linear-gradient(145deg, rgba(17, 74, 112, 0.06), rgba(255, 216, 109, 0.08));
}

.guarantees-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 56px);
  align-items: start;
}

.guarantees-list {
  list-style: none;
  padding: 0;
  margin: clamp(28px, 7vw, 36px) 0 0;
  display: grid;
  gap: 18px;
}

.guarantees-list li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 74, 112, 0.12);
  padding: 22px 26px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.guarantees-note {
  background: linear-gradient(140deg, rgba(241, 183, 34, 0.14), rgba(255, 254, 247, 0.96));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(241, 183, 34, 0.2);
  padding: clamp(28px, 6vw, 36px);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  color: rgba(17, 33, 47, 0.9);
}

.guarantees-ps {
  margin: 0;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

.documents-grid {
  gap: 22px;
}

.blog {
  padding-bottom: clamp(96px, 14vw, 120px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 74, 112, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  height: 100%;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(17, 33, 47, 0.65);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 123, 163, 0.12);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.blog-date {
  font-weight: 600;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary);
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
}

.article-page main {
  background: var(--bg-default);
}

.article {
  padding-bottom: clamp(96px, 15vw, 140px);
}

.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-accent) 100%);
  padding: clamp(70px, 12vw, 92px) 0 clamp(54px, 9vw, 70px);
  border-bottom: 1px solid rgba(17, 74, 112, 0.12);
  color: #ffffff;
}

.breadcrumbs {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs ol {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs li:last-child::after {
  content: none;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.article-hero h1 {
  margin: 0 0 22px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.3vw, 3.4rem);
  color: #ffffff;
  line-height: 1.18;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.article-lead {
  max-width: 760px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 24px 0 28px;
  line-height: 1.6;
}

.article-hero .blog-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 18px;
}

.article-hero .button.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.article-hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 56px);
  padding-top: clamp(54px, 10vw, 72px);
}

.article-main {
  display: grid;
  gap: 48px;
}

.article-toc {
  position: sticky;
  top: 140px;
  align-self: start;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 74, 112, 0.12);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.article-toc h2 {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-section {
  margin: 0;
  display: grid;
  gap: 20px;
  scroll-margin-top: 200px;
}

.article-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--primary);
}

.article-section p,
.article-section li {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-section strong {
  color: var(--text);
  font-weight: 600;
}

.article-section ol,
.article-section ul {
  display: grid;
  gap: 14px;
  padding-left: 20px;
  margin: 0;
}

.article-section ol li,
.article-section ul li {
  padding-left: 8px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.article-cta .button.primary {
  box-shadow: var(--shadow-card);
}

.site-footer {
  background: #102335;
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(74px, 10vw, 96px) 0 36px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Уменьшен с 8px */
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px; /* Небольшой нижний отступ */
  line-height: 1.3; /* Компактнее */
  font-family: "Playfair Display", "Times New Roman", serif;
}

.footer-brand-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1px;
  line-height: 1.4; /* Уменьшен с 1.5 */
}

.footer-license {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 2px 0 0; /* Небольшой верхний отступ */
  line-height: 1.35; /* Компактнее */
}

.footer-grid > * {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Уменьшен с 16px */
  align-items: flex-start;
}

.footer-grid > div p {
  margin: 0;
  line-height: 1.5; /* Компактный line-height */
}

.footer-heading {
  margin: 0 0 10px; /* Уменьшен с 14px */
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.footer-contacts a,
.footer-links a {
  display: inline-flex;
  margin-bottom: 7px; /* Уменьшен с 10px */
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease;
  font-size: 0.98rem;
  line-height: 1.4; /* Компактнее */
}

.footer-contacts a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.footer-contacts p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5; /* Уменьшен с 1.6 */
  font-size: 0.95rem;
  margin-top: 4px; /* Небольшой отступ сверху */
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-cta {
  gap: 18px;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
}

.contact-form input::placeholder {
  color: rgba(17, 33, 47, 0.55);
}

.form-disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  margin-top: clamp(44px, 9vw, 60px);
  padding-top: clamp(28px, 5vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.64);
}

.footer-bottom p {
  margin: 0;
}

.footer-top {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-top:hover {
  color: #ffffff;
}

@media (max-width: 1320px) {
  .header-bar {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 12px;
  }

  .main-nav {
    margin: 4px 0 0;
  }
}

@media (max-width: 1180px) {
  .header-bar {
    row-gap: 10px;
  }

  .nav-menu {
    gap: clamp(12px, 1.8vw, 20px);
  }

  .nav-menu a {
    font-size: 0.92rem;
  }

  .header-bar-phone {
    padding: 6px 12px;
    font-size: 0.88rem;
  }

  .header-bar-cta {
    padding: 8px 15px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1080px) {
  .header-bar {
    grid-template-columns: auto;
    grid-template-areas:
      "brand"
      "nav"
      "actions";
    row-gap: 10px;
    justify-items: start;
  }

  .main-nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .header-ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }
  .hero-card::before {
    inset: -10px;
  }


  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-trust li {
    font-size: 0.92rem;
  }


  .about-grid,
  .guarantees-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .about-quote {
    padding: 20px;
    order: -1;
  }

  .article-body {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 36, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: 16px;
    right: 16px;
    width: min(310px, calc(100% - 32px)); /* Немного уже */
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    padding: 22px 20px; /* Компактнее */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(17, 74, 112, 0.12);
    gap: 14px; /* Уменьшен с 18px */
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease; /* Быстрее */
    z-index: 120;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  
  .nav-menu a {
    font-size: 0.98rem; /* Немного меньше */
    padding: 10px 0; /* Компактнее */
    line-height: 1.3;
  }

  .nav-menu-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px; /* Уменьшен с 12px */
    margin-top: 4px;
    padding-top: 14px; /* Уменьшен с 16px */
    border-top: 1px solid rgba(17, 74, 112, 0.12);
  }
  
  .nav-menu-cta .button {
    min-height: 48px;
    font-size: 15px;
    padding: 13px 18px;
  }

  .header-bar-actions {
    display: none;
  }

  .header-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
  }

  .main-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --container-width: calc(100% - 40px);
  }

  .header-ribbon-inner {
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .ribbon-text {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .ribbon-links {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .ribbon-divider {
    display: none;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 56px;
    height: 64px;
    border-radius: 18px;
    padding: 6px;
  }

  .hero-card::before {
    inset: -18px;
  }

  .about-highlights {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .cta-inner {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

@media (max-width: 600px) {
  :root {
    --container-width: calc(100% - 32px);
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-inner {
    gap: 32px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    margin-top: 12px;
  }

  .hero-card::before {
    inset: -14px;
  }

  .hero-card-content {
    gap: 18px;
  }

  .hero-trust {
    gap: 12px;
  }

  .hero-trust li {
    font-size: 0.96rem;
  }

  .metrics-grid,
  .audience-grid,
  .grounds-grid,
  .services-grid,
  .documents-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    text-align: center;
    align-items: center;
    padding: 24px;
  }

  .metric-label {
    max-width: 28ch;
  }

  .audience-card,
  .ground-card,
  .service-card,
  .document-card {
    padding: 24px 20px;
  }

  .service-card h3,
  .ground-card h3,
  .document-card h3 {
    font-size: 1.18rem;
  }

  .workflow-steps li {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    gap: 28px;
    margin: 0 8px; /* Дополнительный отступ от краев экрана */
  }
  
  .cta-content h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    line-height: 1.3;
    margin-bottom: 14px;
  }
  
  .cta-content p {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.96;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 8px;
  }

  .cta-actions .button {
    width: 100%;
    min-height: 58px;
    font-size: 17px;
    font-weight: 700;
    padding: 17px 26px;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
  }
  
  .cta .button.primary {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    font-weight: 700;
  }
  
  .cta .button.secondary {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    font-weight: 700;
  }

  .testimonial {
    padding: 28px;
  }
}

@media (max-width: 460px) {
  .header-ribbon {
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 2.6rem);
  }

  .hero-card::before {
    inset: -10px;
  }

  .hero-card-content {
    padding: 24px;
  }

  .hero-trust li {
    font-size: 0.92rem;
  }

  .workflow-steps li {
    gap: 18px;
  }

  .nav-menu {
    top: 12px;
    right: 12px;
    width: calc(100% - 24px);
    padding: 20px;
  }
  
  /* Дополнительные отступы для CTA на маленьких экранах */
  .cta-inner {
    padding: 36px 24px;
    margin: 0 6px;
  }
  
  .cta-content h2 {
    font-size: 1.55rem;
  }
  
  .cta-content p {
    font-size: 0.98rem;
  }
  
  .cta-actions .button {
    min-height: 56px;
    font-size: 16px;
    padding: 16px 22px;
  }
  
  /* Header компактнее на маленьких экранах */
  .header-ribbon-inner {
    padding: 5px 0;
    gap: 6px;
  }
  
  .ribbon-badge {
    padding: 2px 8px;
    font-size: 0.7rem;
  }
  
  .ribbon-hotline {
    font-size: 0.82rem;
  }
  
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  
  .brand-info h1 {
    font-size: 0.9rem;
  }
  
  .brand-tagline {
    font-size: 0.7rem;
  }
  
  .header-bar {
    padding: 8px 0;
  }
  
  .header-bar-phone,
  .header-bar-cta {
    min-height: 44px;
    font-size: 13px;
    padding: 11px 14px;
  }
  
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  
  /* Footer еще компактнее на маленьких экранах */
  .footer-brand-name {
    font-size: 1.18rem;
  }
  
  .footer-brand-tagline {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .footer-license {
    font-size: 0.78rem;
  }
  
  .footer-contacts a,
  .footer-links a {
    font-size: 0.92rem;
    margin-bottom: 5px;
  }
  
  .footer-contacts p {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: 0 -8px 40px rgba(17, 74, 112, 0.15);
  z-index: 10000;
  padding: 28px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent__content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-consent__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.cookie-consent__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__btn--primary {
  background: var(--primary);
  color: white;
}

.cookie-consent__btn--primary:hover {
  background: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cookie-consent__btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--line-strong);
}

.cookie-consent__btn--secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.cookie-consent__settings {
  max-width: 800px;
  margin: 0 auto;
}

.cookie-consent__setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cookie-consent__setting:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}

.cookie-consent__setting-info strong {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-consent__setting-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-toggle__slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
  transform: translateX(28px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 860px) {
  .cookie-consent {
    padding: 20px;
  }

  .cookie-consent__content {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1;
  }

  .cookie-consent__setting {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 460px) {
  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }

  .cookie-consent__title {
    font-size: 1.1rem;
  }

  .cookie-consent__description {
    font-size: 0.9rem;
  }
}

/* ============================================
   Модальное окно формы консультации
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-floating);
  animation: slideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consultation-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consultation-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.consultation-form .required {
  color: #e74c3c;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  padding: 14px 16px;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s ease;
  width: 100%;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.consultation-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23536173' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.consultation-form textarea {
  resize: vertical;
  min-height: 80px;
}

.consultation-form .submit-btn {
  margin-top: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.consultation-form .form-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Сообщение об успехе */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  width: 80px;
  height: 80px;
  background: #27ae60;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin: 0 auto 24px;
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px 0;
}

.form-success p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.form-success .button {
  display: inline-block;
  padding: 14px 32px;
}

/* Responsive */
@media (max-width: 640px) {
  .modal-content {
    padding: 32px 24px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .consultation-form {
    gap: 16px;
  }

  .consultation-form input,
  .consultation-form select,
  .consultation-form textarea {
    padding: 12px 14px;
    font-size: 15px;
  }

  .form-success .success-icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
  }

  .form-success h3 {
    font-size: 20px;
  }

  .form-success p {
    font-size: 14px;
  }
}

@media (max-width: 460px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    padding: 24px 20px;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 20px;
    padding-right: 30px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 28px;
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   MOBILE-FIRST ОПТИМИЗАЦИЯ
   Основной трафик с мобильных устройств
   ============================================ */

/* Улучшение тапабельности кнопок */
@media (max-width: 860px) {
  .button {
    min-height: 48px; /* Apple/Google рекомендуют минимум 48px для touch targets */
    padding: 14px 24px;
    font-size: 16px; /* Предотвращает zoom на iOS при фокусе */
  }
  
  .cta-button {
    font-size: 17px;
    font-weight: 700;
  }
}

/* Hero секция - мобильная оптимизация */
@media (max-width: 860px) {
  .hero {
    padding: 40px 0 48px;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero-benefits {
    margin: 24px 0;
  }
  
  .hero-benefits li {
    font-size: 0.95rem;
    padding: 10px 0;
  }
  
  /* Кнопки в hero - больше и удобнее */
  .hero-card-content .button {
    min-height: 56px;
    font-size: 17px;
    padding: 16px 20px;
    font-weight: 700;
  }
  
  .hero-social-buttons {
    gap: 12px;
    margin-top: 16px;
  }
  
  .hero-social-buttons a {
    min-height: 52px;
    font-size: 16px;
    padding: 14px 16px;
  }
}

/* Хедер - мобильная оптимизация */
@media (max-width: 860px) {
  .site-header {
    backdrop-filter: blur(14px);
  }
  
  /* Ribbon - однострочный компактный */
  .header-ribbon {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .header-ribbon-inner {
    padding: 6px 0;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  .ribbon-badge {
    padding: 3px 10px;
    font-size: 0.72rem;
    order: 1;
  }
  
  /* Скрываем длинный текст на мобильных */
  .ribbon-text {
    display: none;
  }
  
  .ribbon-links {
    display: flex;
    gap: 8px;
    order: 2;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  /* Email скрываем, оставляем только телефон */
  .ribbon-mail {
    display: none;
  }
  
  .ribbon-divider {
    display: none;
  }
  
  .ribbon-hotline {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* Логотип и название компактнее */
  .brand-logo {
    width: 38px; /* Немного меньше */
    height: 38px;
  }
  
  .brand-info h1 {
    font-size: 0.95rem; /* Меньше */
    line-height: 1.25;
    margin-bottom: 1px;
  }
  
  .brand-tagline {
    font-size: 0.72rem; /* Меньше */
    line-height: 1.3;
  }
  
  /* Header bar компактнее */
  .header-bar {
    padding: 10px 0; /* Уменьшен padding */
    gap: 10px;
  }
  
  /* Кнопки хедера */
  .header-bar-phone,
  .header-bar-cta {
    min-height: 46px; /* Немного меньше но все еще удобно */
    font-size: 14px;
    padding: 12px 16px;
    line-height: 1.3;
  }
  
  /* Мобильное меню компактнее */
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
  
  .menu-toggle span {
    height: 2px; /* Тоньше линии */
  }
}

/* Секции - уменьшаем паддинги на мобильных */
@media (max-width: 860px) {
  section {
    padding: 48px 0;
  }
  
  .section-heading {
    margin-bottom: 32px;
  }
  
  .section-heading h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 12px;
  }
  
  .section-heading p {
    font-size: 0.95rem;
  }
}

/* Карточки услуг - стек на мобильных */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 24px;
  }
  
  .service-card-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
}

/* Форма контактов - мобильная оптимизация */
@media (max-width: 860px) {
  .contact-form input,
  .contact-form textarea {
    min-height: 50px;
    font-size: 16px; /* Предотвращает zoom на iOS */
    padding: 14px 16px;
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
  
  .contact-form button[type="submit"] {
    min-height: 56px;
    font-size: 17px;
    font-weight: 700;
  }
}

/* Footer - компактнее на мобильных */
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
    gap: 4px; /* Меньше расстояние между строками */
  }
  
  .footer-brand-name {
    font-size: 1.25rem; /* Немного меньше */
    margin-bottom: 2px;
  }
  
  .footer-brand-tagline {
    font-size: 0.95rem; /* Чуть меньше */
    line-height: 1.35; /* Уменьшенный line-height */
    margin-bottom: 2px;
  }
  
  .footer-license {
    font-size: 0.82rem; /* Меньше */
    line-height: 1.3; /* Компактнее */
    margin-top: 2px;
  }
  
  .footer-grid > * {
    gap: 10px; /* Меньше gap между элементами */
  }
  
  .footer-heading {
    margin: 0 0 8px; /* Меньше отступ после заголовка */
    font-size: 1.08rem;
  }
  
  .footer-contacts a,
  .footer-links a {
    margin-bottom: 6px; /* Меньше отступ между ссылками */
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  .footer-contacts p {
    font-size: 0.9rem;
    line-height: 1.5; /* Компактнее */
    margin-top: 4px;
  }
  
  .footer-links {
    gap: 20px;
  }
  
  .footer-section h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }
  
  .footer-section a,
  .footer-section p {
    font-size: 0.93rem;
    line-height: 1.4;
  }
}

/* Улучшение читаемости текста */
@media (max-width: 860px) {
  body {
    font-size: 16px; /* Базовый размер 16px для читаемости */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  p {
    margin-bottom: 16px;
  }
  
  /* Контейнер с оптимальными отступами */
  .container {
    width: calc(100% - 32px); /* 16px по бокам */
    padding: 0;
  }
  
  /* Улучшение hero card на мобильных */
  .hero-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  
  .hero-card-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .hero-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .hero-card-meta {
    gap: 16px;
  }
  
  .hero-card-meta dt {
    font-size: 0.8rem;
  }
  
  .hero-card-meta dd {
    font-size: 0.9rem;
  }
}

/* Sticky кнопки для быстрого доступа (mobile-only) */
@media (max-width: 860px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;

    /* backdrop-filter: blur(2px); */

    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: slideUpSticky 0.3s ease-out;
  }
  
  @keyframes slideUpSticky {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  .mobile-sticky-cta .button {
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px;
    border-radius: var(--radius-sm);
  }
  
  /* Добавляем отступ снизу для body, чтобы контент не перекрывался */
  body.has-sticky-cta {
    padding-bottom: 84px;
  }
}

/* Оптимизация модального окна для мобильных */
@media (max-width: 860px) {
  .modal {
    padding: 0;
    align-items: flex-end; /* Модалка снизу на мобильных */
  }
  
  .modal-content {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    width: 100%;
    padding: 32px 20px 40px;
  }
  
  .consultation-form input,
  .consultation-form select,
  .consultation-form textarea {
    font-size: 16px; /* Предотвращает zoom */
    min-height: 50px;
  }
  
  .consultation-form .submit-btn {
    min-height: 54px;
    font-size: 17px;
  }
}

/* Улучшение скроллинга на iOS */
@media (max-width: 860px) {
  .modal-content,
  .nav-menu {
    -webkit-overflow-scrolling: touch;
  }
}

/* Очень маленькие экраны (<400px) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  
  .section-heading h2 {
    font-size: 1.65rem;
    line-height: 1.3;
  }
  
  .button {
    font-size: 15px;
    padding: 12px 18px;
    min-height: 46px;
  }
  
  .hero-social-buttons {
    gap: 10px;
  }
  
  .hero-social-buttons a {
    font-size: 15px;
    padding: 13px 12px;
    min-height: 48px;
  }
  
  .cta-inner {
    padding: 32px 20px;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  .cta-actions .button {
    min-height: 54px;
    font-size: 16px;
  }
  
  /* Уменьшаем отступы для экономии пространства */
  section {
    padding: 40px 0;
  }
  
  .container {
    width: calc(100% - 24px); /* 12px по бокам */
  }
}

/* Performance оптимизации */
@media (max-width: 860px) {
  /* Упрощаем градиенты и тени для производительности */
  .button.primary {
    background: var(--primary);
  }
  
  .button:hover,
  .button:focus-visible {
    transform: none; /* Убираем transform для лучшей производительности на мобильных */
  }
  
  /* Упрощаем тени */
  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .modal-content {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
}

/* Улучшение touch взаимодействия */
@media (max-width: 860px) {
  /* Увеличиваем область клика для ссылок и кнопок */
  a, button {
    -webkit-tap-highlight-color: rgba(23, 74, 112, 0.2);
    tap-highlight-color: rgba(23, 74, 112, 0.2);
  }
  
  /* Убираем задержку клика на iOS */
  a, button, input, select, textarea {
    touch-action: manipulation;
  }
  
  /* Улучшаем FAQ для мобильных */
  .faq-list {
    gap: 14px;
  }
  
  .faq-item {
    border-radius: var(--radius-md);
  }
  
  .faq-question {
    min-height: 60px;
    padding: 18px 52px 18px 22px;
    font-size: 1.08rem;
    line-height: 1.4;
    font-weight: 600;
  }
  
  .faq-question::after {
    font-size: 1.7rem;
    right: 20px;
  }
  
  .faq-answer {
    padding: 4px 22px 22px;
    font-size: 0.98rem;
    line-height: 1.65;
  }
  
  /* Улучшаем форму footer */
  .footer-cta-form input {
    min-height: 52px;
    font-size: 16px;
    padding: 14px 18px;
  }
  
  .footer-cta-form button {
    min-height: 52px;
    font-size: 16px;
  }
}

/* Ориентация landscape на мобильных */
@media (max-width: 860px) and (orientation: landscape) {
  .hero {
    padding: 20px 0 24px;
  }
  
  section {
    padding: 28px 0;
  }
  
  .modal-content {
    max-height: 95vh;
    padding: 20px 16px;
  }
  
  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .hero-benefits {
    margin: 14px 0;
  }
  
  .hero-card {
    padding: 20px 16px;
  }
  
  .cta-inner {
    padding: 28px 20px;
  }
  
  .cta-actions .button {
    min-height: 50px;
    padding: 14px 20px;
  }
}
