/* Elnur сайти — асосий услублар. Бренд ранглари :root да: ўзгарса, фақат шу ерни алмаштиринг. */
:root {
  /* бренд: тўқ яшил, қизил, крем, кулранг, қора */
  --green: #0f3d2c;
  --green-deep: #0a2c20;
  --green-ink: #0b3326;
  --green-600: #1b5a43;
  --green-tint: #e4ede7;
  --red: #ee4a24;          /* логотип ва безак */
  --red-strong: #d63a18;   /* тугмалар (оқ матн учун етарли контраст) */
  --red-dark: #b83114;     /* оч фондаги кичик қизил матн */
  --red-tint: #fde8e1;
  --cream: #f4f1e9;
  --cream-2: #ece8dd;
  --gray: #c9c9c6;
  --ink: #1d1f1e;
  --ink-2: #39403c;
  --muted: #5f6762;
  --surface: #ffffff;
  --line: #e3dfd4;
  --line-2: #d3cec1;
  --danger: #c4372a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 44, 32, .06), 0 8px 24px -12px rgba(10, 44, 32, .2);
  --shadow-lg: 0 2px 4px rgba(10, 44, 32, .05), 0 24px 48px -24px rgba(10, 44, 32, .35);
  --header-h: 88px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--green-ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red-strong); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { color: #fff; }
.logo-leaves { width: 54px; height: 54px; fill: var(--red); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-weight: 900; font-size: 35px; letter-spacing: -.01em; }
.logo-sub { font-weight: 600; font-size: 9.8px; letter-spacing: .5em; margin-top: 5px; padding-left: 1px; opacity: .92; }

/* ---------- кнопкалар ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-strong); color: #fff; box-shadow: 0 8px 18px -10px rgba(214, 58, 24, .8); }
.btn-primary:hover { background: #bf3214; color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn-soft { background: var(--green-tint); color: var(--green); }
.btn-soft:hover { background: #d3e3d9; color: var(--green-deep); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--green); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .6); }
.site-header .container { max-width: 1320px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { white-space: nowrap; color: rgba(255, 255, 255, .82); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-phone .ico { color: var(--red); width: 18px; height: 18px; }
.header-phone:hover { color: #ffd2c4; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.lang button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); cursor: pointer; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--green); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1340px) { .header-phone { display: none; } }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--green); border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 32px -18px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .logo-leaves { width: 42px; height: 42px; }
  .logo-word { font-size: 27px; }
  .logo-sub { font-size: 7.6px; }
}
@media (max-width: 440px) {
  .logo-leaves { width: 36px; height: 36px; }
  .logo-word { font-size: 24px; }
  .logo-sub { font-size: 6.8px; }
  .lang button { padding: 6px 8px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
}

/* ---------- умумий бўлимлар ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--surface); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; margin: 12px 0 16px; }
.section-head .lead { font-size: 18px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--red); }
.hero .eyebrow::before { display: none; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.sub-title { font-size: 24px; font-weight: 700; margin: 64px 0 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: var(--green); color: #e3ece6; }
.hero-deco { position: absolute; pointer-events: none; }
.hero-deco.d1 { width: 520px; height: 520px; left: -220px; bottom: -260px; fill: #ffffff; opacity: .04; transform: rotate(8deg); }
.hero-deco.d2 { width: 140px; height: 140px; right: 5%; top: 40px; fill: var(--red); opacity: .9; transform: rotate(-12deg); display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero .eyebrow { color: #fff; letter-spacing: .16em; }
.eyebrow-leaves { width: 22px; height: 22px; fill: var(--red); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 22px 0 0; color: #fff; }
.title-bar { display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--red); margin: 26px 0 24px; }
.hero .lead { max-width: 540px; font-size: 18px; color: #cddbd3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { justify-self: end; width: 100%; max-width: 560px; }
.storefront { width: 100%; height: auto; overflow: visible; }

.stats { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 500; font-size: 15px; }
.stats strong { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.stats .ico { color: var(--red); width: 18px; height: 18px; }

@media (max-width: 920px) {
  .hero { padding: 40px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { justify-self: center; max-width: 420px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- форматлар ---------- */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.format-card { position: relative; overflow: hidden; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.format-card::after { content: ""; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 0 100% 0 100%; transform: rotate(-20deg); opacity: .5; }
.format-super::after { background: var(--green-tint); }
.format-market::after { background: var(--red-tint); }
.format-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.format-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.format-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.format-super .format-ico { background: var(--green); }
.format-market .format-ico { background: var(--red-strong); }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.format-card h3 { position: relative; z-index: 1; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.format-tag { font-weight: 600; color: var(--red-dark); }
.format-card p { position: relative; z-index: 1; color: var(--muted); }
.link-arrow { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); }
.link-arrow .ico { transition: transform .18s; }
.link-arrow:hover .ico { transform: translateX(4px); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } .format-card { padding: 24px; } }

/* ---------- ассортимент ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cats li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
.cat-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.cat-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-green { background: var(--green-tint); color: var(--green); }
.t-red { background: var(--red-tint); color: var(--red-dark); }
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cats { grid-template-columns: 1fr 1fr; gap: 10px; } .cats li { padding: 10px; font-size: 13.5px; gap: 10px; } .cat-ico { width: 38px; height: 38px; } }
@media (max-width: 360px) { .cats { grid-template-columns: 1fr; } }

/* ---------- қадриятлар ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h4 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.value p { font-size: 15px; color: var(--muted); }
.value-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.value-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-green { background: var(--green-tint); color: var(--green); }
.v-red { background: var(--red-tint); color: var(--red-strong); }
@media (max-width: 1000px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- дўконлар ---------- */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius-sm); background: var(--red-tint); border: 1px solid #f7c9b9; color: #7a2410; font-weight: 500; font-size: 15px; }
.notice .ico { margin-top: 2px; color: var(--red-strong); }
.notice-sm { font-size: 14px; text-align: left; margin: 0; }

.stores-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.segmented button { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--green); color: #fff; }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search .ico { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--cream); }
.search input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(15, 61, 44, .12); }
.geo-msg { min-height: 24px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.geo-msg.error { color: var(--danger); }

.stores-layout { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.stores-count { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.stores-list { position: relative; display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.map-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
#map { height: 668px; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #e8ece6; z-index: 0; }

.store { position: relative; padding: 18px; border-radius: 16px; background: var(--cream); border: 1.5px solid transparent; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.store:hover { border-color: var(--line-2); background: #fff; box-shadow: var(--shadow); }
.store.active { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(15, 61, 44, .12), var(--shadow); }
.store-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge-supermarket { background: var(--green); color: #fff; }
.badge-market { background: var(--red-tint); color: var(--red-dark); }
.open-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-state.is-open { color: #1f8a4c; }
.open-state.is-closed { color: var(--danger); }
.store h3 { font-size: 18px; font-weight: 700; }
.store-addr { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
.store-meta { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.store-meta div { display: flex; align-items: center; gap: 8px; }
.store-meta .ico { width: 17px; height: 17px; color: var(--red-strong); }
.store-meta a { color: var(--ink-2); font-weight: 600; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.store-actions .btn { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 6px; }
.store-actions .ico { width: 16px; height: 16px; }
.distance { font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; align-self: center; }
.nearest-tag { position: absolute; top: -10px; right: 16px; background: var(--red-strong); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.stores-empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 16px; }

/* Leaflet маркерлари */
.pin { width: 34px; height: 42px; position: relative; }
.pin svg { width: 34px; height: 42px; filter: drop-shadow(0 3px 4px rgba(10, 44, 32, .35)); }
.pin .pin-body { fill: var(--green); stroke: #fff; stroke-width: 2; }
.pin.market .pin-body { fill: var(--red-strong); }
.pin .pin-dot { fill: #fff; }
.pin.active svg { transform: scale(1.18); transform-origin: 50% 100%; }
.pin-user { width: 20px; height: 20px; border-radius: 50%; background: #2a6fb0; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42, 111, 176, .25); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); font-size: 14px; line-height: 1.45; }
.popup h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.popup p { color: var(--muted); margin: 0 !important; }
.popup .popup-links { display: flex; gap: 10px; margin-top: 8px; font-weight: 600; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; }

@media (max-width: 980px) {
  .stores-layout { grid-template-columns: 1fr; }
  .map-wrap { position: relative; top: 0; order: -1; }
  #map { height: 380px; }
  .stores-list { max-height: none; overflow: visible; padding: 0; }
}
@media (max-width: 560px) {
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; }
  #near-btn { width: 100%; }
  #map { height: 320px; border-radius: 18px; }
}

/* ---------- таъминотчилар ---------- */
.suppliers { background: var(--green); color: #cddbd3; overflow: hidden; }
.sup-deco { position: absolute; width: 460px; height: 460px; right: -140px; top: -120px; fill: var(--red); opacity: .12; transform: rotate(-24deg); pointer-events: none; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .eyebrow { color: #fff; }
.section-head.on-dark .lead { color: #bcd0c5; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.benefit h3 { color: #fff; font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.benefit p { font-size: 15px; }
.benefit-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-strong); color: #fff; }
.benefit-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps-title { color: #fff; font-size: 24px; font-weight: 700; margin: 64px 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps li { position: relative; padding-top: 4px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 64px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 14px); }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green); font-weight: 800; font-size: 20px; }
.steps li:first-child .step-n { background: var(--red-strong); color: #fff; }
.steps h4 { color: #fff; font-size: 17px; font-weight: 700; margin: 16px 0 6px; }
.steps p { font-size: 15px; }
@media (max-width: 1000px) {
  .benefits, .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .benefits, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .steps .step-n { grid-row: span 2; }
  .steps h4 { margin: 4px 0 4px; }
}

/* ---------- тоифалар ва менежерлар ---------- */
.supcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.supcat { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.supcat:hover { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow); }
.supcat-head { display: flex; align-items: center; gap: 12px; }
.supcat .cat-ico { width: 42px; height: 42px; }
.supcat h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.supcat-desc { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.supcat-mgr { margin-top: auto; padding-top: 16px; }
.supcat-mgr-inner { padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 4px; }
.supcat-role { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.supcat-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.supcat-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--green); }
.supcat-phone .ico { width: 17px; height: 17px; color: var(--red-strong); }
.supcat-apply { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red-dark); background: none; border: 0; padding: 0; cursor: pointer; }
.supcat-apply .ico { width: 17px; height: 17px; transition: transform .18s; }
.supcat-apply:hover .ico { transform: translateX(4px); }
@media (max-width: 1080px) { .supcats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .supcats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .supcats { grid-template-columns: 1fr; } }

/* ---------- ариза формаси ---------- */
.form-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.requirements { position: sticky; top: calc(var(--header-h) + 16px); padding: 28px; border-radius: 22px; background: var(--green); color: #d3e1d9; }
.requirements h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.req-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.req-list .ico { color: var(--red); margin-top: 1px; }
.req-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.req-contact a { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: #fff; }

.form-card { padding: 40px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-head { margin-bottom: 28px; }
.form-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 18px; font-size: 18px; font-weight: 700; color: var(--green-ink); }
.legend-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span-2 { grid-column: span 2; }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.req { color: var(--red-strong); font-weight: 700; }
.opt, .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.opt::before { content: "("; } .opt::after { content: ")"; }
p.hint { margin-top: 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: #fcfbf8; font-weight: 400; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6762' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
input::placeholder, textarea::placeholder { color: #9aa29d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(15, 61, 44, .12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(196, 55, 42, .14); }
.err { display: none; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--danger); }
.field.invalid .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fcfbf8; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s; cursor: pointer; user-select: none; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: #fff; transition: all .15s; }
.chip:hover span { border-color: #9fb8aa; }
.chip input:checked + span { background: var(--green-tint); border-color: var(--green); color: var(--green); }
.chip input:checked + span::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--green); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field.invalid .chip span { border-color: #e9b1aa; }

.file-box { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: #fcfbf8; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.file-name { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.has-file { color: var(--ink); font-weight: 500; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--cream-2); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--red-tint); color: var(--danger); }
.field.invalid .file-box { border-color: var(--danger); }

.check { display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500 !important; font-size: 15px !important; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; transition: all .15s; margin-top: 1px; }
.check input:checked + .check-box { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--green); }
.check input:focus-visible + .check-box { outline: 3px solid var(--red); outline-offset: 2px; }
.field.invalid .check-box { border-color: var(--danger); }
.consent { padding: 16px; border-radius: 14px; background: var(--cream); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8f2318; font-weight: 500; font-size: 15px; }
.submit { width: 100%; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 32px 8px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.form-success:focus { outline: none; }
.success-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.success-ico svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 { font-size: 30px; font-weight: 800; }
.form-success p { max-width: 520px; color: var(--muted); font-size: 17px; }
.form-success #success-text strong { color: var(--ink); }

@media (max-width: 1000px) {
  .form-layout { grid-template-columns: 1fr; }
  .requirements { position: relative; top: 0; order: 2; }
}
@media (max-width: 640px) {
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-head h2 { font-size: 26px; }
  .requirements { padding: 22px 18px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: #a9c0b4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-slogan { margin-top: 18px; font-size: 18px !important; font-weight: 700; color: #fff; }
.footer-brand p:last-child { margin-top: 8px; max-width: 300px; }
.site-footer h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-links a { color: #d3e1d9; }
.footer-links a:hover { color: #fff; }
.contacts li { display: flex; align-items: flex-start; gap: 10px; }
.contacts .ico { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.site-footer p { font-size: 15px; }
.site-footer .btn { margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
