/* Никет Иновейшън — стилове на сайта */

/* Akrobat (Fontfabric) — заглавия и големи числа.
   Файловете се слагат в static/fonts/. Докато липсват, заглавията ползват Montserrat. */
@font-face { font-family: "Akrobat"; font-weight: 600; font-style: normal; font-display: swap;
  src: local("Akrobat SemiBold"), local("Akrobat-SemiBold"), url("../fonts/Akrobat-SemiBold.woff2") format("woff2"), url("../fonts/Akrobat-SemiBold.otf") format("opentype"); }
@font-face { font-family: "Akrobat"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Akrobat Bold"), local("Akrobat-Bold"), url("../fonts/Akrobat-Bold.woff2") format("woff2"), url("../fonts/Akrobat-Bold.otf") format("opentype"); }
@font-face { font-family: "Akrobat"; font-weight: 800; font-style: normal; font-display: swap;
  src: local("Akrobat ExtraBold"), local("Akrobat-ExtraBold"), url("../fonts/Akrobat-ExtraBold.woff2") format("woff2"), url("../fonts/Akrobat-ExtraBold.otf") format("opentype"); }

:root {
  --ink: #0E1B2A;
  --ink-2: #16283C;
  --ink-3: #22384F;
  --paper: #F2F5F7;
  --white: #FFFFFF;
  --sun: #F2B530;
  --sun-deep: #D9981A;
  --hydro: #005A9A;
  --brand-blue: #005A9A;
  --brand-magenta: #8B0051;
  --slate: #536477;
  --line: #D5DDE4;
  --line-dark: rgba(255, 255, 255, .14);
  --text: #1A2633;
  --text-soft: #4A5A6B;
  --on-ink: #E9EEF3;
  --on-ink-soft: #A9B7C5;

  --f-display: "Akrobat", "Montserrat", "Arial", sans-serif;
  --f-body: "Montserrat", "Helvetica Neue", "Arial", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);
  --r-sm: 6px;
  --r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
abbr { text-decoration: none; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--text-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типография */
h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 18ch;
  text-wrap: balance;
}
h2 {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h3 { font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 60ch; color: var(--on-ink-soft); }
.lead-dark { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; max-width: 46ch; color: var(--text); }
.kicker { font-size: .95rem; font-weight: 500; color: var(--sun); margin-bottom: 18px; }
.kicker a { color: inherit; text-underline-offset: 4px; }
.small-h { font-family: var(--f-body); font-size: 1rem; font-weight: 600; margin: 28px 0 12px; }

/* ---------- бутони и връзки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFC94D; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--sun); padding-bottom: 2px;
}
.link:hover { color: var(--sun-deep); }
.link-light { color: var(--white); }
.link-light:hover { color: var(--sun); }
.ico { width: 24px; height: 24px; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-lg { width: 44px; height: 44px; }

/* ---------- хедър */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-dark); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand .mark { width: 38px; height: 38px; color: var(--white); object-fit: contain; }
.brand .logo { height: 46px; width: auto; }
.brand .logo-footer { height: 56px; }
@media (max-width: 420px) { .brand .logo { height: 38px; } }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.site-nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.site-nav ul a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-dark); border-radius: 999px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--on-ink-soft); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--ink); }
.lang-switch a:not([aria-current]):hover { color: var(--white); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line-dark); color: var(--white);
  padding: 9px 14px; border-radius: 999px; font: 600 .95rem var(--f-body); cursor: pointer;
}
.nav-toggle .ico { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--ink); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sun); padding-left: 14px; }
  .lang-switch { align-self: flex-start; }
}

/* ---------- начало: hero с крива */
.hero { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { margin-top: 22px; }

.curve {
  margin: 0; padding: 22px 22px 18px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-md);
}
.curve-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.curve-title { font-weight: 600; color: var(--white); }
.curve-legend { display: flex; gap: 16px; font-size: .88rem; color: var(--on-ink-soft); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; display: inline-block; width: 18px; }
.lg-band::before { height: 10px; background: rgba(242, 181, 48, .28); border-radius: 2px; }
.lg-line::before { height: 3px; background: var(--sun); border-radius: 2px; }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .grid line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.curve .grid .base { stroke: rgba(255, 255, 255, .3); }
.curve text { fill: var(--on-ink-soft); font: 500 12px var(--f-body); }
.curve .ylab text { text-anchor: end; }
.curve .ylab .unit { font-weight: 600; }
.curve .xlab text { text-anchor: middle; }
.curve .band { fill: rgba(242, 181, 48, .2); stroke: rgba(242, 181, 48, .45); stroke-width: 1; stroke-dasharray: 3 4; }
.curve .actual { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.curve .actual-fill { fill: rgba(242, 181, 48, .08); }
.curve .now-line { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 2 4; }
.curve .now circle { fill: var(--sun); stroke: var(--ink-2); stroke-width: 3; }
.curve .now-text { fill: var(--white); font: 600 13px var(--f-body); }
.curve-note { margin-top: 10px; font-size: .82rem; color: var(--on-ink-soft); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- факти */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 32px 24px 34px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.fact-num { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.fact-unit { font-weight: 600; color: var(--hydro); }
.fact dd { color: var(--text-soft); font-size: .98rem; line-height: 1.45; max-width: 26ch; }
.facts-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.facts-compact .fact { padding: 22px 20px 22px 0; border-left: 0; border-top: 1px solid var(--line); }
.facts-compact .fact:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }

@media (max-width: 860px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 24px 16px 24px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- секции */
.section { padding: var(--sec) 0; }
.section-alt { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head h2 { max-width: 24ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.split-head p { color: var(--text-soft); max-width: 48ch; }
.split-head.sticky { position: sticky; top: 110px; }
.split-logo { width: 100%; max-width: 380px; height: auto; margin-top: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .split-logo { display: none; } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-head.sticky { position: static; }
}

/* ---------- направления */
.directions li + li { border-top: 1px solid var(--line); }
.directions li:first-child { border-top: 1px solid var(--line); }
.directions li:last-child { border-bottom: 1px solid var(--line); }
.directions a { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 8px; text-decoration: none; color: inherit; transition: background-color .2s; }
.directions a:hover { background: var(--white); }
.directions a:hover h3 { color: var(--sun-deep); }
.dir-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); }
.dir-body p { margin-top: 6px; color: var(--text-soft); max-width: 60ch; }

/* ---------- снимки */
.photo { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  font-size: .82rem; font-weight: 500; line-height: 1.3; color: var(--white);
  background: rgba(14, 27, 42, .72); padding: 5px 11px; border-radius: 999px;
}
.photo a { display: block; height: 100%; }
.photo a:focus-visible { outline-offset: -4px; }
.photo--placeholder {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, #2B4560 0%, #16283C 55%, #0E1B2A 100%);
}
.photo--placeholder figcaption { display: none; }
.side-photo { width: 100%; aspect-ratio: 4 / 3; margin-top: 10px; }
.work-photo { width: 100%; aspect-ratio: 16 / 10; }

/* снимки от проекти */
.work-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-photos .wp-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.work-photos .wp-side { aspect-ratio: 4 / 3; }
.work-photos .wp-side figcaption { font-size: .75rem; }

.section-note { color: var(--text-soft); max-width: 46ch; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery .photo { aspect-ratio: 3 / 2; }
.gallery .g-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery .g-wide { grid-column: span 2; aspect-ratio: auto; }
.gallery .g-feature img, .gallery .g-wide img { position: absolute; inset: 0; }
.gallery img { transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 1000px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-feature { grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery .g-wide { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-feature, .gallery .g-wide { grid-column: auto; }
}

/* ---------- иновация */
.innovation { background: var(--ink); color: var(--on-ink); padding: var(--sec) 0; }
.innovation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.innovation-photo { aspect-ratio: 5 / 4; }
.innovation-copy h2 { color: var(--white); margin-bottom: 22px; }
.innovation-copy p { color: var(--on-ink-soft); max-width: 54ch; }
.innovation-copy p + p { margin-top: 14px; }
.innovation-copy .link { margin-top: 28px; }
@media (max-width: 860px) {
  .innovation-grid { grid-template-columns: 1fr; }
  .innovation-photo { order: 2; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--white); }
.tags-dark { margin-top: 0; }
.tags-dark li { border-color: var(--line); color: var(--text); background: var(--paper); }

/* ---------- партньори */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.partner { padding: 28px 28px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.partner + .partner { padding-left: 28px; border-left: 1px solid var(--line); }
.partner-where { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-soft); }
.cc { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.partner p:not(.partner-where) { color: var(--text-soft); }
.partner .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; }
  .partner, .partner + .partner { padding: 24px 0; border-left: 0; }
  .partner + .partner { border-top: 1px solid var(--line); }
}

/* ---------- новини */
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.news-item { padding-top: 22px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.news-item time { font-size: .9rem; color: var(--slate); }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: var(--sun-deep); text-decoration: underline; text-underline-offset: 4px; }
.news-item p { color: var(--text-soft); }
@media (max-width: 860px) { .news-list { grid-template-columns: 1fr; } }
.empty { color: var(--text-soft); }
.prose { max-width: 68ch; font-size: 1.12rem; }
.prose p + p { margin-top: 1em; }
.prose .link { margin-top: 12px; }

/* ---------- страница: заглавие */
.page-head { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px); }
.page-head .lead { margin-top: 22px; }
.page-head h1 { max-width: 22ch; }
.page-head-tall { min-height: 56vh; display: flex; align-items: center; }

/* подменю на услугите */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 77px; z-index: 20; }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--text); }
.subnav a:hover { background: var(--paper); }
.subnav .ico { color: var(--hydro); }

.service-items li { padding: 26px 0; border-top: 1px solid var(--line); }
.service-items li:last-child { border-bottom: 1px solid var(--line); }
.service-items p { margin-top: 8px; color: var(--text-soft); max-width: 62ch; }

/* ---------- за нас */
.timeline { counter-reset: step; position: relative; }
.timeline li { position: relative; padding: 0 0 36px 52px; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--sun);
  font: 700 .95rem var(--f-display);
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.timeline p { margin-top: 8px; color: var(--text-soft); max-width: 62ch; }

.group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.group-item { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; }
.group-item.is-self { background: var(--ink); color: var(--white); border-color: var(--ink); }
.group-item.is-self p { color: var(--on-ink-soft); }
.group-item p { color: var(--text-soft); font-size: .98rem; }
.group-item .link { margin-top: auto; align-self: flex-start; font-size: .95rem; }
@media (max-width: 1000px) { .group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .group { grid-template-columns: 1fr; } }

.quote { margin: clamp(48px, 7vw, 88px) 0 0; padding: 0 0 0 28px; border-left: 4px solid var(--sun); }
.quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1.4; max-width: 36ch; color: var(--ink); }

/* ---------- проекти */
.clients li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.clients li:last-child { border-bottom: 1px solid var(--line); }
.client-name { font-size: 1.15rem; font-weight: 600; }
.client-note { font-size: .92rem; color: var(--hydro); font-weight: 500; }
.client-more { color: var(--text-soft); }

.total { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-left: 16px; border-left: 3px solid var(--sun); }
.total-num { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.total-label { font-size: .92rem; color: var(--text-soft); }

.table-wrap { overflow-x: auto; }
.plants { width: 100%; border-collapse: collapse; }
.plants th { text-align: left; font-size: .88rem; font-weight: 600; color: var(--text-soft); padding: 0 0 12px; border-bottom: 2px solid var(--ink); }
.plants td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plants .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; padding-left: 20px; }
.plant-name { display: block; font-weight: 500; }
.plant-loc { display: block; font-size: .9rem; color: var(--text-soft); }
.bar { display: block; height: 6px; margin-top: 8px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--sun); border-radius: 3px; }
.kind-hydro .bar span { background: var(--hydro); }
.kind-other .bar span, .kind-battery .bar span { background: var(--slate); }
.plants .more td { color: var(--text-soft); border-bottom: 0; }

/* ---------- контакти */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-people h2 { margin-bottom: 24px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.people li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.people li:last-child { border-bottom: 1px solid var(--line); }
.person { font-weight: 600; font-size: 1.1rem; }
.people a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); align-self: flex-start; }
.people a:hover { color: var(--sun-deep); text-decoration: underline; text-underline-offset: 3px; }
.people .ico { color: var(--hydro); }
.plain-links li + li { margin-top: 8px; }
.plain-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.plain-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 4vw, 44px); }
.form-panel h2 { margin-bottom: 24px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-body); color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(242, 181, 48, .45); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.err { color: #B3261E; font-size: .9rem; margin-top: 6px; font-weight: 500; }
.form-error { background: #FCEEEE; color: #8C1D18; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 500; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; margin: 0; }
.check .err { grid-column: 2; margin-top: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.hint { font-size: .9rem; color: var(--text-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: left; }
.sent .ico { color: var(--hydro); margin-bottom: 14px; }
.sent h2 { margin-bottom: 10px; }
.sent p { color: var(--text-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA и футър */
.cta { background: var(--brand-magenta); color: var(--white); padding: clamp(44px, 6vw, 72px) 0; }
.cta p { color: rgba(255, 255, 255, .86); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { max-width: 22ch; }
.cta p { margin-top: 12px; max-width: 60ch; }
.cta .btn-sun { background: var(--white); color: var(--brand-magenta); }
.cta .btn-sun:hover { background: #FBE9F2; }

.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-h { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: var(--on-ink); text-decoration: none; }
.footer-links a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.footer-links .muted { color: var(--on-ink-soft); font-size: .9rem; margin-left: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 24px; font-size: .88rem; }
.made-by a { color: var(--on-ink); text-decoration: none; font-weight: 500; }
.made-by a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
