:root {
  --blue: #21458f;
  --blue-dark: #16336f;
  --blue-soft: #e9eef8;
  --red: #ee3f23;
  --red-dark: #c92e16;
  --graphite: #2b3036;
  --muted: #6a737d;
  --line: #dce1e7;
  --soft: #f1f3f6;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(22, 38, 62, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.logo img {
  display: block;
  width: 164px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #364050;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.header-email {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-email:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}

.btn-mini {
  min-height: 36px;
  padding: 9px 13px;
  font-size: 13px;
}

.btn-accent {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.btn-accent:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-light {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.btn-light:hover {
  color: var(--red);
  border-color: var(--red);
}

.btn-full {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 58px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.2) 100%),
    url("assets/hero-premium.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 128px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  color: var(--graphite);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 21px;
  line-height: 1.22;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 26px;
  color: #3f4650;
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.hero-proof div {
  min-height: 98px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 225, 231, 0.88);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 38, 62, 0.08);
}

.hero-proof strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 18px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 14px;
}

.lead-form {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(22, 38, 62, 0.18);
}

.lead-form h2 {
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: 24px;
}

label {
  display: block;
  margin-bottom: 13px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #414a55;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--graphite);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
}

.facts {
  padding: 26px 0;
  background: var(--blue-dark);
}

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

.facts-grid div {
  padding-left: 18px;
  color: var(--white);
  border-left: 4px solid var(--red);
}

.facts-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.facts-grid span {
  color: rgba(255, 255, 255, 0.76);
}

.trust-section {
  padding-top: 82px;
}

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

.trust-grid article {
  min-height: 300px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(22, 38, 62, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(22, 38, 62, 0.12);
}

.trust-grid img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.trust-grid div {
  padding: 18px;
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 18px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
}

.task-section {
  padding-top: 0;
}

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

.task-grid div {
  position: relative;
  min-height: 132px;
  padding: 20px;
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 238, 248, 0.92)),
    repeating-linear-gradient(90deg, rgba(33, 69, 143, 0.12) 0 1px, transparent 1px 28px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(22, 38, 62, 0.06);
}

.task-grid span {
  display: block;
  width: 42px;
  height: 24px;
  margin-bottom: 18px;
  border: 2px solid var(--blue);
  border-top: 0;
  transform: skewX(-14deg);
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-head-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 42px;
  max-width: none;
  align-items: end;
}

.section-head-wide > p,
.repair-grid p,
.catalog-card p,
.steps p,
.production p,
.contacts p,
.request-section p {
  color: var(--muted);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.direction-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(22, 38, 62, 0.09);
  overflow: hidden;
}

.direction-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}

.direction-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 28px solid var(--blue-soft);
  border-radius: 50%;
}

.direction-card-product,
.direction-card-repair {
  min-height: 340px;
  color: var(--white);
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.direction-card-product {
  background:
    linear-gradient(180deg, rgba(18, 34, 58, 0.12), rgba(18, 34, 58, 0.88)),
    url("assets/product-trailer.png") center / cover no-repeat;
}

.direction-card-repair {
  background:
    linear-gradient(180deg, rgba(18, 34, 58, 0.12), rgba(18, 34, 58, 0.88)),
    url("assets/repair-workshop.png") center / cover no-repeat;
}

.direction-card-product::after,
.direction-card-repair::after {
  display: none;
}

.direction-card-product h3,
.direction-card-product p,
.direction-card-repair h3,
.direction-card-repair p {
  color: var(--white);
}

.direction-card-product .card-label,
.direction-card-repair .card-label {
  color: rgba(255, 255, 255, 0.45);
}

.direction-card-product a,
.direction-card-repair a,
.direction-card-product .direction-link,
.direction-card-repair .direction-link {
  color: var(--white);
  width: fit-content;
}

.direction-card > * {
  position: relative;
  z-index: 1;
}

.card-label {
  display: block;
  margin-bottom: 38px;
  color: #c9d1dc;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.direction-card a,
.direction-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-bottom: 2px solid var(--red);
}

.featured-products {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  margin-bottom: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  min-height: 360px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(22, 38, 62, 0.09);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature-card div {
  padding: 30px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  color: var(--red-dark);
  background: #fff0ec;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3 {
  color: var(--blue-dark);
  font-size: 28px;
}

.feature-card-blue {
  grid-template-columns: 1fr;
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.feature-card-blue img {
  height: 190px;
  min-height: 190px;
}

.feature-card-blue h3,
.feature-card-blue p {
  color: var(--white);
}

.feature-card-blue span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.catalog-list {
  display: grid;
  gap: 16px;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 38, 62, 0.08);
}

.catalog-card img {
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.catalog-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  height: 160px;
  overflow: hidden;
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(233, 238, 248, 0.95), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(90deg, rgba(33, 69, 143, 0.16) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(33, 69, 143, 0.12) 0 1px, transparent 1px 24px);
}

.catalog-placeholder::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 38px;
  border: 4px solid var(--red);
  border-top: 0;
  transform: skewX(-14deg);
}

.catalog-placeholder::after {
  content: "";
  position: absolute;
  bottom: 35px;
  width: 76%;
  height: 4px;
  background: var(--blue);
}

.catalog-placeholder span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  color: var(--white);
  background: var(--blue);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-placeholder-blue {
  background:
    linear-gradient(135deg, rgba(22, 51, 111, 0.94), rgba(36, 56, 79, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 24px);
}

.catalog-placeholder-blue::after {
  background: var(--red);
}

.catalog-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 10px;
}

.catalog-card h3 {
  min-height: 52px;
  color: var(--blue-dark);
}

.catalog-tag {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: var(--red-dark);
  background: #fff0ec;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-card ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: auto 0 0;
  color: #596574;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.catalog-card ul::after {
  content: "Стоимость рассчитывается по задаче";
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.catalog-card li {
  position: relative;
  padding-left: 16px;
}

.catalog-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 3px;
  background: var(--red);
}

.catalog-card .btn {
  width: calc(100% - 36px);
  margin: 10px 18px 18px;
}

.repair-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 0;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(22, 38, 62, 0.09);
}

.repair-showcase img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.repair-showcase > div {
  padding: 38px;
}

.repair-showcase h3 {
  color: var(--blue-dark);
  font-size: 32px;
}

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

.repair-showcase li {
  position: relative;
  padding-left: 22px;
  color: #44505c;
  font-weight: 700;
}

.repair-showcase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 3px;
  background: var(--red);
}

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

.repair-grid article,
.steps article {
  min-height: 170px;
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.repair-grid article {
  border-top: 4px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repair-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 38, 62, 0.08);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
  border-radius: 4px;
}

.service-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--red);
  cursor: pointer;
  font-weight: 800;
}

.other-directions {
  margin-top: 28px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.other-directions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.other-directions li {
  padding: 8px 12px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.production {
  color: var(--white);
  background: #24384f;
}

.production h2 {
  color: var(--white);
}

.production p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1fr);
  gap: 46px;
  align-items: center;
}

.production-visual {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.production-visual img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
}

.capabilities div,
.capabilities button {
  min-height: 82px;
  padding: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.capabilities span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.capabilities button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 43px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--line);
}

.steps article {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(22, 38, 62, 0.06);
  z-index: 1;
}

.steps article::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 74px;
  height: 74px;
  border: 14px solid var(--blue-soft);
  border-radius: 50%;
}

.steps span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
}

.calc-inputs {
  background:
    linear-gradient(90deg, rgba(22, 51, 111, 0.94), rgba(36, 56, 79, 0.92)),
    url("assets/production-cnc.png") center / cover no-repeat;
  color: var(--white);
}

.repair-inputs {
  background: var(--soft);
}

.repair-inputs h2 {
  color: var(--graphite);
}

.repair-inputs p {
  color: var(--muted);
}

.repair-inputs .calc-list div {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(22, 38, 62, 0.07);
}

.calc-inputs h2 {
  color: var(--white);
}

.calc-inputs p {
  color: rgba(255, 255, 255, 0.78);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: center;
}

.calc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calc-list div {
  min-height: 82px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.calc-list div:first-child {
  grid-column: span 2;
}

.city-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.city-cards div {
  min-height: 120px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 238, 248, 0.94)),
    linear-gradient(45deg, transparent 48%, rgba(33, 69, 143, 0.12) 49%, rgba(33, 69, 143, 0.12) 51%, transparent 52%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.city-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 20px;
}

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

.mobile-action-bar {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.58);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translateY(10px);
  transition: transform 0.18s ease;
}

.modal.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-form {
  box-shadow: 0 28px 90px rgba(8, 18, 38, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 9px;
  width: 18px;
  height: 2px;
  background: var(--blue-dark);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

body.modal-lock {
  overflow: hidden;
}

.contacts-grid,
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(22, 38, 62, 0.08);
}

.contact-panel > a {
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-panel span {
  color: #4b5561;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.request-section {
  background: var(--soft);
}

.request-form {
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-inner img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-inner strong {
  display: block;
  color: var(--white);
}

.footer-inner a {
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.thank-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
    url("assets/hero-premium.png") center / cover no-repeat;
}

.thank-card {
  width: min(100%, 680px);
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(22, 38, 62, 0.16);
}

.thank-card img {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 26px;
}

.thank-card h1 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 54px);
}

.thank-card p {
  color: var(--muted);
  font-size: 18px;
}

.thank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 16px 35px rgba(22, 38, 62, 0.12);
  }

  .main-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .section-head-wide,
  .featured-products,
  .repair-showcase,
  .production-grid,
  .contacts-grid,
  .request-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    max-width: 560px;
  }

  .repair-grid,
  .facts-grid,
  .hero-proof,
  .trust-grid,
  .catalog-grid,
  .calc-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

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

  .steps::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-phone,
  .header-email,
  .header-actions .btn-small {
    display: none;
  }

  .logo img {
    width: 136px;
  }

  .hero {
    min-height: 0;
    padding: 44px 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
      url("assets/hero-premium.png") center / cover no-repeat;
  }

  h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-buttons,
  .contact-links,
  .thank-actions {
    display: grid;
  }

  .section {
    padding: 64px 0;
  }

  .direction-grid,
  .feature-card,
  .catalog-card,
  .capabilities,
  .calc-list,
  .city-cards,
  .steps,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .calc-list div:first-child {
    grid-column: auto;
  }

  .catalog-card {
    align-items: start;
  }

  .feature-card img,
  .repair-showcase img {
    min-height: 240px;
  }

  .lead-form,
  .direction-card,
  .contact-panel,
  .repair-showcase > div,
  .feature-card div {
    padding: 22px;
  }

  body {
    padding-bottom: 70px;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(22, 38, 62, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar a,
  .mobile-action-bar button {
    display: grid;
    place-items: center;
    min-height: 46px;
    color: var(--white);
    background: var(--blue);
    border: 0;
    border-radius: 4px;
    font-weight: 800;
  }

  .mobile-action-bar a:last-child,
  .mobile-action-bar button:last-child {
    background: var(--red);
  }

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

  .modal-dialog {
    max-height: calc(100vh - 24px);
  }
}
