* { box-sizing: border-box; }

/* атрибут hidden должен побеждать любые display из правил */
[hidden] { display: none !important; }

:root {
  --orange: #ff6b00;
  --orange-dark: #e85400;
  --red: #e8420f;
  --ink: #1e1e1e;
  --muted: #6b6b6b;
  --line: #ececec;
  --tint: #fff7f0;
  --yellow: #ffd23f;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(30, 20, 10, .10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 11px 20px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 0, .35); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: #f3f3f3; color: var(--ink); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--cart { background: var(--ink); color: #fff; position: relative; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cart-badge {
  background: var(--orange); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; padding: 0 6px;
}

/* шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; }
.logo__icon { font-size: 26px; filter: drop-shadow(0 3px 6px rgba(255,107,0,.4)); }
.logo__text em { font-style: normal; color: var(--orange); }
.city {
  background: var(--tint); border: 1px solid #ffe0c7; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; margin-left: 6px; }
.nav a:hover { color: var(--orange); }
.header__phone { font-weight: 800; font-size: 16px; margin-left: auto; white-space: nowrap; }
.header__phone:hover { color: var(--orange); }
.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* герой */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #ff7a1a 0%, #ff5e00 55%, #ff9040 100%);
  color: #fff; padding: 56px 0 64px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; position: relative; z-index: 2; }
.hero__chip {
  display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-bottom: 14px; }
.hero__accent { color: var(--yellow); }
.hero__lead { font-size: 17px; max-width: 30rem; opacity: .95; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }
.hero__facts { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 24px; }
.hero__facts span { font-size: 13px; opacity: .85; }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: min(420px, 90%); height: auto; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero__blob--1 { width: 340px; height: 340px; top: -140px; right: -80px; }
.hero__blob--2 { width: 220px; height: 220px; bottom: -110px; left: 8%; }

/* секции */
.section { padding: 60px 0; scroll-margin-top: 78px; }
#top { scroll-margin-top: 0; }
.section--tint { background: var(--tint); }
.section__head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }
.section__head p { color: var(--muted); margin-bottom: 26px; }

/* чипсы */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* сетка карточек */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; position: relative;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
}
.card__badge--hit { background: var(--ink); }
.card__art { height: 170px; display: flex; align-items: center; justify-content: center; }
.card__art svg, .card__art .emoji-art { width: 165px; height: 165px; }
.emoji-art {
  display: flex; align-items: center; justify-content: center; font-size: 76px;
  border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff2e2, #ffe0bd);
}
.card h3 { font-size: 18px; margin: 6px 0 6px; }
.card__desc { color: var(--muted); font-size: 13.5px; min-height: 40px; margin-bottom: 12px; }
.sizes { display: flex; gap: 6px; margin-bottom: 14px; }
.size {
  flex: 1; background: #f6f6f6; border: 1.5px solid transparent; border-radius: 12px;
  padding: 7px 2px; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center;
  white-space: nowrap;
}
.size--active { background: var(--tint); border-color: var(--orange); color: var(--orange-dark); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { display: flex; flex-direction: column; }
.price b { font-size: 21px; }
.price s { color: var(--muted); font-size: 13px; }
.card .btn--primary { padding: 11px 16px; }

/* промо */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.promo {
  border-radius: var(--radius); padding: 26px; color: #fff; position: relative; overflow: hidden;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
}
.promo h3 { font-size: 24px; }
.promo p { font-size: 14px; opacity: .95; margin-bottom: 16px; }
.promo .btn { align-self: flex-start; }
.promo__emoji { position: absolute; top: 8px; right: 14px; font-size: 78px; opacity: .3; }
.promo--1 { background: linear-gradient(135deg, #2b2b2b, #4a4a4a); }
.promo--2 { background: linear-gradient(135deg, #ff5e00, #ff9040); }
.promo--3 { background: linear-gradient(135deg, #0f8a5f, #3ecf8e); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step__num {
  position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint); color: var(--orange-dark); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step__emoji { font-size: 42px; margin-bottom: 12px; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* о нас */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.about h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.about p { color: var(--muted); }
.about__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-weight: 600; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 24px 18px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 32px; color: var(--orange); }
.stat span { color: var(--muted); font-size: 14px; }

/* футер */
.footer { background: var(--ink); color: #d9d9d9; padding: 44px 0 20px; margin-top: 10px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.footer__col a:hover { color: var(--orange); }
.logo--light { color: #fff; }
.footer__brand p { color: #9a9a9a; font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  background: #2c2c2c; border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.socials a:hover { background: var(--orange); color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #333; margin-top: 30px; padding-top: 16px; font-size: 13px; color: #8d8d8d;
}

/* корзина */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s ease; box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 19px; }
.drawer__close { background: #f3f3f3; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.drawer__empty .big { font-size: 54px; display: block; margin-bottom: 10px; }
.line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.line__art { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 30px; border-radius: 14px; background: var(--tint); }
.line__art svg { width: 54px; height: 54px; }
.line__name { font-weight: 700; font-size: 14.5px; }
.line__meta { color: var(--muted); font-size: 12.5px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.qty button:hover { border-color: var(--orange); color: var(--orange); }
.qty span { font-weight: 700; font-size: 14px; min-width: 16px; text-align: center; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-weight: 800; }
.line__remove { background: none; border: 0; color: #c33; cursor: pointer; font-size: 12px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: #fff; }
.promo-line { display: flex; gap: 8px; margin-bottom: 14px; }
.promo-line input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; }
.promo-line input:focus { outline: none; border-color: var(--orange); }
.totals { display: grid; gap: 7px; margin-bottom: 14px; font-size: 14.5px; }
.totals__row { display: flex; justify-content: space-between; color: var(--muted); }
.totals__row--big { color: var(--ink); font-weight: 800; font-size: 20px; padding-top: 8px; border-top: 1px dashed var(--line); }
.drawer__hint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* модалка и тост */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__card { background: #fff; border-radius: 24px; padding: 30px 26px; width: min(400px, 100%); text-align: center; animation: pop .25s ease; }
.modal__emoji { font-size: 56px; }
.modal__card h3 { font-size: 24px; margin-top: 8px; }
.modal__card p { color: var(--muted); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
/* выбор города — чёрная тема */
.modal__card--city {
  text-align: center;
  background: #0d0d0d;
  color: #fff;
  border: 1px solid #2b2b2b;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.modal__card--city h3 { color: #fff; }
.city-search {
  width: 100%; border: 1.5px solid #333; border-radius: 999px;
  padding: 12px 18px; font-size: 15px; margin-bottom: 6px;
  background: #1a1a1a; color: #fff;
}
.city-search::placeholder { color: #8a8a8a; }
.city-search:focus { outline: none; border-color: var(--orange); }
.city-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 300px; overflow-y: auto; margin: 10px 0 16px; text-align: left;
}
.city-list::-webkit-scrollbar { width: 8px; }
.city-list::-webkit-scrollbar-thumb { background: #333; border-radius: 999px; }
.city-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #171717; border: 1.5px solid #2b2b2b; border-radius: 14px;
  padding: 11px 16px; font-size: 15px; font-weight: 600; color: #eee;
  cursor: pointer; transition: .15s;
}
.city-item:hover { border-color: var(--orange); background: #232323; color: #fff; }
.city-item--active { background: #23150b; border-color: var(--orange); color: var(--orange); }
.city-item__eta {
  font-size: 12.5px; font-weight: 700; color: #3ecf8e;
  background: #10251c; border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.city-empty { text-align: center; color: #9a9a9a; padding: 18px 0; font-size: 14px; }
.modal__card--city .btn--ghost { background: #1f1f1f; color: #ddd; }
.modal__card--city .btn--ghost:hover { background: var(--orange); color: #fff; }

/* вход */
.modal__card--login { text-align: center; }
.login-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.login-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 13px 18px; font-size: 15px; margin-bottom: 10px; background: #fafafa;
}
.login-input:focus { outline: none; border-color: var(--orange); background: #fff; }
.modal__card--login .btn--primary { margin-top: 6px; }
.modal__card--login .btn--ghost { margin-top: 10px; }
.login-hint { color: var(--red); font-size: 13.5px; font-weight: 700; margin: 10px 0 0; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; z-index: 130; box-shadow: var(--shadow);
  animation: pop .2s ease;
}

/* адаптив */
@media (max-width: 980px) {
  .nav, .header__phone, .btn--ghost { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 6%; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { width: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .btn__label { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 42px 0; }
  .hero { padding: 38px 0 44px; }
  .hero__facts { gap: 18px; }
  .footer__inner { grid-template-columns: 1fr; }
}
