﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #fff; color-scheme: light; scroll-behavior: smooth; }
html.dark { background: #111113; color-scheme: dark; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
html.dark body { color: #e4e4e7; background: #111113; }

:root {
  --red: #dc2626;
  --red-dim: #b91c1c;
  --border: #e4e4e7;
  --muted: #71717a;
  --bg: #ffffff;
  --bg-subtle: #f9f9f9;
  --surface: #f4f4f5;
  --nav-bg: rgba(255,255,255,0.92);
  --footer-bg: #0f0f11;
  --footer-text: #a1a1aa;
  --footer-border: #27272a;
}
html.dark {
  --border: #27272a;
  --muted: #71717a;
  --bg: #111113;
  --bg-subtle: #18181b;
  --surface: #1e1e21;
  --nav-bg: rgba(17,17,19,0.92);
  --footer-bg: #0a0a0c;
  --footer-text: #52525b;
  --footer-border: #1e1e21;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
p { color: var(--muted); font-size: 1rem; line-height: 1.72; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-top: 1px solid var(--border); }

.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo .logo-img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
  text-decoration: none;
  color: #3f3f46;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
html.dark .nav-link { color: #a1a1aa; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-dim); }

.mobile-menu-trigger {
  display: none;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #3f3f46;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
html.dark .mobile-menu-trigger { color: #a1a1aa; }
.mobile-menu-trigger:hover { color: var(--red); }

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background: #0c0c0e;
  display: flex;
  flex-direction: column;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
}
.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-shrink: 0;
}
.mobile-menu-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.mobile-menu-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover { background: rgba(220,38,38,0.15); color: var(--red); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.mobile-menu-link {
  text-decoration: none;
  color: #a1a1aa;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
  display: block;
}
.mobile-menu-link:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu-link:hover { color: #fff; }
.mobile-menu-link.active { color: var(--red); }

.mobile-menu-bottom {
  flex-shrink: 0;
  padding-top: 32px;
}
.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  margin-bottom: 28px;
}
.mobile-menu-button:hover { background: var(--red-dim); }

.mobile-menu-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
}
.mobile-menu-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 12px;
}
.mobile-menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu-contact-row {
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.5;
}
.mobile-menu-contact-row a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu-contact-row a:hover { color: #fff; }

.page { margin-top: 60px; }

.hero-section {
  position: relative;
  height: clamp(620px, 92vh, 980px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.78) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 72px 0;
}
.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 8px;
  margin-bottom: 14px;
}
.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 540px; margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-dim); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-stats { display: inline-flex; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat strong { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.hero-stat span { font-size: 0.76rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat-divider { width: 1px; height: 52px; background: rgba(255,255,255,0.2); align-self: center; }

.section-head { margin-bottom: 40px; max-width: 520px; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title { color: #18181b; margin-bottom: 10px; }
html.dark .section-title { color: #fafafa; }
.section-desc { font-size: 0.975rem; color: var(--muted); line-height: 1.65; }

.services-section { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  align-items: stretch;
}
.service-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-item:hover { background: var(--bg-subtle); }
.service-item.featured .service-num { color: var(--red); }
.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.service-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 8px;
}
html.dark .service-item h3 { color: #e4e4e7; }
.service-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: auto;
}

.about-section { background: var(--bg-subtle); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 14px; }
.about-text p { margin-bottom: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--red); text-decoration: none;
  margin-top: auto;
}
.text-link:hover { text-decoration: underline; }
.about-values {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.about-value {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.about-value h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #18181b;
}
.about-value-icon {
  flex: 0 0 22px;
  color: var(--red);
}
.about-value p {
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: right;
}
html.dark .about-value h3 { color: #e4e4e7; }
html.dark .about-value p { color: #a1a1aa; }
@media (max-width: 480px) {
  .about-value { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .about-value h3 { font-size: 1.125rem; }
  .about-value p { padding-left: 36px; text-align: left; }
}
.value-box {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 3px;
}
.value-box strong { font-size: 0.875rem; font-weight: 600; color: #18181b; }
html.dark .value-box strong { color: #e4e4e7; }
.value-box span { font-size: 0.78rem; color: var(--muted); }

.portfolio-section { background: var(--bg); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  align-items: stretch;
}
.portfolio-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background 0.2s;
}
.portfolio-card:hover { background: var(--bg-subtle); }
.portfolio-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.portfolio-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: saturate(0.85);
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.03); }
.portfolio-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.portfolio-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.portfolio-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}
.portfolio-title {
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
}
.portfolio-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}
.location-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted);
  opacity: 0.7;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}
html.dark .portfolio-title { color: #e4e4e7; }
.portfolio-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: auto;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.portfolio-card:hover .portfolio-link { opacity: 1; }


.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }


.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.footer-logo { height: 24px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; filter: brightness(0) invert(0.32); display: block; }
.footer-tagline { font-size: 0.7rem; color: var(--footer-text); }

.footer-nav-inline { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.footer-nav-inline a {
  font-size: 0.75rem;
  color: var(--footer-text);
  text-decoration: none;
  padding: 0 12px;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav-inline a:first-child { padding-left: 0; }
.footer-nav-inline a:last-child { padding-right: 0; }
.footer-nav-inline a:not(:last-child) { border-right: 1px solid var(--footer-border); }
.footer-nav-inline a:hover { color: #71717a; }

.footer-contacts-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}
.fci {
  font-size: 0.72rem;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  white-space: nowrap;
}
.fci span { color: #52525b; font-weight: 500; }
.fci a { color: var(--footer-text); text-decoration: none; transition: color 0.2s; }
.fci a:hover { color: #71717a; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom > span { font-size: 0.7rem; color: #3f3f46; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.7rem; color: #3f3f46; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #71717a; }

.page-hero {
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #18181b;
  margin-bottom: 12px;
}
html.dark .page-hero-title { color: #fafafa; }
.page-hero-sub { font-size: 0.975rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; line-height: 1.65; }
.page-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.page-hero .btn-ghost, .page-hero-actions .btn-ghost {
  border-color: var(--border);
  color: #3f3f46;
}
html.dark .page-hero .btn-ghost, html.dark .page-hero-actions .btn-ghost {
  border-color: var(--border);
  color: #a1a1aa;
}
.page-hero .btn-ghost:hover, .page-hero-actions .btn-ghost:hover { border-color: var(--red); color: var(--red); }


.stats-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}
.stats-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  gap: 3px;
}
.stats-bar-item strong { font-size: 1.4rem; font-weight: 700; color: #18181b; line-height: 1; }
html.dark .stats-bar-item strong { color: #fafafa; }
.stats-bar-item span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stats-bar-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

.about-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-full-text .section-label { margin-bottom: 10px; }
.about-full-text h2 { margin-bottom: 20px; }
.about-full-text p { margin-bottom: 16px; font-size: 0.975rem; line-height: 1.72; }
.about-full-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 80px; }
.about-full-values .value-box { flex-direction: column; }

.timeline-header {
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.timeline-header .section-label { margin-bottom: 10px; }
.timeline-header h2 { margin-bottom: 0; }

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e4e4e7;
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  width: 50%;
  position: relative;
}
.timeline-item.left-item {
  justify-content: flex-end;
  margin-left: 0;
  padding-right: 50px;
}
.timeline-item.right-item {
  margin-left: 50%;
  padding-left: 50px;
}
.timeline-badge {
  position: absolute;
  top: 30px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  z-index: 2;
  flex-shrink: 0;
}
.timeline-item.left-item .timeline-badge {
  right: -6px;
}
.timeline-item.right-item .timeline-badge {
  left: -6px;
}
.timeline-panel {
  padding: 12px 0;
}
.timeline-item.left-item .timeline-panel {
  text-align: right;
  padding-right: 0;
}
.timeline-item.right-item .timeline-panel {
  text-align: left;
  padding-left: 0;
}
.timeline-year {
  font-weight: 700;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 5px;
}
.timeline-panel h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 5px;
}
html.dark .timeline-panel h3 {
  color: #e4e4e7;
}
.timeline-panel p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    justify-content: flex-start !important;
    padding-left: 40px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
  }
  .timeline-item.left-item,
  .timeline-item.right-item {
    margin-left: 0 !important;
    padding-left: 40px !important;
    padding-right: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .timeline-badge {
    left: 14px !important;
    right: auto !important;
  }
}

.team-grid-about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.team-card-about {
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.team-card-head h3 { font-size: 0.95rem; font-weight: 600; color: #18181b; margin-bottom: 2px; }
html.dark .team-card-head h3 { color: #e4e4e7; }
.team-role-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 6px;
  white-space: nowrap;
}
.team-card-contacts { display: flex; flex-direction: column; gap: 5px; }
.team-card-contacts a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.team-card-contacts a:hover { color: var(--red); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  transition: background 0.2s;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.svc-card:hover { background: var(--bg-subtle); }
.svc-img-wrap { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.svc-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-num { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--red); }
.svc-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 8px;
}
html.dark .svc-title { color: #e4e4e7; }
.svc-desc {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 0; margin-bottom: auto; }
.svc-list li { font-size: 0.875rem; color: var(--muted); padding-left: 14px; position: relative; line-height: 1.55; }
.svc-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); font-size: 0.7rem; }

.proces-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
  gap: 30px;
}
.proces-line {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.6), rgba(220, 38, 38, 0.1));
  z-index: 1;
}
html.dark .proces-line {
  background: linear-gradient(to right, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.5), rgba(220, 38, 38, 0.15));
}
.proces-step {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: left;
}
.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--bg-subtle);
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}
html.dark .step-number {
  background-color: var(--bg-subtle);
}
.proces-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #18181b;
  letter-spacing: -0.01em;
  min-height: 3.5rem;
  display: flex;
  align-items: flex-end;
}
html.dark .proces-step h3 {
  color: #e4e4e7;
}
.proces-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}

.pricing-table-wrap { border: 1px solid var(--border); overflow: hidden; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.pricing-table thead tr { border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.pricing-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pricing-table td { padding: 12px 16px; color: #3f3f46; border-bottom: 1px solid var(--border); }
html.dark .pricing-table td { color: #a1a1aa; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--bg-subtle); }
.pricing-table td:nth-child(2) { font-weight: 600; color: #18181b; white-space: nowrap; }
html.dark .pricing-table td:nth-child(2) { color: #e4e4e7; }
.pricing-table td:nth-child(3) { color: var(--muted); font-size: 0.75rem; }
.pricing-note-text { margin-top: 14px; font-size: 0.75rem; color: var(--muted); font-style: italic; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info-col { display: flex; flex-direction: column; gap: 28px; }

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  width: fit-content;
  color: var(--muted);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #71717a;
}
.contact-status-badge.open { border-color: #16a34a; color: #16a34a; }
.contact-status-badge.open .status-dot { background: #16a34a; }
.contact-status-badge.closed .status-dot { background: var(--muted); }
html.dark .contact-status-badge.open { border-color: #15803d; color: #4ade80; }
html.dark .contact-status-badge.open .status-dot { background: #4ade80; }

.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-block p { font-size: 0.925rem; color: #3f3f46; line-height: 1.7; }
html.dark .contact-block p { color: #a1a1aa; }
.contact-block p strong { color: #18181b; font-weight: 600; }
html.dark .contact-block p strong { color: #e4e4e7; }

.contact-team-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.contact-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.contact-team-info { display: flex; flex-direction: column; gap: 1px; }
.contact-team-info strong { font-size: 0.82rem; font-weight: 600; color: #18181b; }
html.dark .contact-team-info strong { color: #e4e4e7; }
.contact-team-info span { font-size: 0.72rem; color: var(--muted); }
.contact-team-links { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.contact-team-links a { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.contact-team-links a:hover { color: var(--red); }

.contact-form-col { display: flex; flex-direction: column; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.925rem;
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: 1px solid var(--border);
  color: #18181b;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
html.dark .form-field input,
html.dark .form-field select,
html.dark .form-field textarea { color: #e4e4e7; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a1a1aa; }
html.dark .form-field input::placeholder,
html.dark .form-field textarea::placeholder { color: #52525b; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  align-self: flex-start;
  padding: 11px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--red-dim); }
.custom-dropdown {
  position: relative;
  display: block;
}
.custom-dropdown-trigger {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.925rem;
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: 1px solid var(--border);
  color: #18181b;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
html.dark .custom-dropdown-trigger { color: #e4e4e7; }
.custom-dropdown-trigger:hover {
  border-color: var(--red);
}
.custom-dropdown-trigger:focus-visible {
  border-color: var(--red);
}
.custom-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--red);
}
.trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trigger-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}
html.dark .custom-dropdown-menu {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--border);
}
.custom-dropdown-menu.open {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}
.dropdown-option {
  padding: 11px 14px;
  font-size: 0.925rem;
  color: #3f3f46;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark .dropdown-option { color: #a1a1aa; }
.dropdown-option:hover {
  background-color: var(--red);
  color: #fff;
}
.dropdown-option.selected {
  background-color: rgba(220, 38, 38, 0.05);
  color: var(--red);
  font-weight: 500;
}
html.dark .dropdown-option.selected {
  background-color: rgba(220, 38, 38, 0.15);
}
.form-success-msg {
  padding: 16px 20px;
  border: 1px solid #16a34a;
  color: #16a34a;
  font-size: 0.85rem;
}
html.dark .form-success-msg { border-color: #15803d; color: #4ade80; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-full-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .proces-timeline { flex-direction: column; gap: 40px; }
  .proces-line { left: 30px; top: 0; bottom: 0; width: 2px; height: auto; }
  .footer-main { flex-wrap: wrap; gap: 20px; }
  .footer-contacts-block { text-align: left; }
  .fci { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .mobile-menu-trigger { display: flex; }
  .hero-title { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
  .hero-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(8px, 2.4vw, 16px);
    width: 100%;
    max-width: 440px;
    padding-top: 20px;
  }
  .hero-stat { min-width: 0; gap: 6px; }
  .hero-stat strong { font-size: clamp(1.5rem, 6vw, 1.875rem); }
  .hero-stat span {
    font-size: 0.6875rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .hero-stat-divider { height: auto; align-self: stretch; margin: 2px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .proces-timeline { flex-direction: column; gap: 40px; }
  .proces-line { left: 30px; top: 0; bottom: 0; width: 2px; height: auto; }
  .proces-step { display: flex; flex-direction: column; padding-left: 80px; }
  .step-number { position: absolute; left: 0; top: 0; }
  .team-grid-about { grid-template-columns: 1fr; }
  .about-full-values { grid-template-columns: 1fr; }
  .stats-bar-inner { flex-wrap: wrap; }
  .stats-bar-item { flex: 1 1 50%; }
  .stats-bar-divider { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
  .footer-nav-inline a { padding: 0 10px; }
  .footer-contacts-block { text-align: left; }
  .fci { justify-content: flex-start; }
}

.placeholder-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--surface) 100%);
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.placeholder-foto-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 4px;
}
.placeholder-foto-text {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 180px;
}
.placeholder-foto-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.service-item.bonus-service {
  background: var(--bg-subtle);
  border-left: 2px solid var(--red);
}
html.dark .service-item.bonus-service {
  background: rgba(220,38,38,0.04);
}

.reviews-section {
  text-align: center;
}
.reviews-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.reference-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  margin: 0;
}

.slider-arrow::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.slider-arrow.prev-arrow::before {
  transform: rotate(-135deg) translateX(2px);
}

.slider-arrow.next-arrow::before {
  transform: rotate(45deg) translateX(-2px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.reference-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow.prev-arrow {
  left: 16px;
}

.slider-arrow.next-arrow {
  right: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reference-slider:hover .slider-dots {
  opacity: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.4s ease;
  border: none;
  padding: 0;
  display: block;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.15);
}

.reference-slider.single-slide .slider-arrow,
.reference-slider.single-slide .slider-dots {
  display: none;
}

@media (max-width: 768px) {
  .slider-arrow {
    opacity: 0.7;
  }

  .reference-slider:hover .slider-arrow {
    opacity: 1;
  }

  .slider-dots {
    opacity: 0.7;
  }

  .reference-slider:hover .slider-dots {
    opacity: 1;
  }
}
