:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --dark: #0f172a;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-light: #f0fdf9;
  --border: #e5e7eb;
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1120px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ru { display: none !important; }
html[lang="ru"] .en { display: none !important; }
html[lang="ru"] .ru { display: inline !important; }
html[lang="ru"] .hero-bar-addr .ru,
html[lang="ru"] .cta-link--static span.ru { display: inline !important; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-light); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Header ── */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-img { height: 32px; width: auto; display: block; }
.footer-logo .logo-img { height: 28px; }
.footer-logo .logo-text { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.nav-cta { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.1rem;
}

.lang-sep { color: var(--border); font-size: 0.8rem; user-select: none; }

.lang-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--accent); background: var(--accent-light); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.burger span:last-child { width: 65%; margin-left: auto; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(92vh - 66px);
  display: flex;
  flex-direction: column;
  margin-top: 66px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(8,16,28,0.82) 0%,
    rgba(8,16,28,0.6) 50%,
    rgba(8,16,28,0.28) 100%
  );
}

.hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 5rem;
}

.hero-content { max-width: 580px; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 1.1rem;
}

.hero-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: clamp(0.975rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  margin: 0 0 2.25rem;
  max-width: 50ch;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-bar {
  position: relative;
  z-index: 1;
  background: rgba(15,118,110,0.92);
  backdrop-filter: blur(6px);
  padding: 0.9rem 0;
}

.hero-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}

.hero-bar-item {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.hero-bar-item:hover { opacity: 0.75; }
.hero-bar-addr { opacity: 0.8; cursor: default; }
.hero-bar-addr:hover { opacity: 0.8; }

/* ── About ── */
.about {
  padding: 6rem 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: var(--text);
}

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

.about-text { transition-delay: 0s; }
.about-visual { transition-delay: 0.1s; }

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ── Process ── */
.process {
  padding: 6rem 0;
  background: var(--dark);
}

.process .tag { color: var(--accent-hover); }

.process .section-head h2 {
  color: #fff;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  counter-reset: steps;
}

.step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 2rem;
}

.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: 2rem; }

.step:nth-child(2) { transition-delay: 0.08s; }
.step:nth-child(3) { transition-delay: 0.16s; }
.step:nth-child(4) { transition-delay: 0.24s; }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-hover);
  margin-bottom: 1rem;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ── Stack ── */
.stack {
  padding: 6rem 0;
  background: var(--bg);
}

.stack .section-head {
  margin-bottom: 3rem;
}

.stack .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.stack-card:hover {
  background: var(--dark);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.stack-card:hover .stack-icon {
  color: var(--accent-hover);
}

.stack-card:hover h4 {
  color: #fff;
}

.stack-card:hover p {
  color: rgba(255, 255, 255, 0.55);
}

.stack-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.stack-icon svg {
  width: 100%;
  height: 100%;
}

.stack-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  transition: color 0.4s ease;
}

.stack-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  transition: color 0.4s ease;
}

.stack-card:nth-child(2) { transition-delay: 0.06s; }
.stack-card:nth-child(3) { transition-delay: 0.12s; }
.stack-card:nth-child(4) { transition-delay: 0.18s; }
.stack-card:nth-child(5) { transition-delay: 0.24s; }
.stack-card:nth-child(6) { transition-delay: 0.30s; }

@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stack { padding: 4rem 0; }
  .stack-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── CTA ── */
.cta {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.cta-copy p { color: var(--muted); margin: 0 0 1.5rem; font-size: 1rem; }

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.cta-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.cta-link:hover { color: var(--accent); }
.cta-link--static { color: var(--muted); cursor: default; font-size: 0.9rem; }
.cta-link--static:hover { color: var(--muted); }
.cta-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(16px);
  transition: transform 0.25s;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--border); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 2rem;
}

.modal-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.modal-contact-link:not(.modal-contact-link--static):hover { color: var(--accent); }
.modal-contact-link--static { cursor: default; }

.modal-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-contact-icon svg { width: 18px; height: 18px; }

.modal-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.15rem;
}

.modal-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-contact-text > :last-child {
  font-size: 0.95rem;
  font-weight: 500;
}

.modal-map {
  background: var(--bg);
  min-height: 420px;
}

.modal-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-map { min-height: 220px; }
  .modal-map iframe { min-height: 220px; }
  .modal-info { padding: 2rem 1.5rem 1.5rem; }
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .logo-text { color: var(--text); font-size: 1.1rem; }
.footer .logo-img { filter: none; }

.footer-nav {
  display: flex;
  gap: 1.75rem;
}
.footer-nav a {
  text-decoration: none;
  font-size: 0.825rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; }
  .step:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { max-height: 360px; }
  .srow { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .srow--reverse .srow-media { order: 0; }
  .srow-media { max-height: 280px; }
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 720px) {
  .hero-bar-inner { flex-direction: column; gap: 0.35rem; text-align: center; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset-inline: 0;
    top: 66px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 0.85rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    z-index: 190;
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .burger { display: flex; }

  .about { padding: 4rem 0; }
  .services { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .srow { padding: 2.5rem 0; }
  .process { padding: 4rem 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-right: 0; }
  .step:first-child { border-top: none; }
  .step:nth-child(2),
  .step:nth-child(3),
  .step:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; }
  .cta { padding: 4rem 0; }
}
