:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --text: #16181b;
  --muted: #5f6368;
  --line: #e4e4e0;
  --accent: #e8590c;
  --accent-dark: #c2470a;
  --radius: 14px;
  --container: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-decoration: none; }
.logo-mark { width: 22px; height: 22px; background: var(--accent); border-radius: 5px; transform: rotate(45deg) scale(.82); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: .85rem; font-weight: 600; }
.lang > * { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang > span { background: var(--text); color: #fff; }
.lang > a:hover { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 7px; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.1rem; }
  .nav .lang { align-self: flex-start; margin: 16px 0; }
}

/* Первый экран */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2em; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 720px; }
.hero h1 { max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 64px 0 0; padding-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.stats dt { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.stats dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* Секции */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .btn { margin-top: 12px; }
.page-head-row { display: flex; align-items: center; gap: 16px; }
.page-head-row .icon { width: 52px; height: 52px; color: var(--accent); flex: none; margin-bottom: .5em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Карточки услуг */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.service-card .num { position: absolute; top: 24px; right: 28px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-card .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 28px; }
.service-card p { flex: 1; }
.service-card .more { font-weight: 600; color: var(--accent); font-size: .95rem; }

/* Проекты */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.project { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project-img { aspect-ratio: 400 / 260; overflow: hidden; }
.project-img svg, .project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px 22px 24px; }
.project-body p { margin-bottom: 12px; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font: inherit; font-size: .92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; margin-top: 32px; }
.features > div { border-top: 2px solid var(--text); padding-top: 20px; }

/* Страница услуги */
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ''; position: absolute; left: 4px; top: 23px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; font-weight: 600; }
.steps li::before { content: '0' counter(s); display: block; color: var(--accent); font-size: .9rem; margin-bottom: 24px; }
.other-services { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.other-services a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.other-services a:hover { border-color: var(--text); }
.other-services .icon { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--text); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: clamp(32px, 5vw, 56px); }
.cta .muted { color: #b5b8bd; margin: 0; }
.cta h2 { margin-bottom: .3em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: #4a4d52; }
.cta .btn-ghost:hover { border-color: #fff; }

/* Контакты */
.contacts { display: grid; gap: 0; align-content: start; }
.contacts > div { display: flex; flex-direction: column; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contacts > div:first-child { border-top: 1px solid var(--line); }
.contacts span.muted { font-size: .85rem; }
.contacts a, .contacts span:not(.muted) { font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.contacts a:hover { color: var(--accent); }
.form { background: var(--bg-alt); border-radius: calc(var(--radius) * 1.5); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form h2 { font-size: 1.6rem; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .btn { justify-self: start; }
.form p { margin: 0; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .logo { margin-bottom: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
