/* ============================================================
   Mebelsite — public marketing site
   Vanilla CSS. Mobile-first. No build step.
   Palette: warm neutrals (#F5F0E8 sand, #C9A88A clay, #1C1A17 ink)
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  /* Brand palette */
  --sand: #F5F0E8;
  --sand-2: #EAE2D4;
  --clay: #C9A88A;
  --clay-dark: #A6815E;
  --ink: #1C1A17;
  --ink-soft: #2B2823;
  --line: #E1D8C8;
  --muted: #8A8275;
  --white: #FFFFFF;
  --kaspi: #F14635;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --gap: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s var(--ease);
  --t-base: 0.3s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.06);
  --shadow-md: 0 6px 24px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 24px 48px rgba(28, 26, 23, 0.12);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--clay-dark); }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay-dark);
  margin-bottom: var(--sp-4);
}

.h-display {
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}

.h-card {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

.muted { color: var(--muted); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--sp-9) 0;
}

.section--tight { padding: var(--sp-8) 0; }
.section--ink   { background: var(--ink); color: var(--sand); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--sand); }
.section--clay  { background: var(--clay); color: var(--ink); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  max-width: 64ch;
}

.section__head--row {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  max-width: 100%;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--ink-soft); color: var(--sand); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--sand); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}
.btn--ghost:hover { opacity: 1; }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: #fff; }

.btn--clay {
  background: var(--clay);
  color: var(--ink);
  border-color: var(--clay);
}
.btn--clay:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: var(--sand); }

.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink-soft);
}

.badge--kaspi {
  background: var(--kaspi);
  color: #fff;
  border-color: var(--kaspi);
}

.badge--ink {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header--scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 72px;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.site-header__logo b { font-weight: 600; }
.site-header__logo span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-dark); font-family: var(--font-body); font-weight: 600; }

.site-nav {
  display: none;
  gap: var(--sp-5);
  margin-left: auto;
}
.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
}
.lang-switch__btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__btn.active {
  background: var(--ink);
  color: var(--sand);
}

.site-header__phone {
  display: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  transition: background var(--t-fast);
}
.site-header__wa:hover { background: var(--whatsapp-dark); color: #fff; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  border-radius: 8px;
  margin-left: var(--sp-2);
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-base), opacity var(--t-base);
}
.burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__phone { display: inline; }
  .burger { display: none; }
}

/* ===== MOBILE NAV — компактное, без скролла ===== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--sand);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 64px 22px 20px;
  gap: 0;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.mobile-nav__close:hover { background: var(--sand-2); }
.mobile-nav__close:active { transform: scale(0.94); }

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__link:last-of-type { border-bottom: 0; }

.mobile-nav__cta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav__cta .btn { padding: 12px 18px; font-size: 15px; }

.mobile-nav__phone {
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}
.mobile-nav__staff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: flex-start;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav__staff:hover {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}
.footer__staff {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.footer__staff::before { content: "·"; margin-right: 8px; }
.footer__staff:hover { opacity: 1; text-decoration: underline; }

/* На больших телефонах слегка крупнее, всё равно влезает */
@media (min-width: 380px) and (max-height: 700px) {
  .mobile-nav__link { font-size: 20px; padding: 8px 0; }
}
@media (min-height: 740px) {
  .mobile-nav__link { font-size: 24px; padding: 11px 0; }
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

/* Глобально: убираем double-tap zoom на мобиле, оставляем pinch-to-zoom */
html { touch-action: manipulation; }
button, a, [role="button"], .btn, input[type="submit"] { touch-action: manipulation; }

/* ===== CAROUSEL ===== */
/* Карусель применяется только на мобиле/планшете (≤900px).
   На десктопе исходный display: grid у .services-grid и т.п. остаётся —
   там нужна обычная сетка, не свайп.
   Перебиваем display:grid у этих контейнеров только в мобильном медиа-запросе. */
@media (max-width: 900px) {
  .carousel,
  [data-carousel] {
    position: relative;
    display: block !important;
    grid-template-columns: none !important;
  }
}
/* На десктопе скрываем структурные элементы карусели, показываем как сетку */
@media (min-width: 901px) {
  [data-carousel] .carousel__btn,
  [data-carousel] .carousel__dots { display: none !important; }
  [data-carousel] .carousel__track {
    display: contents !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  [data-carousel] .carousel__item {
    flex: unset !important;
    scroll-snap-align: unset !important;
  }
}
.carousel__track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: -4px -4px 0;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 86%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 720px) {
  .carousel__item { flex: 0 0 calc(50% - var(--sp-3) / 2); }
}
@media (min-width: 1024px) {
  .carousel__item { flex: 0 0 calc(33.333% - var(--sp-3) * 2 / 3); }
}
@media (min-width: 1280px) {
  .carousel__item { flex: 0 0 calc(25% - var(--sp-3) * 3 / 4); }
}

/* Plain (full-width) carousel — for hero, single big visual */
.carousel--full .carousel__item { flex: 0 0 100%; }

.carousel__btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
.carousel__btn:hover { background: var(--ink); color: var(--sand); transform: scale(1.05); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .carousel__btn { display: none; }
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-3);
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__dot.active {
  background: var(--ink);
  transform: scale(1.4);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(201,168,138,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero__title {
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.hero__title em {
  font-style: italic;
  color: var(--clay-dark);
  font-family: var(--font-display);
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}
.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: var(--sp-6);
}
.hero__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 540px) {
  .hero__actions .btn--lg {
    padding: 14px 14px;
    font-size: 14px;
    letter-spacing: 0;
  }
  .hero__actions .btn svg { width: 16px; height: 16px; }
}
@media (min-width: 720px) {
  .hero__actions { gap: var(--sp-3); }
  .hero__actions .btn { flex: 0 0 auto; }
}
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clay);
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero__media .placeholder { height: 100%; }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
}

/* ===== PLACEHOLDER MEDIA ===== */
.placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: var(--sand);
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(245, 240, 232, 0.45);
  border-radius: 8px;
  pointer-events: none;
}
.placeholder--ratio-43 { aspect-ratio: 4/3; }
.placeholder--ratio-11 { aspect-ratio: 1/1; }
.placeholder--ratio-169 { aspect-ratio: 16/9; }
.placeholder--ratio-34 { aspect-ratio: 3/4; }
.placeholder--ink { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); }

/* ===== TRUST BAR ===== */
.trust {
  background: var(--ink);
  color: var(--sand);
  padding: var(--sp-7) 0;
}
.trust__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.trust__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust__stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--clay);
}
.trust__stat-lbl {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
}
.trust__suppliers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
  justify-content: center;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(245,240,232,0.15);
  margin-top: var(--sp-3);
  color: rgba(245,240,232,0.7);
}
.trust__suppliers span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .trust__inner { grid-template-columns: repeat(4, 1fr); }
  .trust__suppliers { grid-column: 1 / -1; }
}

/* ===== SERVICES PREVIEW ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__media { aspect-ratio: 4/3; }
.service-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.service-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.service-card__desc { color: var(--ink-soft); font-size: 14px; line-height: 1.5; flex: 1; }
.service-card__price { font-size: 13px; color: var(--clay-dark); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-top: auto; }
.service-card__arrow {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.case {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--clay);
  aspect-ratio: 4/5;
}
.case__media { width: 100%; height: 100%; }
.case__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  background: linear-gradient(180deg, transparent 35%, rgba(28,26,23,0.85) 100%);
  color: var(--sand);
}
.case__title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-bottom: 6px; color: var(--sand); }
.case__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: 12px; letter-spacing: 0.05em; color: rgba(245,240,232,0.85); text-transform: uppercase; }
.case__meta span { white-space: nowrap; }
.case__meta span + span::before { content: '·'; margin-right: var(--sp-3); opacity: 0.6; }

@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid .case:nth-child(4n+1) { grid-column: span 2; aspect-ratio: 16/10; }
}

.portfolio-empty,
.portfolio-loading,
.portfolio-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ===== PROCESS TIMELINE ===== */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  counter-reset: step;
}
.step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--sand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  position: relative;
}
.step__icon::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -8px; right: -8px;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}
.step__body { flex: 1; }
.step__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.step__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.step__time { font-size: 12px; color: var(--clay-dark); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-top: 6px; }

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; }
}

/* ===== CALCULATOR ===== */
.calc {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
}
.calc__progress {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.calc__progress span {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: background var(--t-base);
}
.calc__progress span.active { background: var(--ink); }
.calc__step { display: none; }
.calc__step.active { display: block; }
.calc__question {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--sp-5);
  line-height: 1.15;
}
.calc__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px) { .calc__options { grid-template-columns: repeat(2, 1fr); } }

.calc__option {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc__option:hover { border-color: var(--clay); transform: translateY(-1px); }
.calc__option.selected { border-color: var(--ink); background: var(--white); }
.calc__option strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.calc__option small { font-size: 13px; color: var(--muted); }

.calc__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.calc__field label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.calc__input {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand);
  font-size: 16px;
  width: 100%;
  transition: border-color var(--t-fast);
}
.calc__input:focus { outline: none; border-color: var(--ink); }

.calc__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}
.calc__actions .btn { flex: 1; min-width: 140px; }

.calc__result {
  text-align: center;
  padding: var(--sp-6) 0;
}
.calc__result-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.calc__result-kaspi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--kaspi);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--sp-5);
}

/* ===== MATERIALS ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.swatch {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.swatch__img { aspect-ratio: 1/1; }
.swatch__body { padding: var(--sp-3) var(--sp-4); }
.swatch__name { font-size: 14px; font-weight: 600; }
.swatch__cat { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

@media (min-width: 640px) { .materials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .materials-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== ABOUT / MASTER ===== */
.about-master {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.about-master__media { border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 1024px) {
  .about-master { grid-template-columns: 5fr 6fr; }
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.review {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.review__stars { color: var(--clay-dark); letter-spacing: 0.1em; font-size: 16px; }
.review__text { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.review__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.review__avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--clay); flex-shrink: 0; }
.review__name { font-weight: 600; font-size: 14px; }
.review__meta { font-size: 12px; color: var(--muted); }

@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== INSTAGRAM ===== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.ig-tile { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }

@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--clay-dark); }
.faq__q-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.faq__item.open .faq__q-icon { background: var(--ink); color: var(--sand); transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 0 var(--sp-5);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}
.faq__item.open .faq__a { display: block; }

/* ===== FORMS ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form__input,
.form__select,
.form__textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--t-fast);
  width: 100%;
  font-family: inherit;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__error {
  font-size: 12px;
  color: #C13B2C;
  display: none;
}
.form__field.has-error .form__input,
.form__field.has-error .form__select,
.form__field.has-error .form__textarea { border-color: #C13B2C; }
.form__field.has-error .form__error { display: block; }
.form__hint { font-size: 12px; color: var(--muted); }
.form__success {
  display: none;
  padding: var(--sp-4);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--whatsapp);
  color: var(--whatsapp-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form__success.active { display: block; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.cta-banner h2 { color: var(--sand); }
.cta-banner .form__input,
.cta-banner .form__select,
.cta-banner .form__textarea { background: rgba(255,255,255,0.06); color: var(--sand); border-color: rgba(245,240,232,0.2); }
.cta-banner .form__input::placeholder { color: rgba(245,240,232,0.45); }
.cta-banner .form__label { color: rgba(245,240,232,0.7); }

@media (min-width: 1024px) {
  .cta-banner { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(245,240,232,0.75);
  padding: var(--sp-8) 0 var(--sp-6);
}
.footer h4 {
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a:hover { color: var(--clay); }
.footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--sand);
  margin-bottom: var(--sp-3);
}
.footer__map {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(245,240,232,0.15);
}
.footer__map iframe { width: 100%; height: 100%; border: 0; }
.footer__pay {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-top: var(--sp-4);
}
.footer__pay-tag {
  padding: 6px 12px;
  background: rgba(245,240,232,0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sand);
}
.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(245,240,232,0.12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: 13px;
  color: rgba(245,240,232,0.5);
}
.footer__socials {
  display: flex;
  gap: var(--sp-3);
}
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(245,240,232,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.footer__socials a:hover { background: rgba(245,240,232,0.16); color: var(--sand); }

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  z-index: 70;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--whatsapp);
  opacity: 0.6;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  z-index: 100;
}
.modal.active { display: flex; }
.modal__dialog {
  width: 100%;
  max-width: 540px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 1px solid var(--line);
  transition: background var(--t-fast);
}
.modal__close:hover { background: var(--line); }
.modal__title { font-family: var(--font-display); font-size: 32px; margin-bottom: var(--sp-2); }
.modal__sub { color: var(--ink-soft); margin-bottom: var(--sp-5); font-size: 15px; }

/* ===== FILTERS ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.filter-chip {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--sand); border-color: var(--ink); }

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.filter-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-3 { gap: var(--sp-3); }
.mt-5 { margin-top: var(--sp-5); }
.mb-5 { margin-bottom: var(--sp-5); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.page-hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 60ch; }

.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span::before { content: '/'; margin: 0 8px; opacity: 0.6; }

/* ===== ANCHORED SERVICE BLOCKS ===== */
.svc-block {
  padding: var(--sp-9) 0;
  border-bottom: 1px solid var(--line);
}
.svc-block:nth-child(even) { background: var(--white); }
.svc-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.svc-block__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; }
.svc-block__price-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.svc-tier {
  padding: var(--sp-4);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.svc-tier__name { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-dark); margin-bottom: 4px; }
.svc-tier__price { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); }

@media (min-width: 1024px) {
  .svc-block__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .svc-block:nth-child(even) .svc-block__media { order: 2; }
}

/* ===== SCROLL LOCK ===== */
body.scroll-locked { overflow: hidden; }

/* ===== CALCULATOR (standalone page /calculator.html) ===== */
.calculator-page { padding: clamp(40px, 6vw, 80px) 0 80px; background: var(--sand); }
.calc-card {
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.calc-progress {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: var(--sp-6);
}
.calc-progress__step {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sand-2);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
}
.calc-progress__step.active {
  background: var(--ink); color: var(--sand);
  border-color: var(--ink);
}
.calc-step h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
.calc-hint { color: var(--ink-soft); font-size: 14px; margin-bottom: var(--sp-3); }

.calc-options {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: var(--sp-3) 0 var(--sp-4);
}
.calc-options--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .calc-options { grid-template-columns: repeat(3, 1fr); }
  .calc-options--3 { grid-template-columns: repeat(3, 1fr); }
}
.calc-option {
  padding: 18px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.15s;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-option > span {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.calc-option > em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-soft);
}
.calc-option:hover { border-color: var(--clay); transform: translateY(-1px); }
.calc-option.active {
  border-color: var(--ink);
  background: var(--ink);
}
.calc-option.active > span { color: var(--sand); }
.calc-option.active > em { color: rgba(245, 240, 232, 0.7); }

.calc-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 18px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  margin: var(--sp-3) 0;
}
.calc-input:focus { border-color: var(--ink); }

.calc-step__nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: var(--sp-4);
}

.calc-result {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--ink);
  text-align: center;
  margin: var(--sp-3) 0;
}
.calc-result b { font-weight: 600; color: var(--clay); }
.calc-kaspi {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.calc-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: var(--sp-5);
}
.calc-lead {
  background: var(--sand-2);
  padding: var(--sp-4);
  border-radius: 12px;
  margin-bottom: var(--sp-3);
}
.calc-lead h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}
