/* =====================================================================
   ЭлитШеф — theme.css (v3). Fresh visual language + fresh class names.
   ===================================================================== */

:root {
  --paper:      #f6f1e7;
  --paper-deep: #ece0c3;
  --card:       #fffdf8;
  --ink:        #211a14;
  --ink-soft:   #6f6455;
  --line:       #ddd0b3;
  --rust:       #9c3b2a;
  --rust-dark:  #7a2c1e;
  --gold:       #c9a227;
  --dark:       #1b1712;
  --dark-2:     #2a2118;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --shadow:    0 26px 50px -26px rgba(27,23,18,.5);
  --shadow-sm: 0 12px 24px -16px rgba(27,23,18,.4);
  --shell: 1160px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

.ec-shell { max-width: var(--shell); margin: 0 auto; padding: 0 22px; }
.ec-section { position: relative; padding: 96px 0; }

.ec-eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rust);
}
.ec-eyebrow:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--rust);
  transform: translateY(-50%);
}
.ec-eyebrow--onDark { color: var(--gold); }
.ec-eyebrow--onDark:before { background: var(--gold); }

.ec-h2 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 0 0 22px;
}
.ec-h2 em { font-style: italic; color: var(--rust); }
.ec-h2--left { text-align: left; }
.ec-h2--onDark { color: #fff; }
.ec-h2--onDark em { color: var(--gold); }

.ec-lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 18px; }
.ec-text { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- buttons ---------- */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 36px;
  border-radius: var(--r-s);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  border: 1.5px solid transparent;
}
.ec-btn--solid { background: var(--rust); color: #fff; box-shadow: var(--shadow-sm); }
.ec-btn--solid:hover { background: var(--rust-dark); transform: translateY(-2px); }
.ec-btn--solid:disabled { opacity: .6; transform: none; }
.ec-btn--outline { border-color: var(--gold); color: var(--gold); }
.ec-btn--outline:hover { background: var(--gold); color: var(--dark); }
.ec-btn--block { width: 100%; }

/* =========================================================
   MARKS (trust strip)
   ========================================================= */
.ec-marks { background: var(--dark); padding: 13px 0; }
.ec-marks__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ec-marks__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.ec-marks__icon { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; filter: brightness(0) invert(1) opacity(.85); }

/* =========================================================
   HERO
   ========================================================= */
.ec-hero { position: relative; padding: 70px 0 60px; color: #fff; overflow: hidden; }
.ec-hero__bg { position: absolute; inset: 0; background: var(--dark) center / cover no-repeat; }
.ec-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.82), rgba(20,16,12,.94)); }
.ec-hero__inner { position: relative; z-index: 2; }
.ec-hero__label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 18px; }
.ec-hero__heading { font-family: var(--serif); font-size: 66px; line-height: 1; text-align: center; letter-spacing: -.5px; }
.ec-hero__heading em { font-style: italic; color: var(--gold); }
.ec-hero__tagline { text-align: center; font-size: 20px; color: rgba(255,255,255,.8); margin: 18px 0 52px; }

.ec-hero__columns { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.ec-hero__points { display: grid; gap: 20px; padding-top: 14px; }
.ec-hero__points li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 18px;
}
.ec-hero__points li:last-child { border-bottom: none; }
.ec-hero__points li:before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.ec-hero__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.ec-hero__more span { color: var(--gold); }

/* ---------- order panel (shared: hero + final) ---------- */
.ec-panel { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.ec-panel--center { max-width: 420px; margin: 0 auto; }
.ec-panel__flag {
  background: var(--dark);
  color: var(--gold);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 16px;
}
.ec-panel__body { padding: 28px; }
.ec-panel__caption { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }

.ec-panel__prices { display: flex; gap: 18px; justify-content: center; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 16px 0; margin: 18px 0; }
.ec-price { text-align: center; }
.ec-price span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.ec-price--old b { font-size: 20px; font-weight: 700; color: var(--ink-soft); text-decoration: line-through; }
.ec-price--new b { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--rust); }

/* ---------- timer ---------- */
.ec-timer { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ec-timer__seg { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.ec-timer__seg b { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ec-timer__seg i { font-style: normal; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.ec-timer__colon { font-family: var(--serif); font-size: 22px; color: var(--line); }
.ec-timer--invert .ec-timer__seg b { color: #fff; }
.ec-timer--invert .ec-timer__seg i { color: rgba(255,255,255,.6); }
.ec-timer--invert .ec-timer__colon { color: rgba(255,255,255,.3); }

/* ---------- form ---------- */
.ec-form__field { margin-bottom: 12px; }
.ec-form input[type="text"],
.ec-form input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.ec-form input:focus { border-color: var(--rust); }
.ec-form input::placeholder { color: var(--ink-soft); }
.ec-form__status { min-height: 16px; text-align: center; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.ec-form__status--ok { color: #2f7a45; }
.ec-form__status--error { color: var(--rust-dark); }
.ec-form__note { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 0 0 16px; }

/* =========================================================
   GALLERY
   ========================================================= */
.ec-gallery { background: var(--paper); }
.ec-gallery__head { margin-bottom: 40px; text-align: center; }
.ec-gallery__viewport { position: relative; }
.ec-gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ec-gallery__track::-webkit-scrollbar { display: none; }
.ec-gallery__slide { flex: 0 0 calc(50% - 10px); scroll-snap-align: start; }
.ec-gallery__slide img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--r-m); box-shadow: var(--shadow-sm); }
.ec-gallery__control {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  z-index: 3;
}
.ec-gallery__control--prev { left: -22px; }
.ec-gallery__control--next { right: -22px; }

/* =========================================================
   COATING
   ========================================================= */
.ec-coating { background: var(--card); }
.ec-coating__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ec-coating__ions { display: grid; gap: 14px; }
.ec-ion { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-m); }
.ec-ion__mark {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-ion__text { font-size: 14px; line-height: 1.5; color: var(--ink); }
.ec-coating__figure img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--shadow); }

/* =========================================================
   TROUBLE
   ========================================================= */
.ec-trouble { background: var(--dark); text-align: center; }
.ec-trouble__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.ec-trouble__card { color: #fff; }
.ec-trouble__card img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--r-m); margin-bottom: 14px; }
.ec-trouble__card p { font-size: 13px; font-weight: 600; line-height: 1.4; }

/* =========================================================
   REASONS + BANNER
   ========================================================= */
.ec-reasons { background: var(--paper); text-align: center; padding-bottom: 0; }
.ec-reasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.ec-reason { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px 24px; }
.ec-reason img { margin: 0 auto 18px; max-height: 50px; }
.ec-reason p { font-size: 15px; line-height: 1.45; color: var(--ink); }

.ec-banner { background: var(--dark); margin-top: 64px; padding: 32px 0; }
.ec-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.ec-banner__timer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ec-banner__timer span { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* =========================================================
   SIZES
   ========================================================= */
.ec-sizes { color: #fff; padding: 96px 0; }
.ec-sizes__bg { position: absolute; inset: 0; background: var(--dark-2) center / cover no-repeat; }
.ec-sizes__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.62), rgba(20,16,12,.86)); }
.ec-sizes__inner { position: relative; z-index: 2; }
.ec-sizes__inner .ec-h2 { max-width: 620px; }
.ec-sizes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.ec-size { display: flex; gap: 20px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-m); padding: 24px; }
.ec-size img { flex: 0 0 92px; width: 92px; }
.ec-size__d { font-family: var(--serif); font-size: 26px; color: var(--gold); display: block; margin-bottom: 8px; }
.ec-size__body p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); }

/* =========================================================
   CARE
   ========================================================= */
.ec-care { background: var(--card); }
.ec-care__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.ec-care__figure img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--shadow); }
.ec-care__steps { display: grid; gap: 12px; margin-top: 22px; }
.ec-care__step {
  position: relative;
  padding: 14px 16px 14px 54px;
  background: var(--paper);
  border-radius: var(--r-m);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.ec-care__mark { position: absolute; left: 16px; top: 14px; font-family: var(--serif); font-weight: 700; color: var(--rust); font-size: 14px; }

/* =========================================================
   EXPERT
   ========================================================= */
.ec-expert { background: var(--dark); color: #fff; }
.ec-expert__grid { display: grid; grid-template-columns: 320px 1fr; gap: 54px; align-items: center; }
.ec-expert__figure { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--dark-2); }
.ec-expert__figure img { width: 100%; height: 100%; object-fit: cover; }
.ec-expert__badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 38px 18px 46px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  text-align: center;
}
.ec-expert__badge b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 3px; }
.ec-expert__badge span { font-size: 12px; color: rgba(255,255,255,.7); }
.ec-expert__pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 18px 0 22px;
}
.ec-expert__text { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.78); }

/* =========================================================
   REVIEWS
   ========================================================= */
.ec-reviews { background: var(--paper); text-align: center; }
.ec-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.ec-review { display: flex; flex-direction: column; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.ec-review img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; flex: 0 0 auto; }
.ec-review b { display: block; font-family: var(--serif); color: var(--rust); font-size: 16px; margin-bottom: 10px; }
.ec-review p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* =========================================================
   STEPS + PERKS
   ========================================================= */
.ec-steps { background: var(--card); text-align: center; padding-bottom: 0; }
.ec-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.ec-step { position: relative; padding-top: 10px; }
.ec-step__num { display: block; font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px; }
.ec-step img { width: 64px; margin: 0 auto 16px; }
.ec-step p { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--ink); }

.ec-perks { background: var(--dark); margin-top: 64px; padding: 40px 0; }
.ec-perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ec-perk { text-align: center; color: #fff; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.18); }
.ec-perk:first-child { border-left: none; }
.ec-perk b { display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 8px; }
.ec-perk span { display: block; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* =========================================================
   FINAL
   ========================================================= */
.ec-final { text-align: center; }
.ec-final__inner { position: relative; z-index: 2; }
.ec-final .ec-h2 { margin-bottom: 44px; }

/* =========================================================
   FOOTER
   ========================================================= */
.ec-foot { background: var(--dark); color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.7; padding: 32px 0; text-align: center; }
.ec-foot a { color: var(--gold); text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .ec-hero__columns { grid-template-columns: 1fr; }
  .ec-panel { width: 100%; max-width: 440px; margin: 0 auto; }
  .ec-coating__grid { grid-template-columns: 1fr; }
  .ec-coating__figure { order: -1; }
  .ec-coating__figure img { height: 320px; }
  .ec-trouble__grid { grid-template-columns: repeat(3, 1fr); }
  .ec-care__grid { grid-template-columns: 1fr; }
  .ec-care__figure { order: -1; }
  .ec-care__figure img { height: 300px; }
  .ec-expert__grid { grid-template-columns: 1fr; }
  .ec-expert__figure { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .ec-section { padding: 64px 0; }
  .ec-h2 { font-size: 28px; }
  .ec-hero__heading { font-size: 44px; }
  .ec-hero__tagline { font-size: 16px; margin-bottom: 40px; }
  .ec-marks__list { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ec-marks__item { justify-content: center; }
  .ec-trouble__grid { grid-template-columns: repeat(2, 1fr); }
  .ec-reasons__grid { grid-template-columns: 1fr; }
  .ec-sizes__grid { grid-template-columns: 1fr; }
  .ec-size { flex-direction: column; text-align: center; }
  .ec-reviews__grid { grid-template-columns: 1fr; }
  .ec-steps__grid { grid-template-columns: 1fr; gap: 34px; }
  .ec-perks__grid { grid-template-columns: 1fr; gap: 20px; }
  .ec-perk { border-left: none; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
  .ec-perk:first-child { border-top: none; padding-top: 0; }
  .ec-banner__inner { flex-direction: column; text-align: center; }
  .ec-gallery__slide { flex-basis: 82%; }
  .ec-gallery__control--prev { left: 4px; }
  .ec-gallery__control--next { right: 4px; }
}

@media (max-width: 480px) {
  .ec-trouble__grid { grid-template-columns: 1fr; }
  .ec-hero__heading { font-size: 36px; }
  .ec-timer__seg { min-width: 42px; }
  .ec-timer__seg b { font-size: 20px; }
}
