:root {
  --ink: #171816;
  --muted: #66685f;
  --paper: #f5f1e9;
  --panel: #ffffff;
  --wood: #b97732;
  --wood-dark: #744313;
  --amber: #e29a42;
  --green: #1f6b4b;
  --green-dark: #174833;
  --line: #ddd4c6;
  --shadow: 0 24px 70px rgba(14, 15, 12, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: rgba(245, 241, 233, .94);
  border-bottom: 1px solid rgba(23, 24, 22, .1);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(190px, 42vw);
  object-fit: contain;
}
.brand > span:not(.brand-mark) { display: grid; gap: 1px; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
nav a, .phone-link { text-decoration: none; }
.phone-link { font-weight: 800; white-space: nowrap; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .58fr);
  gap: clamp(22px, 4vw, 52px);
  min-height: calc(100vh - 62px);
  padding: clamp(30px, 5vw, 66px) clamp(16px, 5vw, 72px);
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 13, 11, .92) 0%, rgba(19, 19, 16, .76) 48%, rgba(19, 19, 16, .42) 100%),
    url("/assets/img/hero-epal-yard.webp");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(12, 13, 11, .8), rgba(12, 13, 11, 0));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { max-width: 860px; }
.eyebrow, .form-kicker {
  margin: 0 0 12px;
  color: #f1b266;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 14px; line-height: 1.06; letter-spacing: 0; }
h1 { max-width: 840px; font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(25px, 3.2vw, 42px); }
h3 { font-size: 19px; }
.lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: #f0e7dc;
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.button, .service-grid a, .map-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: linear-gradient(180deg, var(--amber), var(--wood)); color: #17120c; box-shadow: 0 12px 32px rgba(226, 154, 66, .24); }
.secondary { background: #fff; color: var(--ink); }
.ghost { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.08); }
.trust-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-markers li {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #f2eadf;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lead-form h2 { font-size: 29px; }
.form-kicker { color: var(--wood); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.form-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { resize: vertical; min-height: 72px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.consent input { width: auto; min-height: 0; margin-top: 5px; }
.wide-button { width: 100%; }
.form-status { min-height: 21px; color: var(--green); font-weight: 800; }
.form-status[data-tone="error"] { color: #a83424; }
.form-status[data-tone="success"] { color: var(--green); }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px clamp(16px, 5vw, 72px);
  background: #171816;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 11px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.contact.phone { background: #394034; }
.contact.whatsapp { background: #1f7a4c; }
.contact.telegram { background: #2878ad; }
.contact.max { background: #6257c9; }
.contact.avito { background: #1677ff; }
.contact img { flex: 0 0 auto; }

.service-grid, .compact-section, .geo-section, .route-section, .steps-section, .faq {
  padding: clamp(34px, 5vw, 62px) clamp(16px, 5vw, 72px);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #fff;
}
.service-grid article, .mini-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f2;
}
.service-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.service-grid h2 { font-size: 25px; }
.service-grid p, .section-copy p, .geo-section p, .mini-grid p, .steps span, .faq p { color: var(--muted); }
.service-grid a { min-height: 40px; padding-inline: 0; color: var(--green); justify-content: flex-start; }
.compact-section {
  display: grid;
  grid-template-columns: minmax(250px, .42fr) minmax(0, 1fr);
  gap: 28px;
}
.compact-section.alt { background: #fff; }
.section-copy { max-width: 500px; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mini-grid article { background: #fff; }
.compact-section.alt .mini-grid article { background: #faf8f2; }

.related-project-card {
  padding: clamp(34px, 5vw, 62px) clamp(16px, 5vw, 72px);
  background: #fff;
}
.related-project-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  width: 100%;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f2;
  box-shadow: 0 18px 45px rgba(23, 24, 22, .08);
}
.related-project-card__content {
  max-width: 900px;
}
.related-project-card__content h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}
.related-project-card__content p:not(.eyebrow) {
  color: var(--muted);
}
.related-project-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(31, 107, 75, .22);
}
.related-project-card__cta:hover,
.related-project-card__cta:focus-visible {
  background: var(--green-dark);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 107, 75, .18), 0 14px 28px rgba(31, 107, 75, .22);
}
.footer-related-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-related-link:hover,
.footer-related-link:focus-visible {
  color: var(--amber);
  outline: none;
}
.pallet-types h3 { color: var(--wood-dark); }
.geo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: 28px;
  color: #fff;
  background: linear-gradient(120deg, #24221e, #363126);
}
.geo-section p { color: #e4dbcf; }
.geo-note {
  max-width: 860px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.geo-note h3 { margin-bottom: 8px; color: #fff; }
.geo-note p {
  margin: 0 0 10px;
  font-size: 15px;
}
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}
.city-list span {
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.route-section {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  background: #fff;
}
.map-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.map-links a {
  width: 100%;
  color: #fff;
  background: var(--green);
}
.map-links a:nth-child(2) { background: var(--wood-dark); }
.map-links a:nth-child(3) { background: #33393f; }
.map-embed {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2eee7;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}
.steps-section { background: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f2;
}
.faq details {
  max-width: 980px;
  margin: 10px 0;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.faq summary { cursor: pointer; font-weight: 900; }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(16px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}
.plain-page { background: #fff; }
.privacy { max-width: 860px; padding: 48px 20px; margin: 0 auto; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .lead-form { max-width: 760px; }
  .service-grid, .mini-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-section, .geo-section { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    min-height: 0;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
  }
  nav { display: none; }
  .brand-logo { height: 42px; max-width: 176px; }
  .brand-mark { width: 32px; height: 32px; }
  .phone-link { font-size: 14px; }
  .hero {
    padding: 24px 14px 28px;
    background-position: 58% center;
  }
  h1 { font-size: 38px; line-height: 1.02; }
  h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .hero-actions, .form-grid, .service-grid, .mini-grid, .steps { grid-template-columns: 1fr; display: grid; }
  .trust-markers { gap: 7px; }
  .trust-markers li { font-size: 12px; }
  .lead-form { padding: 18px; }
  .contact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px;
  }
  .contact { min-height: 54px; }
  .route-section { grid-template-columns: 1fr; }
  .related-project-card__inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .related-project-card__cta {
    width: 100%;
  }
  footer {
    justify-content: flex-start;
  }
  .map-embed, .map-embed iframe { min-height: 320px; }
  .service-grid, .compact-section, .geo-section, .route-section, .steps-section, .faq { padding: 30px 14px; }
}

.language-menu {
  position: relative;
  display: block;
  flex: 0 0 auto;
  z-index: 60;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.language-menu__details {
  position: relative;
}
.language-menu__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 24, 22, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.language-menu__summary::-webkit-details-marker {
  display: none;
}
.language-menu__summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .72;
}
.language-menu__details[open] .language-menu__summary::after {
  transform: translateY(2px) rotate(225deg);
}
.language-menu__icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-menu__summary:focus-visible,
.language-menu__list a:focus-visible {
  outline: 3px solid rgba(226, 154, 66, .55);
  outline-offset: 3px;
}
.language-menu__details:not([open]) .language-menu__list {
  display: none;
}
.language-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(23, 24, 22, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 24, 22, .16);
  list-style: none;
}
.language-menu__list a {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
}
.language-menu__list a:hover,
.language-menu__list a:focus-visible {
  background: #f5f1e9;
}
.language-menu__list a[aria-current="page"] {
  color: #fff;
  background: var(--green);
}
.language-menu__flag {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.language-menu__label {
  display: grid;
  min-width: 0;
}
.language-menu__list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.language-menu__list a[aria-current="page"] small {
  color: rgba(255,255,255,.78);
}
.privacy .language-menu {
  display: inline-block;
  margin-bottom: 18px;
}
.privacy .language-menu__list {
  right: auto;
  left: 0;
}

@media (max-width: 1100px) {
  .topbar {
    flex-wrap: nowrap;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }
  .language-menu {
    margin-left: auto;
  }
  .language-menu__summary {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .language-menu__list,
  .privacy .language-menu__list {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

