/* ───────── Tokens ───────── */
:root {
  --accent: #076742;
  --accent-d: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-l: color-mix(in srgb, var(--accent) 10%, #fff);
  --g2: #2daa78;
  --g3: #60c090;
  --black: #0a0d0c;
  --graphite: #131916;
  --ink: #0a0d0c;
  --ink-2: #2a3330;
  --muted: #56625d;
  --paper: #f1f5f3;
  --white: #fff;
  --line: #d5ded9;
  --line-d: #27312d;
  --field: #84918b;
  --saffron: #2daa78;
  --danger: #b3261e;
  --f-display: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-d); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5rem); line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.65rem); }
h3 { font-size: 1.3rem; line-height: 1.22; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--black); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 4px; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { max-width: 800px; margin-inline: auto; width: min(100% - 2.5rem, 800px); }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--line-d); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.brand img { height: 36px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: 1.75rem; }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: #c8d3ce; text-decoration: none; font-weight: 500; font-size: .96rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--g2); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--g2); }
.langs { display: flex; gap: .15rem; }
.langs a { font-size: .85rem; font-weight: 700; color: #8fa097; text-decoration: none; padding: .3rem .5rem; border-radius: 3px; }
.langs a:hover { color: #fff; }
.langs a[aria-current="true"] { color: var(--black); background: var(--g2); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-d); background: transparent; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center; }
.burger-lines, .burger-lines::before, .burger-lines::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; position: relative; transition: transform .2s, opacity .2s; }
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::after { top: 0; transform: rotate(-45deg); }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1.2 var(--f-body); padding: 1rem 1.6rem; border-radius: 3px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn-sm { padding: .65rem 1.15rem; font-size: .93rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link { font-weight: 700; color: var(--accent-d); }
/* Qora fondagi tugmalar: yorqin yashil, qora matn */
.site-header .btn-primary, .hero .btn-primary, .section-black .btn-primary, .page-head-dark .btn-primary { background: var(--g2); color: var(--black); }
.site-header .btn-primary:hover, .hero .btn-primary:hover, .section-black .btn-primary:hover, .page-head-dark .btn-primary:hover { background: var(--g3); color: var(--black); }

/* ───────── Hero ───────── */
.hero { position: relative; background: var(--black); color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; right: -12%; top: 50%; width: min(70vw, 820px); transform: translateY(-50%); color: var(--g2); opacity: .55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { color: #fff; max-width: 13ch; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--ink-2); max-width: 36em; margin-top: 1.4rem; }
.hero .lead { color: #c8d3ce; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }
.hero-call { margin: 1.5rem 0 0; color: #9fb0a7; font-size: .98rem; }
.hero-call a { font-weight: 700; color: #fff; white-space: nowrap; }
.hero-product { justify-self: center; width: min(100%, 460px); position: relative; }
.hero-product::before { content: ""; position: absolute; inset: 8% 4% 2%; background: var(--accent); border-radius: 3px; transform: rotate(-4deg); z-index: -1; }
.hero-product img { width: 100%; height: auto; filter: drop-shadow(0 28px 30px rgba(0,0,0,.55)); }
.star { width: 100%; height: auto; overflow: visible; }
.star path, .star circle { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.star .s1 { stroke-opacity: 1; }
.star .s2 { stroke-opacity: .7; }
.star .s3 { stroke-opacity: .45; }
.star .s4 { stroke-opacity: .3; }
.star .ring { stroke: #fff; stroke-opacity: .22; stroke-width: 1; }
.star .core { fill: var(--g3); stroke: none; }

/* Sahifa ochilganda yulduz bir marta chiziladi */
@media (prefers-reduced-motion: no-preference) {
  .star .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.3,.6,.2,1) forwards; }
  .star .s1.a { animation-delay: .05s; } .star .s1.b { animation-delay: .15s; }
  .star .s2.a { animation-delay: .3s; }  .star .s2.b { animation-delay: .4s; }
  .star .s3.a { animation-delay: .55s; } .star .s3.b { animation-delay: .65s; }
  .star .s4.a { animation-delay: .8s; }  .star .s4.b { animation-delay: .9s; }
  .star .r1 { animation-delay: 1s; } .star .r2 { animation-delay: 1.1s; }
  .star .core { transform-origin: 200px 200px; animation: pop .5s 1.5s cubic-bezier(.3,1.6,.5,1) backwards; }
  .hero-product img { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) backwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { transform: scale(0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
}

/* Raqamlar chizig‘i */
.band { background: var(--accent); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 0; }
.band-grid > div { padding: 1.6rem 1.5rem 1.6rem 0; border-right: 1px solid rgba(255,255,255,.28); }
.band-grid > div + div { padding-left: 1.75rem; }
.band-grid > div:last-child { border-right: 0; }
.band dt { font: 800 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.04em; }
.band dd { margin: .35rem 0 0; color: #d8efe4; font-size: .98rem; max-width: 20em; }

/* ───────── Sections ───────── */
.section { padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.section-tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-paper { background: var(--paper); }
.section-black { background: var(--black); color: #fff; }
.section-black h2, .section-black h3 { color: #fff; }
.section-black .section-lead { color: #b6c3bc; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0; }
.section-lead:empty { display: none; }
.more { margin: 2.25rem 0 0; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.4rem); }
.page-head .lead { margin-top: 1rem; }
.page-head-dark { background: var(--black); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-d); border-bottom: 6px solid var(--accent); }
.page-head-dark h1 { color: #fff; }
.page-head-dark .lead { color: #c8d3ce; }
.empty-note { color: var(--muted); font-size: 1.1rem; }
.section-black .empty-note { color: #b6c3bc; }

/* Xizmatlar ro‘yxati: jadval kabi qatorlar */
.index { border-top: 4px solid var(--black); }
.index-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 2rem; padding: 1.75rem .75rem 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .15s, padding .15s; }
a.index-row:hover { background: var(--black); padding-left: 1.2rem; color: #fff; }
a.index-row:hover p { color: #c8d3ce; }
a.index-row:hover h3 { color: var(--g2); }
.index-row h2, .index-row h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.index-row p { margin: 0; color: var(--ink-2); max-width: 38em; }
.index-detail .index-row { padding-block: 2.25rem; }
.points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.points li { position: relative; padding-left: 1.5rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Jarayon: haqiqiy ketma-ketlik, shuning uchun raqamlangan */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.step { padding-top: 1.25rem; border-top: 4px solid var(--accent); }
.step-n { display: block; font: 800 3rem/1 var(--f-display); letter-spacing: -0.04em; color: var(--accent); margin-bottom: 1rem; }
.step h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.step p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* Loyihalar: 7/5 va 5/7 qatorlar */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.project { grid-column: span 6; }
.project:nth-child(4n+1), .project:nth-child(4n+4) { grid-column: span 7; }
.project:nth-child(4n+2), .project:nth-child(4n+3) { grid-column: span 5; }
.project:last-child:nth-child(odd) { grid-column: span 12; }
.project-media { aspect-ratio: 16 / 10; background-color: var(--ink); background-position: center; overflow: hidden; border-radius: 2px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project:last-child:nth-child(odd) .project-media { aspect-ratio: 21 / 8; }
.ph0 { background-color: var(--accent); }
.ph1 { background-color: var(--ink); }
.ph2 { background-color: #1d4f73; }
.ph0, .ph1, .ph2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M20 20h56v56H20z'/%3E%3Cpath d='M48 3 93 48 48 93 3 48z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.project-body { padding-top: 1.1rem; }
.project-meta { margin: 0 0 .35rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.project h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.project-body p:last-child { color: var(--ink-2); margin: 0; max-width: 34em; }

/* Savol-javob */
.faq { border-top: 4px solid var(--black); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font: 700 1.2rem/1.35 var(--f-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-d); }
.faq-a { padding: 0 3rem 1.4rem 0; color: var(--ink-2); max-width: 44em; }
.faq-a p:last-child { margin-bottom: 0; }

/* Biz haqimizda */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 40em; font-size: 1.12rem; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.facts { margin: 0; border-top: 4px solid var(--black); }
.facts > div { display: flex; align-items: baseline; gap: 1.1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 800 2.4rem/1 var(--f-display); color: var(--accent); min-width: 4.2ch; }
.facts dd { margin: 0; color: var(--ink-2); }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.why-item { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.why-item h3 { margin-bottom: .4rem; }
.why-item p { margin: 0; color: var(--ink-2); }

/* Aloqa */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info dl { margin: 0; border-top: 4px solid var(--black); }
.contact-info dl > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info dt { color: var(--muted); font-size: .92rem; font-weight: 500; margin-bottom: .15rem; }
.contact-info dd { margin: 0; font-size: 1.08rem; }
.contact-info .social { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.map { width: 100%; height: 280px; border: 0; margin-top: 1.5rem; background: var(--paper); }

/* Forma */
.lead-form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .96rem; margin-bottom: .35rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 4px; padding: .8rem .9rem; min-height: 50px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger); font-size: .93rem; margin: .35rem 0 0; font-weight: 500; }
.form-error { margin: 0; padding: .75rem 1rem; background: #fdf0ef; border-left: 3px solid var(--danger); }
.consent { color: var(--muted); font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { padding: 1.5rem; background: var(--accent-l); border-left: 4px solid var(--accent); }
.form-ok h3 { margin-bottom: .4rem; }
.form-ok p { margin: 0; color: var(--ink-2); }
[hidden] { display: none !important; }

/* Bosh sahifa oxiridagi chaqiriq bloki */
.cta { background: var(--accent); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M20 20h56v56H20z'/%3E%3Cpath d='M48 3 93 48 48 93 3 48z'/%3E%3C/g%3E%3C/svg%3E"); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta-grid > div:first-child p { color: #d8efe4; font-size: 1.12rem; max-width: 30em; }
.cta-card { background: #fff; color: var(--ink); padding: 1.75rem; border-radius: 4px; }
.cta-card .form-ok p { color: var(--ink-2); }
.cta-card .form-ok { background: var(--accent-l); }

/* ───────── Footer ───────── */
.site-footer { background: var(--black); color: #a9b8b0; padding-top: 3.5rem; font-size: .98rem; }
.site-footer a { color: #e3ece7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.brand-light, .brand-light:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.foot-brand p { margin: 1rem 0 0; max-width: 22em; }
.foot-col h2 { font: 800 1.05rem/1.2 var(--f-display); color: #fff; margin-bottom: 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-social { margin-top: 1.25rem !important; display: flex !important; flex-wrap: wrap; gap: .4rem 1.1rem !important; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line-d); font-size: .9rem; }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .nav { gap: 1.1rem; }
  .nav-wrap { gap: 1.1rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav-wrap { position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid var(--line-d); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem; display: none; box-shadow: 0 18px 30px -20px rgba(15,32,56,.35); }
  .nav-wrap.is-open { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-d); font-size: 1.05rem; }
  .langs { justify-content: flex-start; }
  .langs a { padding: .55rem .8rem; }
  .nav-wrap .btn { width: 100%; }
  .hero-grid, .about-grid, .contact-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-product { width: min(78%, 340px); justify-self: center; margin-top: 1rem; }
  .hero-bg { right: -40%; width: 120vw; opacity: .35; }
  .section-head, .index-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .section-head { align-items: start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 1.02rem; }
  .projects { gap: 2rem; }
  .project, .project:nth-child(n) { grid-column: span 12; }
  .project:last-child:nth-child(odd) .project-media { aspect-ratio: 16 / 10; }
  .steps, .why { grid-template-columns: minmax(0, 1fr); }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band-grid > div, .band-grid > div + div { padding: 1.1rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .band-grid > div:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
  .faq summary { font-size: 1.1rem; }
  .faq-a { padding-right: 0; }
  .cta-card { padding: 1.25rem; }
}
@media print {
  .site-header, .cta, .site-footer, .hero-bg { display: none; }
}

/* ───────── Mahsulot kartasi ───────── */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 4px solid var(--black); align-items: start; }
.product:first-child { border-top: 0; padding-top: 0; }
.product-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); margin-bottom: 1rem; }
.product-head > p { color: var(--ink-2); max-width: 36em; }
.product-media { background: var(--black); border-radius: 3px; padding: 1.5rem; display: grid; place-items: center; grid-column: 2; grid-row: 1; }
.product-media img { width: min(100%, 360px); height: auto; filter: drop-shadow(0 18px 20px rgba(0,0,0,.5)); }
.product .spec-wrap { grid-column: 1 / -1; }
.points { margin: 1.1rem 0 1.5rem; }

/* Texnik tavsiflar jadvali */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.spec { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
.spec caption { text-align: left; font: 800 1.15rem/1.2 var(--f-display); letter-spacing: -0.02em; padding: 1rem 1.1rem; background: var(--black); color: #fff; }
.spec th, .spec td { text-align: left; padding: .8rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: var(--paper); font-weight: 700; font-size: .88rem; color: var(--muted); }
.spec tbody th { font-weight: 500; color: var(--ink); }
.spec tbody tr:nth-child(even) { background: #f8faf9; }
.spec td:last-child { font-weight: 700; color: var(--accent-d); }

/* Hujjatlar */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.doc-thumb { position: relative; display: block; background: #fff; border-radius: 2px; overflow: hidden; border-bottom: 5px solid var(--g2); transition: transform .2s, border-color .2s; }
.doc-thumb:hover { transform: translateY(-4px); border-bottom-color: var(--g3); }
.doc-thumb img { width: 100%; height: auto; aspect-ratio: 520 / 736; object-fit: cover; object-position: top; }
.doc-count { position: absolute; right: .6rem; bottom: .8rem; background: var(--black); color: #fff; font-size: .82rem; font-weight: 700; padding: .25rem .6rem; border-radius: 2px; }
.doc-body { padding-top: 1rem; }
.doc-body h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.doc-ref { color: var(--g3); font-weight: 600; font-size: .94rem; margin: 0 0 .5rem; }
.doc-body p:last-child { margin: 0; color: #b6c3bc; font-size: .96rem; }
.section-black .doc-thumb:focus-visible { outline-color: #fff; }

.lightbox { border: 0; padding: 0; background: var(--black); color: #fff; width: min(96vw, 980px); height: min(94vh, 1200px); max-width: none; max-height: none; margin: auto; display: none; flex-direction: column; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lb-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line-d); }
.lb-title { flex: 1; font-weight: 700; }
.lb-pos { color: #9fb0a7; font-size: .92rem; }
.lb-btn { font: 700 .95rem var(--f-body); background: var(--g2); color: var(--black); border: 0; border-radius: 3px; padding: .55rem 1rem; cursor: pointer; }
.lb-stage { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; padding: 1rem; background: #1a201d; }
.lb-img { max-width: 100%; height: auto; align-self: flex-start; background: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(10,13,12,.8); color: #fff; cursor: pointer; font-size: 1.6rem; display: grid; place-items: center; z-index: 2; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.lb-prev::before { content: "\2039"; } .lb-next::before { content: "\203A"; }
.lb-nav[hidden] { display: none; }

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product-media { grid-column: 1; grid-row: auto; }
}
@media (max-width: 680px) {
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .doc-body h3 { font-size: 1.02rem; }
  .lightbox { width: 100vw; height: 100dvh; }
}
