/* Diba Metropolitan Group — Apple-style design. Brand: pink-red #FF1657 + near-black. */
:root {
  --brand: #ff1657;
  --brand-dark: #e00d4a;
  --ink: #201a17;
  --ink-2: #665c55;
  --ink-3: #8c827a;
  --line: #ece1d6;
  --bg: #ffffff;
  --tile: #fff5ea;        /* warm cream instead of cold grey */
  --cream: #fffaf4;
  --sun: #ffc83d;         /* Diba yellow, from the brand posters */
  --sun-soft: #fff0c7;
  --pink-soft: #ffe8ef;
  --dark: #201a17;
  --radius: 24px;
  --wrap: 1180px;
  --gutter: 22px;
  --gap: 16px;
  --space: clamp(44px, 5.5vw, 76px);   /* vertical space between sections */
  --header-h: 56px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --track-xl: -.03em;
  --track-l: -.02em;
}
html[lang="ru"] { --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[lang="fa"] { --font: "IBM Plex Sans Arabic", system-ui, -apple-system, Tahoma, sans-serif; --track-xl: 0; --track-l: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 1rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="fa"] body { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: var(--track-xl); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; letter-spacing: var(--track-l); }
h3, .h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.01em; }
html[lang="fa"] h1, html[lang="fa"] h2 { line-height: 1.45; font-weight: 700; }
html[lang="fa"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.5; max-width: 40em; }
.muted { color: var(--ink-3); }
.eyebrow { font-weight: 600; font-size: .9rem; color: var(--brand); margin-bottom: .6rem; }
.tag { font-size: .75rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35em; }
html[lang="fa"] .tag { text-transform: none; letter-spacing: 0; }
.skip, .hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 3px solid rgba(255, 22, 87, .45); outline-offset: 3px; border-radius: 10px; }

/* Icons */
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* Buttons — pills that respond on press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65em 1.3em; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 500; font-size: .97rem; border: 0; cursor: pointer; transition: background-color .2s var(--ease), transform .12s var(--ease), opacity .2s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 32px; padding: .3em .95em; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-link { background: none; color: var(--brand); padding-inline: .6em; }
.btn-link:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 1.3rem; }
.actions.center { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: .35em; color: var(--brand); font-weight: 500; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header — translucent material, content scrolls under */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.header-in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { padding: .4em .8em; border-radius: 999px; font-size: .88rem; color: var(--ink-2); transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header-tools { margin-inline-start: 0; }

/* Language dropdown */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: .35em .6em; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: rgba(0, 0, 0, .05); }
.lang .chev { width: .9em; height: .9em; transition: transform .2s var(--ease); }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .14); transform-origin: top right; animation: pop .18s var(--ease); }
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: .55em .8em; border-radius: 10px; font-size: .95rem; }
.lang-menu a b { font-size: .72rem; font-weight: 600; color: var(--ink-3); width: 22px; }
.lang-menu a:hover { background: var(--tile); }
.lang-menu a[aria-current="page"] { color: var(--brand); font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }

/* Mobile menu button */
.menu-btn { display: none; width: 40px; height: 40px; margin-inline-end: -8px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .header-tools { margin-inline-start: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav a { font-size: 1.3rem; font-weight: 600; color: var(--ink); padding: .5em 0; border-radius: 0; border-bottom: 1px solid rgba(0, 0, 0, .06); letter-spacing: var(--track-l); }
  .nav a[aria-current="page"] { color: var(--brand); }
}
@media (max-width: 420px) {
  .brand img { height: 28px; }
  .btn-support { padding-inline: .8em; }
  .lang summary .chev { display: none; }
}

/* Sections. Two white sections in a row share one gap instead of two. */
.section { padding-block: var(--space); }
.section-alt { background: var(--cream); }
.pt0 { padding-top: 0; }
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.6vw, 32px); }
.section-head h2 { margin: 0; }
.section-head .lead { margin: .4em 0 0; }

/* Home hero: centred headline, wide photo below */
.hero { padding-block: clamp(32px, 5vw, 64px); background: linear-gradient(180deg, var(--cream), #fff); }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-media { position: relative; }
.hero-img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--tile); box-shadow: 0 20px 50px rgba(80, 40, 10, .15); }
.sticker { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); font-weight: 600; padding: .5em 1em; border-radius: 999px; transform: rotate(-2deg); box-shadow: 0 6px 18px rgba(120, 80, 0, .18); margin: 1rem 0 0; }
.sticker-hero { position: absolute; inset-block-end: -14px; inset-inline-start: -14px; margin: 0; }

/* Inner page titles */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.page-head .lead { margin-bottom: 0; }
.page-head-split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-head-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--tile); }
.page-head-split + .section { padding-top: clamp(24px, 3vw, 40px); }

/* Grids and tiles */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--tile); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); overflow: hidden; }
.section-alt .tile { background: #fff; box-shadow: 0 1px 2px rgba(80, 40, 10, .05), 0 6px 20px rgba(80, 40, 10, .05); }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--ink-2); margin: 0; }
.tile-icon { display: flex; gap: 16px; align-items: flex-start; }
.ico-box { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-soft); color: var(--brand); }
.ico-box .ico { width: 22px; height: 22px; }
.card, .product { padding: 0; display: flex; flex-direction: column; }
.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e8ed; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .media img, .product:hover .media img { transform: scale(1.04); }
.tile-body { padding: clamp(16px, 2vw, 22px); }
.tile-body time { display: block; font-size: .8rem; color: var(--ink-3); margin-bottom: .3em; }
.tile-body h3:last-child { margin: 0; }
.tile-body p { font-size: .95rem; }

/* Home: product tiles (5 in one row) */
.product .media { aspect-ratio: 4 / 3; }
.product .tile-body { padding: 16px 20px 20px; }
.product:active { transform: scale(.98); }

/* Home: two feature tiles side by side */
.feature { display: flex; flex-direction: column; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.feature-media { position: relative; aspect-ratio: 16 / 9; background: #e8e8ed; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text { padding: clamp(22px, 3vw, 32px); flex: 1; display: flex; flex-direction: column; }
.feature-text p:not(.eyebrow) { color: var(--ink-2); margin: 0; }
.feature-text .actions { margin-top: auto; padding-top: 1.2rem; }
.feature-dark { background: var(--dark); color: #f5f5f7; }
.feature-sun { background: var(--sun); }
.feature-sun .eyebrow { color: var(--ink); opacity: .7; }
.feature-sun .feature-text p:not(.eyebrow) { color: rgba(32, 26, 23, .8); }
.feature-dark .feature-text p:not(.eyebrow) { color: #a1a1a6; }
.feature-media .feature-logo { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; width: auto; height: 52px; padding: 8px 12px; border-radius: 12px; }
.kariz-logo { background: rgba(29, 29, 31, .72) !important; }

/* Home: projects (2/3) and news headlines (1/3) */
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 48px); }
.split-2-1 .grid-3 { grid-template-columns: repeat(2, 1fr); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-list time { display: block; font-size: .8rem; color: var(--ink-3); }
.news-list span { font-weight: 500; line-height: 1.4; }
.news-list a:hover span { color: var(--brand); }

/* News page: first story wide */
.card-wide { flex-direction: row; margin-bottom: var(--gap); }
.card-wide .media { flex: 1.3; aspect-ratio: auto; min-height: 300px; }
.card-wide .media img { position: absolute; inset: 0; }   /* card height follows the text, not the photo */
.card-wide .tile-body { flex: 1; align-self: center; padding: clamp(24px, 3vw, 40px); }
.card-wide h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

/* Steps: column count matches the number of steps, so no half-empty row */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.steps-3, .steps-6 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { background: #fff; border-radius: var(--radius); padding: 22px; }
.section:not(.section-alt) .step { background: var(--tile); }
.step .num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .93rem; }

/* Product rows (Products page) */
.rows { display: grid; gap: var(--gap); }
.row { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; background: var(--tile); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.row-flip .row-media { order: 2; }
.row-media { height: 100%; }
.row-media img { width: 100%; height: 100%; min-height: 260px; max-height: 340px; object-fit: cover; }
.row-text { padding: clamp(24px, 3.5vw, 44px); }
.row-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.row-text p { color: var(--ink-2); margin: 0; font-size: 1.02rem; }
.row-logo { height: 40px; width: auto; margin-bottom: .9rem; }
.row-logo.kariz-logo { padding: 6px 10px; border-radius: 10px; height: 48px; }

/* CTA band: one compact line — text left, buttons right */
.section-cta { padding-top: 0; }
.section-alt + .section-cta, .page-head + .section-cta { padding-top: var(--space); }
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; background: var(--brand) url(../img/icon.png) no-repeat right -60px center / 300px; color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px); }
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .25em; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 34em; }
.cta-band .actions { margin: 0; }

/* FAQ: title beside the questions on wide screens */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 48px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 1em 0; font-weight: 500; font-size: 1.03rem; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa .chev { color: var(--ink-3); transition: transform .25s var(--ease); }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { color: var(--ink-2); padding-bottom: 1.1em; margin: 0; max-width: 46em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.prose p { font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.7; }
.stack { display: grid; gap: 12px; }

/* Contact: details beside the map */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--gap); }
.contact-list { display: flex; flex-direction: column; }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-row small { display: block; font-size: .8rem; color: var(--ink-3); }
.contact-row strong { font-weight: 500; }
.contact-row:hover strong { color: var(--brand); }
.contact-list .actions { margin-top: auto; padding-top: 20px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #e8e8ed url(../img/tashkent.jpg) center / cover; }  /* photo shows if the map can't load */
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-link { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; z-index: 1; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }

/* Support form */
.support { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); align-items: start; }
.form { position: relative; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75em .9em; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; padding-inline-end: 2.4em; }
[dir="rtl"] .field select { background-position: left 12px center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 22, 87, .14); }
.field [aria-invalid="true"] { border-color: #e30000; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--brand); flex: none; }
.form .btn { margin-top: 18px; width: 100%; }
.form-msg { margin: 16px 0 0; padding: .8em 1em; border-radius: 12px; background: #fff0f1; color: #b4002f; font-size: .95rem; }
.form-ok { text-align: center; padding-block: 48px; }
.form-ok .ico-box.ok { margin: 0 auto 1rem; background: #e8f8ee; color: #1a9a4b; width: 60px; height: 60px; border-radius: 999px; }
.form-ok .ico-box.ok .ico { width: 28px; height: 28px; }
.ticket-no { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; letter-spacing: .02em; color: var(--ink) !important; margin: .2em 0 .6em !important; }
.side h3 { margin-bottom: .3em; }
.side > p { margin-bottom: 1em; }
.side-link { display: flex; align-items: center; gap: 10px; padding: .7em 0; border-top: 1px solid var(--line); font-weight: 500; }
.side-link .ico { color: var(--brand); }
.side-link:hover { color: var(--brand); }

/* Footer */
.footer { background: var(--cream); color: var(--ink-2); font-size: .88rem; padding-top: 44px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 36px; padding-bottom: 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: .9rem; }
.footer-brand p { max-width: 30em; margin: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.footer a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: 9px; align-content: start; }
.footer-contact a { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { margin-top: .2em; color: var(--ink-3); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px 24px; font-size: .8rem; color: var(--ink-3); }

/* Language picker (root page) */
.picker { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 32px; padding: 20px; background: var(--cream); }
.picker nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.picker nav a { padding: .7em 1.4em; background: #fff; border-radius: 999px; font-weight: 500; }
.picker nav a:hover { color: var(--brand); }

/* Tablet */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-2-1, .about-grid, .contact-grid, .support, .faq-wrap { grid-template-columns: 1fr; }
  .page-head-split .wrap { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  /* Steps become a compact numbered list: number on the side, text beside it */
  .steps[class*="steps-"] { grid-template-columns: 1fr 1fr; }
  .steps.steps-5, .steps.steps-3 { grid-template-columns: 1fr; }   /* odd counts: one column, no gap at the end */
  .step { display: flex; gap: 14px; padding: 18px; }
  .step .num { flex: none; margin: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; --radius: 20px; --gap: 12px; }
  .grid-2, .grid-3, .fields, .split-2-1 .grid-3 { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; }
  .grid-products .tile-body { padding: 12px 14px 16px; }
  .grid-products h3 { font-size: .95rem; }
  .grid-2.features { grid-template-columns: 1fr; }
  .page-head-split .wrap { grid-template-columns: 1fr; }
  .page-head-media { order: -1; }
  .page-head-media img { aspect-ratio: 16 / 9; }
  .hero-img { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 1fr; }
  .row-flip .row-media { order: 0; }
  .row-media img { min-height: 0; aspect-ratio: 16 / 10; max-height: none; }
  .card-wide { flex-direction: column; }
  .card-wide .media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .map, .map iframe { min-height: 300px; }
  .steps[class*="steps-"] { grid-template-columns: 1fr; }
  .tile-icon { gap: 14px; }
  .cta-band .actions, .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn-link { flex: 0 0 auto; }
  .map, .map iframe { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:active, .product:active, .card:hover .media img, .product:hover .media img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .nav, .lang-menu { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3a3a3c; --ink-3: #555; }
  .tile, .step, .feature { box-shadow: inset 0 0 0 1px #8e8e93; }
}

/* ───── Warm sections (content from the old diba.uz) ───── */
.cta-band { background-blend-mode: soft-light; }
[dir="rtl"] .cta-band { background-position: left -60px center; }

/* Brand strip */
.brands { padding-block: 22px; border-block: 1px solid var(--line); background: #fff; }
.brands .wrap { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.brands-title { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; flex: 1; justify-content: space-between; }
.brands img { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.brands .kariz-logo, .brands img[src*="kariz"] { background: var(--ink); padding: 6px 10px; border-radius: 8px; }
.brands span { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink-2); }

/* Facts band in Diba yellow */
.facts { background: var(--sun); padding-block: clamp(28px, 4vw, 44px); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.fact strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: var(--track-l); }
.fact span { display: block; margin-top: .35em; font-size: .92rem; color: rgba(32, 26, 23, .78); line-height: 1.4; }
.facts + .section, .facts + .section-cta { padding-top: var(--space); }

/* Checklists */
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--brand); margin-top: .2em; }
.checklist.small { font-size: .9rem; gap: 6px; color: var(--ink-2); }
.checklist.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.facts-label { margin: 1rem 0 0 !important; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3) !important; }
html[lang="fa"] .facts-label { text-transform: none; letter-spacing: 0; }

/* Our centre in Tashkent: photo collage + text */
.hub { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hub-pics { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.hub-pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.hub-pics img:first-child { grid-row: span 2; }
.hub-pics img:nth-child(4) { display: none; }
.hub .sticker { margin-top: 1.4rem; }

/* Gallery of real photos */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--tile); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4), .gallery figure:nth-child(5), .gallery figure:nth-child(6) { grid-column: span 2; }   /* rows: 1+2+3 / 1+4 / 5+6 */
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-size: .85rem; font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.price { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(80, 40, 10, .05), 0 6px 20px rgba(80, 40, 10, .05); display: flex; flex-direction: column; }
.price h3 { margin: 14px 0 4px; }
.price .amount { margin: 0; color: var(--ink-2); }
.price .amount strong { font-size: 1.7rem; color: var(--brand); font-weight: 700; letter-spacing: -.02em; }
.price .checklist { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-3); }

/* What to bring */
.bring { margin-top: var(--gap); background: var(--sun-soft); }
.bring h3 { margin: 0; }

/* About: mission quote */
.mission { margin: 1.6rem 0 0; padding: 22px 24px; background: var(--pink-soft); border-radius: var(--radius); border-inline-start: 4px solid var(--brand); }
.mission p { margin: 0; font-size: 1.05rem; }
.mission .eyebrow { margin-bottom: .4rem; font-size: .85rem; }

@media (max-width: 1000px) {
  .hero-in, .hub { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-img { aspect-ratio: 16 / 10; }
  .facts-in, .prices { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure:nth-child(4), .gallery figure:nth-child(5) { grid-column: auto; }
  .gallery figure:nth-child(6) { grid-column: span 2; }
  .brands ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sticker-hero { inset-inline-start: 10px; inset-block-end: -12px; font-size: .85rem; }
  .prices { grid-template-columns: 1fr; }
  .brands .wrap { display: block; }
  .brands-title { margin-bottom: 12px; }
  .brands img { height: 30px; }
  .brands ul { gap: 12px 20px; }
  .gallery { grid-auto-rows: 140px; }
  .cta-band { background-size: 200px; background-position: right -50px bottom -40px; }
}
