:root {
  --blue: #040171;
  --blue-soft: #4054b2;
  --red: #974b4e;
  --red-dark: #55171c;
  --text: #171923;
  --muted: #636978;
  --line: #e6e8f0;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --shadow: 0 18px 48px rgba(4, 1, 113, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--surface);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(4,1,113,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { flex: 0 0 auto; }
.logo img { width: 172px; height: auto; }
.logo-text {
  max-width: 280px;
  color: var(--blue);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: .02em;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(4,1,113,.18);
  color: var(--blue);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 11px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,1,113,.86) 0%, rgba(4,1,113,.68) 42%, rgba(85,23,28,.18) 100%), url('../images/hero.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 110px 0 100px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: 12px;
}
.hero .eyebrow { color: #fff; opacity: .88; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  letter-spacing: -.045em;
  max-width: 820px;
}
.hero-subtitle {
  margin-bottom: 34px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  max-width: 690px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(151,75,78,.32);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
}

.section { padding: 90px 0; }
.section:nth-of-type(even) { background: var(--surface-soft); }
.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head.compact { text-align: left; margin: 0; }
h2 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(4,1,113,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(4,1,113,.16);
}
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-card-body { padding: 24px; }
.service-card h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.15;
}
.service-card p { margin: 0; color: var(--muted); }


.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue);
  box-shadow: var(--shadow);
  border: 1px solid rgba(4,1,113,.08);
}
.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.48);
}
.service-tile span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
}
.service-tile:hover img { transform: scale(1.05); }
.phones-only { max-width: 980px; margin: 0 auto; }

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.features {
  display: grid;
  gap: 16px;
}
.feature-item, .info-card {
  border: 1px solid rgba(4,1,113,.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature-item {
  padding: 24px;
  display: grid;
  gap: 6px;
}
.feature-item strong {
  color: var(--blue);
  font-size: 24px;
}
.feature-item span { color: var(--muted); }
.requisites-card { padding: 8px 28px; }
dl { margin: 0; }
dl div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; color: var(--text); font-weight: 700; }
.docs-layout { align-items: center; }
.documents-list {
  display: grid;
  gap: 16px;
}
.document-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(4,1,113,.08);
  box-shadow: var(--shadow);
}
.document-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.document-link strong { color: var(--blue); line-height: 1.3; }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card { padding: 28px; }
.contact-card h3 { margin-bottom: 14px; color: var(--blue); font-size: 24px; line-height: 1.2; }
.contact-card p { color: var(--muted); margin-bottom: 0; }
.contact-card p + p { margin-top: 12px; }
.contact-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}
.worktime { grid-column: span 2; }
.site-footer {
  color: #fff;
  background: var(--blue);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p { margin: 0; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.socials img { width: 24px; height: 24px; object-fit: contain; }
.floating-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(151,75,78,.34);
  font-size: 24px;
}

@media (max-width: 980px) {
  .header-inner { min-height: 78px; }
  .main-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(4,1,113,.08);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 15px 12px; border-radius: 12px; }
  .main-nav a:hover { background: var(--surface-soft); }
  .main-nav a::after { display: none; }
  .header-phone { margin-left: auto; }
  .menu-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .logo img { width: 142px; }
  .logo-text { max-width: 210px; font-size: 14px; }
  .header-phone { display: none; }
  .hero { min-height: auto; }
  .hero-bg {
    background: linear-gradient(180deg, rgba(4,1,113,.88) 0%, rgba(4,1,113,.72) 60%, rgba(85,23,28,.3) 100%), url('../images/hero.jpg') center/cover no-repeat;
  }
  .hero-content { padding: 84px 0 74px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; text-align: left; }
  .section-head p:not(.eyebrow) { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-list { grid-template-columns: 1fr; gap: 12px; }
  .service-tile { min-height: 220px; border-radius: 0; }
  .service-card-body { padding: 20px; }
  .service-card h3 { font-size: 21px; }
  dl div { grid-template-columns: 1fr; gap: 5px; }
  .requisites-card { padding: 6px 20px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .worktime { grid-column: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .floating-call { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
  h1 { font-size: 38px; }
  .hero-subtitle { font-size: 18px; }
  .document-link { grid-template-columns: 1fr; }
}


/* Landing pages */
.service-card { display: block; }
.service-card .read-more {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red);
  font-weight: 900;
}
.breadcrumbs {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--blue); font-weight: 800; }
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--blue) 0%, #151287 52%, var(--red-dark) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 15%, rgba(255,255,255,.18), transparent 32%), radial-gradient(circle at 20% 100%, rgba(151,75,78,.36), transparent 34%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 46px;
  align-items: center;
  padding: 76px 0 84px;
}
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); }
.page-hero p { color: rgba(255,255,255,.86); font-size: 20px; }
.page-hero .eyebrow { color: #fff; opacity: .84; }
.page-hero-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.18);
}
.page-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-hero-card .caption {
  padding: 18px 20px;
  font-weight: 900;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.content-stack { display: grid; gap: 24px; }
.content-card, .side-card, .price-card, .gallery-item, .callback-box {
  border: 1px solid rgba(4,1,113,.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.content-card { padding: 34px; }
.content-card h2, .content-card h3 { color: var(--blue); }
.content-card h3 { margin: 22px 0 10px; font-size: 24px; line-height: 1.18; }
.content-card p, .content-card li { color: var(--muted); font-size: 17px; }
.content-card p:last-child { margin-bottom: 0; }
.lead { color: var(--text) !important; font-size: 20px !important; font-weight: 700; }
ul.clean-list, ol.clean-list { margin: 16px 0 0; padding-left: 21px; }
ul.clean-list li, ol.clean-list li { margin: 9px 0; }
.side-card {
  position: sticky;
  top: 108px;
  padding: 24px;
}
.side-card h3 { margin-bottom: 12px; color: var(--blue); font-size: 24px; line-height: 1.15; }
.side-card p { color: var(--muted); margin-bottom: 16px; }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-card .btn-outline { color: var(--blue); border-color: rgba(4,1,113,.18); background: #fff; }
.steps-grid, .price-grid, .gallery-grid {
  display: grid;
  gap: 18px;
}
.steps-grid { grid-template-columns: repeat(2, 1fr); }
.step-item {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-soft);
}
.step-item strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 18px; }
.step-item span { color: var(--muted); }
.price-grid { grid-template-columns: repeat(3, 1fr); }
.price-card { padding: 24px; }
.price-card strong { display: block; color: var(--blue); font-size: 20px; line-height: 1.2; }
.price-card span { display: inline-flex; margin-top: 12px; color: var(--red); font-weight: 900; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-item { overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-item span { display: block; padding: 14px 16px; color: var(--muted); font-weight: 700; }
.callback-box { padding: 32px; }
.callback-form {
  display: grid;
  gap: 14px;
}
.callback-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
}
.callback-form input, .callback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
}
.callback-form input:focus, .callback-form textarea:focus { border-color: var(--blue-soft); }
.callback-form textarea { min-height: 116px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .page-hero-inner { grid-template-columns: 1fr; padding: 62px 0 70px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-hero-inner { padding: 48px 0 58px; gap: 28px; }
  .page-hero p { font-size: 17px; }
  .content-card, .callback-box { padding: 24px 20px; }
  .steps-grid, .price-grid, .gallery-grid { grid-template-columns: 1fr; }
}
