:root {
  --blue: #1b4f8a;
  --blue-deep: #102848;
  --blue-soft: #e8f0f8;
  --ink: #1c2430;
  --muted: #5d6876;
  --line: #e3e8ef;
  --paper: #f5f7fa;
  --white: #fff;
  --header: 78px;
  --wide: 1160px;
  --shadow: 0 18px 50px rgba(16, 40, 72, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 750; }
h1, h2, h3, p, li, dd, label, summary { overflow-wrap: anywhere; }
.split > *, .contacts > *, .foot > *, .reqs-grid > * { min-width: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--white);
  color: var(--blue);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section h2 { font-size: 40px; margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  color: var(--white);
  background: transparent;
}
.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.site-header.is-solid {
  --header: 92px;
  position: sticky;
  background: var(--blue-deep);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: auto; height: 52px; object-fit: contain; }
.logo strong { display: block; font-size: 18px; letter-spacing: 0.01em; }
.logo small { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: lowercase; opacity: 0.8; }
.menu { display: flex; justify-content: center; gap: 28px; }
.menu a { text-decoration: none; font-weight: 650; font-size: 16px; }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--white); }
.header-contacts { text-align: right; }
.header-contacts a { display: block; text-decoration: none; font-weight: 700; font-size: 15px; }
.header-contacts a + a { font-weight: 500; font-size: 13px; opacity: 0.85; }
.socials { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.socials a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.socials svg { width: 16px; height: 16px; fill: white; }
.socials img { width: 16px; height: 16px; object-fit: contain; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: inherit;
  padding: 0;
}
.burger span, .burger span:before, .burger span:after {
  display: block; height: 2px; width: 22px; background: currentColor; position: relative;
}
.burger span:before, .burger span:after { content: ""; position: absolute; left: 0; }
.burger span:before { top: -7px; }
.burger span:after { top: 7px; }

.hero { position: relative; height: 100vh; min-height: 640px; background: var(--blue-deep); color: var(--white); }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 0 64px 88px;
}
.slide.is-active { opacity: 1; z-index: 1; }
.hero:before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(10, 28, 54, 0.55), rgba(10, 28, 54, 0));
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.slide-hit { position: absolute; inset: 0; z-index: 1; }
.slide:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 54, 0.78), rgba(10, 28, 54, 0.28) 55%, rgba(10, 28, 54, 0.12));
}
.slide .wrap { position: relative; z-index: 1; width: auto; margin: 0 0 18px; max-width: min(680px, 100%); }
.slide > .btn { position: relative; z-index: 2; }
.kicker { margin-bottom: 10px; font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.slide h1, .slide h2 { font-size: clamp(36px, 5vw, 64px); max-width: 680px; margin-bottom: 0; }
.hero-ui { position: absolute; z-index: 2; right: 28px; bottom: 28px; display: flex; gap: 8px; }
.hero-ui button, .dots button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(16, 40, 72, 0.35); color: white; cursor: pointer;
}
.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; }
.dots button.is-active { background: white; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: white; color: var(--blue);
  text-decoration: none; font-weight: 750; border: 0; cursor: pointer;
}
.btn-blue { background: var(--blue); color: white; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dir {
  text-decoration: none; background: var(--paper);
  display: flex; flex-direction: column; min-height: 100%;
}
.dir img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.dir span { padding: 16px 16px 18px; font-weight: 750; }
.dir:hover img { transform: scale(1.03); }
.dir img { transition: transform 0.4s ease; }

.band { background: var(--blue-deep); color: white; }
.band .lead { color: rgba(255,255,255,0.78); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); background: white; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.band input, .band textarea, .band select { border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check input { width: auto; min-height: 0; margin-top: 4px; }
.form-ok { display: none; padding: 14px 16px; background: var(--blue-soft); color: var(--ink); }
.form-ok.is-on { display: block; }
.form-ok.is-error { background: #fdecea; }
.fine { font-size: 13px; color: var(--muted); }
.band .fine { color: rgba(255,255,255,0.7); }
.fine a { color: inherit; }

.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.adv article { display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.adv b {
  font-size: 28px; color: var(--blue); font-weight: 750;
}

.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.clients li { display: flex; align-items: center; justify-content: center; height: 128px; padding: 12px 14px; background: white; border: 1px solid var(--line); }
.clients img { width: 100%; height: 104px; object-fit: contain; }

.photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.photos img { width: 100%; height: 220px; object-fit: cover; }
.photos img:first-child { height: 452px; grid-row: span 2; }
.shops { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.shops li { padding-left: 16px; position: relative; }
.shops li:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); position: absolute; left: 0; top: 0.55em; }

.price { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.filters button {
  border: 1px solid var(--line); background: white; min-height: 42px; padding: 0 14px; cursor: pointer; font-weight: 700;
}
.filters button.is-active { background: var(--blue); color: white; border-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { text-decoration: none; background: var(--paper); }
.card[hidden] { display: none; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.card:hover img { transform: scale(1.04); }
.card div { padding: 14px 16px 18px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.note {
  background: var(--blue-soft); padding: 14px 16px; margin-bottom: 8px;
}

.page-head { background: var(--blue-deep); color: white; padding: 54px 0 42px; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 8px; }
.page-head p { margin: 0; max-width: 680px; color: rgba(255,255,255,0.78); }

.work-hero { position: relative; display: flex; justify-content: center; background: var(--paper); }
.work-hero img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(16, 40, 72, 0.72); color: white; font-size: 28px; line-height: 1;
}
.photo-nav { left: 16px; }
.photo-nav-next { left: auto; right: 16px; }
.stack { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.stack li { padding-left: 16px; position: relative; }
.stack li:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); position: absolute; left: 0; top: 0.55em; }
.script-title img { width: min(100%, 420px); height: auto; }
.contact-card form { margin-top: 64px; }
.reqs { padding: 140px 0 64px; }
.price .stack { margin-bottom: 30px; }
.guarantee-first { font-weight: 700; }
.brand-band {
  background: var(--blue-deep);
  padding: 28px 20px 8px;
  display: flex;
  justify-content: center;
}
.brand-band picture { display: block; width: min(80vw, 460px); }
.brand-band img { width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.contact-card h2 { font-size: 32px; }
.contact-card h3 { margin: 22px 0 8px; font-size: 20px; }
.contact-line { font-size: 22px; font-weight: 750; }
.contact-card a { color: var(--blue); }
.reqs h2 { font-size: 24px; margin-bottom: 18px; }
.reqs-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.reqs-logo { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: var(--blue-deep); }
.reqs-logo img { width: 64%; height: 64%; object-fit: contain; }
.reqs-body { border-left: 3px solid var(--blue); padding-left: 28px; }
.reqs-body p { margin: 0 0 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; margin: 8px 0 22px; }
.thumbs button { width: 100%; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; line-height: 0; }
.thumbs button.is-active { border-color: var(--blue); }
.thumbs img { width: 100%; height: 118px; max-width: none; object-fit: cover; }
.passport { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 18px 0; }
.passport dt { color: var(--muted); }
.passport dd { margin: 0; }
.spoiler { border-top: 1px solid var(--line); }
.spoiler summary { cursor: pointer; font-weight: 750; padding: 12px 0; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.map { height: 420px; border: 0; width: 100%; background: var(--paper); }
.contacts { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; }
.contacts a { color: var(--blue); }

.site-footer { background: var(--blue-deep); color: white; padding: 20px 0 18px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; font-size: 15px; }
.foot p { margin: 0 0 10px; }
.site-footer a { color: white; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12px; color: rgba(255,255,255,0.72); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.draft { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 800; }

@media (max-width: 980px) {
  .dirs, .grid, .clients { grid-template-columns: 1fr 1fr; }
  .split, .contacts, .foot, .adv { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos img:first-child { height: 220px; grid-row: auto; }
  .burger { display: grid; place-items: center; }
  .site-header .wrap { grid-template-columns: 1fr auto auto; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header);
    background: var(--blue-deep); padding: 8px 20px 18px;
    flex-direction: column; gap: 12px;
  }
  .header-contacts {
    display: flex; position: static; background: transparent; padding: 0;
    align-items: center; text-align: left;
  }
  .header-contacts > a { display: none; }
  .socials { margin-top: 0; }
  .site-header.is-open .menu { display: grid; }
  .site-header.is-open .header-contacts {
    display: grid; position: absolute; left: 0; right: 0;
    top: calc(var(--header) + 132px); background: var(--blue-deep); padding: 8px 20px 18px;
  }
  .site-header.is-open .header-contacts > a { display: block; }
  .reqs-grid { grid-template-columns: 1fr; }
  .reqs-body { border-left: 0; padding-left: 0; border-top: 3px solid var(--blue); padding-top: 18px; }
}
@media (max-width: 680px) {
  .dirs, .grid, .photos, .shops, .related, .passport { grid-template-columns: 1fr; }
  .clients { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 30px; }
  .site-header .wrap { gap: 10px; }
  .logo { gap: 8px; }
  .logo img { height: 40px; }
  .logo strong { font-size: 16px; white-space: nowrap; }
  .logo small { font-size: 10px; white-space: nowrap; }
  .socials { gap: 6px; }
  h1 { font-size: 30px; }
  .page-head h1 { font-size: 32px; }
  .slide h1, .slide h2 { font-size: 32px; }
  .wrap { width: calc(100% - 32px); }
  .work-hero img { max-height: 70vh; }
  .photo-nav { width: 38px; height: 38px; font-size: 24px; }
  .photo-nav { left: 8px; }
  .photo-nav-next { left: auto; right: 8px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .thumbs img { height: 76px; }
  .reqs-logo { width: 150px; height: 150px; }
  .brand-band { padding: 20px 16px 4px; }
  .brand-band picture { width: min(88vw, 360px); }
  .site-footer { padding: 16px 0 14px; }
  .foot { font-size: 14px; gap: 14px; }
  .script-title img { width: min(100%, 300px); }
  .hero { min-height: 560px; }
  .hero-ui { display: none; }
  .slide { padding: 0 16px 72px; }
}
fieldset { border: 1px solid var(--line); margin: 0 0 16px; padding: 14px 16px 16px; }
legend { font-weight: 750; padding: 0 6px; }
.checks { display: grid; gap: 8px; }
.checks label, .line label { font-weight: 500; }
.brief { gap: 16px; }
.brief fieldset { padding: 20px 22px 22px; margin-bottom: 22px; }
.brief legend { font-size: 22px; }
.brief label { font-size: 17px; gap: 8px; }
.brief .check { font-size: 17px; }
.brief .checks { gap: 12px; }
.brief .check input { width: 20px; height: 20px; margin-top: 3px; }
.brief .fine { font-size: 15px; }
.card img { background: #d7dee8; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  .page-head { background: white; color: black; padding: 0; }
  body { font-size: 13px; }
}
