/* Палитра — единственное место, где задаются цвета сайта */
:root {
  --navy: #14263F;
  --navy-deep: #0E1C30;
  --accent: #F26B1D;
  --accent-dark: #D65A10;
  --concrete: #A7B6CC;      /* верх куба в логотипе, дескриптор на тёмном (H216 S18 B80) */
  --concrete-dark: #6B788A; /* дескриптор на белом, контраст 4,51 (H216 S22 B54) */
  --ink: #1E1E1E;
  --muted: #5F6670;
  --grey-bg: #F5F6F8;
  --line: #E3E6EA;
  --white: #FFFFFF;
  --radius: 10px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 "Open Sans", Arial, sans-serif; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 12px; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 28px; border-radius: 24px; border: 0; font: 700 15px/1 "Open Sans", Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 36px; padding: 0 18px; font-size: 13px; border-radius: 18px; }
.btn--lg { height: 54px; padding: 0 38px; font-size: 16px; border-radius: 27px; }
.btn--block { width: 100%; }
.phone-link { display: inline-block; font-size: 26px; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1.5px dashed var(--navy); line-height: 1.3; }
.phone-link--sm { font-size: 19px; }
.dashed { text-decoration: none; border-bottom: 1px dashed currentColor; }

/* Шапка */
.topbar { background: var(--navy); color: var(--white); font-size: 14px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 16px; }
.topbar__right { display: flex; align-items: center; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__item .ic { color: var(--accent); }
.topbar__phone { font-weight: 700; }
.navbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header { position: relative; z-index: 20; }
.navbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 44px; height: 52px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__txt b { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.logo__txt b i { font-style: normal; color: var(--accent); }
.logo__txt small { font-size: 10.5px; font-weight: 700; color: var(--concrete-dark); letter-spacing: .09em; text-transform: uppercase; margin-top: 3px; }
.logo--light { color: var(--white); }
.logo--light .logo__txt small { color: var(--concrete); }
.menu { display: flex; align-items: center; gap: 32px; }
.menu a { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; text-decoration: none; color: var(--ink); }
.menu a:hover { color: var(--accent); }
.menu__phone { display: none; }
.nav-toggle, .burger { display: none; }

/* Первый экран */
.hero { position: relative; color: var(--white); background: var(--navy-deep) var(--hero-img) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,28,48,.78), rgba(14,28,48,.62)); }
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 92px 24px 100px; gap: 22px; }
.hero__title { font-size: 50px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.hero__sub { font-size: 28px; font-weight: 700; text-transform: uppercase; max-width: 900px; line-height: 1.35; margin: 0; }
.hero__offer { font-size: 15px; font-weight: 700; margin: 6px 0 4px; }
.hero__offer mark { background: var(--accent); color: var(--white); padding: 1px 6px; border-radius: 3px; }

/* Преимущества */
.features { padding: 56px 0 72px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature { display: flex; gap: 18px; }
.feature__icon { width: 72px; height: 72px; flex: none; }
.feature__title { font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.feature p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* Общие секции */
.section { padding: 72px 0; }
.section--grey { background: var(--grey-bg); }
.section__head { text-align: center; margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.section__title { font-size: 32px; font-weight: 800; color: var(--ink); }
.section__title--left { text-align: left; }
.section__bar { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; }
.section__lead { font-size: 15px; color: var(--muted); max-width: 640px; margin: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.kicker span { width: 28px; height: 4px; background: var(--accent); border-radius: 2px; }

/* Прайс */
.ptable { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(20,38,63,.08); }
.ptable__row { display: grid; grid-template-columns: 140px 1fr 140px 200px 150px; align-items: center; min-height: 56px; padding: 0 28px; }
.ptable__row:nth-child(odd):not(.ptable__row--head) { background: #F2F4F7; }
.ptable__row--head { background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; min-height: 52px; }
.ptable__mark { font-size: 17px; font-weight: 800; color: var(--navy); }
.ptable__name { color: var(--muted); font-size: 15px; }
.ptable__cls i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }
.ptable__price { font-size: 17px; font-weight: 700; color: var(--accent-dark); }
.ptable__act { text-align: right; }
.prices__foot { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.prices__note { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* О заводе */
.about__in { display: grid; grid-template-columns: 1fr 520px; gap: 72px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 14px; }
.about__text > p { color: var(--muted); font-size: 15px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 8px 0; }
.stat { display: flex; flex-direction: column; gap: 2px; padding-left: 20px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-size: 22px; color: var(--navy); white-space: nowrap; }
.stat span { font-size: 13px; color: var(--muted); }
.about__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.about__photos { position: relative; height: 540px; }
.about__accent { position: absolute; left: 80px; top: -16px; width: 200px; height: 200px; background: var(--accent); border-radius: 4px; }
.about__big { position: absolute; right: 0; top: 0; width: 420px; height: 440px; object-fit: cover; border-radius: 4px; box-shadow: 0 12px 30px rgba(20,38,63,.2); }
.about__small { position: absolute; left: 0; bottom: 0; width: 290px; height: 220px; object-fit: cover; border: 8px solid var(--white); border-radius: 4px; box-shadow: 0 14px 30px rgba(20,38,63,.25); }

/* Расчёт / форма */
.order__in { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; }
.order__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.order__text > p { color: var(--muted); margin: 0; }
.order__hours { font-size: 14px; }
.form { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 36px 32px; color: var(--white); background: var(--navy-deep); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.form::before { content: ""; position: absolute; inset: 0; background: var(--form-img) center / cover; opacity: .14; z-index: -1; }
.form__title { font-size: 24px; text-align: center; }
.form__sub { text-align: center; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.form__label { font-size: 13px; font-weight: 700; margin-top: 6px; }
.form__label em { color: var(--accent); font-style: normal; }
.form__input { height: 44px; padding: 0 14px; border: 0; border-radius: 6px; font: 400 15px "Open Sans", Arial, sans-serif; color: var(--ink); background: var(--white); width: 100%; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 10px 0 8px; color: rgba(255,255,255,.85); }
.form__check input { margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Шаги */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-size: 14px; }
.step img { width: 84px; height: 84px; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 26px; font-size: 26px; color: var(--navy); }

/* Контакты */
.contacts { border-top: 1px solid var(--line); }
.contacts__title { font-weight: 400; font-size: 34px; margin-bottom: 36px; }
.contacts__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding-left: 60px; margin-bottom: 40px; }
.ccol { display: flex; gap: 22px; }
.ccol img { width: 76px; height: 76px; flex: none; }
.ccol h3 { font-size: 21px; margin-bottom: 12px; }
.ccol p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ccol a { color: var(--navy); }
.contacts__addr { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.contacts__addr p { margin: 0; font-size: 17px; }
.contacts__office { width: 120px; height: 72px; object-fit: cover; border-radius: 6px; }
.map { border: 5px solid var(--accent); border-radius: 6px; overflow: hidden; height: 440px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Подвал */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 48px 0 20px; font-size: 14px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__col p { margin: 0; }
.footer__phone { font-size: 22px; font-weight: 700; color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.thanks { text-align: center; min-height: 50vh; }
.thanks .section__title { margin-bottom: 16px; }
.thanks p { margin: 16px auto; }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
  .menu { gap: 20px; }
  .about__in, .order__in { grid-template-columns: 1fr; gap: 40px; }
  .about__photos { max-width: 560px; width: 100%; margin: 0 auto; }
  .ptable__row { grid-template-columns: 110px 1fr 110px 160px 130px; padding: 0 18px; }
  .contacts__cols { padding-left: 0; gap: 28px; }
}

@media (max-width: 900px) {
  .topbar__hours { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
  .burger span { display: block; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20,38,63,.12); }
  .menu a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .menu__phone { display: block; font-size: 18px; text-transform: none; color: var(--navy); }
  .nav-toggle:checked ~ .menu { display: flex; }
  .nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .navbar__in { position: relative; min-height: 68px; }
  .features__grid { grid-template-columns: 1fr; gap: 28px; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step:not(:last-child)::after { display: none; }
  .contacts__cols { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .topbar__in { justify-content: center; min-height: 44px; }
  .topbar__in > .topbar__item:first-child { display: none; }
  .topbar__right { gap: 12px; }
  .topbar .btn--sm { display: none; }
  .logo__txt b { font-size: 18px; }
  .logo__mark { width: 38px; height: 45px; }
  .logo__txt small { font-size: 9.5px; letter-spacing: .06em; }
  .hero__in { padding: 56px 16px 64px; gap: 16px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 17px; }
  .hero__offer { font-size: 14px; line-height: 1.7; }
  .hero .btn--lg { width: 100%; }
  .section { padding: 48px 0; }
  .section__title { font-size: 25px; }
  .features { padding: 40px 0 44px; }
  .feature__icon { width: 60px; height: 60px; }

  /* таблица цен -> карточки */
  .ptable { background: transparent; box-shadow: none; display: grid; gap: 10px; }
  .ptable__row--head { display: none; }
  .ptable__row, .ptable__row:nth-child(odd):not(.ptable__row--head) { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(20,38,63,.07); grid-template-columns: 1fr auto; grid-template-areas: "mark price" "name cls" "act act"; gap: 6px 12px; padding: 14px 16px; }
  .ptable__mark { grid-area: mark; font-size: 20px; }
  .ptable__price { grid-area: price; text-align: right; font-size: 18px; }
  .ptable__name { grid-area: name; font-size: 14px; }
  .ptable__cls { grid-area: cls; text-align: right; }
  .ptable__act { grid-area: act; }
  .ptable__act .btn { width: 100%; height: 40px; }
  .prices__foot { flex-direction: column; gap: 18px; }
  .prices__foot .btn { width: 100%; }

  .about__photos { height: auto; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .about__accent { display: none; }
  .about__big, .about__small { position: static; width: 100%; height: 240px; border: 0; box-shadow: none; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat, .stat:first-child { padding-left: 0; border-left: 0; flex-direction: row; align-items: baseline; gap: 10px; }
  .about__cta .btn { width: 100%; }
  .order__in { gap: 28px; }
  .form { padding: 28px 20px; }
  .phone-link { font-size: 23px; }
  .steps__list { grid-template-columns: 1fr; row-gap: 20px; }
  .step { flex-direction: row; text-align: left; gap: 16px; }
  .step img { width: 60px; height: 60px; }
  .contacts__title { font-size: 26px; margin-bottom: 24px; }
  .ccol img { width: 56px; height: 56px; }
  .ccol h3 { font-size: 18px; }
  .contacts__addr { flex-direction: column; align-items: flex-start; }
  .contacts__office { width: 100%; height: 180px; }
  .map { height: 320px; border-width: 4px; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}
