/* === KGP Kommunalshik — main stylesheet === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0c2340;
  --navy-mid:   #143255;
  --blue:       #1058a8;
  --blue-hover: #1565c0;
  --heat:       #b71c1c;
  --water:      #1565c0;
  --sewage:     #2e7d32;
  --bg:         #f4f3ef;
  --bg-alt:     #eceae4;
  --white:      #ffffff;
  --text:       #1a2332;
  --text-mid:   #3d4b5c;
  --text-light: #6b7a8d;
  --border:     #dbd8d1;
}

html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: 'PT Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar { background: var(--navy); padding: 9px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar span, .topbar a { color: rgba(255,255,255,.62); font-size: .78rem; }
.topbar a:hover { color: #fff; }
.topbar-phone { color: rgba(255,255,255,.9) !important; font-weight: 700 !important; font-family: 'Montserrat', sans-serif; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-ig { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.62) !important; font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.topbar-ig:hover { color: #fff !important; }
.topbar-ig svg { width: 14px; height: 14px; }
.lang-btn { padding: 2px 9px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border: none; cursor: pointer; background: transparent; color: rgba(255,255,255,.45); transition: color .15s; }
.lang-btn.active { background: var(--blue); color: white; border-radius: 2px; }
.lang-btn:hover:not(.active) { color: white; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 900; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.09); }
.header-inner { display: flex; align-items: center; height: 80px; gap: 0; }
.logo-link { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; margin-right: 24px; }
.logo-img { width: 64px; height: 64px; object-fit: contain; }
.logo-text .logo-name { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.15; }
.logo-text .logo-sub { display: block; font-size: .72rem; color: var(--text-light); margin-top: 3px; font-family: 'Montserrat', sans-serif; }

/* ── NAV ────────────────────────────────────────────────── */
nav.main-nav { display: flex; height: 100%; margin-left: auto; }
.nav-item { position: relative; height: 100%; }
.nav-link { display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 13px; font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--text); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; user-select: none; background: none; border-left: none; border-right: none; border-top: none; }
.nav-link:hover, .nav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-chevron { display: inline-block; font-size: .5rem; opacity: .6; transition: transform .15s; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 1px); left: 0; background: var(--white); border: 1px solid var(--border); border-top: 2px solid var(--blue); min-width: 230px; box-shadow: 0 6px 20px rgba(0,0,0,.1); padding: 6px 0; z-index: 910; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 9px 18px; font-size: .82rem; color: var(--text-mid); transition: background .1s, color .1s; }
.nav-dropdown a:hover { background: #f0f6ff; color: var(--blue); }

/* mobile nav toggle */
.nav-toggle { display: none; margin-left: auto; background: transparent; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
.hero { background: var(--navy); padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,.012) 28px, rgba(255,255,255,.012) 56px); pointer-events: none; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 42%; height: 100%; background: linear-gradient(120deg, transparent 50%, rgba(16,88,168,.18) 100%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 10px; margin-bottom: 22px; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: 18px; white-space: nowrap; }
.hero-desc { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.hero-chip { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: rgba(255,255,255,.055); border-left: 3px solid transparent; font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.hero-chip.heat  { border-color: #ef5350; }
.hero-chip.water { border-color: #42a5f5; }
.hero-chip.sew   { border-color: #66bb6a; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hero-chip.heat  .chip-dot { background: #ef5350; }
.hero-chip.water .chip-dot { background: #42a5f5; }
.hero-chip.sew   .chip-dot { background: #66bb6a; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; border: none; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
.btn-solid { background: var(--blue); color: white; padding: 13px 26px; }
.btn-solid:hover { background: var(--blue-hover); color: white; }
.btn-ghost { background: transparent; color: white; padding: 12px 26px; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
.hero-photo-wrap { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; filter: brightness(.88) saturate(.9); }
.hero-photo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.8); text-transform: uppercase; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.sec-label { display: block; font-family: 'Montserrat', sans-serif; font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.sec-title { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.sec-sub { color: var(--text-light); font-size: .92rem; margin-bottom: 36px; max-width: 580px; }

/* ── SERVICE CARDS ──────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-card { background: var(--white); border: 1px solid var(--border); padding: 30px; position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s; cursor: pointer; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.svc-card.heat::before  { background: var(--heat); }
.svc-card.water::before { background: var(--water); }
.svc-card.sew::before   { background: var(--sewage); }
.svc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.svc-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-card.heat  .svc-icon { background: #fff5f5; }
.svc-card.water .svc-icon { background: #e8f4ff; }
.svc-card.sew   .svc-icon { background: #e8f5e9; }
.svc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 11px; }
.svc-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 18px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.svc-tag { font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 2px; }
.svc-card.heat  .svc-tag { background: #fff5f5; color: var(--heat); }
.svc-card.water .svc-tag { background: #e8f4ff; color: var(--water); }
.svc-card.sew   .svc-tag { background: #e8f5e9; color: var(--sewage); }
.svc-more { font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.svc-card.heat  .svc-more { color: var(--heat); }
.svc-card.water .svc-more { color: var(--water); }
.svc-card.sew   .svc-more { color: var(--sewage); }

/* ── STATS ──────────────────────────────────────────────── */
.stats-section { background: var(--navy); padding: 64px 0; }
.stats-head { text-align: center; margin-bottom: 48px; }
.stats-head .sec-label { color: rgba(255,255,255,.35); }
.stats-head .sec-title { color: white; margin-bottom: 0; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-cell { text-align: center; padding: 32px 16px; border-right: 1px solid rgba(255,255,255,.07); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.6rem; color: white; line-height: 1; }
.stat-unit { font-size: .95rem; color: rgba(255,255,255,.4); font-weight: 500; margin-left: 3px; }
.stat-lbl { margin-top: 8px; font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.35; }

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { font-size: .92rem; color: var(--text-mid); line-height: 1.78; margin-bottom: 16px; }
.about-cta { margin-top: 28px; }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border: 1.5px solid var(--blue); color: var(--blue); padding: 10px 22px; background: transparent; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.btn-outline-dark:hover { background: var(--blue); color: white; }
.about-right { display: flex; flex-direction: column; gap: 14px; }
.about-kpi { background: var(--white); border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
.kpi-cell { padding: 18px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kpi-cell:nth-child(even) { border-right: none; }
.kpi-cell:nth-last-child(-n+2) { border-bottom: none; }
.kpi-lbl { font-family: 'Montserrat', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.kpi-val { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--navy); }

/* ── NEWS ───────────────────────────────────────────────── */
.news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.news-header .sec-sub { margin-bottom: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.news-thumb { aspect-ratio: 16/9; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.news-thumb::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0,0,0,.03) 6px, rgba(0,0,0,.03) 12px); }
.news-thumb-icon { position: relative; z-index: 1; }
.news-body { padding: 18px 20px 20px; }
.news-date { font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 600; color: var(--text-light); letter-spacing: .04em; margin-bottom: 7px; }
.news-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.news-card p { font-size: .82rem; color: var(--text-mid); line-height: 1.65; }
.news-card a.read-more { display: inline-block; margin-top: 12px; font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 700; color: var(--blue); }
.news-footer { margin-top: 32px; text-align: center; }
.btn-center { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border: 1.5px solid var(--blue); color: var(--blue); padding: 11px 28px; background: transparent; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.btn-center:hover { background: var(--blue); color: white; }

/* ── DOCS STRIP ─────────────────────────────────────────── */
.docs-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.docs-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.docs-heading h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.docs-heading p { font-size: .8rem; color: var(--text-light); margin-top: 2px; }
.docs-list { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.doc-pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); font-size: .78rem; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--text-mid); cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap; text-decoration: none; }
.doc-pill:hover { border-color: var(--blue); color: var(--blue); }
.doc-pill svg { flex-shrink: 0; }
.doc-pill-accent { border-color: var(--blue); color: var(--blue); }

/* ── CONTACTS ───────────────────────────────────────────── */
.contacts-section { background: var(--navy-mid); padding: 64px 0; }
.contacts-section .sec-label { color: rgba(255,255,255,.35); }
.contacts-section .sec-title { color: white; margin-bottom: 6px; }
.contacts-address { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 40px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.cnt-block-title { font-family: 'Montserrat', sans-serif; font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.cnt-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; }
.cnt-lbl { font-size: .76rem; color: rgba(255,255,255,.38); min-width: 90px; flex-shrink: 0; padding-top: 2px; }
.cnt-val { font-size: .85rem; color: rgba(255,255,255,.78); word-break: break-word; }
.cnt-val a { color: rgba(255,255,255,.78); }
.cnt-val a:hover { color: white; }
.cnt-phone-main { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem !important; color: white !important; }
.cnt-form { display: flex; flex-direction: column; gap: 10px; }
.cnt-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 10px 14px; font-family: 'PT Sans', sans-serif; font-size: .88rem; color: rgba(255,255,255,.9); outline: none; transition: border-color .15s; width: 100%; }
.cnt-input::placeholder { color: rgba(255,255,255,.3); }
.cnt-input:focus { border-color: rgba(255,255,255,.35); }
.cnt-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.btn-form { background: var(--blue); color: white; padding: 11px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .04em; border: none; cursor: pointer; transition: background .15s; }
.btn-form:hover { background: var(--blue-hover); }
.contacts-map { margin-top: 32px; }
.contacts-map iframe { width: 100%; height: 320px; border: none; display: block; filter: grayscale(15%) contrast(1.05); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 44px 0 22px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-logo img { width: 42px; height: 42px; object-fit: contain; }
.footer-logo span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .88rem; color: white; }
.footer-fullname { font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 12px; line-height: 1.45; }
.footer-desc { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.65; }
.footer-col-title { font-family: 'Montserrat', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); transition: all .15s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: white; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.28); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; white-space: normal; }
  .svc-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: 1px solid rgba(255,255,255,.07) !important; border-bottom: 1px solid rgba(255,255,255,.07); }
  .stat-cell:nth-child(2n) { border-right: none !important; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 740px) {
  html { font-size: 16px; }
  .topbar-left span:first-child { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 12px 0; height: auto; }
  nav.main-nav.open { display: flex; }
  .nav-item { width: 100%; height: auto; }
  .nav-link { height: auto; padding: 12px 28px; border-bottom: 1px solid var(--border); }
  .nav-dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; padding-left: 28px; padding-bottom: 8px; min-width: 0; }
  .svc-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
}
