@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --warm: #c2571b;
  --warm-dark: #9a4312;
  --warm-soft: #e8863c;
  --blue: #2b6cb0;
  --blue-soft: #4a8fd4;
  --ink: #2d2a26;
  --muted: #7a7368;
  --soft: #fdfaf5;
  --line: #eadfce;
  --white: #fff;
  --shadow: 0 18px 40px rgba(90, 60, 30, 0.16);
  --shadow-3d: 0 25px 50px rgba(90, 60, 30, 0.22), 0 8px 16px rgba(43, 108, 176, 0.08);
  --font: "Manrope", "PT Sans", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(194, 87, 27, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(43, 108, 176, 0.14), transparent 50%),
    linear-gradient(165deg, #f7efe4 0%, #efe2d0 45%, #f8f3eb 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(253, 250, 245, 0.82);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--warm), var(--blue)) 1;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  transition: transform 0.25s ease; flex-shrink: 0;
}
.logo:hover { transform: translateY(-1px); text-decoration: none; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, var(--warm-soft), var(--warm-dark));
  color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(194, 87, 27, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  transform: perspective(400px) rotateY(-8deg);
}
.logo__text { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; color: var(--warm-dark); }
.logo__text small { display: block; color: var(--muted); font-weight: 600; letter-spacing: 1px; text-transform: none; font-size: 11px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; flex: 1; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--warm); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-phone {
  color: var(--warm-dark) !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 4px;
}
.header-phone:hover { color: var(--warm) !important; text-decoration: none; }
.cart-link { position: relative; padding-right: 10px; display: inline-flex; align-items: center; gap: 8px; }
.cart-link span {
  position: absolute; top: -8px; right: -6px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--warm); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px;
  box-shadow: 0 4px 10px rgba(194, 87, 27, 0.4);
}
.cart-link span[hidden] { display: none !important; }

/* Hero 3D */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px;
  align-items: center; padding: 42px 0 34px;
  perspective: 1200px;
}
.hero__copy h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08; color: var(--warm-dark);
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-block; color: var(--blue); font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(43, 108, 176, 0.1);
}
.lead { font-size: 17px; color: var(--muted); max-width: 40ch; }
.hero__media {
  position: relative;
  border-radius: 24px; overflow: hidden;
  background: #fff; min-height: 360px;
  box-shadow: var(--shadow-3d);
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
  will-change: transform;
}
.hero__media:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(1deg) translateY(-6px) scale(1.02);
  box-shadow: 0 35px 60px rgba(90, 60, 30, 0.28);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 40%, rgba(194,87,27,0.08));
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 360px;
  transition: transform 0.5s ease;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 13px 22px; font-weight: 800; font-size: 14px;
  background: linear-gradient(145deg, var(--warm-soft), var(--warm-dark));
  color: #fff; text-decoration: none;
  box-shadow: 0 10px 22px rgba(194, 87, 27, 0.32), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover {
  filter: brightness(1.05); text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(194, 87, 27, 0.4);
}
.btn--ghost {
  background: rgba(255,255,255,0.55);
  color: var(--warm-dark);
  border: 1.5px solid rgba(194, 87, 27, 0.45);
  box-shadow: 0 8px 18px rgba(90, 60, 30, 0.08);
  backdrop-filter: blur(8px);
}
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--blue {
  background: linear-gradient(145deg, var(--blue-soft), var(--blue));
  box-shadow: 0 10px 22px rgba(43, 108, 176, 0.3);
}

.section { padding: 34px 0 12px; }
.section h2 {
  font-family: var(--display); font-size: clamp(24px, 3vw, 32px); color: var(--warm-dark); margin-bottom: 8px;
}
.section__intro { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.feature, .link-card, .video-card, .contact-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.feature:hover, .link-card:hover, .video-card:hover, .contact-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-3d);
  text-decoration: none;
}
.feature h3, .link-card h3, .video-card h3, .contact-card h3 { color: var(--blue); font-size: 17px; margin-bottom: 6px; }

/* Контакты + карта */
.contacts-page__title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--warm-dark);
  margin-bottom: 8px;
}
.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  position: sticky;
  top: 64px;
  z-index: 20;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(253,250,245,0.96), rgba(253,250,245,0.88));
  backdrop-filter: blur(8px);
}
.contacts-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}
.contacts-info {
  display: grid;
  gap: 14px;
}
.contacts-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 10px 0 0;
}
.contacts-list__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}
.contacts-list a { font-weight: 800; color: var(--warm-dark); }
.contacts-tips {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.contacts-tips b { color: var(--ink); }
.contact-map-card__addr {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eef4;
  aspect-ratio: 4 / 3;
  min-height: 260px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-map-card__links { margin-top: 12px; }

@media (max-width: 900px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .contact-map { aspect-ratio: 1 / 1; min-height: 280px; }
  .contacts-actions { top: 56px; }
}

@media (max-width: 560px) {
  .contacts-actions .btn { width: auto; flex: 1 1 calc(50% - 10px); }
  .contacts-actions .btn--max-icon { flex: 0 0 36px; width: 36px; }
}
.feature p, .link-card p, .video-card p { color: var(--muted); font-size: 14px; }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 28px;
}
.product-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  transform: perspective(800px) rotateX(0);
}
.product-card:hover {
  transform: perspective(800px) translateY(-10px) rotateX(2deg);
  box-shadow: var(--shadow-3d);
}
.product-card__media { position: relative; background: linear-gradient(160deg, #fff, #f3ebe0); aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-size: 16px; }
.product-card__body h3 a { color: var(--ink); text-decoration: none; }
.product-card__body p { color: var(--muted); font-size: 13px; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag {
  position: absolute; left: 12px; top: 12px;
  background: linear-gradient(145deg, var(--warm-soft), var(--warm));
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(194, 87, 27, 0.35);
}
.price { color: var(--warm-dark); font-weight: 800; }
.price--lg { font-size: 26px; margin: 8px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.filters a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.8); color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none;
}
.filters a.is-active, .filters a:hover { border-color: var(--warm); color: var(--warm-dark); background: #fff; }

.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0 44px;
}
.product-layout__media {
  background: #fff; border-radius: 24px; border: 1px solid var(--line);
  padding: 14px; box-shadow: var(--shadow-3d);
  transform: perspective(900px) rotateY(4deg);
}
.product-layout__media img { width: 100%; max-height: 420px; object-fit: contain; margin: 0 auto; }
.specs { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; border-radius: 12px; overflow: hidden; }
.specs td { padding: 8px 10px; border-top: 1px solid var(--line); font-size: 14px; }
.specs td:first-child { color: var(--muted); width: 40%; }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }

.cart-table, .checkout-grid { width: 100%; margin: 16px 0 24px; }
.cart-table { border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { background: linear-gradient(135deg, var(--warm), var(--warm-soft)); color: #fff; text-align: left; padding: 10px 12px; font-size: 13px; }
.cart-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.qty { width: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.linkish { background: none; border: 0; color: var(--warm); cursor: pointer; font-weight: 700; }
.empty { padding: 28px; background: #fff; border-radius: 14px; border: 1px dashed var(--line); }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form {
  background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
}
.form label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
.form input, .form textarea, #order-preview {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fffaf4;
}
.form textarea, #order-preview { min-height: 120px; resize: vertical; }
#order-preview { min-height: 260px; font-family: Consolas, monospace; font-size: 13px; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 28px; }
.video-frame {
  aspect-ratio: 16/9; background: #1c1c1c; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; color: #fff; position: relative;
}
.video-frame iframe,
.video-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #120f0c; }
.video-frame .placeholder { text-align: center; padding: 20px; opacity: 0.85; font-size: 14px; }

.site-footer {
  margin-top: 48px; padding: 28px 0 36px;
  border-top: 1px solid rgba(194, 87, 27, 0.22);
  color: var(--muted); font-size: 13px;
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer__legal { flex: 1 1 100%; font-size: 12px; line-height: 1.45; }

/* MAX chat widget — официальный значок */
.max-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  cursor: pointer; padding: 0; overflow: visible;
  background: transparent;
  box-shadow: 0 8px 20px rgba(71, 26, 255, 0.28);
  transform: none;
  transition: transform 0.25s ease, box-shadow 0.25s;
  display: grid; place-items: center;
}
.max-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(71, 26, 255, 0.36); }
.max-fab .max-logo,
.max-fab img { display: block; width: 46px; height: 46px; border-radius: 50%; }
.max-fab__pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(71, 26, 255, 0.32);
  animation: pulse 2s infinite; pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.max-chat {
  position: fixed; right: 22px; bottom: 84px; z-index: 61;
  width: min(360px, calc(100vw - 28px));
  height: min(520px, calc(100vh - 140px));
  display: none; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(234, 223, 206, 0.95);
  box-shadow: 0 30px 60px rgba(40, 30, 20, 0.28);
  backdrop-filter: blur(16px);
  transform-origin: bottom right;
  animation: chatIn 0.28s ease;
}
.max-chat.is-open { display: flex; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.max-chat__head {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue), #1e4f86);
  color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.max-chat__head strong { display: block; font-size: 15px; }
.max-chat__head span { font-size: 12px; opacity: 0.85; }
.max-chat__close {
  border: 0; background: rgba(255,255,255,0.18); color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px;
}
.max-chat__body {
  flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(43,108,176,0.08), transparent 40%),
    #fbf7f1;
}
.max-msg {
  max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.max-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.max-msg--user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--warm-soft), var(--warm));
  color: #fff;
}
.max-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.max-chat__quick button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.max-chat__quick button:hover { border-color: var(--blue); color: var(--blue); }
.max-chat__form {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff;
}
.max-chat__form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit;
}
.max-chat__form button {
  border: 0; border-radius: 999px; padding: 0 16px; font-weight: 800; cursor: pointer;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue)); color: #fff;
}
.max-chat__actions { padding: 0 14px 12px; display: grid; gap: 8px; }
.max-chat__actions .btn { width: 100%; font-family: inherit; }

.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer;
}

@media (max-width: 900px) {
  .hero, .product-layout, .checkout-grid, .grid-3, .product-grid, .video-grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero__media, .product-layout__media { transform: none; }
  .hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .hero__media img {
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero { padding: 24px 0 20px; gap: 18px; }
  .hero__copy h1 { font-size: 28px; }
  .lead { font-size: 15px; }
  #hero-max { display: none !important; }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
    position: relative;
  }
  .logo__mark { width: 36px; height: 36px; font-size: 14px; }
  .logo__text { font-size: 11px; letter-spacing: 1px; }
  .logo__text small { display: none; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    z-index: 50;
    width: auto;
    max-width: none;
    flex-basis: auto;
    order: 0;
    margin: 0;
    padding: 6px 0 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(253, 250, 245, 0.98);
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 28px rgba(90, 60, 30, 0.14);
  }
  .nav.is-open { display: flex; }
  .nav.is-open a,
  .nav.is-open .cart-link {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(234, 223, 206, 0.9);
    font-size: 15px;
  }
  .nav.is-open .cart-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }
  .nav.is-open .cart-link span {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 auto;
  }
  .nav.is-open .cart-link span[hidden] { display: none !important; }
  .nav.is-open a:last-child,
  .nav.is-open .cart-link:last-child { border-bottom: 0; }
  .menu-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
    padding: 7px 10px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .header-actions { order: 2; margin-left: auto; gap: 8px; }
  .header-phone {
    font-size: 12px;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 0;
  }
  .nav-max { width: 26px; height: 26px; }
  .nav-max .max-logo,
  .nav-max img { width: 26px; height: 26px; }
  .section { padding: 28px 0; }
  .section h2 { font-size: 24px; }
  .max-chat {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 72px;
    height: min(68vh, 520px);
  }
}

.nav-call {
  color: var(--warm-dark) !important;
  background: rgba(194, 87, 27, 0.1);
  padding: 6px 12px; border-radius: 999px;
}
.nav-max {
  border: 0; cursor: pointer; padding: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent;
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(71, 26, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-max .max-logo,
.nav-max img { display: block; width: 28px; height: 28px; border-radius: 50%; }
.nav-max:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 5px 14px rgba(71, 26, 255, 0.3); }

.btn--max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #471AFF, #6E1AFF);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(71, 26, 255, 0.35);
}
.btn--max:hover { filter: brightness(1.06); color: #fff; }
.btn--max .max-logo,
.btn--max img { flex-shrink: 0; border-radius: 50%; }

.btn--max-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 12px rgba(71, 26, 255, 0.22);
  display: grid; place-items: center;
}
.btn--max-icon .max-logo,
.btn--max-icon img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.btn--max-icon:hover { transform: translateY(-1px) scale(1.04); filter: none; }
.hero-contacts { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-contacts a { font-weight: 800; color: var(--warm-dark); }

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px;
}
.step-card {
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); }
.step-card__n {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--warm-soft), var(--warm-dark));
  margin-bottom: 10px; box-shadow: 0 8px 16px rgba(194, 87, 27, 0.3);
}
.step-card h3 { font-size: 15px; color: var(--blue); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--muted); }
.media-card {
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.media-card__media {
  position: relative;
  background: linear-gradient(160deg, #fff, #f3ebe0);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 14px;
}
.media-card__media img,
.media-card > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.media-card--wide .media-card__media {
  padding: 18px 22px;
}
.media-card figcaption { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--warm-dark); }

@media (hover: hover) and (pointer: fine) {
  .media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3d);
  }
  .media-card:hover .media-card__media img,
  .media-card:hover > img { transform: scale(1.04); }
  .product-card:hover .product-card__media img { transform: scale(1.06); }
  .blog-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .blog-shot:hover img { transform: scale(1.05); }
  .hero__media:hover img { transform: scale(1.04); }
}

.install-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reviews-grid--page { grid-template-columns: repeat(3, 1fr); }
.review-card {
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3d); }
.review-card__stars { color: var(--warm); letter-spacing: 2px; font-size: 14px; }
.review-card p { color: var(--ink); font-size: 14px; margin: 0; line-height: 1.5; }
.review-card--rich .review-card__top {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 16px;
  background: linear-gradient(145deg, var(--warm-soft), var(--blue));
  box-shadow: 0 6px 14px rgba(194, 87, 27, 0.25);
}
.review-card__name { display: block; font-size: 14px; color: var(--ink); }
.review-card__place { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.reviews-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 18px 0 22px;
}
.reviews-stats > div {
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; text-align: center;
  box-shadow: var(--shadow);
}
.reviews-stats strong {
  display: block; font-family: var(--display); font-size: 28px; color: var(--warm-dark);
}
.reviews-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Blog */
.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--warm-dark); margin: 8px 0 10px;
}
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,0.85);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px;
  cursor: pointer; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--warm); }
.chip.is-active {
  background: linear-gradient(145deg, var(--warm-soft), var(--warm-dark));
  color: #fff; border-color: transparent;
}
.blog-feed { display: grid; gap: 28px; }
.blog-story {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.blog-story--feature {
  background:
    radial-gradient(circle at 100% 0%, rgba(43,108,176,0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(194,87,27,0.12), transparent 45%),
    rgba(255,255,255,0.95);
  box-shadow: var(--shadow-3d);
}
.blog-story__head { margin-bottom: 16px; max-width: 70ch; }
.blog-tag, .blog-stage {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; border-radius: 999px; padding: 5px 10px; margin: 0 6px 10px 0;
}
.blog-tag { background: rgba(194,87,27,0.12); color: var(--warm-dark); }
.blog-stage { background: rgba(43,108,176,0.12); color: var(--blue); }
.blog-story__head h2 {
  font-family: var(--display); font-size: clamp(22px, 3vw, 30px);
  color: var(--warm-dark); margin-bottom: 8px; line-height: 1.15;
}
.blog-story__head p { color: var(--muted); font-size: 15px; }
.blog-meta { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.blog-story__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.blog-shot {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: #f3ebe1; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s;
}
.blog-shot img {
  width: 100%; height: 220px; object-fit: contain; background: #f7efe4;
  padding: 8px;
  transition: transform 0.45s ease;
}
.blog-story--feature .blog-shot:first-child img { height: 280px; }
.blog-shot figcaption {
  padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--warm-dark);
  display: flex; flex-direction: column; gap: 2px; background: #fff;
}
.blog-shot figcaption span {
  font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--blue); font-weight: 800;
}

@media (max-width: 900px) {
  .steps-grid, .reviews-grid, .reviews-stats {
    grid-template-columns: 1fr;
  }
  .install-photos, .blog-story__shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-story--feature .blog-shot:first-child img,
  .blog-shot img { height: 180px; }
  .media-card__media { aspect-ratio: 1 / 1; }
}

@media (max-width: 560px) {
  .install-photos, .blog-story__shots {
    grid-template-columns: 1fr;
  }
  .wrap { width: min(1160px, calc(100% - 20px)); }
  .actions { gap: 8px; }
  .btn:not(.btn--max-icon):not(.nav-max) { width: 100%; }
  .actions .btn--max-icon,
  .actions .nav-max { width: 36px; flex: 0 0 36px; }
  .reviews-stats { grid-template-columns: 1fr; }
  .blog-filters { gap: 6px; }
  .chip { padding: 7px 12px; font-size: 12px; }
  .site-footer__inner { flex-direction: column; gap: 8px; }
  .max-fab { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .max-fab .max-logo,
  .max-fab img { width: 44px; height: 44px; }
  .max-chat { right: 10px; left: 10px; width: auto; bottom: 72px; }
  .contact-map { height: 240px; }
  .contacts-actions { top: 52px; z-index: 30; }
  .hero__copy h1 { font-size: 24px; }
  .eyebrow { font-size: 11px; }
}
