/* ================= БАЗА ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --ink: #211A12;
  --muted: #7A7063;
  --line: #ECE4D8;
  --accent: #F4511E;
  --accent-dark: #D94311;
  --accent-light: #FF9A63;
  --dark: #1B130C;
  --ok: #22A45D;
  --warn: #E5484D;
  --r: 14px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Inter", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-style: italic; font-size: 13px; }

/* ================= КНОПКИ ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 12px; padding: 14px 22px; font: 600 15px inherit; cursor: pointer; white-space: nowrap; transition: .15s; }
.btn:active { transform: scale(.98); }
.btn:focus { outline: 0; box-shadow: 0 0 0 3px rgba(244, 81, 30, .25); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2B1D12; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ================= ШАПКА ================= */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .2s; }
.hdr--shadow { border-color: var(--line); box-shadow: 0 8px 24px -14px rgba(33, 26, 18, .18); }
.hdr__inner { display: flex; align-items: center; gap: 14px; height: 74px; }
.logo { font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: .2px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.logo i { display: block; font: 400 10.5px/1.3 "Inter", sans-serif; color: var(--muted); font-style: normal; letter-spacing: .5px; text-transform: uppercase; }
.hdr__phone { margin-left: auto; margin-right: 8px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); white-space: nowrap; }

/* ================= HERO ================= */
.hero {
    background: url(/img/bg.png) center center no-repeat;
    color: #fff;
    padding: 92px 0 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
}
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 86% 15%, rgba(244, 81, 30, .38), transparent 62%),
              radial-gradient(520px 320px at 8% 95%, rgba(244, 81, 30, .16), transparent 62%); }
.hero .container { position: relative; }
.hero__tag { display: inline-block; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #F3D9C8; font-size: 13px; padding: 8px 14px; border-radius: 99px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin: 22px 0 16px; }
.hero h1 span { color: var(--accent-light); }
.hero__lead { max-width: 600px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.stat { border-left: 2px solid rgba(255,255,255,.16); padding-left: 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--accent-light); letter-spacing: -.3px; }
.stat span { font-size: 13px; color: rgba(255,255,255,.62); }

/* ================= СТРИП ЦИФР ================= */
.strip { padding: 34px 0; border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.strip__item b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.2px; }
.strip__item span { font-size: 13px; color: var(--muted); }

/* ================= СЕКЦИИ ================= */
.section { padding: 88px 0; }
.section__head { max-width: 720px; margin-bottom: 42px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.3px; line-height: 1.15; font-weight: 800; }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }

/* ================= ТОВАРЫ ================= */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { display: flex; flex-direction: column; align-items: stretch; transition: .2s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(33, 26, 18, .25); }
.product__badge { display: inline-block; align-self: flex-start; background: #F4EBE0; color: #A5762F; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 5px 12px; border-radius: 99px; text-transform: uppercase; }
.product__name { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 14px 0 10px; }
.product__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.product__num { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.product__per { color: var(--muted); font-size: 14px; }
.product .btn { margin-top: auto; }

/* ================= КОМУ ПОДХОДЯТ ================= */
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.who__item { position: relative; padding-top: 34px; }
.who__num { position: absolute; top: -15px; left: -15px; width: 46px; height: 46px; border-radius: 50%; background: #F4EBE0; color: #A5762F; display: grid; place-items: center; font-weight: 800; }
.who__item h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.who__item p { color: var(--muted); font-size: 15px; }
.who__item--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.who__item--dark .who__num { background: rgba(244, 81, 30, .25); color: var(--accent-light); }
.who__item--dark p { color: rgba(255,255,255,.75); }
.who__item--dark .btn { margin-top: 16px; }

/* ================= ПОДДОН ================= */
.pallet { background: var(--dark); color: #fff; padding: 96px 0; }
.pallet__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.pallet__tag { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent-light); }
.pallet h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 14px; font-weight: 800; letter-spacing: -.3px; }
.pallet p { color: rgba(255,255,255,.78); }
.pallet__list { list-style: none; margin: 22px 0 30px; display: grid; gap: 10px; }
.pallet__list li { padding-left: 28px; position: relative; color: rgba(255,255,255,.86); }
.pallet__list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent-light); font-weight: 700; }
.pallet__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 46px 34px; text-align: center; }
.pallet__num { font-size: 62px; font-weight: 800; letter-spacing: -1px; }
.pallet__num span { font-size: 24px; color: var(--accent-light); }
.pallet__sub { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.5; }

/* ================= СРАВНЕНИЕ ================= */
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cmp__head, .cmp__row { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 16px; padding: 15px 22px; align-items: center; font-size: 15px; }
.cmp__head { background: var(--dark); color: #fff; font-weight: 700; font-size: 14px; }
.cmp__head-brand { color: #FFB28C; }
.cmp__row { border-top: 1px solid var(--line); }
.cmp__label { color: var(--muted); font-weight: 500; font-size: 14px; }
.cmp__good { font-weight: 700; }
.cmp__good::before { content: "✓ "; color: var(--accent); }
.cmp__bad { color: var(--muted); }
.cmp__bad::before { content: "— "; }
.cmp__foot { margin-top: 18px; background: #F4EBE0; border-radius: 14px; padding: 22px 26px; font-size: 16px; line-height: 1.55; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.why__item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: 14.5px; }

/* ================= ШАГИ ================= */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps__num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.steps__item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.steps__item p { color: var(--muted); font-size: 15px; }

/* ================= ФОРМЫ ================= */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244, 81, 30, .15); }
.form__res { min-height: 22px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.form__res--ok { color: var(--ok); }
.form__res--err { color: var(--warn); }
.form__note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ГЛАВНАЯ ФОРМА */
.final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.final h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 17px; }
.final__phone { display: block; margin-top: 24px; font-size: 30px; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: -.3px; }

/* ================= ФУТЕР ================= */
.footer { background: var(--dark); color: #fff; padding-top: 56px; }
.footer a{ color: #fff;}
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start; }
.footer b { display: block; font-size: 18px; font-weight: 800; }
.footer__grid span { font-size: 14px; color: rgba(255,255,255,.6); }
.footer__grid span:not(:first-child):not(:only-child) { color: rgba(255,255,255,.6); }
.footer__phone { font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -.3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; padding: 22px 20px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.footer__bottom a{ color:#aaa;}
.footer__admin { color: rgba(255,255,255,.35); text-decoration: none; }
.footer__admin:hover { color: rgba(255,255,255,.7); }

/* ================= МОДАЛКИ ================= */
.modal { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open { display: block; }
.modal__back { position: absolute; inset: 0; background: rgba(20, 14, 8, .55); backdrop-filter: blur(2px); }
.modal__card { position: relative; max-width: 460px; margin: 6vh auto; background: #fff; border-radius: 20px; padding: 34px; animation: pop .22s ease; overflow-y: auto; max-height: 88vh; }
@keyframes pop { from { transform: translateY(14px); opacity: .4; } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.modal__title { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.modal__sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }

/* ================= МОБАЙЛ-ПАНЕЛЬ ================= */
.mobilebar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(27, 19, 12, .94); backdrop-filter: blur(8px); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.mobilebar .btn { flex: 1; }

/* ================= АНИМАЦИЯ ПОЯВЛЕНИЯ ================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: .55s; }
[data-reveal].on { opacity: 1; transform: none; }

/* ================= АДМИНКА ================= */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { max-width: 430px; width: 100%; border-radius: 20px; }
.login h1 { font-size: 26px; font-weight: 800; }
.login__hint { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.login__msg { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.login__msg.ok { color: var(--ok); }
.login__msg.err { color: var(--warn); }
.login__link { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 14px; text-decoration: none; }
.admin { max-width: 1040px; margin: 0 auto; padding: 30px 20px 90px; }
.admin__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.admin__head h1 { font-size: 26px; font-weight: 800; }
.admin__head .btn { margin-left: 8px; }
.admin__block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 22px; }
.admin__block h2 { font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.admin__hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl__act { white-space: nowrap; text-align: right; }
.mini { border: 0; background: transparent; cursor: pointer; font: 600 13px inherit; padding: 6px 10px; border-radius: 8px; color: var(--ink); }
.mini:hover { background: var(--bg); }
.mini--danger { color: var(--warn); }
.status-chip { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: #F3EDE2; color: #8A6B4F; }
.status-chip.is-new { background: #FDE9DF; color: var(--accent-dark); }
.admin-form { display: block; margin-top: 16px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.admin-form__row { display: grid; gap: 12px; grid-template-columns: 1.6fr .8fr .8fr auto; align-items: end; }
.admin-form__img { margin-bottom: 14px; }
.admin-form__img label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.admin-form__img .opt { font-weight: 400; }
.admin-form__img input[type="file"] { font: inherit; max-width: 420px; }
@media (max-width: 760px) {
  .admin-form__row { grid-template-columns: 1fr; }
  .admin-form__img input[type="file"] { max-width: none; }
}
.admin-form label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.admin-form input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.admin-form__btns { display: flex; gap: 8px; }

/* ================= МОБИЛ ================= */
@media (max-width: 1020px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid, .who__grid, .steps__grid, .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hdr__inner { height: 64px; gap: 10px; }
  .logo { font-size: 15px; }
  .logo i { display: none; }
  .hdr__phone { font-size: 14px; margin-right: 4px; }
  .hdr .btn { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 64px 0 56px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__stats { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .section { padding: 64px 0; }
  .products__grid, .who__grid, .steps__grid, .why { grid-template-columns: 1fr; }
  .pallet { padding: 64px 0; }
  .pallet__grid { grid-template-columns: 1fr; gap: 32px; }
  .pallet__card { padding: 32px 22px; }
  .pallet__num { font-size: 48px; }
  .cmp__head, .cmp__row { font-size: 13px; gap: 10px; padding: 12px 14px; }
  .final__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 14px; }
  .admin-form { grid-template-columns: 1fr; }
  body { padding-bottom: 78px; }
  .mobilebar { display: flex; }
}

/* ================= КНОПКА «ПОЗВОНИТЬ» (мобильная шапка) ================= */
.hdr__call {
  position: relative;
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  place-items: center;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(244, 81, 30, .45);
}
.hdr__call::before, .hdr__call::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: call-ring 2.6s ease-out infinite;
  pointer-events: none;
}
.hdr__call::after { animation-delay: 1.3s; }
@keyframes call-ring {
  0%   { transform: scale(.75); opacity: .85; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 760px) {
  .hdr__phone { display: none; }
  .hdr__call { display: grid; }
}

/* ================= ФОТО ТОВАРОВ ================= */
.product__img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: #F4EBE0; display: block; }
.prod-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.prod-thumb-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.developer-link:hover {
  background: #e0e0e0;
  color: #e65100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2px 10px;
}

.developer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}