/* ═══════════════════════════════════════════════════════════════
   THEME V2 — "Minimal Studio" · light editorial
   Palette: warm white #fbfaf7 / ink #17181a / amber #b45309
   Type: Inter · Vazirmatn (ar/ku) — flat, thin lines, airy space
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --ink: #17181a;
  --mut: #75746e;
  --acc: #b45309;
  --line: #e7e4dc;
  --err: #b23434;
  --ok: #1d7a3d;
  --font-b: 'Inter', 'Vazirmatn', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--font-b); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
.container { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
section { padding: 90px 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.mut { color: var(--mut); }

/* ── nav ── */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 34px; height: 70px; }
.logo { font-weight: 800; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.logo i { color: var(--acc); font-style: normal; font-size: 11px; vertical-align: super; }
.menu { display: flex; gap: 28px; }
.menu a { color: var(--mut); font-size: 14px; font-weight: 500; transition: color .2s; }
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); border-bottom: 2px solid var(--acc); font-weight: 700; padding-bottom: 4px; }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font: 600 13px var(--font-b); cursor: pointer; transition: .2s; }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { background: var(--acc); color: #fff; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; }
.burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.lang-sw { display: flex; gap: 2px; }
.lang-sw-item { padding: 5px 10px; font-size: 12px; color: var(--mut); border-radius: 16px; }
.lang-sw-item.active { color: var(--ink); background: #efede6; font-weight: 700; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 0; font: 600 13px/1 var(--font-b); letter-spacing: .8px; text-transform: uppercase; cursor: pointer; border: 1px solid var(--ink); transition: .22s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--acc); border-color: var(--acc); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn.sm { padding: 10px 18px; font-size: 12px; }
.sm-only { display: none; }

/* ── hero ── */
.hero { padding: 170px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-block; color: var(--acc); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow::before { content: '— '; }
.hero p.sub { color: var(--mut); font-size: 17.5px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.link-arrow { font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { color: var(--acc); border-color: var(--acc); }
.hero-art { border: 1px solid var(--line); background: var(--panel); }
.hero-art img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; width: 100%; height: auto; display: block; }
.hero-meta { display: flex; gap: 40px; margin-top: 46px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-meta b { display: block; font-size: 24px; font-weight: 800; }
.hero-meta span { color: var(--mut); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

/* ── section head ── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--mut); max-width: 44ch; margin: 0; }

/* ── services: numbered editorial rows ── */
.rows { border-top: 1px solid var(--line); }
.row-svc { display: grid; grid-template-columns: 70px 1.1fr 1.3fr auto auto; gap: 26px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: .2s; }
.row-svc:hover { background: var(--panel); }
.row-svc .no { font-size: 13px; color: var(--acc); font-weight: 700; letter-spacing: .1em; }
.row-svc h3 { margin: 0; font-size: 22px; }
.row-svc .d { color: var(--mut); font-size: 14.5px; }
.row-svc .pr { font-weight: 800; font-size: 17px; white-space: nowrap; }
.row-svc .pr small { display: block; color: var(--mut); font-weight: 500; font-size: 12.5px; }
.row-svc .go { white-space: nowrap; }

/* ── product cards ── */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.p-card { border: 1px solid var(--line); background: var(--panel); transition: .22s; display: flex; flex-direction: column; }
.p-card:hover { border-color: var(--ink); }
.p-card figure { margin: 0; padding: 26px; background: #f2f0ea; }
.p-card figure img { aspect-ratio: 1; object-fit: cover; object-position: center; width: 100%; height: 100%; display: block; }
.p-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body h3 { font-size: 16.5px; margin: 0; font-weight: 700; }
.p-body .d { color: var(--mut); font-size: 13px; flex: 1; }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-weight: 800; }
.price .old { color: var(--mut); text-decoration: line-through; font-weight: 500; font-size: 12.5px; margin-inline-start: 8px; }
.add-link { background: none; border: 0; color: var(--acc); font: 700 12.5px var(--font-b); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; padding: 0; }
.add-link:hover { text-decoration: underline; }
.flag { color: var(--acc); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.stock-off { color: var(--err); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ── about ── */
.about { background: var(--panel); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-grid img { border: 1px solid var(--line); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
.bigtext { font-size: 19px; line-height: 1.85; color: var(--ink); }

/* ── team ── */
.team-card { text-align: center; }
.team-card img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px; border: 1px solid var(--line); padding: 6px; background: var(--panel); object-fit: cover; object-position: top center; display: block; }
.team-card h3 { font-size: 18px; margin: 0; }
.team-card .role { color: var(--acc); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: block; margin: 4px 0 10px; }
.team-card p { color: var(--mut); font-size: 13.5px; }

/* ── gallery ── */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal-item { position: relative; overflow: hidden; background: #f2f0ea; }
.gal-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption { position: absolute; bottom: 0; inset-inline: 0; background: rgba(251, 250, 247, .94); padding: 10px 14px; font-size: 13px; transform: translateY(100%); transition: .3s; }
.gal-item:hover figcaption { transform: none; }

/* ── testimonials ── */
.quote-card { border-top: 3px solid var(--ink); padding-top: 22px; }
.quote-card .stars { color: var(--acc); letter-spacing: 3px; font-size: 13px; }
.quote-card p { font-size: 16.5px; line-height: 1.8; margin-top: 12px; }
.quote-card .who { color: var(--mut); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ── CTA ── */
.cta-band { background: var(--ink); color: #f5f4f0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9b8b2; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-band .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-line { color: #fff; border-color: #6a6a66; }

/* ── page hero ── */
.page-hero { padding: 160px 0 40px; }
.page-hero .rule { width: 60px; height: 3px; background: var(--acc); margin: 18px 0; }
.page-hero p { color: var(--mut); max-width: 62ch; }

/* ── forms ── */
.form-wrap { max-width: 700px; background: var(--panel); border: 1px solid var(--line); padding: 36px; margin-inline: auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); font: inherit; padding: 12px 14px; border-radius: 0; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.err-note { color: var(--err); font-size: 13px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--err) !important; }
.form-ok { text-align: center; padding: 50px 30px; }
.form-ok .tick { width: 60px; height: 60px; margin: 0 auto 20px; border: 2px solid var(--ok); border-radius: 50%; display: grid; place-items: center; color: var(--ok); font-size: 26px; }

.alert { margin: 16px 0 0; padding: 12px 18px; font-size: 14px; }
.alert-ok { background: #e5f6ea; color: var(--ok); }
.alert-err { background: #fdeaea; color: var(--err); }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.info-card { border-top: 1px solid var(--line); padding: 20px 0; }
.info-card h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.info-card a, .info-card span { display: block; font-size: 15.5px; margin: 3px 0; }
.info-card a:hover { color: var(--acc); }
.map-embed { width: 100%; min-height: 330px; border: 1px solid var(--line); }
.map-fallback { display: grid; place-items: center; min-height: 330px; border: 1px dashed var(--line); color: var(--mut); }

/* ── pills ── */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.pill { border: 1px solid var(--line); padding: 8px 18px; font-size: 13px; color: var(--mut); transition: .2s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── product detail ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-grid figure { margin: 0; border: 1px solid var(--line); background: #f2f0ea; padding: 30px; }
.crumbs { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 18px; display: block; }
.crumbs a:hover { color: var(--acc); }
.price-big { font-size: 34px; font-weight: 800; margin: 14px 0; }
.price-big .old { font-size: 20px; color: var(--mut); text-decoration: line-through; font-weight: 500; margin-inline-start: 12px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty-input { width: 80px; border: 1px solid var(--line); background: var(--bg); padding: 12px 8px; text-align: center; font: inherit; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 30px; }
.foot-mark { font-size: clamp(40px, 8vw, 96px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; padding: 60px 0 30px; border-bottom: 1px solid var(--line); color: var(--ink); }
[dir='rtl'] .foot-mark { letter-spacing: 0; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 0; }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 0 0 8px; }
.foot-col a, .foot-col span { color: var(--ink); font-size: 14.5px; }
.foot-col a:hover { color: var(--acc); }
.soc { display: flex; gap: 10px; margin-top: 12px; }
.soc-a { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: .2s; }
.soc-a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--mut); flex-wrap: wrap; }

/* ── cart drawer / modal / toast ── */
.overlay { position: fixed; inset: 0; background: rgba(23, 24, 26, .5); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; inset-inline-end: 0; width: min(420px, 100vw); height: 100vh; background: var(--panel); border-inline-start: 1px solid var(--line); z-index: 95; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
[dir='rtl'] .drawer { transform: translateX(-105%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-x { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--mut); }
.drawer-x:hover { color: var(--ink); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line-info b { display: block; font-size: 14px; }
.cart-line-info span { color: var(--mut); font-size: 12.5px; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: none; cursor: pointer; }
.cart-line-qty span { min-width: 20px; text-align: center; font-size: 13.5px; }
.cart-line-total { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.cart-line-x { background: none; border: 0; color: var(--err); cursor: pointer; font-size: 15px; }
.drawer-empty { text-align: center; color: var(--mut); padding: 40px 20px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.drawer-total b { font-size: 22px; font-weight: 800; }
.modal { position: fixed; inset: 0; background: rgba(23, 24, 26, .55); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.show { display: grid; }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); padding: 32px; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { margin-top: 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 26px; opacity: 0; transition: .35s; z-index: 110; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── responsive ── */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .about-grid, .contact-grid, .product-grid { grid-template-columns: 1fr; }
  .row-svc { grid-template-columns: 46px 1fr auto; }
  .row-svc .d, .row-svc .pr small { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .menu { position: fixed; top: 70px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 24px 26px; transform: translateY(-130%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, visibility .35s; z-index: 55; box-shadow: 0 16px 36px rgba(0, 0, 0, .08); }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .nav-book { display: none; }
  .sm-only { display: inline-flex !important; margin-top: 14px; width: 100%; text-align: center; justify-content: center; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}
@media (max-width: 560px) {
  .g3, .g4, .foot-grid { grid-template-columns: 1fr; }
  .lang-sw { display: none; }
  .foot-bar .lang-sw { display: flex; }
}
