/* ЕЛ-Брокер — стили в фирменном стиле ГК «Евросиб» */
:root {
  --green: #009767;        /* фирменный зелёный Евросиба: заголовки, цифры, рамки */
  --green-ink: #00805a;    /* для мелкого текста, ссылок и кнопок — контрастнее */
  --green-deep: #006b4b;
  --green-soft: #e6f4ee;
  --icon: #3f6f58;         /* тёмно-зелёный иконок из презентации */
  --text: #3a3a3a;
  --gray: #595959;
  --gray-light: #808080;
  --line: #dfe5e2;
  --bg-soft: #f4f6f5;
  --white: #fff;
  --error: #b3261e;
  --radius: 18px;
  --radius-sm: 8px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --wrap: 1200px;
  --font: "Jost", "Futura PT", "Century Gothic", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 500; color: var(--green); }
h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .7em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font: 500 1.05rem/1 var(--font);
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-primary { background: var(--green-ink); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--green); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand img { width: 175px; height: auto; }
.header-menu { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; color: var(--gray); font-size: 1.05rem; font-weight: 500; text-decoration: none; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--green-ink); background: var(--green-soft); }
.nav a[aria-current="page"] { color: var(--green-ink); }
.header-contacts { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header-phone { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-mail { font-size: .9rem; color: var(--gray-light); text-decoration: none; }
.header-phone:hover, .header-mail:hover { color: var(--green-ink); }

.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 26px; height: 2px; background: var(--green); margin: auto; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .header-row { min-height: 68px; }
  .brand img { width: 145px; }
  .header-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px 20px 28px; background: #fff; border-bottom: 3px solid var(--green); box-shadow: var(--shadow);
  }
  .nav-open .header-menu { display: flex; }
  .nav { flex-direction: column; }
  .nav a { padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-contacts { margin: 0; align-items: flex-start; gap: 4px; }
}

/* ---------- Первый экран: как обложка презентации ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-panel {
  position: relative; display: flex; align-items: center;
  background: linear-gradient(rgba(0,135,92,.9), rgba(0,135,92,.9)), url("../img/foto-sklad.jpg") 80% center / cover;
  color: #fff; padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 72px);
}
.hero-text { max-width: 560px; margin-left: auto; }
.hero h1 { color: #fff; font-weight: 600; margin-bottom: 24px; }
.hero-rule { display: block; width: 46%; height: 4px; background: #fff; margin-bottom: 26px; }
.hero-lead { font-size: 1.3rem; line-height: 1.45; max-width: 34ch; }
.hero-lead a { color: #fff; font-weight: 600; }
.hero-lead a:hover { color: var(--green-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-photo {
  display: flex; align-items: center; justify-content: center;
  padding: 48px clamp(20px, 4vw, 56px);
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)), url("../img/foto-sklad.jpg") 20% center / cover;
}
.registry-card {
  width: min(100%, 440px); background: #fff; color: var(--text);
  border: 2px solid var(--green); border-radius: var(--radius); padding: 26px 30px 24px; box-shadow: var(--shadow);
}
.registry-head { font-size: .95rem; font-weight: 500; color: var(--gray); text-transform: uppercase; letter-spacing: .02em; line-height: 1.35; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.registry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0 0 20px; }
.registry-fields dt { font-size: .85rem; color: var(--gray-light); margin-bottom: 2px; }
.registry-fields dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.registry-number, .registry-wide { grid-column: 1 / -1; }
.registry-number dd { font-size: clamp(3.6rem, 6vw, 4.8rem); line-height: 1; color: var(--green); font-weight: 600; }
.registry-open { font: 500 1rem var(--font); color: var(--green-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.registry-open:hover { color: var(--green-deep); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { margin-left: 0; }
  .hero-photo { padding: 36px 20px; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.intro-text { font-size: clamp(1.2rem, 1.8vw, 1.4rem); color: var(--gray); max-width: 62ch; margin-bottom: 64px; }

/* Карточка с иконкой в круге — как в презентации */
.icard {
  position: relative; background: #fff; border: 2px solid var(--green); border-radius: var(--radius);
  padding: 22px 26px 24px 26px; box-shadow: var(--shadow);
}
.icard-icon {
  position: absolute; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.icard-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icard-icon-img img { width: 54px; height: 54px; }
.icard h3 { margin-bottom: .4em; }
.icard p { margin: 0; color: var(--gray); font-size: 1rem; }

.icard-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 42px; }
.icard-row .icard { padding-top: 56px; }
.icard-row .icard-icon { top: -42px; left: 22px; }
.icard-row .icard p { font-size: 1.05rem; color: var(--text); }

.icard-grid { list-style: none; margin: 0; padding: 0 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.icard-grid .icard { padding-left: 70px; min-height: 120px; }
.icard-grid .icard-icon { left: -36px; top: -16px; }

@media (max-width: 860px) {
  .icard-row { grid-template-columns: 1fr; gap: 56px; }
  .icard-grid { grid-template-columns: 1fr; gap: 32px; padding-left: 24px; }
  .icard-grid .icard-icon { width: 68px; height: 68px; left: -26px; top: -12px; }
  .icard-grid .icard-icon svg { width: 34px; height: 34px; }
  .icard-grid .icard { padding-left: 56px; }
}

.services-short { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.split-head h2 { max-width: 14ch; }
.link-more { font-weight: 500; font-size: 1.1rem; }
.check-list { list-style: none; margin: 0; padding: 26px 32px; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); }
.check-list li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 9px; height: 9px; background: var(--green); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 8px; } .check-list { padding: 18px 20px; } }

.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid p { max-width: 44ch; color: var(--gray); }
.about-cert { padding: 10px; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); cursor: zoom-in; box-shadow: var(--shadow); }
.about-cert img { border-radius: 10px; }
.about-cert:hover { border-color: var(--green-deep); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Внутренние страницы ---------- */
.page-head { padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head-photo {
  background:
    linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,.72) 70%, rgba(255,255,255,.55) 100%),
    url("../img/foto-platforma.jpg") right center / cover;
}
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-head p { color: var(--gray); max-width: 60ch; margin: 0; font-size: 1.15rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); padding: 22px 26px 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: block; font-size: 2.8rem; line-height: 1; font-weight: 600; color: var(--green); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--gray); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.price-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.table-scroll { overflow-x: auto; border: 2px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px; background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table thead th { text-align: left; font-size: .9rem; font-weight: 500; color: var(--gray-light); text-transform: uppercase; letter-spacing: .02em; padding: 16px 0 12px; border-bottom: 2px solid var(--green); }
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody th, .price-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { text-align: left; font-weight: 500; padding-right: 24px; }
.price-code { display: block; margin-bottom: 4px; font-size: 1.25rem; font-weight: 600; color: var(--green); }
.price-table td strong { display: block; font-size: 1.45rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.price-table td span { font-size: .9rem; color: var(--gray-light); }
.price-notes { font-size: 1rem; color: var(--gray); background: var(--bg-soft); padding: 24px 26px; border-radius: var(--radius); }
.price-notes ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.price-notes li { position: relative; padding-left: 20px; margin-bottom: 4px; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--green); }
.price-notes p:last-child { margin: 0; }
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; gap: 28px; } .table-scroll { padding: 4px 18px; } }

.komplekt { padding-top: 0; }
.komplekt-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 34px 40px; color: #fff; border-radius: var(--radius);
  background: linear-gradient(rgba(0,128,90,.92), rgba(0,128,90,.92)), url("../img/foto-kontejnery.jpg") center / cover;
}
.komplekt-box h2 { font-size: 1.7rem; color: #fff; }
.komplekt-box p { margin: 0; max-width: 56ch; }
.komplekt-box .btn-primary { background: #fff; color: var(--green-deep); }
.komplekt-box .btn-primary:hover { background: var(--green-soft); }
@media (max-width: 700px) { .komplekt-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-item { border: 2px solid var(--green); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.contact-item h2 { font-size: .9rem; font-weight: 500; color: var(--gray-light); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.contact-item a, .contact-item p { font-size: 1.1rem; font-weight: 500; color: var(--text); text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--green-ink); text-decoration: underline; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--gray); }

/* ---------- Форма ---------- */
.request {
  padding: clamp(56px, 7vw, 96px) 0;
  background: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url("../img/foto-terminal.jpg") center / cover;
}
.request-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.request-intro p { color: var(--gray); max-width: 34ch; font-size: 1.1rem; }
.request-alt { margin-top: 32px; }
.request-alt a { font-weight: 600; font-size: 1.25rem; color: var(--green-ink); text-decoration: none; }
.request-form { background: #fff; padding: 32px; border: 2px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; font-size: .95rem; font-weight: 500; color: var(--gray); margin-bottom: 6px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--font); color: var(--text);
  padding: 13px 14px; border: 1px solid #b8c4bf; border-radius: var(--radius-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,151,103,.2); }
.field [aria-invalid] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--gray); margin: 4px 0 24px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green-ink); flex-shrink: 0; }
.consent input[aria-invalid] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .9rem; color: var(--gray-light); }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green-deep); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .request-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .request-form { padding: 22px 18px; } }

/* ---------- Подвал: зелёный, как финальный слайд ---------- */
.site-footer { background: var(--green-ink); color: #fff; padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.logo-white { width: 170px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 28ch; color: rgba(255,255,255,.9); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contacts { display: grid; gap: 6px; align-content: start; }
.footer-contacts a { font-weight: 600; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.footer-contacts p { margin: 8px 0 0; color: rgba(255,255,255,.9); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); font-size: .9rem; color: rgba(255,255,255,.85); }
.footer-legal p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Свидетельство ---------- */
.cert-dialog { border: 0; padding: 0; max-width: min(96vw, 1100px); background: transparent; }
.cert-dialog::backdrop { background: rgba(0,60,42,.85); }
.cert-dialog img { border-radius: 8px; }
.cert-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green-ink); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
