/* K-STONE — kstone.uz */
:root {
  --accent: #1E5AA8;
  --accent-dark: #174A8C;
  --ink: #14181F;
  --text: #4B5261;
  --muted: #5E6573;
  --line: #DCD8CF;
  --paper: #F6F4EF;
  --sand: #ECE8E0;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad: min(60px, 5vw);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font-family: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; }
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }
em { font-style: italic; color: var(--accent); }

/* shared bits */
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.3vw, 76px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn svg, .link-arrow svg { flex: none; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--accent); }
.btn--white:hover { background: var(--paper); border-color: var(--paper); color: var(--accent-dark); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-under { display: inline-flex; align-items: center; min-height: 56px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.section { padding: 120px var(--pad); }
.section--white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.section-head > div:not(.pills) { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.section-head > p { max-width: 400px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; padding: 0 var(--pad); background: rgba(246, 244, 239, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.06em; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-dark); }
.nav { display: flex; gap: 36px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 24px; }
.header__tel { font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.mobile-nav { display: none; }

/* hero */
.hero { display: flex; flex-wrap: wrap; min-height: min(840px, calc(100vh - 81px)); }
.hero__text { flex: 1 1 480px; min-width: 0; padding: 56px min(48px, 5vw) 56px var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.hero__text > div:first-child { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.8vw, 84px); line-height: 0.98; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.hero__lead { max-width: 500px; font-size: 18px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: baseline; gap: 12px; }
.facts b { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; }
.facts span { font-size: 14px; color: var(--text); }
.hero__media { flex: 1.4 1 560px; min-width: 0; min-height: 620px; position: relative; overflow: hidden; background: #E9E5DC; }
.hero__imgs { position: absolute; inset: 0; animation: kb 26s ease-in-out infinite alternate; }
.hero__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero__imgs img.is-on { opacity: 1; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.tryon { position: absolute; left: 24px; bottom: 24px; width: min(420px, calc(100% - 48px)); padding: 24px; display: flex; flex-direction: column; gap: 20px; background: #fff; box-shadow: 0 24px 60px rgba(20, 24, 31, 0.2); }
.tryon__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tryon__label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tryon__code { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.tryon__note { font-size: 13px; line-height: 1.45; color: var(--text); text-align: right; }
.tryon__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.tryon__thumbs button { width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 4px transparent; transition: box-shadow .2s ease; }
.tryon__thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.tryon__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tryon__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* marquee */
.palette { padding: 64px 0 72px; background: #fff; border-bottom: 1px solid var(--line); }
.palette__head { padding: 0 var(--pad) 32px; }
.palette__head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.mq { overflow: hidden; }
.mq__track { display: flex; width: max-content; animation: mq 80s linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__set { display: flex; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tile { flex: none; width: 180px; margin-right: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.tile img { width: 180px; height: 240px; object-fit: cover; }
.tile b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); }
.tile span { font-size: 12px; color: var(--muted); }

/* materials */
.materials { padding: 120px 0 0; }
.materials__head { padding: 0 var(--pad) 64px; }
.materials__head .wrap { display: flex; flex-direction: column; gap: 20px; }
.materials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 2px; }
.mat { position: relative; min-height: 680px; padding: 40px min(60px, 8%); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden; background: #E9E5DC; }
.mat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.mat:hover > img { transform: scale(1.05); }
.mat__card { position: relative; max-width: 460px; padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: #fff; }
.mat__meta { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.mat__card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 50px); line-height: 1; }

/* marble band */
.band { position: relative; min-height: 560px; padding: 80px var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; overflow: hidden; text-align: center; background: #EDEAE3; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.45); }
.band > *:not(img) { position: relative; z-index: 1; }
.band__tag { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.band__slogan { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(54px, 10.5vw, 152px); line-height: 0.95; letter-spacing: -0.02em; color: var(--accent); }
.band__text { max-width: 560px; font-size: 17px; font-weight: 500; line-height: 1.6; text-wrap: pretty; }

/* catalogue */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 1px solid #8A909C; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pill span { font-family: var(--mono); font-size: 12px; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 56px 24px; }
.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ink); }
.card[hidden] { display: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.card:hover .card__img img { transform: scale(1.05); }
.card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__code { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.card:hover .card__code { color: var(--accent); }
.card__name { font-size: 14px; color: var(--muted); }
.card__tag { padding-top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.center { display: flex; justify-content: center; margin-top: 56px; }

/* order */
.order { padding: 112px var(--pad); background: var(--accent); color: #fff; }
.order .eyebrow, .order em { color: #fff; }
.order__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-bottom: 64px; }
.order__head > div { display: flex; flex-direction: column; gap: 20px; }
.order__cta { align-items: flex-start; gap: 12px !important; }
.order__cta p { font-size: 15px; }
.order__cta p a { color: #fff; font-weight: 600; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; }
.steps li { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.steps__n { font-family: var(--serif); font-style: italic; font-size: 112px; line-height: 0.9; color: rgba(255, 255, 255, 0.6); }
.steps h3 { margin-bottom: 12px; font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.1; }
.steps p { font-size: 16px; line-height: 1.65; }

/* showroom / contacts */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 48px; }
.contact-list { border-bottom: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list dt { padding-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 500; }
.contact-list dd.big { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.contact-list dd.tel { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 34px); font-weight: 600; line-height: 1.2; }
.contact-list a { text-decoration: none; }
.map { position: relative; min-height: 420px; background: var(--sand); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* page head (inner pages) */
.page-head { padding: 72px var(--pad) 56px; }
.page-head .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.page-head .wrap > div:not(.pills) { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.01em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.catalog-body { padding: 0 var(--pad) 120px; }
.empty { display: none; padding: 40px 0; color: var(--text); }

/* decor page */
.decor { padding: 40px var(--pad) 120px; }
.decor__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 32px; }
.decor__media { display: flex; flex-direction: column; gap: 24px; }
.decor__media figure { margin: 0; background: var(--sand); }
.decor__media img { width: 100%; height: auto; }
.decor__media figcaption { padding: 12px 0 0; background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.decor__info { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 28px; }
.decor__info h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 6vw, 88px); line-height: 0.95; }
.decor__name { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.1; color: var(--accent); }
.specs { border-bottom: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; }
.decor__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.decor__note { font-size: 14px; line-height: 1.6; color: var(--text); }
.more { padding: 96px var(--pad) 120px; background: #fff; }

/* footer */
.footer { padding: 72px var(--pad) 40px; background: var(--sand); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 64px; }
.footer__slogan { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.2; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.footer__nav a, .footer__tel a { text-decoration: none; }
.footer__tel { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.footer__mark { font-weight: 800; font-size: clamp(56px, 14.5vw, 210px); line-height: 0.9; letter-spacing: 0.02em; color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 20px; border-top: 1px solid #CFCAC0; font-size: 13px; color: var(--text); }

/* responsive */
@media (max-width: 1080px) {
  .nav, .header__tel { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.is-open { display: flex; flex-direction: column; padding: 8px 0 24px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 0; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a.mobile-nav__tel { color: var(--accent); }
  .decor__grid { grid-template-columns: minmax(0, 1fr); }
  .decor__info { position: static; order: -1; }
}
@media (max-width: 720px) {
  .section { padding: 80px var(--pad); }
  .materials { padding-top: 80px; }
  .order { padding: 80px var(--pad); }
  .header__in { min-height: 64px; }
  .header .btn--sm { display: none; }
  .hero { min-height: 0; }
  .hero__text { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero__media { min-height: 560px; }
  .tryon { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; gap: 16px; }
  .tryon__code { font-size: 40px; }
  .tryon__thumbs button { width: 44px; height: 44px; }
  .facts { gap: 12px 32px; }
  .facts b { font-size: 34px; }
  .mat { min-height: 560px; padding: 20px; }
  .mat__card { padding: 24px; }
  .band { min-height: 440px; }
  .cards { gap: 40px 16px; }
  .steps__n { font-size: 84px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-list dt { padding-top: 0; }
  .specs > div { grid-template-columns: 110px minmax(0, 1fr); }
  .page-head { padding: 48px var(--pad) 40px; }
  .btn { width: 100%; }
  .header .btn, .center .btn { width: auto; }
  .section-head { margin-bottom: 40px; }
  .map { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__imgs, .mq__track { animation: none; }
  html { scroll-behavior: auto; }
}
