:root {
  --blue: #167dd1;
  --blue-d: #0e6bb8;
  --blue-s: #e7f4fc;
  --ink: #1c232b;
  --ink-2: #3d4752;
  --muted: #6a7380;
  --line: #e4e8ed;
  --bg: #f5f7fa;
  --white: #fff;
  --dark: #12161b;
  --dark-2: #1c232b;
  --radius: 6px;
  --shadow: 0 12px 32px rgba(18, 22, 27, 0.08);
  --header: 80px;
  --wrap: 1180px;
}

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

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  min-width: 320px;
}

html[lang="zh-CN"] body {
  font-family: Manrope, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

html[lang="zh-CN"] .h2,
html[lang="zh-CN"] .hero__title,
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  font-family: Montserrat, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

html[lang="zh-CN"] .nav {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul {
  list-style: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  z-index: 80;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.section {
  padding: 104px 0;
}

main {
  counter-reset: block;
}

.section--gray {
  background: var(--bg);
}

.section--dark {
  position: relative;
  color: #e8edf2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.78) 0%, rgba(8, 12, 16, 0.88) 100%),
    url("../img/works/pobeditely.jpg") center / cover no-repeat;
}

.section--dark > .wrap {
  position: relative;
  z-index: 1;
}

.h-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  counter-increment: block;
}

.h-kicker span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

.h-kicker span::before {
  content: counter(block, decimal-leading-zero) " / ";
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.h-kicker::after {
  content: "";
  flex: 1;
  border-top: 1px dotted var(--blue);
}

.section--dark .h-kicker span {
  color: #7ec8f5;
}

.section--dark .h-kicker::after {
  border-top-color: #7ec8f5;
}

.h2 {
  font-family: Montserrat, Manrope, sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--ink);
}

.section--dark .h2 {
  color: #fff;
}

.section--dark .lead {
  color: #9aa6b2;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s background, 0.2s transform, 0.2s gap;
}

.btn:not(.btn--ghost)::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn:not(.btn--ghost):hover::after {
  transform: translateX(4px);
}

.btn:hover {
  background: var(--blue-d);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
}

.btn--dark:hover {
  background: #000;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header);
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.72), rgba(12, 16, 22, 0.12));
  transition: background 0.25s, box-shadow 0.25s;
}

.header.is-solid {
  background: rgba(18, 22, 27, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.88;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  color: var(--blue);
}

.header__phones {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.header__phone-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
}

.header__phone-icon svg {
  width: 16px;
  height: 16px;
}

.header__phone-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__phones a:hover {
  color: var(--blue);
}

.header__phones small {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.lang {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang a {
  opacity: 0.72;
  padding: 4px 7px;
}

.lang a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.lang a.is-on,
.lang a:hover {
  opacity: 1;
  color: var(--blue);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  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 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header) + 36px) 0 56px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #12161b url("../img/hero.jpg") center / cover no-repeat;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.55) 0%, rgba(10, 14, 18, 0.28) 38%, rgba(10, 14, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 14, 18, 0.5) 0%, rgba(10, 14, 18, 0.08) 55%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 40px));
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fd0f5;
}

.hero__kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue);
}

.hero__title {
  font-family: Montserrat, Manrope, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 920px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 720px;
  color: #e8eef4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
  max-width: 860px;
}

.hero__stats b {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  color: #fff;
}

.hero__stats span {
  font-size: 13px;
  color: #c9d3dc;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.45);
  animation: hero-line 1.6s ease-in-out infinite;
}

@keyframes hero-line {
  0%, 100% { transform: scaleY(0.45); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.tech-line {
  background: var(--dark);
  color: var(--blue);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-line__track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: tech-marquee 36s linear infinite;
}

.tech-line__track span::before {
  content: "·";
  color: var(--blue);
  margin-right: 40px;
}

@keyframes tech-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__scroll::after { animation: none; }
  .reviews__track { transition: none; }
  .tech-line__track { animation: none; }
  .shot img, .work img { transition: none; }
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}

.about__text {
  display: flex;
  flex-direction: column;
}

.about__text p + p {
  margin-top: 14px;
}

.about__cta {
  margin-top: auto;
  padding-top: 22px;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shot {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #d7dde4;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  min-height: 220px;
  transition: transform 0.7s ease;
}

.shot--wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.shot--wide img {
  min-height: 180px;
  height: 200px;
  object-position: center;
}

.shot:hover img {
  transform: scale(1.07);
}

/* Services */
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.25s border-color, 0.25s box-shadow, 0.25s background;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  background: #fafcfe;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--blue-s);
  color: var(--blue);
  border-radius: 4px;
  flex: 0 0 auto;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

.card__more {
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
}

.card--form {
  background:
    linear-gradient(160deg, rgba(18, 22, 27, 0.55), rgba(18, 22, 27, 0.82)),
    url("../img/works/prom.jpg") center / cover;
  color: #fff;
  border: 0;
}

.card--form:hover {
  background:
    linear-gradient(160deg, rgba(18, 22, 27, 0.5), rgba(18, 22, 27, 0.8)),
    url("../img/works/prom.jpg") center / cover;
  border-color: transparent;
}

.card--form h3,
.card--form p {
  color: #fff;
}

.card--form p {
  opacity: 0.85;
  margin-bottom: 12px;
}

/* Forms */
.form {
  display: grid;
  gap: 10px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #d8dee6;
  background: #fff;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 125, 209, 0.15);
}

.form textarea {
  min-height: 92px;
  resize: vertical;
}

.form label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #c9d3dc;
}

.form label.check input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form__status {
  font-size: 13px;
  min-height: 18px;
}

.form__status.is-ok { color: #7dffa6; }
.form__status.is-err { color: #ffb4b4; }

.form--light input,
.form--light textarea,
.form--light select {
  background: #fff;
}

.form--light label.check {
  color: var(--muted);
}

.form--light .form__status.is-ok { color: #1a7a3c; }
.form--light .form__status.is-err { color: #b42318; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  min-height: 180px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--blue);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}

.section--dark .steps {
  gap: 0;
}

.section--dark .step {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 8px 22px 8px 0;
  min-height: 0;
}

.section--dark .step:last-child {
  border-right: 0;
  padding-right: 0;
}

.section--dark .step::before {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--blue);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.section--dark .step h3 {
  color: #fff;
  font-size: 17px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.section--dark .step p {
  color: #8b97a3;
}

/* Works */
.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.work {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: #1b2128;
  color: #fff;
}

.work img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.work:hover img {
  transform: scale(1.08);
}

.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 14, 18, 0.88));
}

.work strong {
  display: block;
  font-size: 15px;
}

.work span {
  font-size: 12px;
  opacity: 0.8;
}

.work--wide {
  grid-column: span 2;
}

.work--wide img {
  height: 280px;
}

/* Clients logos */
.clients {
  width: 100%;
}

.clients__viewport {
  overflow: hidden;
}

.clients__track {
  display: flex;
  transition: transform 0.5s ease;
}

.clients__page {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, 92px);
  gap: 12px 16px;
}

.client-logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.client-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-logo:hover img,
.client-logo:focus-within img {
  filter: grayscale(0);
  opacity: 1;
}

@media (hover: none) {
  .client-logo img {
    filter: grayscale(0);
    opacity: 0.92;
  }
}

.clients__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.clients__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.clients__arrow svg {
  width: 18px;
  height: 18px;
}

.clients__arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.clients__dots {
  display: flex;
  gap: 8px;
}

.clients__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d0d8;
  cursor: pointer;
}

.clients__dot.is-on {
  background: var(--blue);
}

/* Reviews slider */
.reviews {
  width: 100%;
}

.reviews__viewport {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  transition: transform 0.45s ease;
}

.reviews__page {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review {
  padding: 28px 24px 24px;
  min-height: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.review__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #e8edf2;
}

.review q {
  display: block;
  font-size: 15.5px;
  quotes: none;
  margin-bottom: 18px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}

.review cite {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

.review cite b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.reviews__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s background, 0.2s color, 0.2s border-color;
}

.reviews__arrow svg {
  width: 18px;
  height: 18px;
}

.reviews__arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #c5ccd4;
  cursor: pointer;
  padding: 0;
}

.reviews__dot.is-on {
  background: var(--blue);
}

#back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.35s opacity, 0.35s visibility, 0.35s transform;
  box-shadow: 0 8px 20px rgba(22, 125, 209, 0.28);
}

#back-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#back-top:hover {
  background: var(--blue-d);
}

#back-top svg {
  width: 18px;
  height: 18px;
}

/* Certs */
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.certs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: block;
}

.certs img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #f3f5f8;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 40px 48px;
  align-items: start;
}

.faq-ask {
  position: sticky;
  top: calc(var(--header) + 16px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.faq-ask h3 {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.faq-ask > p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.faq {
  max-width: none;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contacts__box {
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.82) 0%, rgba(8, 12, 16, 0.9) 100%),
    url("../img/works/euroopt.jpg") center / cover no-repeat;
  padding: 36px 32px;
  color: #e8edf2;
}

.contacts__box h2 {
  color: #fff;
}

.contacts__box .lead {
  color: #c5ced6;
}

.contacts__list {
  margin: 22px 0;
  display: grid;
  gap: 12px;
}

.contacts__list a,
.contacts__list p {
  color: #d5dde5;
}

.contacts__list b {
  display: block;
  color: #8b97a4;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.map {
  min-height: 460px;
  background: #dfe5ea;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

/* Footer */
.footer {
  background: var(--dark-2);
  color: #9aa6b2;
  padding: 56px 0 24px;
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid .logo img {
  height: 36px;
  margin-bottom: 14px;
}

.footer__grid p {
  max-width: 280px;
  line-height: 1.5;
}

.footer__grid b {
  display: block;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__grid a {
  display: block;
  margin-top: 8px;
}

.footer__copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.footer a:hover {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}

.modal.is-open { display: flex; }

.modal__box {
  background: #fff;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  border-radius: 8px;
}

/* Mobile */
@media (max-width: 980px) {
  .nav,
  .header__phones {
    display: none;
  }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #12161b;
    padding: 20px 24px 28px;
    gap: 14px;
  }

  .header.is-open .header__phones {
    display: flex;
    position: absolute;
    top: calc(var(--header) + 168px);
    left: 24px;
  }

  .burger { display: grid; place-items: center; margin-left: auto; }

  .hero {
    align-items: center;
    padding-bottom: 40px;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    margin-top: 36px;
  }

  .about__grid,
  .about__cards,
  .services__grid,
  .steps,
  .works__grid,
  .certs,
  .contacts,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-ask {
    position: static;
  }

  .work--wide { grid-column: auto; }

  .services__head { flex-direction: column; align-items: flex-start; }

  .about__cards { grid-template-columns: 1fr; }

  .section--dark .steps {
    gap: 0;
  }

  .section--dark .step {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
  }

  .section--dark .step:last-child {
    border-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .review {
    padding: 22px 18px 18px;
    min-height: 0;
  }

  .reviews__page {
    grid-template-columns: 1fr;
  }

  .clients__page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, 84px);
  }

  .client-logo {
    height: 84px;
  }
}

@media (max-width: 640px) {
  .clients__page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, 76px);
    gap: 8px;
  }

  .client-logo {
    height: 76px;
    padding: 10px 8px;
  }

  .client-logo img {
    max-height: 44px;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .about__cards,
  .works__grid,
  .certs,
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .reviews__page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
