/* =========================================================================
   ЛЭИ — Экспертиза обуви. Дизайн-система (редизайн 2026).
   Единый адаптив. Без абсолютного позиционирования макета.
   ========================================================================= */

:root {
  --brown:        #574a34;
  --brown-dark:   #3a3120;
  --gold:         #c0821d;
  --gold-light:   #e7b24a;
  --cream:        #f7f1e6;
  --paper:        #fffdf8;
  --ink:          #43392b;
  --muted:        #8a7d62;
  --line:         #e7ddc9;
  --ok:           #3c8c5a;

  --container:    1200px;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 10px rgba(58,49,32,.08);
  --shadow:       0 10px 30px rgba(58,49,32,.12);
  --shadow-lg:    0 24px 60px rgba(58,49,32,.20);
  --ease:         cubic-bezier(.22,.61,.36,1);

  --h-font: "Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --b-font: "Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--b-font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brown); }

h1,h2,h3,h4 { font-family: var(--h-font); font-weight: 700; color: var(--brown); line-height: 1.15; margin: 0 0 .5em; }
.hero__price, .hero__stat b, .card__num { font-weight: 700; }
.acc-head, .price-table th, .price-table .is-service, .price-table .price-val, .region-list a, .hero__card h3, .eyebrow { font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.section--alt { background: var(--paper); }
.section--brown { background: linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 100%); color: #f3ead9; }
.section--brown h2, .section--brown h3 { color: #fff; }

.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(28px,4vw,52px); }
.eyebrow {
  display: inline-block; font-family: var(--h-font); letter-spacing: 3px; text-transform: uppercase;
  font-size: 13px; color: var(--gold); margin-bottom: 12px;
}
.section__head p { color: var(--muted); font-size: 18px; }
.section--brown .section__head p { color: #d8ccb4; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--h-font); font-size: 16px; line-height: 1; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2a08; box-shadow: 0 8px 22px rgba(192,130,29,.36); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(192,130,29,.5); color: #3a2a08; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn--outline { background: #fff; border-color: var(--line); color: var(--brown); }
.btn--outline:hover { border-color: var(--gold); color: var(--brown); }
.btn--lg { padding: 19px 38px; font-size: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,248,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Верхняя утилитарная строка */
.header__top { background: var(--brown-dark); color: #e9dcc2; font-size: 13px; }
.header__top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.header__top-right { display: flex; align-items: center; gap: 22px; }
.header__email { color: #e9dcc2; }
.header__email:hover { color: var(--gold-light); }
.header__phone { font-family: var(--h-font); font-weight: 600; font-size: 17px; color: #fff; white-space: nowrap; }
.header__phone:hover { color: #fff; }
.header__phone small { font-family: var(--b-font); font-weight: 400; font-size: 11px; color: #8fd3a6; letter-spacing: .3px; margin-left: 8px; }

/* Основная строка */
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 50px; width: auto; display: block; }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; flex-wrap: nowrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.header__nav a { font-family: var(--h-font); font-weight: 600; font-size: 14.5px; color: var(--brown); white-space: nowrap; }
.header__nav a:hover { color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header__cta { padding: 11px 20px; font-size: 14.5px; }

.region-switch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: #d8c9ad; background: none; border: none; font-family: var(--b-font); padding: 0;
}
.region-switch b { color: #fff; border-bottom: 1px dashed var(--gold-light); }
.region-switch svg { width: 15px; height: 15px; fill: var(--gold-light); flex: 0 0 15px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background:#fff; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content:""; position:absolute; left:11px; width:22px; height:2px; background: var(--brown); transition:.25s; }
.burger span::before, .burger span::after { left:0px;}
.burger span { top:21px; } .burger span::before { top:-7px; } .burger span::after { top:7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top:0; transform: rotate(45deg); }
.burger.is-open span::after { top:0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg,#fbf6ec 0%, #f1e6d2 100%); }
.hero::after { content:""; position:absolute; right:-120px; top:-120px; width:460px; height:460px; border-radius:50%; background: radial-gradient(circle at 30% 30%, rgba(231,178,74,.32), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: clamp(40px,6vw,80px); padding-bottom: clamp(40px,6vw,80px); position: relative; z-index: 1; }
.hero__title { font-size: clamp(34px, 5vw, 60px); margin-bottom: 18px; }
.hero__title span { color: var(--gold); }
.hero__lead { font-size: clamp(18px,2vw,21px); color: var(--brown); max-width: 540px; }
.hero__cta { display:flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display:flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__stat b { display:block; font-family: var(--h-font); font-size: 34px; color: var(--brown); line-height: 1; }
.hero__stat span { font-size: 14px; color: var(--muted); }
.hero__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px; position: relative; border: 1px solid var(--line);
}
.hero__card h3 { margin-bottom: 6px; }
.hero__price { font-family: var(--h-font); font-size: 40px; color: var(--gold); }
.hero__card ul { list-style: none; padding: 0; margin: 18px 0; }
.hero__card li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink); }
.hero__card li::before { content:"✓"; position:absolute; left:0; top:0; color: var(--ok); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__num { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color:#3a2a08; font-family: var(--h-font); display:flex; align-items:center; justify-content:center; font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 19px; }
.card p { color: var(--ink); margin: 0; font-size: 15.5px; }
.section--brown .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color:#ece2cd; }
.section--brown .card p { color: #e0d6c0; }

/* ---------- Steps (process) ---------- */
.steps { counter-reset: step; }
.steps .card { position: relative; }

/* ---------- Accordion ---------- */
.accordion { max-width: 920px; margin: 0 auto; }
.acc-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-head { display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:none; border:none; cursor:pointer; padding: 20px 24px; font-family: var(--h-font); font-size: 17px; color: var(--brown); }
.acc-head .i { flex: 0 0 28px; width:28px; height:28px; border-radius:50%; background: var(--cream); color: var(--gold); display:flex; align-items:center; justify-content:center; font-style: italic; font-family: serif; }
.acc-head .chev { margin-left:auto; width:22px; height:22px; flex:0 0 22px; transition: transform .3s; fill: var(--gold); }
.acc-item.is-open .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body__inner { padding: 0 24px 22px 66px; color: var(--ink); font-size: 15.5px; }
.acc-body ul { padding-left: 18px; } .acc-body li { margin-bottom: 8px; }

/* ---------- Defects slider ---------- */
.slider { position: relative; }
.slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.slide { scroll-snap-align: center; flex: 0 0 320px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.slide img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--cream); }
.slide .txt { padding: 18px; font-size: 14.5px; color: var(--ink); }
.slider__nav { display:flex; gap: 10px; justify-content:center; margin-top: 10px; }
.slider__nav button { width:46px; height:46px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer; font-size: 20px; color: var(--brown); transition:.2s; }
.slider__nav button:hover { background: var(--gold); color:#fff; border-color: var(--gold); }

/* ---------- Price table ---------- */
.price-table { width:100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 15px; }
.price-table th { background: var(--brown); color:#fff; font-family: var(--h-font); font-weight: 400; padding: 14px 16px; text-align: left; font-size: 14px; }
.price-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.price-table tr:nth-child(even) td { background: #fbf7ee; }
.price-table .is-service { font-family: var(--h-font); color: var(--brown); }
.price-table .price-val { font-family: var(--h-font); color: var(--gold); white-space: nowrap; }

/* ---------- Shoe parts (термины) ---------- */
.terms-cols { columns: 2; column-gap: 40px; }
.terms-cols .term { break-inside: avoid; margin-bottom: 8px; }
@media (max-width: 760px){ .terms-cols { columns: 1; } }

/* ---------- Forms / modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(40,33,18,.55); backdrop-filter: blur(3px); display:none; align-items:center; justify-content:center; z-index: 100; padding: 20px; }
.modal-overlay.is-open { display:flex; animation: fade .25s; }
.modal { background: var(--paper); border-radius: var(--radius); max-width: 480px; width:100%; padding: 36px; position: relative; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); max-height: 92vh; overflow:auto; }
.modal--wide { max-width: 920px; }
.modal__close { position:absolute; top:16px; right:16px; width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:20px; color: var(--brown); line-height:1; }
.modal__close:hover { background: var(--gold); color:#fff; }
.modal h3 { font-size: 24px; text-align:center; padding: 0 36px; }
.modal .sub { text-align:center; color: var(--muted); margin-top:-4px; }

.field { margin-bottom: 14px; }
.field input, .field textarea {
  width:100%; padding: 15px 16px; border:1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--b-font); font-size: 16px; color: var(--ink); background:#fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,130,29,.15); }
.form-note { font-size: 12.5px; color: var(--muted); text-align:center; margin-top: 10px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; line-height: 1.4; }
.checkbox input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); cursor: pointer; }
.field--error input { border-color: #d05a4a !important; box-shadow: 0 0 0 3px rgba(208,90,74,.14) !important; }
.form-error { color: #d05a4a; font-size: 14px; margin: 0 0 10px; min-height: 1px; text-align: center; }
.form-error:empty { margin: 0; }

/* Region modal */
.region-list { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.region-list a { display:flex; flex-direction:column; gap:2px; padding: 16px 18px; border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; color: var(--brown); font-family: var(--h-font); transition:.2s; }
.region-list a:hover, .region-list a.is-current { border-color: var(--gold); background: #fff7e9; }
.region-list a small { font-family: var(--b-font); color: var(--muted); font-size: 13px; }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display:flex; flex-direction:column; gap:12px; }
.fab a, .fab button { width:56px; height:56px; border-radius:50%; border:none; cursor:pointer; box-shadow: var(--shadow); display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color:#3a2a08; transition: transform .2s; }
.fab a:hover, .fab button:hover { transform: scale(1.08); }
.fab svg { width:26px; height:26px; fill: currentColor; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 880px; margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; font-family: var(--h-font); font-weight: 600; }
.legal h1 { margin-bottom: 10px; }
.legal .upd { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 30px 0 12px; }
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }

/* ---------- Cookie consent ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--brown-dark); color: #e9dcc2; box-shadow: 0 -6px 24px rgba(0,0,0,.22); }
.cookie[hidden] { display: none; }
.cookie__in { display: flex; align-items: center; gap: 24px; max-width: var(--container); margin: 0 auto; padding: 15px 24px; }
.cookie__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: #d8c9ad; }
.cookie__text a { color: var(--gold-light); text-decoration: underline; }
.cookie__accept { flex: 0 0 auto; padding: 13px 30px; }
@media (max-width: 720px){
  .cookie__in { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px; text-align: left; }
  .cookie__accept { width: 100%; }
}

/* ---------- Footer ---------- */
.footer { background: var(--brown-dark); color:#cdbfa3; padding: 56px 0 28px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer h4 { color:#fff; font-size: 16px; margin-bottom: 14px; }
.footer a { color:#e3d7bd; } .footer a:hover { color: var(--gold-light); }
.footer__contacts p { margin:0 0 8px; color:#c8b99c; font-size: 15px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color:#9b8e72; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity:1; transform:none; }

@keyframes fade { from{opacity:0} to{opacity:1} }
@keyframes pop { from{opacity:0; transform: translateY(12px) scale(.98)} to{opacity:1; transform:none} }

/* ---------- Responsive ---------- */
@media (max-width: 1180px){
  .header__nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom:1px solid var(--line); transform: translateY(-130%); transition: transform .3s var(--ease); margin:0; box-shadow: var(--shadow); z-index: -1; }
  .header__nav.is-open { transform:none; }
  .header__nav ul { flex-direction: column; gap:0; padding: 8px 0; }
  .header__nav li { border-top:1px solid var(--line); }
  .header__nav a { display:block; padding: 14px 24px; }
  .burger { display:block; }
  .header__cta { display:none; }
  .header__email { display:none; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  body { font-size: 16px; }
  .header__top-right { display:none; }
  .header__top-in { justify-content: center; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .slide { flex-basis: 80%; }
  .modal { padding: 26px 20px; }
}
