/* MG Ceramic — Premium minimal landing */

@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
html{
  scroll-behavior: smooth;
}
:root {
  --bg: #f4f2ec;
  --bg-deep: #ecebe5;
  --surface: #fbfaf6;
  --ink: #131210;
  --ink-soft: #2a2824;
  --muted: #75726b;
  --line: rgba(15, 14, 12, 0.10);
  --line-strong: rgba(15, 14, 12, 0.18);
  --accent: #0e0d0b;
  --accent-ink: #f4f2ec;

  --radius: 0px;
  --radius-card: 0px;
  --radius-btn: 0px;
  --radius-img: 0px;

  --display-weight: 300;
  --label-weight: 500;

  --pad-section: 140px;
  --pad-side: 56px;
  --gap: 24px;

  --maxw: 1440px;
}

[data-theme="dark"] {
  --bg: #0d0c0b;
  --bg-deep: #1a1815;
  --surface: #18161329;
  --ink: #f3efe6;
  --ink-soft: #d8d3c8;
  --muted: #918e87;
  --line: rgba(243, 239, 230, 0.10);
  --line-strong: rgba(243, 239, 230, 0.20);
  --accent: #f3efe6;
  --accent-ink: #0d0c0b;
}

[data-density="dense"] {
  --pad-section: 88px;
  --gap: 16px;
}

[data-rounded="soft"] {
  --radius: 8px;
  --radius-card: 16px;
  --radius-btn: 999px;
  --radius-img: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Mulish', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout ──────────────────────────────────────────────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-side);
}
.shell-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad-side);
}
section {
  padding: var(--pad-section) 0;
}

/* ─── Type ─────────────────────────────────────────────────── */
.display-1 {
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: var(--display-weight);
  line-height: 1.42;
  letter-spacing: -0.045em;
  margin: 0;
}
.display-2 {
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: var(--display-weight);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.h-section {
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-card {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.body { color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }

/* ─── Buttons & chips ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 16px 24px;

  background: var(--accent);
  color: var(--accent-ink);

  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;

  border: 0;
  border-radius: var(--radius-btn);

  transition:
    transform .25s ease,
    opacity .25s ease,
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease;
}
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.shell-wide {
  width: calc(100vw - 80px);
  max-width: 1720px;
}
.sec-head .right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);

  background: #ffffff;
  color: #000000;
}
.btn .arr { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn .arr::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ─── Top bar ─────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar .shell-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.topbar a:hover { color: var(--ink); }
.topbar-left, .topbar-right { display: flex; gap: 28px; align-items: center; }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header .shell-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; }
[data-theme="dark"] .brand img.brand-light-only { display: none; }
[data-theme="light"] .brand img.brand-dark-only { display: none; }
.brand-text { font-weight: 800; letter-spacing: -0.01em; font-size: 15px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px;}

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--ink); }

.header-right { display: flex; gap: 16px; align-items: center; }
.header-phone { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero { padding-top: 80px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.hero h1 .ink { color: var(--ink); }
.hero h1 .strike { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0 0.25em 0.05em; }
.hero-meta { display: flex; gap: 48px; margin-top: 16px; flex-wrap: wrap; }
.hero-meta-item small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px;}
.hero-meta-item strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  aspect-ratio: 5 / 5.8;
  border-radius: var(--radius-img);
  overflow: hidden;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #050505;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;

  transform: scale(1.02);

  transition: transform .6s ease;
}
.hero:hover .hero-image img {
  transform: scale(1.045);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to left,
      transparent 55%,
      rgba(0,0,0,.45) 100%
    );

  pointer-events: none;
}


/* placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--ink) 5%, var(--bg-deep)) 0 14px,
      color-mix(in oklab, var(--ink) 8%, var(--bg-deep)) 14px 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph::after {
  content: attr(data-label);
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 0;
  white-space: nowrap;
}

/* ─── Marquee strip ────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after { content: "✦"; color: var(--muted); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Stat strip ──────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; }
.stats strong {
  display: block;
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.stats small {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  max-width: 24ch;
  line-height: 1.4;
}

/* ─── Section header ──────────────────────────────────────── */
.sec-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}
.sec-head .right { padding-bottom: 10px; }
.sec-head .lead { margin: 16px 0 0; }

/* ─── Application cards ───────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  min-height: 720px;
}
.app-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: #fff;
  background: var(--bg-deep);
  transition: transform .3s;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(20,18,15,0.92) 0 14px,
      rgba(34,32,28,0.92) 14px 28px
    );
  z-index: 0;
}
.app-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.app-card > * { position: relative; z-index: 2; }
.app-card:hover { transform: translateY(-2px); }
.app-card.large { grid-row: 1 / span 2; }
.app-card .num { font-size: 11px; letter-spacing: 0.14em; opacity: 0.7; }
.app-card h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.015em; margin: 6px 0 12px; }
.app-card.large h3 { font-size: 44px; }
.app-card p { font-size: 14px; opacity: 0.85; max-width: 36ch; line-height: 1.5; }
.app-card .more {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ─── Design types row ────────────────────────────────────── */
.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.design-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: var(--radius-card);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 28px;

  background: #111;
  border: 1px solid var(--line);

  cursor: pointer;

  isolation: isolate;

  transition:
      transform .45s ease,
      border-color .35s ease;
}
.design-card::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 42%;

  z-index: 1;

  background:
      linear-gradient(
          to top,
          rgba(0,0,0,.82),
          transparent
      );
}

.design-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.14);
}
.design-card:hover img {
  transform: scale(1.05);
  filter:
      brightness(.88)
      saturate(1);
}
.design-card:hover::before {
  opacity: .92;
}

.design-card .label {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: start;

  color: rgba(255,255,255,.78);

  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.design-card .label,
.design-card .title,
.design-card .count {
    position: relative;
    z-index: 2;
}
.design-card::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
      linear-gradient(
          to top,
          rgba(0,0,0,.78) 0%,
          rgba(0,0,0,.42) 35%,
          rgba(0,0,0,.12) 65%,
          rgba(0,0,0,.18) 100%
      );

  transition: opacity .35s ease;
}

.design-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;

  transition:
      transform .7s ease,
      filter .5s ease;

  filter:
      brightness(.78)
      saturate(.95);
}

.design-card .ph {
  position: absolute; inset: 0; z-index: 0;
}
.design-card .title {
  margin-top: auto;

  font-size: 32px;
  line-height: .95;

  font-weight: var(--display-weight);
  letter-spacing: -0.03em;

  color: #fff;

  text-shadow:
      0 2px 10px rgba(0,0,0,.35);
}
.design-card .title,
.design-card .count {
    backdrop-filter: blur(2px);
}
.design-card .count {
  margin-top: 10px;

  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: rgba(255,255,255,.72);

  position: relative;
  z-index: 2;
}

/* ─── Product cards (hits) ────────────────────────────────── */
.hits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.prod {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.prod:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.prod-img {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.prod-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.prod-img .ph { position: absolute; inset: 0; }
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.prod-name { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; margin: 4px 0; min-height: 2.5em;}
.prod-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-spec {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  color: var(--ink-soft);
}
.prod-foot {
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid var(--line);
}
.prod-price strong { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.prod-price small { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.prod-add {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  display: inline-grid; place-items: center;
  transition: background .2s, color .2s;
}
.prod-add:hover { background: var(--accent); color: var(--accent-ink); }

/* style: outlined cards */
[data-card="outlined"] .prod { background: transparent; }
[data-card="outlined"] .prod-img { background: var(--bg-deep); }
/* style: elevated */
[data-card="elevated"] .prod { border-color: transparent; box-shadow: 0 16px 40px -20px rgba(0,0,0,0.18); }

/* ─── About / heritage ────────────────────────────────────── */
.heritage{
  display:grid;

  grid-template-columns:
    minmax(520px, 1.08fr)
    minmax(420px, 1fr);

  gap:64px;

  align-items:center;
}
.heritage .img { /*aspect-ratio: 4/5;*/ border-radius: var(--radius-img); overflow: hidden; }
.heritage .copy { display: flex; flex-direction: column; gap: 22px; }
.heritage p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.heritage h2 { margin-bottom: 12px; }
.heritage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.heritage-stats strong { font-size: 36px; font-weight: var(--display-weight); display: block; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px;}
.heritage-stats small { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
/* ─── Heritage image ───────────────────────── */

/* ─── About / heritage ────────────────────────────────────── */

#about{
  padding-top: 120px;
  padding-bottom: 80px;
}

#about + section{
  padding-top: 0;
}

.heritage{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

/* Левая колонка с фото */

.heritage .img,
.heritage-photo{
  position: relative;

  min-height: 620px;
  height: 100%;

  overflow: hidden;

  border-radius: var(--radius-img);
}

/* Само изображение */

.heritage .img img,
.heritage-photo img{
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* Лейбл поверх фото */

.heritage-label{
  position: absolute;
  left: 24px;
  bottom: 24px;

  padding: 10px 14px;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,.12);

  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;

  z-index: 2;
}

/* Правая колонка */

.heritage .copy{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.heritage h2{
  margin-bottom: 12px;
}

.heritage p{
  margin: 0;

  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Статы */

.heritage-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin-top: 24px;
  padding-top: 32px;

  border-top: 1px solid var(--line);
}

.heritage-stats strong{
  display: block;

  margin-bottom: 8px;

  font-size: 36px;
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  line-height: 1;
}

.heritage-stats small{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
/* =========================
   <= 1200 HERITAGE
========================= */

@media (max-width: 1200px){

  .heritage{
    grid-template-columns:minmax(360px, 46%) 1fr;
    gap:40px;
    align-items:start;
  }

  .heritage .img,
  .heritage-photo{
    height:520px;
  }

  .heritage .copy{
    min-width:0;
  }

  .heritage h2{
    font-size:52px;
    line-height:0.95;
    word-break:normal;
  }

  .heritage p{
    font-size:15px;
    line-height:1.55;
  }

  .heritage-stats{
    gap:16px;
  }

  .heritage-stats strong{
    font-size:28px;
  }

}
/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 800px){

  .heritage{
    grid-template-columns:1fr;
    gap:36px;
  }
  .copy{
    min-width:0;
  }
  .heritage .img,
  .heritage-photo{
    width:100%;
    height:auto;
  }
  .heritage .img img,
  .heritage-photo img{
    width:100%;
    height:auto;

    aspect-ratio:16/11;
    object-fit:cover;
  }
  .heritage-stats{
    grid-template-columns:1fr;
    gap:20px;
  }
  .heritage .ph-label {
    display: none;
  }
  .heritage .img,
.heritage-photo{
  position: relative;

  min-height: 520px;
  height: 100%;

  overflow: hidden;

  border-radius: var(--radius-img);
}

}
/* ─── Why us ──────────────────────────────────────────────── */

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
}

.why{
  position: relative;

  padding: 48px 40px 56px;

  display: flex;
  flex-direction: column;
  gap: 16px;

  min-height: 220px;
}

/* Вертикальные разделители */

.why::after{
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 1px;
  height: 100%;

  background: var(--line);
}

/* Убираем линию у каждого 3-го элемента */

.why:nth-child(3n)::after{
  display: none;
}

.why .num{
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.why h4{
  margin: 0;

  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.why p{
  margin: 0;

  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 980px){

  .why-grid{
    grid-template-columns: 1fr;
  }

  .why{
    min-height: auto;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
  }

  .why::after{
    display: none;
  }

}

/* ─── Projects gallery ────────────────────────────────────── */

.projects{
  display: grid;
  gap: var(--gap);

  margin-top: 32px;
}

/* Верхний ряд */

.projects-top{
  grid-template-columns: repeat(2, 1fr);
}

/* Нижний ряд */

.projects-bottom{
  grid-template-columns: repeat(3, 1fr);
}

/* Карточка */

.proj{
  position: relative;

  overflow: hidden;
  border-radius: var(--radius-img);

  aspect-ratio: 1;
}

/* Изображение */

.proj img{
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  transition: transform .6s ease;
}

.proj:hover img{
  transform: scale(1.04);
}

/* Затемнение */

.proj::after{
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,.58) 100%
    );
}

/* Подпись */

.proj-cap{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;

  z-index: 2;

  color: #fff;
}

.proj-cap small{
  display: block;

  font-size: 11px;
  letter-spacing: 0.14em;

  opacity: .8;
}

.proj-cap b{
  display: block;

  margin-top: 6px;

  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 980px){

  .projects-top,
  .projects-bottom{
    grid-template-columns: 1fr;
  }

  .proj{
    aspect-ratio: 4 / 5;
  }

}
/* ─── Calculator ─────────────────────────── */

.calc{
  display:grid;
  grid-template-columns: 1fr 520px;
  gap:72px;

  padding:72px;

  border-radius:36px;

  background:#0d0d0d;
  border:1px solid rgba(255,255,255,.06);
}

.calc-left{
  display:flex;
  flex-direction:column;
}

.calc-text{
  margin-top:14px;
  max-width:640px;
  color:var(--ink-soft);
  line-height:1.7;
}

.calc-form{
  display:flex;
  flex-direction:column;
  gap:18px;

  margin-top:42px;
}

.calc-divider{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:8px 0;
}

.field{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.field label{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.field input,
.field select{
  width:100%;

  height:58px;

  background:#141414;

  border:1px solid rgba(255,255,255,.08);

  border-radius:16px;

  padding:0 20px;

  color:#fff;

  font-size:15px;

  transition:.2s ease;
}

.field input:focus,
.field select:focus{
  outline:none;
  border-color:#8e6b52;
}

.calc-result{
  position:sticky;
  top:120px;

  height:fit-content;

  padding:42px;

  border-radius:28px;

  background:#141414;

  border:1px solid rgba(255,255,255,.06);
}

.calc-kicker{
  color:#fff !important;
  opacity:.6;
  margin-bottom:22px;
}

.calc-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;

  padding:18px 0;

  border-bottom:1px solid rgba(255,255,255,.08);
}

.calc-row span{
  color:rgba(255,255,255,.6);
  font-size:14px;
}

.calc-row b{
  font-size:18px;
  font-weight:600;
}

.calc-row.total{
  padding-top:30px;
  border-bottom:0;
}

.calc-row.total b{
  font-size:42px;
  line-height:1;
  letter-spacing:-.04em;
}

.calc-submit{
  width:100%;
  height:62px;

  margin-top:28px;

  border:0;
  cursor:pointer;

  border-radius:18px;

  background:#f2ede7;
  color:#111;

  font-size:15px;
  font-weight:600;

  transition:.2s ease;
}

.calc-submit:hover{
  transform:translateY(-2px);
}

.calc-submit:disabled{
  opacity:.5;
  cursor:default;
}

.calc-error{
  margin-top:18px;
  color:#ff8e8e;
  font-size:14px;
}

.calc-success{
  margin-top:18px;
  color:#9be7b0;
  font-size:14px;
}

.hp{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
/* ─── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.tstm {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.tstm-quote { font-size: 18px; line-height: 1.5; color: var(--ink-soft); letter-spacing: -0.005em; margin: 0; flex: 1; }
.tstm-quote::before { content: "\201C"; display: block; font-size: 56px; line-height: 0.6; color: var(--accent); margin-bottom: 8px; }
.tstm-meta { display: flex; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.tstm-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--bg-deep); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.tstm-name { font-weight: 600; font-size: 14px; }
.tstm-role { font-size: 12px; color: var(--muted); }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  gap: 24px;
}
.faq-q .plus {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-grid; place-items: center;
  transition: background .2s, color .2s, transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 16px;
}

/* ─── Blog ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post { display: flex; flex-direction: column; gap: 18px; cursor: pointer; }
.post-img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-img); position: relative; }
.post-img .ph { position: absolute; inset: 0; }
.post-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 18px; }
.post h4 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.post:hover h4 { color: var(--accent); }
[data-theme="dark"] .post:hover h4 { color: var(--accent); }

/* ─── B2B ────────────────────────────────────────────────── */
.b2b {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-card);
  padding: 96px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
}
.b2b .lead { color: color-mix(in oklab, var(--accent-ink) 75%, transparent); max-width: none; }
.b2b-list { display: flex; flex-direction: column; gap: 20px; }
.b2b-row {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid color-mix(in oklab, var(--accent-ink) 20%, transparent);
  font-size: 16px;
  line-height: 1.4;
}
.b2b-row:last-child { border-bottom: 1px solid color-mix(in oklab, var(--accent-ink) 20%, transparent); }
.b2b-row b { font-weight: 700; }
.b2b-row span { opacity: 0.7; font-size: 14px; display: block; margin-top: 4px; }
.b2b-num { font-size: 12px; color: color-mix(in oklab, var(--accent-ink) 50%, transparent); letter-spacing: 0.12em; padding-top: 2px;}
.b2b .btn { background: var(--accent-ink); color: var(--accent); }
.b2b .btn:hover { opacity: 0.85; }
.post-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

  transition:transform .6s ease;
}

.post:hover .post-img img{
  transform:scale(1.04);
}

.post-img .ph{
  position:absolute;

  left:20px;
  bottom:20px;

  inset:auto;

  width:auto;
  height:auto;

  padding:10px 14px;

  background:rgba(0,0,0,.45);
  backdrop-filter:blur(14px);

  border:1px solid rgba(255,255,255,.12);

  color:#fff;

  z-index:3;
}
/* ─── Contact ─────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-card { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.contact-card:last-child { border-bottom: 1px solid var(--line); }
.contact-card small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { font-size: 18px; font-weight: 500; }
.contact-card .v small { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); display: block; margin-top: 4px;}
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form textarea {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink);
  min-height: 120px;
  resize: vertical;
}
.form textarea:focus { outline: none; border-color: var(--accent); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px;}
.form-foot small { font-size: 12px; color: var(--muted); max-width: 38ch; line-height: 1.4; }

/* ─── Cities / Geo ───────────────────────────────────────── */

.cities{
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.city{
  min-height: 120px;

  padding: 32px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition-property: background, border-color;
  transition-duration: .25s, .25s;
  transition-timing-function: ease, ease;
}

.city:hover{
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.08);
}

.city-top{
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);

  flex-shrink: 0;
}

.city span{
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;

  letter-spacing: -0.02em;
}

.city small{
  font-size: 11px;

  letter-spacing: .14em;
  text-transform: uppercase;

  color: var(--muted);
}
@media (max-width: 1200px){
  .cities{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px){
  .cities{
    grid-template-columns: 1fr;
  }

  .city{
    min-height: auto;
  }

  .city span{
    font-size: 20px;
  }
}
/* honeypot */
.hp{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* textarea */
textarea{
  min-height: 140px;
  resize: vertical;
}
/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 96px 0 32px;
}
.footer .shell-wide { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-brand p { color: color-mix(in oklab, var(--accent-ink) 65%, transparent); font-size: 14px; max-width: 38ch; line-height: 1.5; margin: 0; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in oklab, var(--accent-ink) 50%, transparent); margin: 0 0 20px; font-weight: 700;}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--accent-ink); }
.footer-col a:hover { opacity: 0.7; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--accent-ink) 20%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: color-mix(in oklab, var(--accent-ink) 60%, transparent);
  letter-spacing: 0.04em;
}

/* ─── Hero variants ───────────────────────────────────────── */
/* Variant B — Editorial */
[data-hero="editorial"] .hero-grid { grid-template-columns: 1fr; gap: 56px; }
[data-hero="editorial"] .hero-left { text-align: left; }
[data-hero="editorial"] .display-1 { font-size: clamp(64px, 11vw, 168px); line-height: 0.92; }
[data-hero="editorial"] .hero-image { aspect-ratio: 21/9; }
[data-hero="editorial"] .hero-meta { justify-content: flex-start; gap: 64px; }

/* Variant C — Catalog quickstart */
[data-hero="catalog"] .hero-grid { grid-template-columns: 1fr; gap: 48px; }
[data-hero="catalog"] .hero-image { display: none; }
[data-hero="catalog"] .display-1 { font-size: clamp(56px, 8vw, 124px); }
[data-hero="catalog"] .hero-quickfilter {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
[data-hero="catalog"] .quickfilter-cell {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: background .2s;
}
[data-hero="catalog"] .quickfilter-cell:hover { background: var(--accent); color: var(--accent-ink); }
[data-hero="catalog"] .quickfilter-cell small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6;}
[data-hero="catalog"] .quickfilter-cell b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
[data-hero="catalog"] .hero-strip-products {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
[data-hero="catalog"] .hero-strip-products .ph { aspect-ratio: 1; border-radius: var(--radius-img); }
[data-hero="default"] .hero-quickfilter, [data-hero="default"] .hero-strip-products { display: none; }
[data-hero="editorial"] .hero-quickfilter, [data-hero="editorial"] .hero-strip-products { display: none; }

/* ─── Category landing additions ──────────────────────────── */
.bc {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  padding-top: 32px;
}
.bc-sep { opacity: 0.4; }
.bc-cur { color: var(--ink); }

.cat-hero { padding: 0 0 96px; }
.cat-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.cat-hero-left { display: flex; flex-direction: column; gap: 32px; }
.cat-hero-right { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 120px; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.tech-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tech-cell:nth-child(2n) { border-right: 0; }
.tech-cell:nth-last-child(-n+2) { border-bottom: 0; }
.tech-cell strong {
  display: block;
  font-size: 32px;
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.tech-cell small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-hero-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.cat-empty {
  padding: 120px 0;
}
.cat-empty-card {
  background: var(--bg-deep);
  border-radius: var(--radius-card);
  padding: 80px 64px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
[data-theme="dark"] .cat-empty-card { background: #161410; }
.cat-empty-card .lead { margin: 0 auto; }
.cat-empty-card .hero-ctas { justify-content: center; }

.why-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.why-mini .why { padding: 40px 32px 48px 0; border-right: 1px solid var(--line); }
.why-mini .why:last-child { border-right: 0; padding-right: 0; }
.why-mini .why:not(:first-child) { padding-left: 32px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.related-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.related-card .ph { aspect-ratio: 16/10; flex-shrink: 0; }
.related-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.related-body small {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.related-body b {
  font-size: 18px; font-weight: 500; letter-spacing: -0.005em;
  line-height: 1.25;
}
.related-body .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/*Форма*/
.form-success{
  min-height: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
}

.form-success-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  margin-bottom:24px;
  background:var(--accent);
  color:#000;
  font-weight:700;
}

.form-success h3{
  margin:0 0 12px;
  font-size:28px;
}

.form-success p{
  max-width:420px;
  color:var(--muted);
}

.field input,
.field textarea,
.field select{
  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(255,255,255,.05);
}
select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");

  background-repeat:no-repeat;
  background-position:right 16px center;

  padding-right:48px;
}

/*
@media (max-width: 1100px) {
  .cat-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cat-hero-right { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .why-mini { grid-template-columns: 1fr; }
  .why-mini .why { border-right: 0; padding-left: 0 !important; padding-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
  .cat-empty-card { padding: 48px 24px; }
}

/* ─── Responsive ──────────────────────────────────────────── *//*
@media (max-width: 1100px) {
  :root { --pad-side: 32px; --pad-section: 96px; }
  .hero-grid, .heritage, .calc, .contact, .b2b, .sec-head { grid-template-columns: 1fr; gap: 48px; }
  .stats, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div { border-bottom: 1px solid var(--line); }
  .app-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .app-card.large { grid-row: auto; grid-column: span 2; aspect-ratio: 16/9; }
  .design-grid, .hits-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .projects .proj { grid-column: span 1 !important; }
  .footer .shell-wide { grid-template-columns: 1fr 1fr; }
  .nav, .topbar { display: none; }
}
@media (max-width: 640px) {
  :root { --pad-side: 20px; --pad-section: 72px; }
  .display-1 { font-size: 56px !important; }
  .display-2 { font-size: 44px; }
  .design-grid, .hits-grid, .testimonials-grid, .blog-grid, .app-grid { grid-template-columns: 1fr; }
  .app-card.large { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .why { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .footer .shell-wide { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: start; }
}*/


/* ─────────────────────────────────────────────
   RESPONSIVE FIXES / TABLET / MOBILE
   ВСТАВИТЬ В САМЫЙ НИЗ CSS
───────────────────────────────────────────── */


/* =========================
   <= 1440
========================= */

@media (max-width: 1440px){

  :root{
    --pad-side: 40px;
    --pad-section: 110px;
  }

  .display-1{
    font-size: clamp(52px, 5vw, 74px);
    line-height: 1.02;
  }

  .hero{
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-left{
    gap: 32px;
  }

  .hero h1 .strike{
    padding: 0 .18em .03em;
  }

  .hero-meta{
    gap: 32px;
  }

  .hero-meta-item strong{
    font-size: 24px;
  }

  .shell-wide{
    width: calc(100vw - 48px);
  }

}


/* =========================
   <= 1200
========================= */

@media (max-width: 1200px){

  :root{
    --pad-side: 32px;
    --pad-section: 96px;
    --gap: 20px;
  }

  .topbar{
    display:none;
  }

  .nav{
    gap:20px;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    align-items:start;
  }

  .hero-left{
    max-width: 100%;
  }

  .hero-image{
    aspect-ratio: 16 / 10;
    border-radius: 32px;
  }

  .stats{
    grid-template-columns: repeat(2,1fr);
  }

  .stats > div:nth-child(2){
    border-right:0;
  }

  .stats > div{
    border-bottom:1px solid var(--line);
  }

  .design-grid,
  .hits-grid,
  .blog-grid,
  .testimonials-grid{
    grid-template-columns: repeat(2,1fr);
  }

  .app-grid{
    grid-template-columns: 1fr 1fr;
    min-height:auto;
  }

  .app-card.large{
    grid-column: span 2;
    grid-row:auto;
    aspect-ratio: 16 / 8;
  }

  .contact,
  .b2b,
  .calc,
  .heritage,
  .cat-hero-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cat-hero-right{
    position:static;
  }

  .calc{
    padding:48px;
  }

  .calc-result{
    position:relative;
    top:auto;
  }

  .footer .shell-wide{
    grid-template-columns: 1fr 1fr;
  }

}
/* =========================
   <= 1120 HERITAGE
========================= */

@media (max-width:1120px){
/*
  .heritage{
    grid-template-columns:
      minmax(320px, 0.95fr)
      minmax(320px, 1fr);

    gap:40px;

    align-items:start;
  }

  .heritage .img,
  .heritage-photo{
    min-height:420px;
  }
*/
  .heritage p{
    font-size:15px;
    line-height:1.55;
  }

  .heritage-stats{
    gap:18px;
  }

  .heritage-stats strong{
    font-size:30px;
  }

}

/* =========================
   <= 980 TABLET
========================= */

@media (max-width: 980px){

  :root{
    --pad-side: 24px;
    --pad-section: 84px;
  }

  .header{
    position: sticky;
  }

  .header .shell-wide{
    padding-top:14px;
    padding-bottom:14px;
    gap:16px;
  }

  .brand img{
    height:30px;
  }

  .brand-text{
    font-size:13px;
  }

  .brand-text small{
    font-size:9px;
  }

  .nav{
    display:none;
  }
/*
  .header-phone{
    display:none;
  }*/

  .header-right .btn{
    display:none;
    padding:14px 18px;
    font-size:13px;
  }
  .header-phone{
    display:flex;
    font-size:16px;
    white-space:nowrap;
  }
  .hero{
    padding-top:32px;
    padding-bottom:48px;
  }

  .hero-grid{
    gap:32px;
  }

  .hero-left{
    gap:28px;
  }

  .display-1{
    font-size: clamp(40px, 9vw, 64px);
    line-height: 1.10;
    letter-spacing: -0.05em;
  }
  .hero h1 .strike{
    margin-top: .12em;
  }
  .lead{
    font-size:16px;
  }

  .hero h1 .strike{
    display:inline;
    padding:0 .14em .02em;
  }

  .hero-meta{
    gap:24px;
    margin-top:4px;
  }

  .hero-meta-item{
    min-width:120px;
  }

  .hero-meta-item strong{
    font-size:22px;
  }

  .hero-ctas{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .hero-ctas .btn{
    width:100%;
    justify-content:center;
  }

  .hero-image{
    aspect-ratio: 4 / 5;
    border-radius: 28px;
  }

  .sec-head{
    grid-template-columns:1fr;
    gap:24px;
    margin-bottom:40px;
  }

  .sec-head .right{
    justify-content:flex-start;
    padding-bottom:0;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);
  }

  .stats > div{
    border-right:0;
    padding:32px 0;
  }

  
  .design-grid{
    grid-template-columns:repeat(2,1fr);
  }
  
  .hits-grid{
    grid-template-columns:repeat(2,1fr);
  }
  
  .projects-top,
  .projects-bottom,
  .related-grid,
  .why-mini,
  .blog-grid,
  .testimonials-grid{
    grid-template-columns:1fr;
  }

  .why-mini .why{
    padding-left:0 !important;
    padding-right:0 !important;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .app-grid{
    grid-template-columns:1fr;
  }

  .app-card.large{
    grid-column:auto;
    aspect-ratio:auto;
    min-height:520px;
  }

  .app-card{
    min-height:360px;
    padding:28px;
  }

  .app-card.large h3{
    font-size:36px;
  }

  .design-card{
    aspect-ratio: 4 / 5;
  }

  .b2b{
    padding:48px 32px;
  }

  .footer{
    padding-top:72px;
  }

  .footer .shell-wide{
    grid-template-columns:1fr 1fr;
    gap:28px 20px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

}


/* =========================
   <= 640 MOBILE
========================= */

@media (max-width: 640px){
  .footer{
    padding-top:56px;
    padding-bottom:24px;
  }
  
  .footer .shell-wide{
    grid-template-columns:1fr 1fr;
    gap:24px 18px;
  }
  
  .footer-brand{
    grid-column:1/-1;
  }
  .design-grid{
    grid-template-columns:1fr;
  }
  
  .hits-grid{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }
  .footer-col h5{
    margin-bottom:10px;
    font-size:10px;
  }
  
  .footer-col ul{
    gap:6px;
  }
  
  .footer-col a{
    font-size:13px;
  }

  :root{
    --pad-side: 18px;
    --pad-section: 64px;
    --gap: 16px;
  }

  body{
    font-size:15px;
  }

  .shell-wide{
    width:100%;
    padding-left:18px;
    padding-right:18px;
  }

  .header{
    backdrop-filter: blur(12px);
  }

  .header .shell-wide{
    min-height:64px;
  }

  .brand{
    gap:10px;
  }
  .heritage .img, .heritage-photo {
    position: relative;
    min-height: 320px;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-img);
}
  .brand img{
    height:26px;
  }

  .brand-text{
    font-size:12px;
  }

  .header-right{
    gap:10px;
  }

  .header-right .btn{
    height:44px;
    padding:0 16px;
    font-size:12px;
  }

  .hero{
    padding-top:20px;
    padding-bottom:40px;
  }

  .display-1{
    font-size: clamp(34px, 11vw, 52px);
    line-height: .94;
    letter-spacing: -0.06em;
  }

  .display-2{
    font-size:38px;
  }

  .h-section{
    font-size:32px;
    line-height:.98;
  }

  .lead{
    font-size:15px;
    line-height:1.6;
  }

  .hero-left{
    gap:22px;
  }

  .hero h1 .strike{
    padding:0 .12em .01em;
  }

  .hero-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px 14px;
  }

  .hero-meta-item strong{
    font-size:20px;
  }

  .hero-image{
    aspect-ratio: 1 / 1.2;
    border-radius: 24px;
  }

  .btn{
    min-height:52px;
    padding:14px 18px;
    font-size:13px;
  }

  .chip{
    min-height:44px;
    padding:10px 14px;
  }

  .stats strong{
    font-size:42px;
  }

  .heritage .img,
.heritage-photo{
  height:auto;
}

.heritage .img img,
.heritage-photo img{
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:cover;
}

  .heritage-label{
    left:16px;
    bottom:16px;
  }

  .proj-cap{
    left:18px;
    right:18px;
    bottom:18px;
  }

  .proj-cap b{
    font-size:18px;
  }

  .calc{
    padding:24px;
    border-radius:24px;
  }

  .calc-result{
    padding:28px;
    border-radius:20px;
  }

  .calc-row.total b{
    font-size:34px;
  }

  .field input,
  .field select{
    height:52px;
    border-radius:14px;
    font-size:14px;
  }

  .contact-card{
    grid-template-columns:1fr;
    gap:10px;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .faq-q{
    font-size:18px;
    line-height:1.35;
  }

  .faq-q .plus{
    width:28px;
    height:28px;
  }

  .post h4{
    font-size:20px;
  }

  .city{
    padding:16px 18px;
    min-height:auto;
  }
  
  .city span{
    font-size:17px;
  }
  
  .city small{
    font-size:10px;
  }
  .hero .display-1{
    line-height:1.14;
  }

}

@media (max-width: 440px){

  .stats{
    grid-template-columns:repeat(2,1fr);
  }
  .hits-grid{
    grid-template-columns:1fr;
  }
}
/* =========================
   <= 420 SMALL MOBILE
========================= */

@media (max-width: 420px){

  :root{
    --pad-side:16px;
  }

  .display-1{
    font-size:30px;
  }

  .hero-meta{
    grid-template-columns:1fr;
  }

  .hero-image{
    border-radius:20px;
  }

  .hero h1 .strike{
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .btn{
    width:100%;
  }

  .b2b{
    padding:32px 20px;
  }

  .calc{
    padding:20px;
  }

  .calc-result{
    padding:22px;
  }

}

