:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #07111f;
  --muted: #657184;
  --line: #dce3eb;
  --orange: #ff7900;
  --orange-dark: #e76400;
  --dark: #07111f;
  --blue: #1b3558;
  --soft-blue: #edf4fb;
  --shadow: 0 22px 70px rgba(10, 24, 40, 0.12);
  --shadow-soft: 0 14px 38px rgba(10, 24, 40, 0.07);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 121, 0, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 34%, #f8fafc 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

.nowrap {
  white-space: nowrap;
}

.header,
.hero,
.logos,
.section,
.cta,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand__logo {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand__line {
  width: 2px;
  height: 31px;
  background: var(--orange);
}

.brand__text {
  color: #283140;
  font-size: 12px;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: #0d1726;
  transition: color 180ms var(--ease-out);
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.header__contact {
  display: grid;
  gap: 2px;
  min-width: 150px;
  font-size: 12px;
}

.header__contact strong {
  font-size: 15px;
}

.header__contact span {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 121, 0, 0.22);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 16px 30px rgba(255, 121, 0, 0.28);
  transform: translateY(-1px);
}

.btn:active,
.tab:active,
.case-card button:active,
.case-card a:active,
.contact-methods label:active,
.telegram-link:active,
.modal-telegram:active,
.certificate-grid a:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.tab:focus-visible,
.case-card button:focus-visible,
.case-card a:focus-visible,
.contact-methods label:focus-within,
.telegram-link:focus-visible,
.modal-telegram:focus-visible,
.certificate-grid a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.28);
  outline-offset: 3px;
}

.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(10, 24, 40, 0.06);
}

.btn--ghost:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 18px 34px rgba(10, 24, 40, 0.1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  min-height: 500px;
  overflow: hidden;
  padding: 48px 0 56px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0 calc((100vw - min(1180px, calc(100vw - 48px))) / -2) 0 38%;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 252, 253, 1) 0%, rgba(251, 252, 253, 0.92) 31%, rgba(244, 247, 250, 0.46) 61%, rgba(244, 247, 250, 0.18) 100%),
    url("assets/hero-construction-materials.png") center right / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto calc((100vw - min(1180px, calc(100vw - 48px))) / -2) 0;
  z-index: -1;
  height: 1px;
  background: var(--line);
  content: "";
}

.eyebrow {
  margin: 0 0 18px;
  color: #3f4d62;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.cta h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(38px, 4.7vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 span,
.cta h2 span,
.metric span,
.case-card strong:first-child,
.steps strong {
  color: var(--orange);
}

.lead {
  max-width: 565px;
  margin: 18px 0 26px;
  color: #354254;
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  max-width: 780px;
}

.benefits div {
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(10, 24, 40, 0.05);
  backdrop-filter: blur(10px);
}

.benefits b,
.benefits span {
  display: block;
}

.benefits b {
  font-size: 13px;
}

.benefits span {
  color: var(--muted);
  font-size: 12px;
}

.result-card {
  align-self: start;
  margin-top: 16px;
  padding: 30px;
  border: 1px solid rgba(221, 226, 232, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.result-card h2 {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.metric {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: 0;
}

.metric span {
  font-size: 24px;
  font-weight: 900;
}

.metric p {
  margin: 0;
  color: #283140;
  font-size: 13px;
  font-weight: 700;
}

.logos {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.logos p,
.section h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.2;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: center;
}

.logo-row span {
  color: #2d3748;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.01em;
}

.section {
  padding: 34px 0;
}

.section__head {
  display: grid;
  gap: 12px;
}

.section__intro {
  max-width: 760px;
  margin: -6px 0 8px;
  color: #4b5668;
  font-size: 17px;
}

.tabs {
  display: flex;
  gap: 10px;
  max-width: 100%;
  contain: inline-size;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #283140;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10, 24, 40, 0.04);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.tab.is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 17, 31, 0.16);
}

.tab span {
  margin-left: 8px;
  opacity: 0.7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-rows: 218px 1fr;
  min-height: 468px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.case-card[hidden] {
  display: none;
}

.case-card__media {
  min-height: 218px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.02), rgba(7, 17, 31, 0.06)),
    #f8fafc var(--case-image) center / contain no-repeat;
}

.case-card__body {
  display: grid;
  align-content: start;
  padding: 22px;
}

.case-card p {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.05;
}

.case-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.case-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.case-card strong span {
  display: block;
  margin-top: 8px;
  color: #4b5668;
  font-size: 13px;
  line-height: 1.3;
}

.case-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  color: #283140;
  font-size: 13px;
  font-weight: 800;
}

.case-card a,
.case-card button {
  display: inline-flex;
  padding: 12px 18px;
  width: max-content;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.pain-grid,
.service-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pain-grid div,
.service-grid div,
.faq details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 24, 40, 0.04);
}

.pain-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-weight: 900;
}

.pain-grid div,
.service-grid span,
.faq p {
  color: #4b5668;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.steps div {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.steps div:not(:last-child)::after {
  position: absolute;
  top: 28px;
  right: -12px;
  color: var(--orange);
  content: "→";
}

.steps b {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}

.steps strong {
  font-size: 13px;
}

.steps span {
  color: #596579;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.module-title {
  margin: 30px 0 14px;
  font-size: 18px;
}

.service-grid div {
  min-height: 112px;
}

.service-grid b,
.service-grid span {
  display: block;
}

.service-grid b {
  margin-bottom: 8px;
}

.system-roadmap {
  display: grid;
  gap: 34px;
}

.system-roadmap__head {
  display: grid;
  align-items: start;
}

.system-roadmap__head h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.system-roadmap__head h2 span {
  color: var(--orange);
}

.system-roadmap__head p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #354254;
  font-size: 18px;
}

.system-roadmap__body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.system-steps {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-steps li {
  min-width: 0;
}

.system-steps button {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #657184;
  text-align: left;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.system-steps button:hover {
  border-color: #cfd7e2;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.system-steps button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.system-steps li.is-active button {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.system-steps button b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8edf3;
  color: #657184;
  font-size: 13px;
  font-weight: 900;
}

.system-steps li.is-active button b {
  background: var(--orange);
  color: #fff;
}

.system-steps strong,
.system-steps span {
  display: block;
}

.system-steps strong {
  color: inherit;
  font-size: 15px;
}

.system-steps span {
  margin-top: 3px;
  color: #657184;
  font-size: 13px;
  line-height: 1.3;
}

.system-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.system-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #172033;
}

.system-preview__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.system-preview__bar span:nth-child(1) { background: #ff6b6b; }
.system-preview__bar span:nth-child(2) { background: #ffd166; }
.system-preview__bar span:nth-child(3) { background: #52d273; }

.system-preview__bar em {
  margin-left: auto;
  color: #98a4b7;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  object-fit: contain;
  opacity: 1;
}

.system-preview__caption {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: var(--text);
}

.system-preview__caption span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1e5;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.system-preview__caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
}

.system-preview__caption p {
  max-width: 520px;
  margin: 0;
  color: #4b5668;
  font-size: 14px;
}

.system-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid #ffd7a7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  box-shadow: 0 14px 34px rgba(255, 121, 0, 0.08);
}

.system-result span {
  display: block;
  color: #657184;
  font-size: 13px;
}

.system-result strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.system-result b {
  display: block;
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.expert {
  display: grid;
  grid-template-columns: 285px 1fr 420px;
  gap: 42px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.expert > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  box-shadow: 0 20px 52px rgba(10, 24, 40, 0.12);
}

.expert__copy h2 {
  margin: 0;
  font-size: 38px;
}

.expert__copy > p:not(.eyebrow) {
  margin: 2px 0 18px;
  color: #4b5668;
}

.expert ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.expert li::before {
  margin-right: 10px;
  color: var(--orange);
  content: "✓";
}

.expert__actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.telegram-link,
.modal-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #b9dcff;
  border-radius: 10px;
  background: #eef7ff;
  color: #1574d1;
  font-size: 13px;
  font-weight: 900;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.certificates {
  display: grid;
  gap: 12px;
}

.certificate-grid {
  display: grid;
  gap: 10px;
}

.certificate-grid a {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 24, 40, 0.06);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.certificate-grid img {
  width: 76px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
}

.certificate-grid span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.reviews {
  display: grid;
  gap: 16px;
}

.video-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.video-review-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.video-review-card video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 370px;
  aspect-ratio: 9 / 16;
  background: #0b1220;
  object-fit: cover;
}

.video-review-card div {
  padding: 24px;
}

.video-review-card p {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-review-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.video-review-card__quote {
  margin: 14px 0;
  padding: 18px;
  border-color: #e5e9f0;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.45;
}

.video-review-card__quote cite {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.35;
}

blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #313c4d;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(10, 24, 40, 0.05);
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

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

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  cursor: pointer;
}

summary::after {
  content: "+";
}

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

.cta {
  display: grid;
  grid-template-columns: 1fr 570px;
  gap: 48px;
  margin-bottom: 42px;
  padding: 44px;
  border: 1px solid rgba(221, 226, 232, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 62%, rgba(255, 255, 255, 0.74) 100%),
    url("assets/hero-construction.png") right center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(10, 24, 40, 0.09);
}

.cta h2 {
  max-width: 600px;
  font-size: clamp(28px, 3vw, 42px);
}

.cta p {
  max-width: 600px;
  color: #4b5668;
}

.benefits--compact {
  grid-template-columns: repeat(3, 1fr);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(10, 24, 40, 0.08);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.contact-methods > span {
  flex: 0 0 100%;
  color: #4b5668;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-methods label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #344154;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.contact-methods label:has(input:checked) {
  border-color: #2b76ff;
  background: #eef4ff;
  color: #1356d8;
}

.contact-methods input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.form input:not([type="radio"]):not([type="checkbox"]),
.form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.form .btn,
.form small {
  grid-column: 1 / -1;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.form-message:empty {
  display: none;
}

.form-message[data-type="success"] {
  color: #15803d;
}

.is-invalid {
  border-color: rgba(220, 38, 38, 0.72) !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form small {
  color: #657184;
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.75fr) minmax(220px, 1fr) minmax(210px, 0.9fr);
  gap: 28px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: #4b5668;
}

.footer .brand {
  width: max-content;
  min-width: 0;
  margin-bottom: 14px;
}

.footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
}

.footer p {
  max-width: 420px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.footer a {
  color: var(--text);
  font-weight: 500;
}

.legal-page {
  background: #f7f9fc;
}

.legal-site-header {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
}

.legal-main {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.legal-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.08);
}

.legal-card h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-card h2 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: #455267;
  font-size: 16px;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px 20px;
}

.legal-meta {
  margin-bottom: 32px;
  color: #7a8798;
  font-size: 14px;
}

.legal-requisites {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 121, 0, 0.16);
  border-radius: 14px;
  background: #fff7ed;
}

.legal-footer-dark {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(520px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 44px max(24px, calc((100vw - 1180px) / 2));
  background: #07111f;
  color: #69768a;
}

.legal-footer-dark p {
  margin: 0 0 12px;
  color: #69768a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.legal-footer-dark p:last-child {
  margin-bottom: 0;
  max-width: 760px;
  font-weight: 600;
}

.legal-footer-dark__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  justify-content: flex-end;
}

.legal-footer-dark__links a {
  color: #69768a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms var(--ease-out);
}

.legal-footer-dark__links a:hover {
  color: #fff;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.62);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(94vh, 800px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(7, 17, 31, 0.34);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #4b5668;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.modal h2 {
  margin: 0 40px 8px 0;
  font-size: 28px;
  line-height: 1.08;
}

.modal p {
  margin: 0 0 12px;
  color: #4b5668;
  font-size: 14px;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal .contact-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.modal .contact-methods > span {
  grid-column: 1 / -1;
}

.modal .contact-methods label {
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 6px;
  font-size: 12px;
}

.modal-form input:not([type="radio"]):not([type="checkbox"]),
.modal-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  color: #344154;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.custom-select {
  position: relative;
  z-index: 3;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  color: #344154;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.custom-select__trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms var(--ease-out);
}

.custom-select.is-open .custom-select__trigger {
  border-color: rgba(255, 121, 0, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.1);
}

.custom-select.is-open .custom-select__trigger::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.custom-select__list {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.custom-select.is-open .custom-select__list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select__list button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344154;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.custom-select__list button:hover,
.custom-select__list button[aria-selected="true"] {
  background: #eef4ff;
  color: #1356d8;
}

.modal-check {
  display: flex;
  gap: 8px;
  color: #657184;
  font-size: 11px;
  line-height: 1.25;
}

.modal-check input {
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  margin-top: 2px;
}

.modal-form .btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.modal-telegram {
  width: 100%;
  margin-top: 12px;
}

body.modal-open {
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--orange-dark);
  }

  .nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .case-card:hover,
  .video-review-card:hover,
  .certificate-grid a:hover {
    border-color: #cbd5e1;
    box-shadow: 0 22px 54px rgba(10, 24, 40, 0.12);
    transform: translateY(-2px);
  }

  .case-card a:hover,
  .case-card button:hover,
  .telegram-link:hover,
  .modal-telegram:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 12px 24px rgba(10, 24, 40, 0.08);
  }

  .contact-methods label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .modal__close:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: rotate(4deg);
  }
}

input:focus-visible,
select:focus-visible {
  border-color: rgba(255, 121, 0, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.1);
}

@media (max-width: 1080px) {
  .header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .cta,
  .expert {
    grid-template-columns: 1fr;
  }

  .hero::before {
    inset-left: 28%;
    opacity: 0.65;
  }

  .result-card {
    max-width: 520px;
  }

  .logo-row,
  .case-grid,
  .pain-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-roadmap__head,
  .system-roadmap__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .system-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-preview {
    min-height: 0;
  }

  .system-preview img {
    height: auto;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .expert {
    align-items: start;
    gap: 28px;
  }

  .expert img {
    width: min(360px, 100%);
  }
}

@media (max-width: 720px) {
  .header,
  .hero,
  .logos,
  .section,
  .cta {
    width: min(100% - 28px, 1180px);
  }

  .header {
    gap: 14px;
    padding: 18px 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    font-size: 32px;
  }

  .header__contact {
    display: none;
  }

  .nav,
  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .hero::before {
    inset: 0 0 0 8%;
    opacity: 0.28;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__actions {
    gap: 12px;
  }

  .benefits,
  .benefits--compact,
  .logo-row,
  .case-grid,
  .pain-grid,
  .service-grid,
  .video-review-grid,
  .faq-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .system-roadmap {
    gap: 22px;
  }

  .system-roadmap__head h2 {
    font-size: 34px;
  }

  .system-roadmap__head p {
    font-size: 16px;
  }

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

  .system-roadmap__body {
    gap: 22px;
  }

  .system-preview {
    min-height: 0;
    border-radius: 16px;
  }

  .system-preview__bar {
    height: 32px;
  }

  .system-preview img {
    height: auto;
  }

  .system-preview__caption {
    padding: 16px;
  }

  .system-preview__caption strong {
    font-size: 20px;
  }

  .system-result {
    grid-template-columns: 1fr;
  }

  .video-review-card {
    grid-template-columns: 1fr;
  }

  .video-review-card video {
    height: auto;
    min-height: 0;
  }

  .case-card {
    grid-template-rows: 210px 1fr;
    min-height: 0;
  }

  .case-card h3 {
    font-size: 25px;
  }

  .case-card__stats,
  .case-card__foot {
    gap: 12px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps div:not(:last-child)::after {
    display: none;
  }

  .cta {
    padding: 24px;
    border-radius: 18px;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 22px;
    border-radius: 20px;
  }

  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .modal .contact-methods label {
    min-height: 40px;
    padding: 0 4px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .system-roadmap__head h2 {
    font-size: 31px;
  }

  .brand__text,
  .nav {
    font-size: 11px;
  }

  .tab {
    padding: 10px 13px;
    font-size: 12px;
  }

  .benefits div,
  .pain-grid div,
  .service-grid div,
  .faq details,
  .case-card__body,
  .video-review-card div,
  .form,
  .modal__dialog {
    padding: 18px;
  }

  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .modal .contact-methods input {
    display: none;
  }
}

/* Premium visual direction: product-grade B2B interface without content changes. */
:root {
  --bg: #f3f6f9;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --text: #07111f;
  --muted: #667386;
  --line: #d9e1ea;
  --orange: #ff7a00;
  --orange-dark: #de6500;
  --dark: #08111f;
  --blue: #12284a;
  --soft-blue: #edf4fb;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 28px 90px rgba(8, 17, 31, 0.12);
  --shadow-soft: 0 18px 48px rgba(8, 17, 31, 0.08);
}

body {
  background:
    radial-gradient(circle at 8% -8%, rgba(255, 122, 0, 0.13), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(18, 40, 74, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfcfd 0%, #f3f6f9 42%, #f8fafc 100%);
  color: #08111f;
}

.header,
.hero,
.logos,
.section,
.cta {
  width: min(1220px, calc(100% - 56px));
}

.header {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 225, 234, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(8, 17, 31, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand__logo {
  font-size: 34px;
}

.brand__line {
  height: 28px;
}

.nav {
  gap: clamp(14px, 2vw, 26px);
}

.nav a {
  color: #1f2b3d;
}

.header__contact {
  min-width: 154px;
}

.btn {
  min-height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff8a1f 0%, var(--orange) 100%);
  box-shadow:
    0 14px 30px rgba(255, 122, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn--small {
  min-height: 44px;
  border-radius: 12px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(8, 17, 31, 0.07);
}

.hero {
  grid-template-columns: minmax(0, 1.06fr) 360px;
  gap: clamp(34px, 5vw, 70px);
  width: 100%;
  min-height: 560px;
  margin-top: 0;
  padding: clamp(38px, 4.5vw, 56px) max(28px, calc((100vw - 1220px) / 2 + 28px));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 36%, rgba(255, 255, 255, 0.18) 82%),
    url("assets/hero-construction-materials.png") center right / cover no-repeat;
  opacity: 0.94;
}

.hero::after {
  inset: auto 0 0;
  background: linear-gradient(90deg, transparent, rgba(217, 225, 234, 0.85), transparent);
}

.eyebrow {
  margin-bottom: 16px;
  color: #40516a;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hero h1,
.cta h2,
.system-roadmap__head h2 {
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(40px, 4.25vw, 56px);
  line-height: 1.02;
}

.hero h1 span {
  display: block;
}

.lead {
  max-width: 650px;
  margin: 20px 0 24px;
  color: #35445a;
  font-size: 18px;
  line-height: 1.56;
}

.hero__actions {
  gap: 14px;
  margin-bottom: 24px;
}

.benefits {
  max-width: 720px;
  gap: 10px;
}

.benefits div {
  min-height: 74px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.06);
}

.benefits b {
  color: #07111f;
  font-size: 15px;
  line-height: 1.18;
}

.benefits span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
}

.benefits .benefits__tight {
  font-size: 11px;
  letter-spacing: -0.02em;
}

.result-card {
  margin-top: 0;
  padding: 32px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 30px 90px rgba(8, 17, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.result-card h2 {
  color: #07111f;
  font-size: 15px;
}

.metric {
  padding: 20px 0;
}

.metric span {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.logos {
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid rgba(217, 225, 234, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 52px rgba(8, 17, 31, 0.06);
}

.logos p,
.section h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.02em;
}

.logo-row span {
  color: #27364b;
  opacity: 0.88;
}

.section {
  padding: 54px 0;
}

.section__head {
  gap: 16px;
}

.section__intro {
  max-width: 820px;
  color: #556277;
  font-size: 18px;
  line-height: 1.62;
}

.tabs {
  gap: 8px;
  padding: 6px;
  width: fit-content;
  contain: none;
  border: 1px solid rgba(217, 225, 234, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(8, 17, 31, 0.06);
}

.tab {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.tab.is-active {
  background: linear-gradient(180deg, #111d2f, #07111f);
  box-shadow: 0 12px 26px rgba(8, 17, 31, 0.22);
}

.case-grid {
  gap: 26px;
  margin-top: 28px;
}

.case-card {
  grid-template-rows: 242px 1fr;
  min-height: 500px;
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(8, 17, 31, 0.09);
}

.case-card__media {
  min-height: 242px;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.02), rgba(8, 17, 31, 0.04)),
    #fbfcfd var(--case-image) center / contain no-repeat;
}

.case-card__body {
  padding: 26px;
}

.case-card p {
  margin-bottom: 12px;
  letter-spacing: 0.035em;
}

.case-card h3 {
  margin-bottom: 24px;
  font-size: 31px;
  letter-spacing: -0.02em;
}

.case-card strong {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.case-card__foot {
  padding-top: 4px;
  color: #334155;
}

.case-card a,
.case-card button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 17, 31, 0.06);
}

.pain-grid {
  gap: 16px;
}

.pain-grid div,
.service-grid div,
.faq details {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 44px rgba(8, 17, 31, 0.06);
}

.pain-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff1e5;
}

.system-roadmap {
  gap: 40px;
  padding: 64px;
  border: 1px solid rgba(217, 225, 234, 0.78);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 0, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.78));
  box-shadow: 0 28px 90px rgba(8, 17, 31, 0.08);
}

.system-roadmap__head h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.8vw, 64px);
}

.system-roadmap__head p {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.62;
}

.system-roadmap__body {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
}

.system-steps {
  gap: 10px;
}

.system-steps button {
  min-height: 76px;
  padding: 16px;
  border-radius: 18px;
}

.system-steps li.is-active button {
  border-color: rgba(217, 225, 234, 0.9);
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.1);
}

.system-preview {
  border-radius: 28px;
  box-shadow: 0 32px 100px rgba(8, 17, 31, 0.16);
}

.system-preview__bar {
  height: 44px;
}

.system-preview__caption {
  padding: 24px 26px 26px;
}

.system-preview__caption strong {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.system-result {
  padding: 24px 28px;
  border-radius: 22px;
}

.expert {
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 52px;
  padding: 64px;
  border: 1px solid rgba(217, 225, 234, 0.78);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0% 0%, rgba(18, 40, 74, 0.08), transparent 30rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 90px rgba(8, 17, 31, 0.08);
}

.expert > img {
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(8, 17, 31, 0.16);
}

.expert__copy h2 {
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: -0.035em;
}

.expert ul {
  gap: 14px;
  font-size: 18px;
}

.expert li::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff1e5;
}

.expert__actions {
  grid-template-columns: minmax(0, 280px);
  align-items: center;
  gap: 12px;
}

.expert__actions .btn,
.expert__actions .telegram-link {
  width: 100%;
}

.expert__actions .btn {
  white-space: nowrap;
}

.certificates {
  grid-column: 1 / -1;
  gap: 18px;
  padding-top: 10px;
}

.certificates .eyebrow {
  margin-bottom: 0;
}

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

.certificate-grid a {
  display: block;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 20px 56px rgba(8, 17, 31, 0.09);
}

.certificate-grid img {
  display: block;
  width: 100%;
  height: clamp(230px, 22vw, 320px);
  border: 1px solid rgba(217, 225, 234, 0.82);
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.certificate-grid span {
  display: none;
}

.video-review-grid {
  gap: 24px;
}

.video-review-card {
  grid-template-columns: 230px 1fr;
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(8, 17, 31, 0.09);
}

.video-review-card div {
  padding: 28px;
}

.video-review-card h3 {
  font-size: 30px;
  letter-spacing: -0.025em;
}

.video-review-card__quote,
blockquote {
  border-radius: 20px;
  background: #f8fafc;
}

.faq-grid {
  gap: 16px;
}

summary {
  min-height: 34px;
}

summary::after {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
}

.cta {
  gap: 54px;
  padding: 56px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.62) 100%),
    url("assets/hero-construction.png") right center / cover no-repeat;
  box-shadow: 0 32px 100px rgba(8, 17, 31, 0.12);
}

.cta h2 {
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1.02;
}

.cta p {
  font-size: 18px;
  line-height: 1.62;
}

.form {
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 74px rgba(8, 17, 31, 0.12);
}

.form input:not([type="radio"]):not([type="checkbox"]),
.form select,
.modal-form input:not([type="radio"]):not([type="checkbox"]),
.modal-form select {
  min-height: 56px;
  border-radius: 14px;
  background: #fbfcfd;
}

.contact-methods label {
  min-height: 40px;
  border-radius: 12px;
}

.modal__dialog {
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(8, 17, 31, 0.34);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .case-card:hover,
  .video-review-card:hover,
  .certificate-grid a:hover {
    box-shadow: 0 30px 80px rgba(8, 17, 31, 0.14);
    transform: translateY(-4px);
  }

  .system-steps button:hover {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .logos,
  .section,
  .cta {
    animation: section-rise 520ms var(--ease-out) both;
  }

  .case-card,
  .pain-grid div,
  .service-grid div,
  .video-review-card,
  .faq details,
  .certificate-grid a {
    animation: card-rise 420ms var(--ease-out) both;
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .header {
    border-radius: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero::before {
    inset: 0;
    opacity: 0.36;
  }

  .system-roadmap,
  .expert,
  .cta {
    padding: 42px;
  }

  .expert {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  }

  .certificate-grid img {
    height: 250px;
  }
}

@media (max-width: 720px) {
  .header,
  .hero,
  .logos,
  .section,
  .cta {
    width: min(100% - 28px, 1220px);
  }

  .header {
    position: static;
    margin-top: 8px;
    padding: 14px;
    border-radius: 22px;
  }

  .header .btn--small {
    order: 2;
  }

  .nav {
    order: 3;
  }

  .hero {
    padding: 30px 20px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .lead {
    font-size: 16px;
    line-height: 1.56;
  }

  .benefits {
    gap: 10px;
  }

  .result-card {
    padding: 24px;
    border-radius: 22px;
  }

  .logos {
    padding: 24px;
    border-radius: 22px;
  }

  .logo-row {
    gap: 16px;
  }

  .section {
    padding: 42px 0;
  }

  .tabs {
    width: 100%;
    border-radius: 22px;
  }

  .tab {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .case-card {
    grid-template-rows: 220px 1fr;
    border-radius: 22px;
  }

  .case-card__body {
    padding: 22px;
  }

  .case-card h3 {
    font-size: 28px;
  }

  .system-roadmap,
  .expert,
  .cta {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .system-roadmap__head h2,
  .cta h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .system-roadmap__head p,
  .cta p {
    font-size: 16px;
  }

  .system-roadmap__body {
    grid-template-columns: 1fr;
  }

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

  .system-preview {
    border-radius: 22px;
  }

  .expert {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .expert > img {
    width: min(100%, 360px);
  }

  .expert__copy h2 {
    font-size: 40px;
  }

  .expert ul {
    font-size: 16px;
  }

  .expert__actions {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

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

  .certificate-grid img {
    height: min(78vw, 390px);
  }

  .video-review-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .cta {
    gap: 26px;
  }

  .form {
    padding: 20px;
    border-radius: 22px;
  }

  .modal__dialog {
    border-radius: 26px;
  }
}

/* Direction tweak: frames only where they explain the product workflow. */
.header {
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(28px, calc((100vw - 1220px) / 2 + 28px));
  border: 0;
  border-bottom: 1px solid rgba(217, 225, 234, 0.82);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.logos,
.expert,
.cta {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

#cases {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 72px max(28px, calc((100vw - 1220px) / 2 + 28px));
  color: #f8fafc;
  isolation: isolate;
}

#cases::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 122, 0, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #08111f 0%, #0c1728 100%);
  content: "";
}

#cases .section__head {
  max-width: 1220px;
  margin-inline: auto;
}

#cases h2 {
  color: #fff;
}

#cases .tabs {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

#cases .tab {
  border-radius: 0;
  color: rgba(248, 250, 252, 0.78);
}

#cases .tab.is-active {
  background: #fff;
  color: #07111f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

#cases .case-grid {
  max-width: 1220px;
  margin-inline: auto;
}

#cases .case-card {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #0f1a2b;
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

#cases .case-card__media {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.08), rgba(8, 17, 31, 0.18)),
    #111827 var(--case-image) center / contain no-repeat;
}

#cases .case-card strong span,
#cases .case-card__foot {
  color: rgba(248, 250, 252, 0.72);
}

#cases .case-card a,
#cases .case-card button {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

#cases .case-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

#cases .case-card__actions a,
#cases .case-card__actions button {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  #cases .case-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  }

  #cases .case-card button:hover,
  #cases .case-card a:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 1080px) {
  .header {
    border-radius: 0;
  }
}

@media (max-width: 720px) {
  .header {
    width: 100%;
    padding: 14px;
    border-radius: 0;
  }

  #cases {
    padding: 52px 14px;
  }

  #cases .tabs {
    border-radius: 0;
  }

  #cases .case-card {
    border-radius: 0;
  }
}

/* Trust block: certificates live inside the expert section, not as a separate tail. */
.expert {
  grid-template-columns: 330px minmax(0, 1fr) minmax(310px, 380px);
  gap: 46px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.certificates {
  grid-column: auto;
  align-self: center;
  gap: 0;
  padding-top: 0;
}

.certificates .eyebrow {
  display: none;
}

.certificate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.certificate-grid a {
  padding: 10px;
  border-radius: 0;
}

.certificate-grid img {
  height: 210px;
  border-radius: 0;
}

.certificate-grid a:nth-child(3) {
  grid-column: 1 / -1;
}

.certificate-grid a:nth-child(3) img {
  height: 170px;
}

.system-roadmap {
  margin-bottom: 0;
}

.system-roadmap + .expert {
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .expert {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .certificates {
    grid-column: 1 / -1;
  }

  .certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .certificate-grid a:nth-child(3) {
    grid-column: auto;
  }

  .certificate-grid img,
  .certificate-grid a:nth-child(3) img {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .expert {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .expert > img {
    width: min(76vw, 280px);
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

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

  .certificate-grid img,
  .certificate-grid a:nth-child(3) img {
    height: min(78vw, 390px);
  }
}

/* Requested refinements: smoother trust transition, Telegram button, certificate order, one-row cases. */
#expert {
  width: 100%;
  max-width: none;
  padding-right: max(28px, calc((100vw - 1220px) / 2 + 28px));
  padding-left: max(28px, calc((100vw - 1220px) / 2 + 28px));
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(237, 243, 248, 0.82) 14%, rgba(237, 243, 248, 0.82) 84%, rgba(248, 250, 252, 0) 100%);
}

#cases .tab span {
  display: none;
}

#cases .case-card[hidden] {
  display: none;
}

.cases-more {
  display: flex;
  justify-content: center;
  max-width: 1220px;
  margin: 28px auto 0;
}

.cases-more[hidden] {
  display: none;
}

#cases .cases-more .btn {
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.telegram-link,
.modal-telegram {
  gap: 8px;
  border-color: #1d9bd8;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 14px 28px rgba(34, 158, 217, 0.18);
}

.telegram-link::before,
.modal-telegram::before {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.8 4.4 18.6 20c-.2 1-1.1 1.2-1.9.7l-5.2-3.8-2.5 2.4c-.3.3-.5.5-1.1.5l.4-5.3 9.7-8.8c.4-.4-.1-.6-.7-.2L5.2 13.1.1 11.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.1c.9-.3 1.7.2 1.3 2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.8 4.4 18.6 20c-.2 1-1.1 1.2-1.9.7l-5.2-3.8-2.5 2.4c-.3.3-.5.5-1.1.5l.4-5.3 9.7-8.8c.4-.4-.1-.6-.7-.2L5.2 13.1.1 11.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.1c.9-.3 1.7.2 1.3 2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.expert__actions .telegram-link {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
}

.certificate-grid {
  grid-template-areas: none;
}

.certificate-grid a:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.certificate-grid a:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.certificate-grid a:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.certificate-grid a:nth-child(2) img {
  height: 170px;
}

.certificate-grid a:nth-child(3) img {
  height: 210px;
}

@media (hover: hover) and (pointer: fine) {
  .telegram-link:hover,
  .modal-telegram:hover {
    border-color: #168ac1;
    background: #168ac1;
    color: #fff;
    box-shadow: 0 18px 34px rgba(34, 158, 217, 0.24);
  }

  #cases .cases-more .btn:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 1080px) {
  .certificate-grid {
    grid-template-areas: none;
  }

  .certificate-grid a:nth-child(1),
  .certificate-grid a:nth-child(2),
  .certificate-grid a:nth-child(3) {
    grid-area: auto;
  }
}

@media (max-width: 720px) {
  #expert {
    padding-right: 14px;
    padding-left: 14px;
  }

  .cases-more {
    margin-top: 22px;
  }
}

/* Mobile simplification: calmer first screen, less visual weight. */
@media (max-width: 720px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 14px 10px;
    background: rgba(255, 255, 255, 0.94);
  }

  .brand {
    gap: 9px;
  }

  .brand__logo {
    font-size: 28px;
  }

  .brand__line {
    height: 24px;
  }

  .brand__text {
    font-size: 10px;
  }

  .header .btn--small {
    order: 0;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 10px;
    box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
    font-size: 11px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    width: 100%;
    min-height: 0;
    padding: 28px 18px 30px;
    border-radius: 0;
  }

  .hero::before {
    inset: 0;
    opacity: 0.18;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%),
      url("assets/hero-construction-materials.png") center right / cover no-repeat;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.055em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .lead {
    margin: 18px 0 20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero__actions {
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero__actions .btn {
    min-height: 50px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .benefits div {
    min-height: 54px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
  }

  .benefits b {
    font-size: 12px;
  }

  .benefits span {
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 14px;
  }
}

/* Final mobile/desktop refinements: cases reveal by threes, certificates, reviews, modal fit. */
.certificate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.certificate-grid a:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.certificate-grid a:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.certificate-grid a:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.certificate-grid img,
.certificate-grid a:nth-child(2) img,
.certificate-grid a:nth-child(3) img {
  height: 190px;
  object-fit: contain;
}

.certificate-grid a:nth-child(2) img {
  height: 210px;
}

@media (max-width: 1080px) {
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-grid a:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .certificate-grid a:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    order: 2;
  }

  .certificate-grid a:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
  }

  .certificate-grid img,
  .certificate-grid a:nth-child(2) img,
  .certificate-grid a:nth-child(3) img {
    height: 230px;
  }
}

@media (max-width: 720px) {
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .certificate-grid a:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .certificate-grid a {
    padding: 8px;
  }

  .certificate-grid img,
  .certificate-grid a:nth-child(2) img,
  .certificate-grid a:nth-child(3) img {
    height: 210px;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .certificate-grid a:nth-child(2) img {
    height: 230px;
  }

  .video-reviews .section__intro {
    font-size: 16px;
    line-height: 1.55;
  }

  .video-review-grid {
    gap: 14px;
  }

  .video-review-card {
    border-radius: 16px;
  }

  .video-review-card video {
    max-height: 280px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
  }

  .video-review-card div {
    padding: 16px;
  }

  .video-review-card h3 {
    font-size: 24px;
  }

  .video-review-card__quote {
    margin: 10px 0 0;
    padding: 14px;
    font-size: 13px;
    line-height: 1.42;
  }

  .video-review-card__quote cite {
    margin-top: 10px;
    font-size: 11px;
  }

  .modal {
    align-items: center;
    padding: 8px;
  }

  .modal__dialog {
    max-height: calc(100dvh - 16px);
    padding: 18px;
    border-radius: 22px;
  }

  .modal h2 {
    margin-right: 44px;
    font-size: 25px;
  }

  .modal p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.42;
  }

  .modal-form {
    gap: 8px;
  }

  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .modal .contact-methods label {
    min-height: 38px;
    padding: 0 4px;
    font-size: 11px;
  }

  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 44px;
    border-radius: 12px;
  }

  .modal-check {
    font-size: 10px;
    line-height: 1.18;
  }

  .modal-form .btn {
    min-height: 48px;
    margin-top: 0;
  }

  .modal-telegram {
    margin-top: 8px;
    min-height: 40px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .video-reviews .section__intro {
    font-size: 15px;
  }

  .video-review-card video {
    max-height: 250px;
  }

  .modal__dialog {
    padding: 14px;
  }

  .modal h2 {
    font-size: 24px;
  }

  .modal .contact-methods label {
    min-height: 36px;
    font-size: 10px;
  }

  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 42px;
  }

  .custom-select__list {
    max-height: 176px;
  }
}

@media (max-width: 720px) and (max-height: 640px) {
  .modal {
    padding: 6px;
  }

  .modal__dialog {
    max-height: calc(100dvh - 12px);
    padding: 12px;
  }

  .modal h2 {
    margin-bottom: 6px;
    font-size: 22px;
  }

  .modal p {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.32;
  }

  .modal-form {
    gap: 6px;
  }

  .modal .contact-methods {
    gap: 5px;
  }

  .modal .contact-methods label {
    min-height: 32px;
    font-size: 9px;
  }

  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 38px;
  }

  .custom-select__list button {
    min-height: 34px;
    font-size: 12px;
  }

  .modal-check {
    font-size: 9px;
  }

  .modal-form .btn {
    min-height: 44px;
  }

  .modal-telegram {
    min-height: 36px;
  }
}

/* Certificate order: Yandex left, traffic manager right, B2B wide below. */
.certificate-grid a:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  order: 1;
}

.certificate-grid a:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  order: 2;
}

.certificate-grid a:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 3;
}

.certificate-grid a:nth-child(2) img {
  height: 190px;
}

.certificate-grid a:nth-child(3) img {
  height: 210px;
}

@media (max-width: 1080px) {
  .certificate-grid a:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .certificate-grid a:nth-child(2) img {
    height: 230px;
  }

  .certificate-grid a:nth-child(3) img {
    height: 230px;
  }
}

@media (max-width: 720px) {
  .certificate-grid a:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .certificate-grid a:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .certificate-grid a:nth-child(2) img {
    height: 210px;
  }

  .certificate-grid a:nth-child(3) img {
    height: 230px;
  }
}

/* Header CTA and case CTA stability after copy update. */
.header .btn--small {
  max-width: 260px;
  white-space: nowrap;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-card__stats,
.case-card__foot {
  width: 100%;
}

.case-card button[data-open-modal] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  max-width: 100%;
  margin-top: auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .header .btn--small {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: 160px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0;
  }

  .header .btn--small::before {
    content: "Обсудить проект";
    font-size: 11px;
  }

  .case-card button[data-open-modal] {
    width: 100%;
  }
}

/* Mobile system accordion: screenshots open under the selected step. */
.system-step-panel {
  display: none;
}

@media (max-width: 720px) {
  .system-roadmap__body > .system-preview {
    display: none;
  }

  .system-steps {
    gap: 10px;
  }

  .system-steps li {
    display: block;
  }

  .system-steps button {
    width: 100%;
  }

  .system-step-panel {
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 17, 31, 0.1);
  }

  .system-step-panel:not([hidden]) {
    display: block;
  }

  .system-step-panel .system-preview__bar {
    height: 30px;
    padding: 0 12px;
  }

  .system-step-panel .system-preview__bar span {
    width: 7px;
    height: 7px;
  }

  .system-step-panel .system-preview__bar em {
    font-size: 9px;
  }

  .system-step-panel img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
  }

  .system-step-panel .system-preview__caption {
    padding: 14px;
  }

  .system-step-panel .system-preview__caption strong {
    font-size: 18px;
  }

  .system-step-panel .system-preview__caption p {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* Video reviews as round video portraits. */
.video-review-grid {
  align-items: stretch;
}

.video-review-card {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: visible;
  padding: 24px;
}

.video-review-card video {
  width: 180px;
  height: 180px;
  min-height: 0;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #0b1220;
  box-shadow:
    0 18px 38px rgba(8, 17, 31, 0.18),
    0 0 0 1px rgba(217, 225, 234, 0.9);
  object-fit: cover;
  object-position: center 78%;
}

.video-review-card div {
  padding: 0;
}

.video-review-card__quote {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .video-review-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .video-review-card video {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }

  .video-review-card p {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .video-review-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .video-review-card__quote {
    padding: 12px;
  }
}

/* Expert proof list: keep icon and wrapped text aligned. */
.expert ul {
  max-width: 560px;
}

.expert li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  line-height: 1.45;
}

.expert li::before {
  margin: 2px 0 0;
}

@media (max-width: 720px) {
  .expert ul {
    gap: 11px;
    max-width: none;
  }

  .expert li {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 10px;
    font-size: 15px;
    line-height: 1.42;
  }

.expert li::before {
    width: 22px;
    height: 22px;
  }
}

/* Pain cards: restore clean readable layout. */
.pain-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pain-grid div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-height: 96px;
  padding: 22px;
  line-height: 1.45;
}

.pain-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  background: #fff1e5;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid div {
    min-height: 0;
    padding: 18px;
  }
}

/* Tablet / landscape phone header: keep controls readable without clipping. */
@media (min-width: 721px) and (max-width: 1080px) {
  .header {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px 18px;
    align-items: center;
    padding: 14px 28px;
  }

  .brand {
    min-width: 0;
  }

  .header__contact {
    justify-self: center;
    min-width: 150px;
  }

  .header .btn--small {
    justify-self: end;
    max-width: none;
    padding: 0 20px;
    font-size: 13px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 22px;
    width: 100%;
    padding-top: 6px;
    overflow: visible;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Bottom CTA form: keep submit button visible on mobile. */
@media (max-width: 720px) {
  .cta {
    padding: 28px 16px;
  }

  .cta .benefits--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cta .benefits--compact div {
    min-height: 58px;
    padding: 12px;
  }

  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 14px;
    border-radius: 20px;
  }

  .form .contact-methods,
  .form .btn,
  .form small {
    grid-column: 1 / -1;
  }

  .form .contact-methods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .form .contact-methods > span {
    grid-column: 1 / -1;
  }

  .form .contact-methods label {
    justify-content: center;
    min-height: 34px;
    padding: 0 4px;
    font-size: 10px;
  }

  .form input:not([type="radio"]):not([type="checkbox"]),
  .form select {
    min-height: 44px;
    border-radius: 12px;
  }

  .form .btn {
    min-height: 48px;
    margin-top: 2px;
    font-size: 14px;
  }

  .form small {
    font-size: 11px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 32px);
    padding: 28px 0 34px;
  }

  .legal-site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 0;
    padding: 10px 14px;
  }

  .legal-site-header .brand__logo {
    font-size: 28px;
  }

  .legal-site-header .brand__text,
  .legal-site-header .brand__line,
  .legal-site-header .header__contact {
    display: none;
  }

  .legal-site-header .btn {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0;
  }

  .legal-site-header .btn::before {
    content: "Обсудить проект";
    font-size: 11px;
  }

  .legal-site-header .nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 7px 0 1px;
    overflow-x: auto;
  }

  .legal-main {
    width: min(100% - 28px, 920px);
    padding: 34px 0 44px;
  }

  .legal-card {
    border-radius: 14px;
  }

  .legal-footer-dark {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 18px;
  }

  .legal-footer-dark__links {
    justify-content: flex-start;
    gap: 14px 22px;
  }
}

@media (max-width: 370px) {
  .form .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Loss section: diagnostic funnel + premium reason cards. */
.pain {
  width: 100%;
  max-width: none;
  padding: 58px max(28px, calc((100vw - 1220px) / 2)) 46px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 111, 0, 0.1), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f3f7fb 100%);
}

.pain__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.pain__intro {
  display: flex;
}

.pain__header {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 46px;
}

.pain h2 {
  max-width: 760px;
  margin: 0;
  color: #08111f;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pain__header > p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #344154;
  font-size: 19px;
  line-height: 1.45;
}

.pain__accent {
  display: block;
  width: 46px;
  height: 2px;
  margin: 18px 0 14px;
  background: var(--orange);
}

.pain-funnel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 430px;
  padding: 16px;
  border: 1px solid rgba(217, 225, 234, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(8, 17, 31, 0.09);
}

.pain-funnel__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 16px;
  color: #99a4b5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pain-funnel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 16px;
  align-items: stretch;
  flex: 1;
}

.funnel-stack {
  display: grid;
  gap: 3px;
  align-content: center;
}

.funnel-stage {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 14px 30px 14px 96px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #07111f 0%, #152234 100%);
  box-shadow: 0 16px 35px rgba(8, 17, 31, 0.16);
}

.funnel-stage:nth-child(2) {
  margin: 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #0b1727 0%, #1b2a3d 100%);
}

.funnel-stage:nth-child(3) {
  margin: 0 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #243244 0%, #435063 100%);
}

.funnel-stage:nth-child(4) {
  margin: 0 56px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #657181 0%, #87909c 100%);
}

.funnel-stage::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  transform: translateY(-50%);
}

.funnel-stage b {
  font-size: 15px;
  line-height: 1.15;
}

.funnel-stage span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.loss-list {
  display: grid;
  gap: 3px;
}

.loss-list div {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 68px;
  padding-left: 22px;
}

.loss-list div::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 30px;
  border-top: 1px dashed rgba(255, 111, 0, 0.75);
}

.loss-list div::after {
  content: "";
  position: absolute;
  left: -18px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.loss-list b {
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
}

.loss-list span {
  margin-top: 6px;
  color: #1b2738;
  font-size: 12px;
  line-height: 1.3;
}

.pain-funnel__note {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 16px;
  color: #08111f;
  background: linear-gradient(135deg, #fff3e9 0%, #fff8f2 100%);
}

.pain-funnel__note b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 24px;
}

.pain-funnel__note strong {
  font-size: 15px;
  line-height: 1.45;
}

.pain-funnel__note span {
  color: var(--orange);
}

.pain__reasons h3 {
  margin: 0 0 12px;
  color: #08111f;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

.pain-card {
  display: grid;
  min-height: 196px;
  padding: 15px;
  border: 1px solid rgba(217, 225, 234, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 58px rgba(8, 17, 31, 0.08);
}

.pain-card > span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  background: #fff1e5;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.pain-card i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  color: #152234;
  background: #f1f4f8;
  font-style: normal;
  font-size: 20px;
  letter-spacing: -0.08em;
}

.pain-card h4 {
  margin: 0;
  color: #08111f;
  font-size: 15px;
  line-height: 1.25;
}

.pain-card em {
  width: 24px;
  height: 2px;
  margin: 10px 0;
  background: var(--orange);
}

.pain-card p {
  margin: 0;
  color: #28364a;
  font-size: 12px;
  line-height: 1.38;
}

.pain-cta {
  width: calc(100% + max(56px, calc(100vw - 1220px)));
  max-width: none;
  margin: 28px calc(-1 * max(28px, calc((100vw - 1220px) / 2))) 0;
  padding: 22px max(28px, calc((100vw - 1220px) / 2));
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 76% 50%, rgba(31, 99, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #07111f 0%, #111d2e 100%);
  box-shadow: 0 20px 60px rgba(8, 17, 31, 0.14);
}

.pain + .system-roadmap {
  margin-top: 0;
}

.pain-cta__inner {
  display: grid;
  grid-template-columns: 86px minmax(0, 1.1fr) minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.pain-cta__icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 34px;
}

.pain-cta strong {
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.pain-cta strong span {
  color: var(--orange);
  font-size: 1.35em;
}

.pain-cta p {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.45;
}

.pain-cta__action {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.pain-cta__action .btn {
  width: 100%;
  box-shadow: 0 16px 36px rgba(255, 111, 0, 0.28);
}

.pain-cta small {
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

@media (max-width: 1080px) {
  .pain {
    padding: 54px 28px 40px;
  }

  .pain__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pain h2,
  .pain__header > p {
    max-width: 760px;
  }

  .pain-cta {
    width: calc(100% + 56px);
    margin-right: -28px;
    margin-left: -28px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .pain-cta__inner {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pain-cta p,
  .pain-cta__action {
    grid-column: 1 / -1;
  }

  .pain-cta p {
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .pain {
    padding: 42px 14px 34px;
  }

  .pain h2 {
    font-size: 34px;
  }

  .pain__header > p {
    font-size: 17px;
  }

  .pain-funnel {
    display: none;
  }

  .pain .pain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pain-card {
    min-height: 0;
    padding: 16px;
  }

  .pain-card i {
    width: 58px;
    height: 58px;
    margin: 4px 0 14px;
    font-size: 23px;
  }

  .pain-card h4 {
    font-size: 17px;
  }

  .pain-card em {
    margin: 14px 0;
  }

  .pain-cta {
    width: calc(100% + 28px);
    margin-right: -14px;
    margin-left: -14px;
    padding: 22px 14px;
  }

  .pain-cta__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pain-cta__icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .pain-cta p,
  .pain-cta__action {
    grid-column: auto;
  }

  .pain-cta p {
    padding: 0;
    border: 0;
  }
}

/* Video tour section before the trust block. */
.video-tour {
  width: min(1220px, calc(100% - 56px));
  padding: 76px 0 54px;
}

.video-tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
  gap: 38px;
  align-items: end;
}

.video-tour__main,
.video-tour__side,
.tour-video,
.video-tour__stats,
.video-tour__stats > *,
.video-tour__telegram,
.video-tour__button {
  min-width: 0;
}

.video-tour .eyebrow {
  color: var(--orange);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.video-tour h2 {
  max-width: 820px;
  margin: 8px 0 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.video-tour__main > p {
  max-width: 720px;
  margin: 0;
  color: #465266;
  font-size: 19px;
  line-height: 1.55;
}

.video-tour__main > p span,
.video-tour h2 span {
  color: var(--orange);
}

.video-tour__proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 28px 0 26px;
}

.video-tour__proofs div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.video-tour__proofs span {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff1e5;
  color: var(--orange);
  font-size: 22px;
}

.video-tour__proofs b,
.video-tour__proofs small {
  display: block;
}

.video-tour__proofs b {
  color: #111827;
  font-size: 16px;
}

.video-tour__proofs small {
  color: #465266;
  font-size: 15px;
}

.tour-video {
  position: relative;
  display: block;
  max-width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border: 2px solid #121c2c;
  border-radius: 16px;
  background: #0b1220;
  box-shadow: 0 26px 70px rgba(8, 17, 31, 0.18);
}

.tour-video__bar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #657184;
  backdrop-filter: blur(12px);
}

.tour-video__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tour-video__bar span:nth-child(1) { background: #ff6b6b; }
.tour-video__bar span:nth-child(2) { background: #ffd166; }
.tour-video__bar span:nth-child(3) { background: #52d273; }

.tour-video__bar em {
  margin-left: auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.95) contrast(1.02);
}

.tour-video::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 17, 31, 0.92) 100%);
  content: "";
}

.tour-video__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a1d 0%, #ff6f00 100%);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 20px 44px rgba(255, 111, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.tour-video:hover .tour-video__play {
  box-shadow: 0 24px 58px rgba(255, 111, 0, 0.42);
  transform: translate(-50%, -50%) scale(1.05);
}

.tour-video__controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 24px;
  color: #fff;
}

.tour-video__controls b {
  color: #fff;
}

.tour-video__controls span {
  font-weight: 800;
}

.tour-video__controls i {
  position: relative;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.tour-video__controls i::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: inherit;
  background: var(--orange);
  content: "";
}

.video-tour__side {
  padding: 30px 26px;
  border: 1px solid rgba(217, 225, 234, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(8, 17, 31, 0.055);
}

.video-tour__side h3 {
  margin: 0;
  color: #08111f;
  font-size: 28px;
  line-height: 1.15;
}

.video-tour__line {
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px 0 20px;
  background: var(--orange);
}

.video-tour__side ul {
  display: grid;
  gap: 13px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.video-tour__side li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #142033;
  font-size: 16px;
  line-height: 1.4;
}

.video-tour__side li div {
  min-width: 0;
}

.video-tour__side li b,
.video-tour__side li small {
  display: block;
}

.video-tour__side li b {
  color: #142033;
  font-size: 15px;
  line-height: 1.28;
}

.video-tour__side li small {
  margin-top: 4px;
  color: #465266;
  font-size: 13px;
  line-height: 1.35;
}

.video-tour__side li span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff1e5;
  color: var(--orange);
  font-size: 25px;
}

.video-tour .tour-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 121, 0, 0.22);
  border-radius: 50%;
  background: rgba(255, 244, 234, 0.74);
  color: var(--orange);
  box-shadow: none;
}

.video-tour .tour-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-tour__button {
  display: grid;
  grid-template-columns: 38px minmax(0, max-content);
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 62px;
  gap: 14px;
  padding: 10px 22px;
  font-size: 17px;
  line-height: 1.18;
  text-align: left;
  white-space: normal;
}

.video-tour__button span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  line-height: 1;
}

.video-tour__side > p {
  margin: 12px 0 22px;
  color: #657184;
  font-size: 14px;
  line-height: 1.45;
}

.video-tour__telegram {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #364358;
  font-size: 14px;
}

.video-tour__telegram > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #23a8e8;
  color: #fff;
}

.video-tour__telegram a {
  color: #1574d1;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.video-tour__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid rgba(217, 225, 234, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(8, 17, 31, 0.045);
}

.video-tour__stats div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 0 18px;
  border-right: 1px solid rgba(217, 225, 234, 0.68);
}

.video-tour__stats div > span {
  grid-row: span 2;
}

.video-tour__stats b {
  color: #08111f;
  font-size: 18px;
  line-height: 1.2;
}

.video-tour__stats p {
  margin: 0;
  color: #364358;
  font-size: 14px;
}

.video-tour__stats blockquote {
  position: relative;
  margin: 0;
  padding: 0 0 0 34px;
  color: #364358;
  font-size: 16px;
  line-height: 1.45;
}

.video-tour__stats blockquote::before {
  position: absolute;
  top: -18px;
  left: 0;
  color: #d8dee8;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  content: "“";
}

@media (max-width: 1080px) {
  .video-tour {
    width: min(100% - 56px, 1220px);
    padding: 60px 0 42px;
  }

  .video-tour__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .video-tour__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 20px 28px;
    align-items: start;
  }

  .video-tour__side h3,
  .video-tour__line,
  .video-tour__side ul {
    grid-column: 1;
  }

  .video-tour__button,
  .video-tour__side > p,
  .video-tour__telegram {
    grid-column: 2;
  }

  .video-tour__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-tour__stats blockquote {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(217, 225, 234, 0.9);
  }
}

@media (max-width: 720px) {
  .video-tour {
    width: min(100% - 28px, 1220px);
    padding: 44px 0 32px;
  }

  .video-tour h2 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.04;
  }

  .video-tour__main > p {
    font-size: 16px;
  }

  .video-tour__proofs {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0;
  }

  .tour-video {
    border-radius: 14px;
  }

  .tour-video img {
    aspect-ratio: 4 / 3;
  }

  .tour-video__play {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .tour-video__controls {
    grid-template-columns: 24px auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .video-tour__side {
    display: block;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .video-tour__side h3 {
    font-size: 24px;
  }

  .video-tour__side ul {
    gap: 14px;
  }

  .video-tour__side li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    font-size: 15px;
  }

  .video-tour__side li span {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .video-tour .tour-icon {
    width: 40px;
    height: 40px;
  }

  .video-tour .tour-icon svg {
    width: 20px;
    height: 20px;
  }

  .video-tour__button {
    grid-template-columns: 34px minmax(0, max-content);
    gap: 12px;
    min-height: 56px;
    padding: 9px 18px;
    font-size: 15px;
  }

  .video-tour__button span {
    width: 34px;
    height: 34px;
  }

  .video-tour__telegram {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .video-tour__telegram a {
    grid-column: 2;
  }

  .video-tour__stats {
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding: 8px 18px 18px;
    border-radius: 18px;
  }

  .video-tour__stats div {
    min-height: 74px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  }

  .video-tour__stats b {
    font-size: 18px;
  }

  .video-tour__stats blockquote {
    padding: 20px 0 0 28px;
    font-size: 14px;
  }
}

/* Bottom CTA: background spans the full viewport, content stays readable. */
.cta {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: 64px max(28px, calc((100vw - 1180px) / 2 + 28px));
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 56%, rgba(255, 255, 255, 0.6) 100%),
    url("assets/hero-construction.png") right center / cover no-repeat;
  box-shadow: none;
}

@media (max-width: 720px) {
  .cta {
    padding: 32px 16px;
  }
}

.case-card a[href^="cases/"] {
  margin-top: auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  min-width: 154px;
  padding: 0 18px;
  line-height: 1;
  text-align: center;
}
