/* =====================================================================
   МЕБЕЛЬ ДЛЯ ЗАВЕДЕНИЙ — стили сайта
   ---------------------------------------------------------------------
   ЦВЕТА И ШРИФТЫ можно поменять в блоке :root ниже (переменные).
   Например, чтобы сменить акцентный цвет — поправьте --accent.
   ===================================================================== */

:root {
  /* --- Цветовая палитра (меняйте здесь) --- */
  --bg:          #ffffff;   /* основной фон */
  --bg-alt:      #f6f3ef;   /* тёплый светлый фон секций */
  --dark:        #1c2018;   /* тёмные секции (тёмный оливковый) */
  --dark-2:      #262b1d;
  --text:        #1d2127;   /* основной текст */
  --muted:       #6b7178;   /* серый текст */
  --line:        #e7e2da;   /* линии/границы */
  --accent:      #4f5840;   /* акцент — фирменный оливковый (логотип Shobick) */
  --accent-dark: #3c4431;
  --accent-soft: #e9ebe0;
  --accent-rgb:  79, 88, 64; /* тот же оттенок в RGB — для теней и фонов */
  --white:       #ffffff;

  /* --- Шрифты --- */
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* --- Прочее --- */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(20, 24, 30, 0.12);
  --shadow-sm: 0 8px 24px rgba(20, 24, 30, 0.08);
  --maxw: 1200px;
  --header-h: 76px;
}

/* ---------- Базовое ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; color: var(--text); }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 60px; cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(var(--accent-rgb),.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(var(--accent-rgb),.45); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: #fff; color: var(--text); }

/* ---------- Заголовки секций ---------- */
.section { padding: 92px 0; }
.section-dark { background: var(--dark); color: #d6d9dd; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-dark .section-title { color: #fff; }
.section-sub { color: var(--muted); font-size: 18px; }
.section-dark .section-sub { color: #a7adb5; }

/* ---------- Шапка / навигация ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); height: 66px; }
.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center; color: #fff;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
/* Логотип-картинка (images/logo.png) */
.logo-img { height: 48px; width: auto; display: block; transition: height .3s ease; }
.header.scrolled .logo-img { height: 40px; }
.logo-img--light { filter: brightness(0) invert(1); }  /* делает логотип белым на тёмном подвале */
.footer .logo-img { height: 58px; }
@media (max-width: 440px) { .logo-img { height: 40px; } }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text); transition: color .2s; }
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-family: var(--font-head); font-weight: 700; font-size: 16px; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

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

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; padding-top: var(--header-h);
  /* ФОН: замените images/hero.jpg на своё фото. Тёмный градиент поверх — для читаемости текста. */
  background:
    linear-gradient(105deg, rgba(18,21,13,.92) 0%, rgba(18,21,13,.62) 55%, rgba(18,21,13,.4) 100%),
    url("../images/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #2a3020, #14180e);
}
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb),.18), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 60px 0; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 22px; letter-spacing: -.5px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(17px, 2vw, 21px); color: #d8dce1; max-width: 580px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 36px; color: #fff; }
.hero-stats .lbl { font-size: 14px; color: #aeb4bc; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: #cfd3d8; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid #cfd3d8; border-radius: 14px; position: relative; }
.scroll-hint .mouse::before { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:4px; height:8px; background:#cfd3d8; border-radius:3px; animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0%{opacity:1; top:7px} 100%{opacity:0; top:18px} }

/* ---------- Универсальная картинка / плейсхолдер ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* ---------- О нас ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.about-values li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.about-values .ic { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.about-media-wrap { position: relative; }
.about-badge { position: absolute; left: -22px; bottom: -22px; background: var(--accent); color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge .b-num { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; }
.about-badge .b-txt { font-size: 13px; opacity: .9; }

/* ---------- Услуги ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .media { border-radius: 0; }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.card .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.card .more svg { width: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Преимущества ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.adv {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 30px 22px; transition: .3s;
}
.adv:hover { background: rgba(var(--accent-rgb),.12); border-color: rgba(var(--accent-rgb),.4); transform: translateY(-5px); }
.adv .n { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent); border: 1.5px solid rgba(var(--accent-rgb),.5); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.adv h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.adv p { color: #a7adb5; font-size: 14.5px; }

/* ---------- Производственные мощности ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.prod-item { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.prod-item .media { border-radius: 0; }
.prod-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(15,18,22,.9)); color: #fff; }
.prod-cap h3 { color: #fff; font-size: 17px; }
.prod-cap p { font-size: 13px; color: #c9cdd2; }
.prod-extra { margin-top: 10px; }
.prod-extra[hidden] { display: none; }
.prod-actions { text-align: center; margin-top: 34px; }

/* ---------- Процесс работы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 0 6px; }
.step .dot {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 24px;
  margin-bottom: 20px; position: relative; z-index: 2;
}
.step:not(:last-child)::after {
  content:""; position: absolute; top: 32px; left: 64px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Портфолио ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery .g-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery .g-item.tall { grid-row: span 2; }
.gallery .g-item.wide { grid-column: span 2; }
.gallery .g-item .media, .gallery .g-item img { width: 100%; height: 100%; border-radius: 0; }
.gallery .g-item .ov {
  position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,18,22,.85));
  opacity: 0; transition: .3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
}
.gallery .g-item:hover .ov { opacity: 1; }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-item img { transition: transform .5s; }
.gallery .ov h4 { color: #fff; font-size: 18px; }
.gallery .ov span { font-size: 13px; color: #cfd3d8; }
.gallery .ov .zoom { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.portfolio-actions { text-align: center; margin-top: 40px; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; background: rgba(12,14,18,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; transition: .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--accent); }
.lightbox .lb-close { top: 26px; right: 26px; }
.lightbox .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Виртуальный просмотр (до/после) ---------- */
.viewer-wrap { max-width: 940px; margin: 0 auto; }
.ba { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: var(--shadow); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { z-index: 1; }
.ba .before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba .ba-label { position: absolute; top: 16px; padding: 6px 14px; border-radius: 30px; font-size: 13px; font-family: var(--font-head); font-weight: 600; color: #fff; background: rgba(15,18,22,.7); z-index: 3; }
.ba .lbl-before { left: 16px; }
.ba .lbl-after { right: 16px; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); z-index: 4; cursor: ew-resize; }
.ba .handle .knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--accent); }
.viewer-note { text-align: center; color: var(--muted); margin-top: 18px; font-size: 15px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.review p { font-size: 16px; margin-bottom: 22px; }
.review .who { display: flex; align-items: center; gap: 14px; }
.review .ava { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.review .who b { font-family: var(--font-head); display: block; font-size: 15px; }
.review .who span { font-size: 13px; color: var(--muted); }

/* ---------- Спецпредложения ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer { position: relative; border-radius: var(--radius); padding: 34px 30px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--dark-2), var(--dark)); border: 1px solid rgba(255,255,255,.08); }
.offer.featured { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.offer .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 30px; margin-bottom: 18px; }
.offer h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.offer .big { font-family: var(--font-head); font-weight: 800; font-size: 40px; margin-bottom: 6px; }
.offer p { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 22px; }
.offer.featured p { color: rgba(255,255,255,.95); }

/* ---------- Блог ---------- */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .media { border-radius: 0; }
.post-body { padding: 24px; }
.post .date { font-size: 13px; color: var(--accent); font-weight: 600; }
.post h3 { font-size: 19px; margin: 8px 0 10px; }
.post p { color: var(--muted); font-size: 15px; }
.blog-note { text-align: center; color: var(--muted); margin-top: 30px; font-size: 14px; }

/* ---------- Форма обратной связи ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-left h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; color: #fff; }
.contact-left p { color: #a7adb5; margin-bottom: 30px; }
.contact-left .ci { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.contact-left .ci .ic { width: 50px; height: 50px; border-radius: 12px; background: rgba(var(--accent-rgb),.15); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.contact-left .ci .lbl { font-size: 13px; color: #8a9099; }
.contact-left .ci .val { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 17px; }
.form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); color: var(--text); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; background: #fbfaf8; transition: .2s; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form .consent { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.form-success { display: none; background: #e9f7ec; border: 1px solid #b6e3c0; color: #1f7a3a; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; font-size: 15px; }
.form-success.show { display: block; }

/* ---------- Контакты / карта ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contacts-info { display: flex; flex-direction: column; gap: 20px; }
.contacts-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.contacts-card h3 { font-size: 18px; margin-bottom: 14px; }
.contacts-card .line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--muted); }
.contacts-card .line .ic { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.contacts-card .line a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text); transition: .25s;
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.socials a svg { width: 22px; height: 22px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder { width:100%; height:100%; min-height:380px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--muted); text-align:center; padding:20px; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: #9aa0a8; padding: 60px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a { color: #9aa0a8; font-size: 15px; line-height: 2.1; transition: .2s; }
.footer a:hover { color: var(--accent); }
.footer .f-about p { font-size: 15px; margin-top: 16px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13.5px; }

/* ---------- Кнопка наверх ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(20px); transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Плавающая кнопка WhatsApp */
.wa-float { position: fixed; left: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color:#fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 90; transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Мобильное меню (контейнер) ---------- */
.mobile-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 18px 22px 28px; transform: translateY(-120%); transition: transform .35s ease; z-index: 99; }
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { display: block; padding: 13px 0; font-family: var(--font-head); font-weight: 500; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* =====================================================================
   АДАПТИВНОСТЬ (планшеты и телефоны)
   ===================================================================== */
@media (max-width: 1024px) {
  .nav, .header-phone { display: none; }
  .burger { display: flex; }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .cards, .reviews, .offers, .blog { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .about-grid, .contact-split, .contacts-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-values { grid-template-columns: 1fr; }
  .about-badge { left: 16px; bottom: 16px; }
  .cards, .reviews, .offers, .blog, .adv-grid, .prod-grid, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .gallery .g-item.tall, .gallery .g-item.wide { grid-row: auto; grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .form .row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats .num { font-size: 28px; }
  .form { padding: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
