:root {
  --bg: #060608;
  --surface: #0c0c0f;
  --surface-elevated: #121218;
  --border: #1a1a20;
  --border-light: #25252e;
  --text: #e8e8ec;
  --text-muted: #8888a0;
  --text-soft: #6a6a80;
  --accent: #4f8cff;
  --accent-hover: #3b7af5;
  --accent-dim: rgba(79, 140, 255, 0.12);
  --accent-line: rgba(79, 140, 255, 0.4);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --width: 820px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.container-wide {
  max-width: 1100px;
}

/* Section label above titles */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 36px;
}

/* Section reveal on scroll */
.section-reveal .section-label,
.section-reveal .section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-reveal.in-view .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.section-reveal.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.section-reveal .about-intro,
.section-reveal .about-card,
.section-reveal .who-item,
.section-reveal .service-card,
.section-reveal .process-step,
.section-reveal .advantage-item,
.section-reveal .faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section-reveal.in-view .about-intro { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section-reveal.in-view .about-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.section-reveal.in-view .about-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.section-reveal.in-view .who-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section-reveal.in-view .who-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
.section-reveal.in-view .who-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }
.section-reveal.in-view .service-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section-reveal.in-view .service-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
.section-reveal.in-view .service-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }
.section-reveal.in-view .process-step { opacity: 1; transform: translateY(0); }
.section-reveal.in-view .process-step:nth-child(1) { transition-delay: 0.1s; }
.section-reveal.in-view .process-step:nth-child(2) { transition-delay: 0.18s; }
.section-reveal.in-view .process-step:nth-child(3) { transition-delay: 0.26s; }
.section-reveal.in-view .process-step:nth-child(4) { transition-delay: 0.34s; }
.section-reveal.in-view .process-step:nth-child(5) { transition-delay: 0.42s; }
.section-reveal.in-view .advantage-item { opacity: 1; transform: translateY(0); }
.section-reveal.in-view .advantage-item:nth-child(1) { transition-delay: 0.1s; }
.section-reveal.in-view .advantage-item:nth-child(2) { transition-delay: 0.18s; }
.section-reveal.in-view .advantage-item:nth-child(3) { transition-delay: 0.26s; }
.section-reveal.in-view .advantage-item:nth-child(4) { transition-delay: 0.34s; }
.section-reveal.in-view .faq-item { opacity: 1; transform: translateY(0); }
.section-reveal.in-view .faq-item:nth-child(1) { transition-delay: 0.08s; }
.section-reveal.in-view .faq-item:nth-child(2) { transition-delay: 0.14s; }
.section-reveal.in-view .faq-item:nth-child(3) { transition-delay: 0.2s; }
.section-reveal.in-view .faq-item:nth-child(4) { transition-delay: 0.26s; }
.section-reveal.in-view .faq-item:nth-child(5) { transition-delay: 0.32s; }
.section-reveal.in-view .faq-item:nth-child(6) { transition-delay: 0.38s; }

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle-label:hover span,
.nav-toggle:focus-visible + .nav-toggle-label span {
  background: var(--text);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.logo:hover {
  letter-spacing: 0.01em;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, border-color 0.25s ease, letter-spacing 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(79, 140, 255, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(79, 140, 255, 0.05), transparent);
  pointer-events: none;
}

.hero .container.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex-shrink: 0;
  width: 36%;
  max-width: 340px;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: fadeIn 0.8s ease-out 0.2s both;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-img-wrap:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

.hero-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 700px;
  transition: letter-spacing 0.3s ease;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.stat:hover {
  background: var(--accent-dim);
  border-color: rgba(79, 140, 255, 0.2);
  transform: translateY(-1px);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  transition: letter-spacing 0.25s ease, color 0.2s ease;
}

.stat:hover .stat-value {
  letter-spacing: -0.01em;
}

.stat-value.stat-long {
  font-size: 1.05rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.4;
}

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

/* Image blocks with overlay */
.section-image {
  padding: 0 0 56px;
}

.section-image .container-wide {
  padding: 0 28px;
}

.img-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.img-block:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.img-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-block-tall {
  max-height: 320px;
}

.img-block-tall img {
  max-height: 320px;
  width: 100%;
  object-fit: cover;
}

.img-block-sm {
  max-height: 260px;
}

.img-block-sm img {
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}

.img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.4) 100%);
  color: #fff;
}

.img-block:not([data-animate]) .img-overlay {
  animation: fadeInUp 0.7s ease-out both;
}

.img-block[data-animate] .img-overlay {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.img-block[data-animate].in-view .img-overlay {
  opacity: 1;
  transform: translateY(0);
}

.img-overlay-bottom {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.img-overlay-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.img-overlay-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.img-overlay-desc {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.img-block-sm .img-overlay-title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}


.process-visual {
  margin-bottom: 36px;
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta:hover svg {
  transform: translate(2px, -2px);
}

.cta-icon-telegram {
  margin-left: 2px;
}

.cta:hover .cta-icon-telegram {
  transform: scale(1.08);
}

.cta-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.25);
}

.cta-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(79, 140, 255, 0.35);
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}

.cta-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.cta-ghost {
  color: var(--text-muted);
  padding: 16px 22px;
  font-weight: 500;
}

.cta-ghost:hover {
  color: var(--text);
}

.cta-large {
  padding: 18px 32px;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

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

/* About */
.about-intro {
  margin-bottom: 32px;
}

.about-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.about-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
}

.about-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Who */
.who-list {
  list-style: none;
}

.who-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

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

.who-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.who-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.who-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Services */
.services-list {
  list-style: none;
}

.service-card {
  padding: 32px;
  margin-bottom: 20px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(79, 140, 255, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(79, 140, 255, 0.1);
  transform: translateY(-3px);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Process */
.process-list {
  list-style: none;
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50%;
}
.process-step-num::before {
  content: counter(step);
}

.process-step h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Advantages */
.advantages-list {
  list-style: none;
}

.advantage-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.advantage-icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  display: block;
  background: var(--accent);
  border-radius: 2px;
}

.advantage-item strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.advantage-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.faq-item dt {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item dd {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-left: 0;
}

/* Steps (how to apply) */
.steps-list {
  margin-bottom: 36px;
  padding-left: 24px;
}

.steps-list li {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* CTA section */
.cta-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-section-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, rgba(79, 140, 255, 0.14), rgba(79, 140, 255, 0.04) 60%, transparent 80%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent 40%);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 16px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-reveal .section-label,
  .section-reveal .section-title,
  .section-reveal .about-intro,
  .section-reveal .about-card,
  .section-reveal .who-item,
  .section-reveal .service-card,
  .section-reveal .process-step,
  .section-reveal .advantage-item,
  .section-reveal .faq-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Responsive: планшеты и десктоп ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 96px 0 88px;
  }
  .hero .container.hero-inner {
    gap: 40px;
  }
  .hero-visual {
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
  }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-toggle:checked ~ .nav {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    min-height: 48px;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 12px;
  }
  .nav a:hover {
    border-left-color: var(--accent);
  }
  .header-inner {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    margin-bottom: 32px;
  }
  .cta-section {
    padding: 64px 0;
  }
  .footer {
    padding: 32px 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}

/* ========== Планшет портрет и крупный телефон ========== */
@media (max-width: 700px) {
  .container {
    padding: 0 20px;
  }
  .container-wide {
    padding: 0 20px;
  }
  .hero {
    padding: 80px 0 64px;
  }
  .hero .container.hero-inner {
    flex-direction: column;
    gap: 28px;
  }
  .hero-visual {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    order: -1;
  }
  .hero-img-wrap img {
    max-height: 220px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .hero-stats {
    gap: 16px;
    padding: 20px 0;
  }
  .stat {
    padding: 12px 14px;
  }
  .stat-value.stat-long {
    font-size: 0.98rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .cta {
    justify-content: center;
    min-height: 48px;
  }
  .img-block-tall {
    max-height: 240px;
  }
  .img-block-tall img {
    max-height: 240px;
  }
  .img-block-sm {
    max-height: 220px;
  }
  .img-block-sm img {
    max-height: 220px;
  }
  .img-overlay {
    padding: 24px 20px;
  }
  .img-overlay-bottom {
    padding: 20px;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    margin-bottom: 28px;
    font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  }
  .about-card,
  .service-card {
    padding: 24px;
  }
  .who-item,
  .process-step {
    flex-direction: column;
    gap: 16px;
    padding: 22px 0;
  }
  .who-num,
  .process-step-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .cta,
  .cta-primary,
  .cta-secondary {
    min-height: 48px;
    padding: 14px 22px;
  }
  .cta-large {
    min-height: 52px;
    padding: 16px 28px;
  }
}

/* ========== Телефон ========== */
@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }
  .container-wide {
    padding: 0 18px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .stat {
    padding: 14px 16px;
  }
  .section {
    padding: 44px 0;
  }
  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
  .about-card,
  .service-card {
    padding: 20px 18px;
  }
  .steps-list {
    padding-left: 20px;
  }
  .cta-section-title {
    font-size: 1.4rem;
  }
  .cta-section-desc {
    font-size: 0.98rem;
  }
}

/* ========== Небольшой телефон ========== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .container-wide {
    padding: 0 16px;
  }
  .header {
    padding: 14px 0;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-desc {
    font-size: 0.98rem;
  }
  .hero-label {
    font-size: 0.65rem;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    margin-bottom: 24px;
    font-size: 1.3rem;
  }
  .about-intro p {
    font-size: 0.98rem;
  }
  .about-card h3,
  .service-card h3 {
    font-size: 1.05rem;
  }
  .about-card p,
  .service-card p {
    font-size: 0.92rem;
  }
  .img-block-tall {
    max-height: 200px;
  }
  .img-block-tall img {
    max-height: 200px;
  }
  .img-block-sm {
    max-height: 180px;
  }
  .img-block-sm img {
    max-height: 180px;
  }
  .img-overlay-title {
    font-size: 1.2rem;
  }
  .cta-section {
    padding: 56px 0;
  }
  .footer-inner {
    gap: 8px;
  }
  .footer-text {
    font-size: 0.82rem;
  }
}

/* ========== Очень узкий экран ========== */
@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }
  .container-wide {
    padding: 0 14px;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .hero-stats {
    padding: 16px 0;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .stat-value.stat-long {
    font-size: 0.9rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .cta-section-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }
  .logo-text {
    font-size: 0.88rem;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-actions .cta {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
  .section-title {
    font-size: 1.15rem;
  }
}
