/* ============ Örnöl International — Beton/Blok сайтын дизайны систем ============ */
:root {
  --gray-950: #1a1b1e;
  --gray-900: #232427;
  --gray-800: #35373b;
  --gray-700: #4a4d52;
  --gray-500: #7d8085;
  --gray-300: #b7bac0;
  --gray-100: #e9eaec;
  --gray-050: #f4f5f6;
  --white: #ffffff;
  --accent: #d62828;
  --accent-dark: #a81e1e;
  --accent-orange: #f77f00;
  --success: #2a9d5c;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--gray-050); }
.section-dark { background: var(--gray-950); color: var(--gray-100); }
.section-dark p { color: var(--gray-300); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow { display:inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(0,0,0,.05); }
.btn-dark { background: var(--gray-950); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray-100); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark { display:flex; align-items:center; justify-content:center; width: 42px; height: 42px; border-radius: 8px; background: var(--gray-950); color: var(--white); font-size: .95rem; }
.logo-text { line-height: 1.1; font-size: 1.1rem; letter-spacing: .02em; }
.logo-text small { display: block; font-size: .6rem; font-weight: 700; color: var(--gray-500); letter-spacing: .12em; }

.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--gray-800); padding: 8px 2px; }
.main-nav a:hover, .main-nav a.nav-active { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; }
.has-dropdown .dropdown { position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow); border-radius: 8px; padding: 8px; min-width: 200px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 6px; }
.dropdown li a:hover { background: var(--gray-050); }
.nav-toggle-checkbox, .nav-toggle-btn { display: none; }

@media (max-width: 960px) {
  .nav-toggle-btn { display: flex; flex-direction: column; gap: 5px; width: 30px; cursor: pointer; z-index: 20; }
  .nav-toggle-btn span { height: 3px; background: var(--gray-950); border-radius: 2px; }
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 24px 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li > a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--gray-100); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-cta { flex-direction: column; margin-top: 16px; }
  .nav-toggle-checkbox:checked ~ .main-nav { transform: translateX(0); }
}

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--gray-950) 0%, #3a3d42 100%); color: var(--white); overflow: hidden; padding: 80px 0 60px; }
.hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 20% 20%, rgba(214,40,40,.25), transparent 40%), radial-gradient(circle at 80% 60%, rgba(247,127,0,.18), transparent 45%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: var(--gray-300); max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--gray-500); font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cards / Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(214,40,40,.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.card img { border-radius: 8px; margin-bottom: 14px; }

.product-card { display:flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.product-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--gray-800), var(--gray-950)); display:flex; align-items:center; justify-content:center; color: var(--gray-300); font-weight:700; }
.product-card .body { padding: 22px; display:flex; flex-direction:column; gap: 10px; flex:1; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-100); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .94rem; }
th { background: var(--gray-050); font-weight: 700; color: var(--gray-800); }
tr:last-child td { border-bottom: none; }
.price-cell { font-weight: 800; color: var(--accent); white-space: nowrap; }
.mark-badge { display:inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--gray-950); color: var(--white); font-weight: 800; font-size: .82rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .9rem; color: var(--gray-800); }
input, select, textarea { padding: 13px 14px; border-radius: 8px; border: 1.5px solid var(--gray-100); font-size: 1rem; font-family: inherit; background: var(--white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: .8rem; color: var(--gray-500); }
.form-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: rgba(42,157,92,.12); color: var(--success); }
.form-msg.error { background: rgba(214,40,40,.1); color: var(--accent); }

/* Calculator */
.calc-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.calc-tab { padding: 12px 20px; border-radius: 999px; background: var(--gray-050); font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.calc-tab.active { background: var(--gray-950); color: var(--white); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } }
.result-box { background: var(--gray-950); color: var(--white); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.result-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.result-row:last-of-type { border-bottom: none; }
.result-total { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-top: 10px; }
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Blog */
.blog-card .date { color: var(--gray-500); font-size: .85rem; font-weight: 600; }

/* Timeline */
.timeline { border-left: 3px solid var(--accent); padding-left: 24px; display: flex; flex-direction: column; gap: 28px; }
.timeline-item .year { font-weight: 800; color: var(--accent); }

/* Badges / misc */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: var(--gray-050); border: 1px solid var(--gray-100); padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.divider { height: 1px; background: var(--gray-100); margin: 40px 0; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-btn { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--gray-100); background: var(--white); font-weight: 700; font-size: .85rem; cursor: pointer; }
.filter-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Footer */
.site-footer { background: var(--gray-950); color: var(--gray-300); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-logo { color: var(--white); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-list a:hover { color: var(--white); }
.footer-social { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--white); }
.footer-map { border-radius: 8px; overflow: hidden; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; text-align: center; font-size: .85rem; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none; background: var(--white); box-shadow: 0 -6px 20px rgba(0,0,0,.12); padding: 10px 16px; gap: 10px; }
@media (max-width: 700px) { .sticky-cta { display: flex; } body { padding-bottom: 68px; } }
.sticky-cta .btn { flex: 1; }

/* Utility */
.text-accent { color: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid .ph { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gray-300), var(--gray-100)); border-radius: 8px; }
