
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-alt: #fff3e4;
  --surface-muted: #f5efe7;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #ead9c5;
  --accent: #ef7d12;
  --accent-dark: #cc6506;
  --accent-soft: #fff0de;
  --dark: #2b2f36;
  --shadow: 0 12px 40px rgba(34, 34, 34, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, ul, ol { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section--dark {
  background: linear-gradient(180deg, #ffeed9 0%, #ffe5c0 100%);
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 243, .92);
  border-bottom: 1px solid rgba(234, 217, 197, .8);
}
.topbar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: white;
}
.topbar__inner {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  padding: 12px 0; flex-wrap: wrap;
}
.topbar__item, .topbar__mail {
  display: inline-flex; flex-direction: column; gap: 2px;
}
.topbar__item span, .topbar__mail { font-size: 13px; opacity: .9; }
.topbar__item b { font-size: 16px; }
.nav { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
.brand {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ffa54f);
  border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow);
  flex-shrink: 0;
}
.brand img { height: 44px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__link { font-weight: 600; color: var(--muted); position: relative; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after, .nav__link:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  background: var(--accent); border-radius: 999px;
}
.nav__cta { margin-left: 6px; }
.nav__toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: #fff;
  border-radius: 14px; padding: 10px; width: 48px; height: 48px;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; transition: .2s ease; cursor: pointer; text-align: center;
  white-space: nowrap; line-height: 1.15; width: fit-content; max-width: 100%;
  font-size: 15px;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { padding: 11px 16px; font-size: 14px; }
.btn--accent { background: linear-gradient(135deg, var(--accent), #ff9a2d); color: white; box-shadow: 0 12px 24px rgba(239,125,18,.25); }
.btn--accent:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.btn--outline { background: #fff; border-color: var(--accent); color: var(--accent-dark); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--light { background: white; color: var(--text); box-shadow: var(--shadow); }
.btn--light:hover { background: #fff7ee; }
.btn--ghost { background: rgba(255,255,255,.16); color: white; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--accent-dark);
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255,181,92,.3), transparent 32%), linear-gradient(135deg, #4b2b0d 0%, #8f4700 45%, #ef7d12 100%);
  color: white;
}
.hero__bg {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 32px;
  padding: 86px 0;
}
.hero__content h1, .page-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.hero__lead { font-size: 18px; max-width: 760px; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero__contacts { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__contacts a {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
}
.hero-panel {
  align-self: end; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.hero-panel span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.hero-panel b { display: block; font-size: 22px; margin: 12px 0 14px; line-height: 1.3; }
.page-hero {
  background: linear-gradient(180deg, #fff5e8 0%, #fffaf3 100%);
  padding: 60px 0 36px; border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 820px; color: var(--muted); font-size: 17px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.section-head p { color: var(--muted); max-width: 740px; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.stats-grid, .services-grid, .machine-grid, .contact-grid, .cert-grid, .parts-grid, .content-grid, .footer__grid, .cta-grid, .form-grid, .trust {
  display: grid; gap: 22px;
}
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: clamp(24px, 3vw, 34px); line-height: 1; margin-bottom: 10px; color: var(--accent-dark); }
.stat span { color: var(--muted); }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services-grid--light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card {
  display: flex; flex-direction: column; min-height: 100%; padding: 26px;
  background: white; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: .2s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-card__number {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: 18px;
}
.service-card h3 { margin: 0 0 10px; font-size: 22px; }
.service-card p { color: var(--muted); margin-bottom: 18px; }
.service-card__link { margin-top: auto; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.machine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.machine-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.machine-card {
  display: flex; flex-direction: column; overflow: hidden; background: white;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.machine-card__image {
  aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fff8ef, #f4efe7);
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.machine-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.machine-card__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; height: 100%; }
.machine-card__meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.machine-card__meta span { color: var(--muted); }
.machine-card__meta b {
  color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 8px 10px;
}
.machine-card h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.machine-card p { color: var(--muted); margin-bottom: 0; }
.machine-card--compact h3 { font-size: 20px; }
.text-link { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.catalog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: white;
  font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; line-height: 1.15;
}
.chip.is-active, .chip:hover { background: var(--accent); color: white; border-color: var(--accent); }
.split, .content-grid, .contact-grid, .cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 28px; align-items: start; }
.split img, .content-grid img {
  width: 100%; border-radius: var(--radius); object-fit: cover; min-height: 320px; max-height: 480px; box-shadow: var(--shadow); background: var(--surface-muted);
}
.info-panel, .address-card, .contact-card, .cert-card, .request-form, .requisites, .map-placeholder {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-panel, .address-card, .contact-card, .requisites, .map-placeholder { padding: 24px; }
.contact-grid { align-items: stretch; }
.contact-list, .feature-list, .check-list, .steps, .footer__phones { padding-left: 0; list-style: none; margin: 0; }
.contact-list li, .feature-list li, .check-list li, .steps li, .footer__phones li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
}
.contact-list li::before, .feature-list li::before, .check-list li::before, .steps li::before, .footer__phones li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: absolute; left: 0; top: 10px;
}
.footer__phones span { display: block; color: rgba(255,255,255,.7); font-size: 13px; }
.prose, .requisites, .info-panel, .contact-card, .address-card, .request-form, .cert-card p, .service-card p { color: var(--muted); }
.prose h2, .prose h3, .contact-card h3, .address-card h3, .cert-card h3 { color: var(--text); margin-top: 0; }
.parts-grid, .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-muted); border-bottom: 1px solid var(--line);
}
.cert-card { overflow: hidden; }
.cert-card div { padding: 22px; }
.cta-section {
  background: linear-gradient(180deg, #fff0dc 0%, #fff7eb 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
.request-form { padding: 24px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label { display: block; font-weight: 600; color: var(--text); }
.form-grid label:last-child { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  font: inherit; color: var(--text); background: #fffdf9; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,125,18,.12); }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.map-placeholder {
  min-height: 320px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #fff8ef, #fff0dd);
}
.footer {
  background: var(--dark); color: white; padding-top: 58px;
}
.footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.footer__logo {
  background: linear-gradient(135deg, var(--accent), #ffa54f); border-radius: 18px; padding: 12px; height: 68px; width: auto; margin-bottom: 18px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer a { color: inherit; opacity: .9; }
.footer__bottom { padding: 18px 0 26px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.65); }
.address-card p, .contact-card p, .service-card p, .info-panel p, .requisites p { color: var(--muted); }
.requisites dl { margin: 0; display: grid; gap: 14px; }
.requisites div { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.requisites div:last-child { border-bottom: 0; padding-bottom: 0; }
.requisites dt { font-weight: 700; color: var(--text); }
.requisites dd { margin: 0; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-grid--featured, .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-block; }
  .nav__menu {
    display: none; width: 100%; order: 4; flex-direction: column; align-items: flex-start;
    padding: 14px; background: white; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__cta { margin-left: 0; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero__grid, .content-grid, .split, .contact-grid, .cta-grid, .services-grid--light, .footer__grid, .parts-grid, .cert-grid, .stats-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .hero__grid { padding: 64px 0; }
  .hero__actions, .hero__contacts, .section-head--row { flex-direction: column; align-items: flex-start; }
  .services-grid, .machine-grid, .machine-grid--featured { grid-template-columns: 1fr; }
  .topbar__inner { gap: 10px; }
  .brand img { height: 38px; }
  .footer { padding-top: 46px; }
  .requisites div { grid-template-columns: 1fr; gap: 4px; }
}


@media (max-width: 420px) {
  .btn {
    padding: 13px 16px;
    font-size: 14px;
  }

  .hero__actions .btn,
  .request-form .btn,
  .section-head--row .btn {
    width: 100%;
  }

  .catalog-toolbar {
    gap: 8px;
  }

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


/* Final edits: no logo image, top request form, no orange transparent hero overlay */
.brand--text {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand--text:hover {
  color: var(--accent-dark);
}

.footer__brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.top-request {
  background: #fffaf3;
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.top-request__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.top-request__content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--text);
}

.top-request__content p {
  color: var(--muted);
  max-width: 660px;
}

.top-request__contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.top-request__contacts a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent-dark);
  font-weight: 700;
}

.request-form--top {
  position: relative;
  z-index: 2;
}

.hero {
  background: #2f3136;
  color: white;
}

.hero__bg {
  opacity: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, .68);
}

.hero__content,
.hero-panel {
  position: relative;
  z-index: 1;
}

/* Keep all button text in one line */
.btn,
.chip,
.text-link,
.service-card__link,
.nav__link,
.top-request__contacts a {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .top-request__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand--text {
    font-size: 19px;
  }

  .top-request {
    padding: 30px 0;
  }

  .top-request__contacts {
    flex-direction: column;
  }

  .top-request__contacts a,
  .top-request .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Fixed layouts and modal request window */
.contact-grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text);
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.contact-card strong {
  display: block;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.25;
  word-break: break-word;
}

.address-card {
  display: grid;
  gap: 16px;
}

.address-card .btn {
  margin-bottom: 6px;
}

.feature-list,
.steps,
.parts-grid {
  align-items: stretch;
}

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

.feature-list article,
.steps article,
.parts-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.feature-list article h2,
.steps article h2,
.parts-grid article h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.feature-list article p,
.steps article p,
.parts-grid article p {
  color: var(--muted);
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.steps article span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 16px;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, .62);
  backdrop-filter: blur(5px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
  padding: 28px;
}

.modal__dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.modal__dialog p {
  color: var(--muted);
  margin-bottom: 18px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

body.modal-lock {
  overflow: hidden;
}

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

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

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

@media (max-width: 720px) {
  .feature-list,
  .steps,
  .parts-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

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


/* v2 fixes: broken clicks, centered content blocks, catalog filters */
.container.feature-list,
.container.steps,
.container.parts-grid,
.container.services-grid,
.container.machine-grid,
.container.catalog-toolbar,
.container.contact-grid {
  width: min(var(--container), calc(100% - 64px));
  margin-left: auto !important;
  margin-right: auto !important;
}

.feature-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 28px !important;
  padding: 0 !important;
  list-style: none !important;
}

.feature-list article {
  min-height: 190px;
}

.feature-list article,
.steps article,
.parts-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  padding: 30px;
}

.feature-list article h2,
.steps article h2,
.parts-grid article h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 27px;
  line-height: 1.15;
}

.feature-list article p,
.steps article p,
.parts-grid article p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
  margin: 0;
}

.steps {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  padding: 0 !important;
  list-style: none !important;
}

.parts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.catalog-toolbar {
  position: relative;
  z-index: 5;
}

.chip {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.machine-card .btn,
.nav__cta,
[data-modal-open],
[data-service] {
  pointer-events: auto;
}

.contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

.contact-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.contact-card {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

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

.contact-card strong {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.25;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, .62);
  backdrop-filter: blur(5px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
  padding: 28px;
}

.modal__dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.modal__dialog p {
  color: var(--muted);
  margin-bottom: 18px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

body.modal-lock {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .feature-list,
  .steps,
  .parts-grid,
  .contact-list,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .container.feature-list,
  .container.steps,
  .container.parts-grid,
  .container.services-grid,
  .container.machine-grid,
  .container.catalog-toolbar,
  .container.contact-grid {
    width: min(var(--container), calc(100% - 32px));
  }
}

@media (max-width: 720px) {
  .feature-list article,
  .steps article,
  .parts-grid article {
    padding: 22px;
  }

  .feature-list article h2,
  .steps article h2,
  .parts-grid article h2 {
    font-size: 22px;
  }

  .feature-list article p,
  .steps article p,
  .parts-grid article p {
    font-size: 16px;
  }

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


/* v3: certificates spacing and equipment detail pages */
.cert-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch;
}

.cert-card {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
}

.cert-card img {
  width: 100%;
  height: 520px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f7efe6;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cert-card h3,
.cert-card p {
  padding-left: 32px;
  padding-right: 32px;
}

.cert-card h3 {
  margin: 26px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.cert-card p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.machine-card__actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.machine-card h3 a {
  color: inherit;
}

.machine-card h3 a:hover {
  color: var(--accent-dark);
}

.machine-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 32px;
  align-items: start;
}

.machine-detail__media,
.machine-detail__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
}

.machine-detail__media {
  padding: 22px;
}

.machine-detail__media img {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: contain;
  background: #f7efe6;
  border-radius: 20px;
}

.machine-detail__info {
  padding: 30px;
}

.machine-detail__info h2 {
  margin: 22px 0 18px;
  font-size: 32px;
  line-height: 1.15;
}

.machine-specs {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.machine-specs li {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.machine-specs li:last-child {
  border-bottom: 0;
}

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

.machine-specs strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.machine-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}

@media (max-width: 1100px) {
  .machine-detail {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .cert-card img {
    height: 420px;
    padding: 14px;
  }

  .cert-card h3,
  .cert-card p {
    padding-left: 22px;
    padding-right: 22px;
  }

  .machine-detail__info,
  .machine-detail__media {
    padding: 20px;
  }

  .machine-detail__media img {
    min-height: 260px;
  }

  .machine-specs li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .machine-card__actions,
  .machine-detail__actions {
    flex-direction: column;
  }

  .machine-card__actions .btn,
  .machine-detail__actions .btn {
    width: 100%;
  }
}


/* PDF import: equipment cards and detailed pages */
.machine-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.machine-card__actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.machine-card h3 a {
  color: inherit;
}

.machine-card h3 a:hover {
  color: var(--accent-dark);
}

.machine-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 32px;
  align-items: start;
}

.machine-detail__media,
.machine-detail__info,
.machine-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
}

.machine-detail__media {
  padding: 22px;
}

.machine-detail__media img {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: contain;
  background: #f7efe6;
  border-radius: 20px;
}

.machine-detail__info {
  padding: 30px;
}

.machine-detail__info h2 {
  margin: 22px 0 18px;
  font-size: 32px;
  line-height: 1.15;
}

.machine-specs {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.machine-specs li {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.machine-specs li:last-child {
  border-bottom: 0;
}

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

.machine-specs strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.machine-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}

.section--machine-sheet {
  background: #fff7eb;
  border-top: 1px solid var(--line);
}

.machine-sheet {
  padding: 22px;
}

.machine-sheet img {
  width: 100%;
  max-height: 900px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
}

.cert-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch;
}

.cert-card {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
}

.cert-card img {
  width: 100%;
  height: 520px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f7efe6;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cert-card h3,
.cert-card p {
  padding-left: 32px;
  padding-right: 32px;
}

.cert-card h3 {
  margin: 26px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.cert-card p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .machine-detail {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .machine-detail__info,
  .machine-detail__media,
  .machine-sheet {
    padding: 20px;
  }

  .machine-detail__media img {
    min-height: 260px;
  }

  .machine-specs li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .machine-card__actions,
  .machine-detail__actions {
    flex-direction: column;
  }

  .machine-card__actions .btn,
  .machine-detail__actions .btn {
    width: 100%;
  }

  .cert-card img {
    height: 420px;
    padding: 14px;
  }

  .cert-card h3,
  .cert-card p {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* Repair page: clients and reviews */
.clients-section {
  background: linear-gradient(180deg, #fffaf3 0%, #fff0dc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.client-logo-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(34, 34, 34, 0.08);
  padding: 22px;
  text-align: center;
}

.client-logo-card span {
  display: block;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  padding: 26px;
}

.review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card__top strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.review-card__top span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .client-logo-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .client-logo-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .review-card__top {
    flex-direction: column;
  }
  .review-card__top span {
    white-space: normal;
  }
}


/* Reviews carousel */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.client-logo-card {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(34,34,34,.08);
  padding: 18px;
}

.client-logo-card img {
  width: 100%;
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
}

.reviews-shell {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 16px;
  align-items: center;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 8px;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.reviews-nav {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(34,34,34,.08);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.review-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34,34,34,.08);
  padding: 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card__logo {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.review-card__logo img {
  max-width: 190px;
  max-height: 64px;
  object-fit: contain;
}

.review-card__company {
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .client-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reviews-shell { grid-template-columns: 1fr; }
  .reviews-nav { display: none; }
}

@media (max-width: 720px) {
  .client-logo-grid { grid-template-columns: 1fr; }
  .reviews-track { grid-auto-columns: 88%; }
}


/* v3 user update: use provided logos and remove shadows under reviews */
.review-card {
  box-shadow: none !important;
}

.review-card__logo img {
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
}

.client-logo-card img {
  max-width: 240px;
  max-height: 80px;
  object-fit: contain;
}


/* v5: better readability on home hero */
.hero {
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,20,32,.76) 0%, rgba(9,20,32,.58) 36%, rgba(9,20,32,.22) 68%, rgba(9,20,32,.08) 100%);
  z-index: 1;
}
.hero .container,
.hero__grid,
.hero__content,
.hero-panel {
  position: relative;
  z-index: 2;
}
.hero__content {
  background: rgba(8, 18, 30, 0.56);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 34px;
}
.hero__content .kicker {
  display: inline-flex;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
}
.hero__content h1,
.hero__content .hero__lead,
.hero__content .hero__contacts a {
  color: #fff;
}
.hero__content .hero__lead {
  max-width: 62ch;
}
.hero__contacts {
  gap: 16px;
}
.hero__contacts a {
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
@media (max-width: 820px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(9,20,32,.76) 0%, rgba(9,20,32,.55) 52%, rgba(9,20,32,.28) 100%);
  }
  .hero__content {
    padding: 24px;
    border-radius: 22px;
  }
}


/* v6: replace numeric markers with mini stylized icons */
.service-card__number,
.steps article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7eb 0%, #ffe9c8 100%);
  border: 1px solid rgba(241,138,0,.18);
  box-shadow: 0 12px 28px rgba(241,138,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
  margin-bottom: 18px;
  overflow: hidden;
}
.service-card__number img,
.steps article span img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.steps article span {
  margin-bottom: 16px;
}


/* v7: fixed logo mapping and calmer industrial icons */
.client-logo-card strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}
.client-logo-card {
  flex-direction: column;
  gap: 8px;
}
.client-logo-card img,
.review-card__logo img {
  object-fit: contain;
}
.service-card__number,
.steps article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #fff7eb;
  border: 1px solid rgba(239,125,18,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  margin-bottom: 18px;
  overflow: hidden;
}
.service-card__number img,
.steps article span img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}


/* v9: use user-provided 3D orange icon pack */
.service-card__number,
.steps article span {
  background: linear-gradient(180deg, #fffaf2 0%, #fff1db 100%);
  border: 1px solid rgba(240, 138, 36, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
.service-card__number img,
.steps article span img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}


/* v10: modern header logo integration */
.brand--logo {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  justify-content: flex-start;
}

.brand__logo {
  display: block;
  height: 76px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
}

@media (max-width: 1100px) {
  .brand__logo {
    height: 64px;
    max-width: 270px;
  }
}

@media (max-width: 640px) {
  .brand__logo {
    height: 52px;
    max-width: 220px;
  }
}


/* v11: larger header logo */
.nav {
  min-height: 96px;
}

@media (max-width: 1100px) {
  .nav {
    min-height: 84px;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 72px;
  }
}


/* v12: logo larger + new placement */
.nav {
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr auto;
  grid-template-areas:
    'brand menu cta';
  align-items: center;
  gap: 18px 24px;
  padding: 18px 0;
  min-height: 110px;
}
.brand--logo {
  grid-area: brand;
  align-self: center;
}
.nav__menu {
  grid-area: menu;
  justify-content: center;
  flex-wrap: wrap;
}
.nav__cta {
  grid-area: cta;
}
.brand__logo {
  height: 98px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .nav {
    grid-template-columns: minmax(280px, 400px) 1fr auto;
    min-height: 96px;
  }
  .brand__logo {
    height: 82px;
    max-width: 400px;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand cta'
      'menu menu';
    min-height: auto;
  }
  .brand__logo {
    height: 74px;
    max-width: 360px;
  }
  .nav__menu {
    justify-content: flex-start;
    padding-top: 6px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: flex;
    min-height: 78px;
    padding: 14px 0;
  }
  .brand__logo {
    height: 58px;
    max-width: 280px;
  }
}


/* v13: fixed comment fields and hover lift for equipment cards */
textarea {
  resize: none;
}

.machine-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(34, 34, 34, 0.16);
  border-color: rgba(239, 125, 18, .32);
}

.machine-card__image img {
  transition: transform .28s ease;
}

.machine-card:hover .machine-card__image img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .machine-card,
  .machine-card__image img {
    transition: none;
  }

  .machine-card:hover {
    transform: none;
  }

  .machine-card:hover .machine-card__image img {
    transform: none;
  }
}


/* v14: single clean header instead of double orange/white header */
.site-header {
  background: rgba(255, 250, 243, .96);
  box-shadow: 0 10px 30px rgba(34, 34, 34, .06);
}

.topbar {
  display: none !important;
}

.nav {
  border-bottom: 0;
}

.home-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.home-contact-strip a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 12px 30px rgba(34, 34, 34, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-contact-strip a:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 125, 18, .35);
  box-shadow: 0 18px 38px rgba(34, 34, 34, .10);
}

.home-contact-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-contact-strip strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 980px) {
  .home-contact-strip {
    grid-template-columns: 1fr;
  }
}


/* v15: tighter single-row header and cleaner compact footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'brand menu cta';
  align-items: center;
  gap: 14px 18px;
  padding: 12px 0;
  min-height: 92px;
}

.brand--logo {
  grid-area: brand;
}

.brand__logo {
  height: 84px;
  max-width: 360px;
}

.nav__menu {
  grid-area: menu;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(10px, 0.9vw, 18px);
  min-width: 0;
}

.nav__link {
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

.nav__cta {
  grid-area: cta;
  margin-left: 0;
}

.footer {
  padding-top: 32px;
}

.footer__grid {
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) minmax(260px, 1.15fr) minmax(220px, .95fr);
  gap: 28px;
  align-items: start;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
}

.footer__brand {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 10px;
}

.footer p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}

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

.footer__links a {
  font-size: 14px;
  line-height: 1.35;
}

.footer__phones li {
  margin-bottom: 10px;
  padding-left: 16px;
}

.footer__phones li::before {
  top: 9px;
  width: 6px;
  height: 6px;
}

.footer__phones span {
  font-size: 12px;
  margin-bottom: 2px;
}

.footer__phones a,
.footer a {
  text-decoration: none;
}

.footer__bottom {
  margin-top: 22px;
  padding: 14px 0 18px;
  font-size: 13px;
}

@media (max-width: 1380px) {
  .nav {
    gap: 12px 14px;
  }
  .brand__logo {
    height: 76px;
    max-width: 320px;
  }
  .nav__menu {
    gap: 10px;
  }
  .nav__link {
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  .nav {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) auto;
    min-height: 84px;
  }
  .brand__logo {
    height: 68px;
    max-width: 290px;
  }
  .nav__menu {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand cta'
      'menu menu';
    gap: 10px 12px;
    min-height: auto;
  }
  .brand__logo {
    height: 66px;
    max-width: 290px;
  }
  .nav__menu {
    display: none;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 14px;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open {
    display: flex;
  }
}

@media (max-width: 760px) {
  .footer__grid,
  .footer__links {
    grid-template-columns: 1fr;
  }
  .footer {
    padding-top: 26px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: flex;
    min-height: 72px;
    padding: 12px 0;
  }
  .brand__logo {
    height: 56px;
    max-width: 240px;
  }
}


/* v16: footer phone cleanup and compact header menu */
.nav {
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) auto;
  gap: 10px 12px;
  min-height: 86px;
  padding: 10px 0;
}

.brand__logo {
  height: 72px;
  max-width: 310px;
}

.nav__menu {
  justify-content: flex-end;
  gap: clamp(7px, .58vw, 12px);
}

.nav__link {
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.nav__cta {
  padding: 11px 18px;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 1320px) {
  .nav {
    grid-template-columns: minmax(235px, 295px) minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .brand__logo {
    height: 66px;
    max-width: 285px;
  }

  .nav__menu {
    gap: 7px;
  }

  .nav__link {
    font-size: 12.5px;
  }

  .nav__cta {
    padding: 10px 15px;
    font-size: 13.5px;
  }
}

@media (max-width: 1180px) {
  .nav {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) auto;
  }

  .brand__logo {
    height: 62px;
    max-width: 260px;
  }

  .nav__menu {
    flex-wrap: wrap;
    row-gap: 7px;
    justify-content: flex-end;
  }
}


/* v17: stretch header menu to the left without pushing the CTA right */
.nav {
  grid-template-columns: minmax(235px, 300px) minmax(0, 1fr) auto;
  gap: 10px 16px;
}

.brand--logo {
  justify-self: start;
}

.brand__logo {
  height: 70px;
  max-width: 300px;
}

.nav__menu {
  justify-content: flex-start;
  gap: clamp(9px, .72vw, 14px);
  padding-left: 4px;
}

.nav__link {
  font-size: 13.6px;
  letter-spacing: -0.01em;
}

.nav__cta {
  justify-self: end;
  flex-shrink: 0;
}

@media (max-width: 1320px) {
  .nav {
    grid-template-columns: minmax(220px, 278px) minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .brand__logo {
    height: 64px;
    max-width: 275px;
  }

  .nav__menu {
    justify-content: flex-start;
    gap: 8px;
    padding-left: 0;
  }

  .nav__link {
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .nav {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) auto;
  }

  .nav__menu {
    justify-content: flex-start;
    row-gap: 7px;
  }

  .nav__link {
    font-size: 12.8px;
  }
}


/* v18: company card in contacts and personal account modal */
.company-card-inline dl {
  grid-template-columns: 1fr;
}

.cabinet-modal__dialog {
  width: min(820px, 100%);
}

.cabinet-tabs {
  display: inline-flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  margin: 10px 0 20px;
}

.cabinet-tab {
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.cabinet-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.cabinet-form {
  display: none;
  gap: 16px;
}

.cabinet-form.is-active {
  display: grid;
}

.cabinet-form > label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.agreement-check {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 500 !important;
  color: var(--muted);
}

.agreement-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.agreement-check a,
.legal-text a {
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  padding: 34px;
}

.legal-text h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .cabinet-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cabinet-tab {
    width: 100%;
  }

  .legal-text {
    padding: 22px;
  }
}


/* v19: final cleanup, working contacts map, header spacing */
.nav {
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr) auto;
  gap: 10px 18px;
}

.brand__logo {
  height: 64px;
  max-width: 270px;
}

.nav__menu {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: 8px;
  gap: clamp(6px, .52vw, 10px);
}

.nav__link {
  font-size: 12.6px;
  letter-spacing: -0.02em;
}

.nav__cta {
  min-width: 126px;
  padding-left: 14px;
  padding-right: 14px;
}

.contacts-map {
  width: 100%;
  height: 420px;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  background: #f6efe6;
}

.office-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.office-list article {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.office-list strong {
  color: var(--text);
  font-size: 15px;
}

.office-list span {
  color: var(--muted);
  line-height: 1.45;
}

.cabinet-modal .form-note {
  display: none;
}

@media (max-width: 1320px) {
  .nav {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .brand__logo {
    height: 60px;
    max-width: 250px;
  }

  .nav__link {
    font-size: 12px;
  }

  .nav__menu {
    gap: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 1180px) {
  .nav__menu {
    justify-content: flex-end;
  }
}


/* v20: restore personal account, company card and fix map overlay */
.site-header {
  z-index: 5000;
}

.contacts-map {
  width: 100%;
  height: 360px;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  background: #f6efe6;
  position: relative;
  z-index: 1;
}

.contacts-map .leaflet-pane,
.contacts-map .leaflet-top,
.contacts-map .leaflet-bottom {
  z-index: 1 !important;
}

.contacts-map .leaflet-control {
  z-index: 2 !important;
}

.office-list {
  display: none !important;
}

.company-card-inline dl {
  grid-template-columns: 1fr;
}

.cabinet-modal__dialog {
  width: min(820px, 100%);
}

.cabinet-tabs {
  display: inline-flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  margin: 10px 0 20px;
}

.cabinet-tab {
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.cabinet-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.cabinet-form {
  display: none;
  gap: 16px;
}

.cabinet-form.is-active {
  display: grid;
}

.cabinet-form > label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.agreement-check {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 500 !important;
  color: var(--muted);
}

.agreement-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.agreement-check a,
.legal-text a {
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
  padding: 34px;
}

.legal-text h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

/* keep menu away from personal account button */
.nav {
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr) auto;
  gap: 10px 18px;
}

.nav__menu {
  justify-content: flex-end;
  padding-right: 12px;
  gap: clamp(6px, .48vw, 9px);
}

.nav__link {
  font-size: 12.2px;
  letter-spacing: -0.025em;
}

.nav__cta {
  min-width: 132px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cabinet-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cabinet-tab {
    width: 100%;
  }

  .legal-text {
    padding: 22px;
  }

  .contacts-map {
    height: 320px;
  }
}


/* v21: personal account as a separate page */
.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.25fr);
  gap: 26px;
  align-items: stretch;
}

.account-side,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(34, 34, 34, 0.08);
}

.account-side {
  padding: 34px;
  background:
    radial-gradient(circle at 15% 0%, rgba(239,125,18,.16), transparent 34%),
    linear-gradient(180deg, #fff, #fff7ed);
}

.account-side h2 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
}

.account-side p {
  color: var(--muted);
}

.account-benefits {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.account-benefits div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.account-benefits strong {
  color: var(--text);
}

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

.account-panel {
  padding: 30px;
}

.account-panel .cabinet-form {
  max-width: none;
}

.nav__cta.is-active {
  box-shadow: 0 14px 30px rgba(239, 125, 18, .25);
}

@media (max-width: 980px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-side,
  .account-panel {
    padding: 22px;
    border-radius: 24px;
  }
}


/* v22: keep home quick contacts in one line */
.home-contact-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-contact-strip a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
}

.home-contact-strip span,
.home-contact-strip strong {
  white-space: nowrap;
}

.home-contact-strip span {
  font-size: 12px;
  flex: 0 0 auto;
}

.home-contact-strip strong {
  font-size: clamp(13px, .95vw, 15px);
  word-break: normal;
  overflow-wrap: normal;
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .home-contact-strip {
    grid-template-columns: 1fr;
  }

  .home-contact-strip a {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .home-contact-strip a {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* v23: show full home contact values without splitting phone/email */
.home-contact-strip {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.home-contact-strip a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: start;
  min-width: 0;
  padding: 14px 16px;
}

.home-contact-strip span {
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.home-contact-strip strong {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 1180px) {
  .home-contact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .home-contact-strip strong {
    font-size: 13px;
  }
}
