/* ===================================================================
   МАКС Бургер — styles.css
   Тёмный «грильный» дизайн в фирменных цветах логотипа
   =================================================================== */

:root {
  /* brand palette */
  --bg:        #140b06;
  --bg-2:      #1d110a;
  --surface:   #2a180e;
  --surface-2: #34200f;
  --line:      rgba(255, 198, 43, 0.14);

  --brown:     #3a1f0f;
  --orange:    #f5891f;
  --orange-d:  #e0700a;
  --yellow:    #ffc62b;
  --cream:     #ffe9b0;

  --text:      #fbe7d4;
  --muted:     #c7a98a;
  --white:     #fff;

  --red:       #e23b2e;
  --green:     #4caf50;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  --grad:      linear-gradient(135deg, var(--yellow), var(--orange));
  --grad-d:    linear-gradient(135deg, var(--orange), var(--orange-d));

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--orange); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-d); }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; position: relative; }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__eyebrow {
  display: inline-block;
  font-family: 'Russo One', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 198, 43, 0.1);
  border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 16px;
}
.section__title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1; color: var(--white); letter-spacing: 0.01em;
}
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #2a1402; box-shadow: 0 10px 26px rgba(245, 137, 31, 0.4); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(245, 137, 31, 0.55); filter: brightness(1.06); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--cream); border: 1.5px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--orange); background: rgba(245, 137, 31, 0.1); }
.btn--eda {
  background: #ffcc00; color: #1a1a1a;
  box-shadow: 0 10px 26px rgba(255, 204, 0, 0.35);
  font-weight: 800;
}
.btn--eda:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 204, 0, 0.5);
  filter: brightness(1.05);
}
.btn--block { width: 100%; }

/* ===================================================================
   HEADER
   =================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 14px 0;
}
.header.is-scrolled {
  background: rgba(20, 11, 6, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; }
.brand { flex-shrink: 0; }
.brand__logo { height: 56px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.brand:hover .brand__logo { transform: scale(1.05) rotate(-2deg); }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  font-weight: 600; color: var(--cream); padding: 8px 16px; border-radius: 100px;
  position: relative; transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--yellow); background: rgba(255, 198, 43, 0.08); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 198, 43, 0.1); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 100px; font-weight: 700; font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.phone-pill:hover { border-color: var(--orange); background: rgba(245, 137, 31, 0.14); transform: translateY(-2px); }
.phone-pill__icon { font-size: 0.95rem; }

.eda-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffcc00; color: #1a1a1a;
  padding: 9px 16px; border-radius: 100px;
  font-weight: 800; font-size: 0.88rem;
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.eda-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 204, 0, 0.45); filter: brightness(1.05); }
.eda-pill__icon { font-size: 0.95rem; line-height: 1; }

.cart-btn {
  position: relative; font-size: 1.35rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #2a1402; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(245, 137, 31, 0.4); transition: transform 0.2s;
}
.cart-btn:hover { transform: translateY(-2px) scale(1.05); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 100px;
  display: grid; place-items: center; border: 2px solid var(--bg);
  transform: scale(0); transition: transform 0.25s var(--ease);
}
.cart-btn__count.is-visible { transform: scale(1); }

.burger-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger-toggle span { width: 24px; height: 2.5px; background: var(--cream); border-radius: 4px; transition: 0.3s; }
.burger-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-toggle.is-open span:nth-child(2) { opacity: 0; }
.burger-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(245, 137, 31, 0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(226, 59, 46, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero__embers {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(2px 2px at 20% 70%, var(--yellow), transparent),
    radial-gradient(2px 2px at 60% 40%, var(--orange), transparent),
    radial-gradient(1.5px 1.5px at 80% 60%, var(--yellow), transparent),
    radial-gradient(1.5px 1.5px at 35% 30%, var(--orange), transparent),
    radial-gradient(2px 2px at 90% 25%, var(--cream), transparent);
  background-size: 100% 100%;
  animation: floatEmbers 12s ease-in-out infinite alternate;
}
@keyframes floatEmbers { to { transform: translateY(-30px); opacity: 0.25; } }

.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero__badges { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line);
}
.tag--halal { color: var(--green); background: rgba(76, 175, 80, 0.1); border-color: rgba(76,175,80,0.3); }
.tag--fresh { color: var(--yellow); background: rgba(255, 198, 43, 0.1); }
.tag--eda {
  color: #1a1a1a; background: #ffcc00; border-color: #ffcc00;
  text-decoration: none; font-weight: 800;
  transition: transform 0.2s, filter 0.2s;
}
.tag--eda:hover { transform: translateY(-2px); filter: brightness(1.05); }

.hero__title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; color: var(--white);
  letter-spacing: 0.005em;
}
.hero__title .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { color: var(--muted); font-size: 1.12rem; margin: 22px 0 32px; max-width: 480px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 34px; margin-top: 44px; }
.stat b { font-family: 'Russo One', sans-serif; font-size: 1.7rem; color: var(--yellow); display: block; }
.stat span { font-size: 0.85rem; color: var(--muted); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,137,31,0.45), transparent 65%);
  filter: blur(20px); animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: 0.8; } }
.hero__burger {
  width: 100%; max-width: 460px; border-radius: 24px; position: relative; z-index: 2;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.06);
  animation: floatBurger 5s ease-in-out infinite;
}
@keyframes floatBurger { 50% { transform: translateY(-16px); } }
.hero__price-tag {
  position: absolute; bottom: 18px; right: 0; z-index: 3;
  background: var(--grad); color: #2a1402; font-size: 0.9rem; font-weight: 700;
  padding: 12px 20px; border-radius: 16px; text-align: center; line-height: 1.25;
  box-shadow: var(--shadow-sm); transform: rotate(-4deg);
}
.hero__price-tag b { font-family: 'Russo One', sans-serif; font-size: 1.4rem; }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80h1440V40c-240 30-480 30-720 10S240 10 0 40z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80h1440V40c-240 30-480 30-720 10S240 10 0 40z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}

/* ===================================================================
   MENU
   =================================================================== */
.menu { background: var(--bg); }

.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }
.tab {
  font-weight: 700; font-size: 1rem; padding: 12px 26px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); color: var(--cream);
  transition: all 0.25s var(--ease);
}
.tab:hover { border-color: var(--orange); transform: translateY(-2px); }
.tab.is-active { background: var(--grad); color: #2a1402; border-color: transparent; box-shadow: 0 8px 22px rgba(245,137,31,0.4); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 26px; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  animation: cardIn 0.5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(245,137,31,0.4); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0703; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__weight {
  position: absolute; top: 12px; right: 12px;
  background: rgba(20,11,6,0.78); backdrop-filter: blur(6px);
  color: var(--cream); font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line);
}
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 5px 11px; border-radius: 100px; letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(226,59,46,0.5);
}
.card__badge--hit { background: var(--grad-d); color: #2a1402; }

.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: 'Russo One', sans-serif; font-size: 1.18rem; color: var(--white); margin-bottom: 8px; }
.card__desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; flex: 1; }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-family: 'Russo One', sans-serif; font-size: 1.5rem; color: var(--yellow); }
.card__price span { font-size: 0.95rem; }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #2a1402; font-weight: 700; font-size: 0.92rem;
  padding: 10px 18px; border-radius: 100px; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 6px 16px rgba(245,137,31,0.35);
}
.add-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.add-btn:active { transform: scale(0.94); }

/* ===================================================================
   BUILDER (фишка)
   =================================================================== */
.builder {
  background:
    radial-gradient(700px 400px at 85% 15%, rgba(245,137,31,0.12), transparent 60%),
    var(--bg-2);
}
.builder__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }

.builder__preview {
  position: sticky; top: 100px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center; box-shadow: var(--shadow-sm);
}
.builder__stack {
  height: 340px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center;
  gap: 1px; margin-bottom: 16px; position: relative;
  transition: filter 0.3s;
}
.builder__stack::before {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 72%; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45), transparent 70%);
  pointer-events: none;
}
.builder__stack.is-loaded { filter: drop-shadow(0 12px 24px rgba(245,137,31,0.25)); }

.layer {
  border-radius: 60px / 22px; width: 80%; box-shadow: 0 3px 6px rgba(0,0,0,0.35);
  animation: layerIn 0.35s var(--ease) both; flex-shrink: 0;
}
@keyframes layerIn { from { opacity: 0; transform: translateY(-18px) scale(0.85); } }

/* булочки */
.layer--bun-top {
  height: 48px; width: 86%;
  background: linear-gradient(180deg, #f0b04a 0%, #e8a23c 40%, #c47a1d 100%);
  border-radius: 90px 90px 28px 28px; position: relative;
}
.layer--bun-top::after {
  content: ""; position: absolute; inset: 8px 20% auto; height: 9px;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 1.2px, transparent 2.4px);
  background-size: 15px 9px; border-radius: 8px;
}
.layer--bun-bottom {
  height: 28px; width: 84%;
  background: linear-gradient(180deg, #d98f2a, #a8661a);
  border-radius: 28px 28px 60px 60px;
}

/* основа */
.layer--patty {
  height: 24px; width: 82%;
  background: linear-gradient(180deg, #7a4a2a, #4a2614);
  border-radius: 40px / 14px;
}
.layer--chicken {
  height: 26px; width: 84%;
  background: linear-gradient(180deg, #e8b85a, #c48a2e);
  border-radius: 16px;
  box-shadow: inset 0 -3px 0 #9a6b1f, inset 0 2px 4px rgba(255,255,255,0.2);
}

/* овощи */
.layer--lettuce {
  height: 14px; width: 92%;
  background: linear-gradient(180deg, #8bc34a, #558b2f);
  clip-path: polygon(0 40%,8% 0,16% 50%,26% 5%,36% 55%,48% 8%,58% 55%,70% 6%,80% 52%,90% 4%,100% 45%,100% 100%,0 100%);
}
.layer--tomato {
  height: 12px; width: 86%;
  background: linear-gradient(180deg, #e2473b, #b5281e);
  border-radius: 20px;
}
.layer--cucumber {
  height: 10px; width: 84%;
  background: linear-gradient(180deg, #b8e0b0, #6fb068);
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.layer--pickle {
  height: 9px; width: 82%;
  background: linear-gradient(180deg, #6a9e42, #3d6b25);
  border-radius: 14px;
}

/* сыры */
.layer--cheese-cheddar {
  height: 14px; width: 90%;
  background: linear-gradient(180deg, #ffd23f, #f5a623);
  clip-path: polygon(0 0,100% 0,94% 100%,82% 55%,68% 100%,54% 60%,40% 100%,26% 58%,12% 100%,0 65%);
}
.layer--cheese-holland {
  height: 13px; width: 88%;
  background: linear-gradient(180deg, #fff3a0, #f0d060);
  clip-path: polygon(0 0,100% 0,92% 100%,78% 50%,64% 100%,50% 55%,36% 100%,22% 52%,8% 100%,0 60%);
}

/* соусы */
.layer--sauce-firm {
  height: 8px; width: 78%;
  background: linear-gradient(180deg, #ff9f43, #e0700a);
  border-radius: 20px;
}
.layer--sauce-chicken {
  height: 7px; width: 76%;
  background: linear-gradient(180deg, #fff8e7, #f5e6c8);
  border-radius: 20px;
}
.layer--sauce-pineapple {
  height: 7px; width: 76%;
  background: linear-gradient(180deg, #ffe066, #f5c842);
  border-radius: 20px;
}
.layer--sauce-cheese {
  height: 7px; width: 74%;
  background: linear-gradient(180deg, #ffe566, #f0c030);
  border-radius: 20px;
}
.layer--sauce-ketchup {
  height: 7px; width: 74%;
  background: linear-gradient(180deg, #e83030, #c02020);
  border-radius: 20px;
}

.builder__panel { border-top: 1px dashed var(--line); padding-top: 18px; }
.builder__name { font-family: 'Russo One', sans-serif; font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.builder__price { font-family: 'Russo One', sans-serif; font-size: 2.2rem; color: var(--yellow); margin-bottom: 16px; }
.builder__add { width: 100%; }

.builder__controls { display: flex; flex-direction: column; gap: 22px; align-content: start; }
.builder__base-chip {
  background: rgba(255, 198, 43, 0.08); border: 1.5px dashed var(--yellow);
  padding: 14px 18px; border-radius: var(--radius-sm); text-align: center;
  font-size: 0.95rem; color: var(--cream);
}
.builder__base-chip b { color: var(--yellow); font-family: 'Russo One', sans-serif; }
.builder__group-title {
  font-family: 'Russo One', sans-serif; font-size: 1rem; color: var(--yellow);
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.builder__group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ingredient {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 12px 12px 14px; transition: all 0.2s var(--ease);
  min-width: 0; overflow: hidden;
}
.ingredient--long { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .ingredient--long { grid-column: span 2; }
}
.ingredient:hover { border-color: var(--orange); transform: translateY(-2px); }
.ingredient.is-active { border-color: var(--orange); background: rgba(245,137,31,0.12); }
.ingredient__emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.ingredient__info { flex: 1; min-width: 0; }
.ingredient__name { font-weight: 700; font-size: 0.88rem; color: var(--text); line-height: 1.3; }
.ingredient__price { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.ingredient__check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; font-size: 0.8rem; color: #2a1402;
  transition: all 0.2s; margin-top: 2px;
}
.ingredient.is-active .ingredient__check { background: var(--grad); border-color: transparent; }
.ingredient.is-active .ingredient__check::after { content: "✓"; font-weight: 800; }

/* ===================================================================
   LOCATION
   =================================================================== */
.location { background: var(--bg); }
.location__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: stretch; }
.location__info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: rgba(245,137,31,0.4); transform: translateX(4px); }
.info-card__icon {
  font-size: 1.5rem; width: 50px; height: 50px; flex-shrink: 0;
  background: rgba(245,137,31,0.12); border-radius: 14px; display: grid; place-items: center;
}
.info-card__title { font-family: 'Russo One', sans-serif; font-size: 1rem; color: var(--yellow); margin-bottom: 3px; }
.info-card a:hover { color: var(--yellow); }
.location__info .btn { margin-top: auto; }

.location__map {
  border-radius: var(--radius); overflow: hidden; min-height: 440px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface);
}
.location__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ===================================================================
   CONTACTS
   =================================================================== */
.contacts {
  background:
    radial-gradient(700px 400px at 15% 50%, rgba(226,59,46,0.14), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--bg-2));
}
.contacts__inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.contacts__links { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.contacts__card {
  text-align: center; background: rgba(20,11,6,0.5); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.contacts__logo { height: 120px; margin: 0 auto 16px; }
.contacts__card p { color: var(--muted); font-size: 0.95rem; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer__logo { height: 64px; margin-bottom: 14px; }
.footer__tag { color: var(--muted); max-width: 260px; }
.footer__col h4 { font-family: 'Russo One', sans-serif; color: var(--yellow); margin-bottom: 14px; font-size: 1rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); margin-bottom: 8px; transition: color 0.2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom { text-align: center; color: var(--muted); font-size: 0.85rem; padding-top: 22px; border-top: 1px solid var(--line); }

/* ===================================================================
   CART DRAWER
   =================================================================== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 200;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw; z-index: 210;
  background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 0.4s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}
.cart.is-open { transform: translateX(0); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-family: 'Russo One', sans-serif; font-size: 1.2rem; color: var(--white); }
.cart__close { font-size: 1.2rem; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); transition: background 0.2s, transform 0.2s; }
.cart__close:hover { background: var(--red); transform: rotate(90deg); }

.cart__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart__empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart__empty span { font-size: 3rem; display: block; margin-bottom: 12px; }

.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: cardIn 0.3s var(--ease) both; }
.cart-item__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #0d0703; }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.cart-item__price { color: var(--yellow); font-weight: 700; font-size: 0.9rem; }
.cart-item__qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; color: var(--cream); display: grid; place-items: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--orange); color: #2a1402; border-color: transparent; }
.cart-item__count { font-weight: 700; min-width: 22px; text-align: center; }
.cart-item__remove { align-self: flex-start; color: var(--muted); font-size: 1.1rem; transition: color 0.2s; }
.cart-item__remove:hover { color: var(--red); }

.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 1.05rem; }
.cart__total b { font-family: 'Russo One', sans-serif; font-size: 1.7rem; color: var(--yellow); }
.cart__note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ===================================================================
   TOAST
   =================================================================== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 120px);
  background: var(--grad); color: #2a1402; font-weight: 700; padding: 14px 26px;
  border-radius: 100px; box-shadow: var(--shadow); z-index: 300; opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s; pointer-events: none; max-width: 90vw;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { order: -1; }
  .hero__badges, .hero__cta, .hero__stats { justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .builder__layout { grid-template-columns: 1fr; }
  .builder__preview { position: static; }
  .location__layout, .contacts__inner { grid-template-columns: 1fr; }
  .contacts__card { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 75%; max-width: 320px;
    flex-direction: column; gap: 6px; padding: 90px 24px 24px;
    background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 150;
    margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; font-size: 1.1rem; padding: 14px 18px; }
  .burger-toggle { display: flex; }
  .phone-pill__text { display: none; }
  .phone-pill { padding: 9px 12px; }
  .eda-pill__text { display: none; }
  .eda-pill { padding: 9px 12px; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 60px; }
  .hero__stats { gap: 22px; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card__body { padding: 14px; }
  .card__title { font-size: 1rem; }
  .card__desc { display: none; }
  .add-btn { padding: 9px 12px; }
}
