/* OCAA-Qurilish Hisob — tanishtiruv va qidiruv sahifalari */
:root { --navy: #12305a; --navy2: #0d2140; --blue: #1b4f9c; --blue2: #2f6fd0; --acc: #c2570f; --bg: #f4f7fb; --card: #fff; --tx: #18202b; --mut: #566377; --bd: #d8dfe9; --soft: #eaf1fb; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1620; --card: #18212d; --tx: #e7ecf3; --mut: #a3b0c2; --bd: #2a3646; --soft: #212d3c; --blue: #8db6f2; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--navy2); color: #fff; padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: #d4deec; font-size: 15px; text-decoration: none; }
.top nav a:hover { color: #fff; }
.top nav .go { padding: 8px 16px; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 700; }
@media (max-width: 720px) { .top nav a:not(.go) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--acc); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }

.hero { background-color: var(--navy); color: #fff; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.5px; }
.hero p { margin: 0 0 26px; color: #d4deec; font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sheet { padding: 20px; border-radius: 16px; background: #fff; color: #18202b; box-shadow: 0 24px 60px rgba(4,12,28,.45); }
.sheet h2 { margin: 0 0 4px; font-size: 17px; }
.sheet small { color: #566377; }
.sheet svg { display: block; width: 100%; height: auto; margin: 12px 0; border-radius: 10px; background: #f4f7fb; }
.sheet dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.sheet dl div { padding: 10px; border-radius: 10px; background: #eaf1fb; }
.sheet dt { color: #566377; font-size: 12px; }
.sheet dd { margin: 0; font-size: 19px; font-weight: 800; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; } }

section.block { padding: 64px 0; }
section.block.alt { background: var(--card); border-block: 1px solid var(--bd); }
.block h2 { margin: 0 0 8px; font-size: clamp(25px, 3.4vw, 34px); line-height: 1.2; }
.lead { max-width: 680px; margin: 0 0 30px; color: var(--mut); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tile { padding: 22px; border: 1px solid var(--bd); border-radius: 14px; background: var(--card); }
.alt .tile { background: var(--bg); }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--mut); font-size: 16px; }
a.tile { display: block; color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--blue2); }
ol.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.how li { counter-increment: s; padding: 22px; border-radius: 14px; background: var(--soft); }
ol.how li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 800; }
ol.how b { display: block; }
details { padding: 14px 0; border-bottom: 1px solid var(--bd); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--mut); }
.final { background: var(--navy); color: #fff; text-align: center; }
.final p { color: #d4deec; }
.final .cta { justify-content: center; }

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--mut); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot a { color: var(--mut); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Qidiruv sahifalari */
.page { padding: 40px 0 64px; }
.crumb { margin: 0 0 14px; color: var(--mut); font-size: 14px; }
.page h1 { margin: 0 0 12px; font-size: clamp(29px, 4.4vw, 42px); line-height: 1.15; }
.page h2 { margin: 34px 0 8px; font-size: 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.calc { position: sticky; top: 84px; padding: 20px; border: 1px solid var(--bd); border-radius: 14px; background: var(--card); }
.calc h2 { margin: 0 0 12px; font-size: 19px; }
.calc label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.calc input, .calc select { display: block; width: 100%; min-height: 46px; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--bd); border-radius: 10px; background: var(--bg); color: var(--tx); font: inherit; font-size: 16px; }
.calc output { display: block; margin: 12px 0; padding: 12px; border-radius: 10px; background: var(--soft); font-size: 15px; }
.calc output b { display: block; font-size: 22px; }
.calc .btn { width: 100%; }
.formula { padding: 12px 14px; border-radius: 10px; background: var(--soft); font-family: ui-monospace, Consolas, monospace; font-size: 15px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px; border-bottom: 1px solid var(--bd); text-align: left; }
