/* KazRenCompany — стили сайта (цвета взяты из логотипа) */
:root {
  --brand: #183440;
  --brand-2: #22495a;
  --steel: #738891;
  --mist: #d0dee3;
  --accent: #e0892b;
  --accent-hover: #c97517;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --ink: #14232b;
  --muted: #5a6b73;
  --line: #dde6e9;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 52, 64, .05), 0 10px 30px -12px rgba(24, 52, 64, .18);
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- top bar ---------- */
.topbar { background: var(--brand); color: var(--mist); font-size: 14px; }
.topbar .container { display: flex; gap: 24px; align-items: center; height: 40px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar .city { margin-left: auto; opacity: .75; }
@media (max-width: 800px) { .topbar { display: none; } }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 52px; height: 52px; }
.logo span { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--brand); letter-spacing: .01em; }
.logo small { display: block; font: 500 12px/1.2 var(--font); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--brand); padding: 10px 14px; border-radius: 10px; transition: background .15s; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--mist); }
.nav .nav-contacts { display: none; }
.burger { display: none; margin-left: auto; appearance: none; border: 0; background: var(--bg); color: var(--brand); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.burger svg { margin: auto; }

@media (max-width: 900px) {
  .header .container { height: 68px; }
  .logo img { width: 44px; height: 44px; }
  .burger { display: grid; }
  .header .btn-head { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 2px; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(24,52,64,.3); display: none; }
  .header.open .nav { display: flex; }
  .nav a { padding: 14px 10px; font-size: 17px; }
  .nav .nav-contacts { display: grid; gap: 10px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav .nav-contacts .btn { width: 100%; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 700 16px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--brand); background: #fff; }
.btn-small { padding: 11px 16px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,52,64,.94) 0%, rgba(24,52,64,.78) 42%, rgba(24,52,64,.15) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 110px; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 700px; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.85); max-width: 560px; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-small .container { padding-top: 72px; padding-bottom: 72px; }
.hero-small h1 { font-size: clamp(30px, 4vw, 46px); }
.crumbs { font-size: 14px; color: var(--mist); margin-bottom: 12px; }
.crumbs a { color: #fff; text-decoration: none; opacity: .8; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(24,52,64,.7) 0%, rgba(24,52,64,.93) 60%); }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .hero-small .container { padding-top: 48px; padding-bottom: 48px; }
  .hero .actions .btn { width: 100%; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--brand); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* about split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split p + p { margin-top: 16px; }
.split .text p { color: var(--muted); font-size: 18px; }
.split .text p strong { color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.industry { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.industry .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.industry b { font-family: var(--font-head); color: var(--brand); font-size: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split > *, .industries > * { min-width: 0; }
.industry b { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) { .industries { grid-template-columns: 1fr; gap: 10px; } .industry { flex-direction: row; align-items: center; padding: 14px 16px; } }
@media (max-width: 340px) { .industries { grid-template-columns: 1fr; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--mist); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 20px; color: var(--brand); margin-bottom: 10px; }
.card p { color: var(--muted); }
@media (max-width: 900px) { .cards, .cards-4 { grid-template-columns: 1fr; } .card { padding: 24px; } }

.lead-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); color: var(--brand); line-height: 1.35; border-left: 4px solid var(--accent); padding-left: 22px; margin: 0 0 48px; max-width: 820px; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.partner .pl { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px; background: #fff; }
.partner .pl img { max-height: 100%; width: auto; object-fit: contain; }
.partner span { overflow-wrap: anywhere; padding: 14px 16px; font-weight: 700; font-size: 15px; color: var(--brand); border-top: 1px solid var(--line); background: var(--bg); }

/* CTA band */
.cta { background: var(--brand); color: #fff; border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(208,222,227,.08); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { color: var(--mist); margin-top: 10px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
@media (max-width: 700px) { .cta { padding: 32px 22px; } .cta .actions, .cta .actions .btn { width: 100%; } }

/* contacts */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.15fr; gap: 16px; margin-bottom: 40px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
a.ccard:hover { border-color: var(--steel); transform: translateY(-2px); }
.ccard .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--brand); }
.ccard small { color: var(--muted); font-weight: 600; font-size: 13px; }
.ccard b { font-size: 16px; color: var(--brand); word-break: break-word; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--mist); min-height: 460px; height: 100%; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req h3 { font-size: 18px; color: var(--brand); padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.req dl { margin: 0; }
.req .row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.req .row:last-child { border-bottom: 0; }
.req dt { color: var(--muted); font-size: 14px; line-height: 1.4; }
.req dt i { display: block; font-style: normal; font-size: 12px; opacity: .8; }
.req dd { margin: 0; font-weight: 600; font-size: 15px; word-break: break-word; }
.copy { appearance: none; border: 0; background: none; color: var(--steel); cursor: pointer; padding: 0 0 0 6px; vertical-align: middle; }
.copy:hover { color: var(--brand); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 340px; } }
@media (max-width: 520px) { .req .row { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; } .req h3 { padding: 16px 18px; } }

/* footer */
.footer { background: var(--brand); color: var(--mist); padding: 56px 0 32px; margin-top: 88px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .flogo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer .flogo img { width: 48px; height: 48px; background: #fff; border-radius: 50%; padding: 3px; }
.footer .flogo b { font-family: var(--font-head); color: #fff; font-size: 18px; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 15px; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--mist); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(208,222,227,.15); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; opacity: .8; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer { margin-top: 60px; } }

/* floating WhatsApp (mobile) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); }
@media (max-width: 900px) { .fab { display: grid; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .ccard { transition: none; } }
