:root {
  --red: #d0342c;
  --red-dark: #a8261f;
  --red-deep: #8e1f1a;
  --ink: #23262b;
  --gray: #6b7076;
  --line: #e7e7ea;
  --bg-soft: #f7f6f5;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(35, 38, 43, .08);
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: var(--red); text-decoration: none; transition: color .22s ease, background-color .22s ease, border-color .22s ease; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--gray);
  max-width: 720px;
  margin-bottom: 36px;
}

.red-bar { width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 18px; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { border: 2px solid var(--red); color: var(--red); }
.btn-dark:hover { background: var(--red); color: #fff; }

.topbar { background: var(--ink); color: #d9dcdf; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span b { color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(35,38,43,.09); }
.header-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo img { height: 62px; width: auto; }
.nav-toggle-input { display: none; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.nav a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.nav a:hover, .nav .active > a { color: var(--red); text-decoration: none; background: #fdf1f0; }
.has-sub { position: relative; }
.nav ul.sub {
  position: absolute; top: 100%; left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px;
  flex-direction: column; gap: 2px !important;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}
.has-sub:hover ul.sub {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
  transition: opacity .28s ease, transform .28s ease;
}
.sub a { font-weight: 500 !important; white-space: nowrap; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; background: var(--ink); transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: .2s; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(142,31,26,.94) 8%, rgba(208,52,44,.9) 55%, rgba(168,38,31,.88) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 22px, transparent 22px 44px);
  color: #fff;
}
.hero-in { padding: 84px 0 92px; max-width: 800px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; margin: 22px 0 16px; }
.hero p { font-size: clamp(16px, 2vw, 20px); opacity: .95; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 46px; }
.fact b { display: block; font-size: 30px; line-height: 1.1; }
.fact span { font-size: 14px; opacity: .85; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #f0cfcd; }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { color: var(--gray); font-size: 15px; flex-grow: 1; }
.card .more { font-weight: 700; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 12px; background: #fdf1f0;
  display: grid; place-items: center; color: var(--red);
}

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item { background: #fff; border-radius: 14px; padding: 24px; border: 1px solid var(--line); }
.adv-item b { display: block; margin-bottom: 6px; font-size: 17px; }
.adv-item p { color: var(--gray); font-size: 15px; }
.adv-item .icon-badge { margin-bottom: 14px; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gallery figure { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 9 / 14; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 24px 22px 20px 68px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.step b { display: block; margin-bottom: 4px; }
.step p { color: var(--gray); font-size: 15px; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.about-text p + p { margin-top: 12px; }
.about-text ul { margin: 14px 0 0 18px; }
.about-text li + li { margin-top: 6px; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.number { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 20px; }
.number b { font-size: 30px; display: block; line-height: 1.1; color: var(--red); }
.number span { color: var(--gray); font-size: 14px; }

.cta {
  background:
    linear-gradient(100deg, rgba(142,31,26,.95), rgba(208,52,44,.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 22px, transparent 22px 44px);
  color: #fff; border-radius: 18px; padding: 44px 42px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta p { opacity: .93; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.crumbs { font-size: 14px; color: var(--gray); margin-bottom: 10px; }
.crumbs a { color: var(--gray); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; }

.content { padding: 48px 0 64px; }
.content .lead { font-size: 18px; color: #3c4046; max-width: 860px; }
.works { margin: 28px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; list-style: none; }
.works li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.works li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 9px; }

.info-note {
  margin: 34px 0; background: #fdf1f0; border: 1px solid #f0cfcd; border-left: 5px solid var(--red);
  border-radius: 12px; padding: 22px 26px; max-width: 900px;
}
.info-note b { color: var(--red-dark); }

.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.service-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink); }
.service-nav a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.contact-card b { display: block; margin-bottom: 8px; font-size: 17px; }
.contact-card a { display: block; font-size: 18px; font-weight: 700; margin-top: 2px; }

.requisites { width: 100%; border-collapse: collapse; max-width: 760px; }
.requisites th, .requisites td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.requisites th { width: 280px; color: var(--gray); font-weight: 600; }

.footer { background: var(--ink); color: #b9bec4; margin-top: 30px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding: 48px 0 40px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer a { color: #d9dcdf; }
.footer .logo-line img { height: 52px; background: #fff; border-radius: 10px; padding: 6px; }
.footer p { font-size: 14px; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }
.copy { border-top: 1px solid #3a3e44; padding: 16px 0 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1020px) {
  .cards, .adv, .steps, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 13px; }
  .topbar-in { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 0; }
  .topbar-in span:first-child { font-size: 12px; line-height: 1.4; max-width: 300px; }
  .header-in { padding: 10px 0; gap: 16px; }
  .logo img { height: 48px; }
  .burger { display: block; width: 44px; height: 44px; }
  .nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 12px 16px 16px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .32s ease, opacity .32s ease, visibility 0s linear .32s;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 14px; font-size: 16px; }
  .nav ul.sub { position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; padding: 4px 0 4px 12px; margin: 4px 0 4px 14px; min-width: 0; gap: 2px !important; }
  .nav ul.sub a { font-size: 15px; padding: 10px 12px; white-space: normal; }
  .nav-toggle-input:checked ~ .header-in .nav { transform: translateX(0); opacity: 1; visibility: visible; transition: transform .32s ease, opacity .32s ease; }
  .nav-toggle-input:checked ~ .header-in .burger span { background: transparent; }
  .nav-toggle-input:checked ~ .header-in .burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .header-in .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .hero-in { padding: 44px 0 48px; text-align: center; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-kicker { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; text-align: center; max-width: 320px; }
  .hero-facts { gap: 20px; margin-top: 32px; justify-content: center; }
  .fact b { font-size: 26px; }
  .section { padding: 44px 0; }
  .section-title, .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .cards, .adv, .steps, .contacts-grid, .numbers { grid-template-columns: 1fr; }
  .card, .adv-item, .contact-card, .info-note { text-align: center; }
  .card .icon-badge, .adv-item .icon-badge { margin-left: auto; margin-right: auto; }
  .card { padding: 22px; }
  .works { grid-template-columns: 1fr; gap: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figure { aspect-ratio: 3 / 4; }
  .steps { gap: 14px; }
  .step { text-align: center; padding: 58px 18px 18px 18px; }
  .step::before { left: 50%; transform: translateX(-50%); top: 14px; }
  .about-grid { gap: 28px; text-align: center; }
  .about-text ul { text-align: left; display: inline-block; margin: 14px auto 0; }
  .cta { padding: 28px 20px; border-radius: 14px; text-align: center; }
  .cta-actions { min-width: 0; width: 100%; }
  .cta-actions .btn { width: 100%; text-align: center; }
  .page-head { padding: 24px 0 20px; text-align: center; }
  .page-head h1 { font-size: 26px; text-align: center; }
  .crumbs { text-align: center; }
  .content { padding: 32px 0 44px; }
  .content .lead { text-align: center; margin-left: auto; margin-right: auto; }
  .requisites { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .requisites th { width: 140px; min-width: 140px; }
  .requisites td { min-width: 180px; }
  .contacts-grid { gap: 14px; margin-bottom: 32px; }
  .contact-card a { font-size: 16px; }
  .footer { text-align: center; }
  .footer-in { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 28px; text-align: center; }
  .footer .logo-line { display: flex; justify-content: center; }
  .footer ul { display: inline-block; text-align: left; }
  .lightbox { padding: 16px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .hero-kicker { font-size: 12px; padding: 6px 12px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { aspect-ratio: 4 / 3; }
}

body { animation: page-in .45s ease both; }
body.no-scroll { overflow: hidden; }
body.page-exit { opacity: 0; transition: opacity .22s ease; }
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24, 25, 29, .93);
  display: grid; place-items: center; padding: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility 0s linear .32s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .32s ease; }
.lightbox img {
  max-width: min(94vw, 760px); max-height: 90vh;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  transform: scale(.95); transition: transform .32s ease;
}
.lightbox.open img { transform: scale(1); }
.gallery figure { cursor: zoom-in; }
