/*
Theme Name: ВікнаДім
Theme URI: https://viknadim.ua/
Author: ВікнаДім
Description: Тема сайту металопластикових вікон, дверей та балконів «ВікнаДім» (Київ). Базується на WP Bootstrap Starter, mobile-first. Стек: ACF Pro, Contact Form 7, Yoast SEO. style.css = лише глобалі (шрифти, :root токени, reset, типографіка, утиліти); CSS компонентів — у template-parts.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: viknadim
*/


@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --blue:       #1a4d8f;
  --blue-600:   #16447f;
  --blue-700:   #11365f;
  --ink:        #0e1c33;
  --ink-2:      #1b2c47;
  --muted:      #5a6b85;
  --muted-2:    #8493a8;
  --line:       #e3e9f2;
  --surface:    #f4f8fd;
  --surface-2:  #eaf1fb;
  --warm:       #fbfaf7;
  --white:      #ffffff;
  --gold:       #c98a2b;

  /* Signal (comparison bars) */
  --sig-heat:  #c0496f;
  --sig-noise: #2f9e6a;
  --sig-light: #d8a838;

  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,28,51,.05), 0 2px 8px rgba(14,28,51,.04);
  --shadow-md: 0 4px 14px rgba(14,28,51,.07), 0 18px 40px rgba(14,28,51,.06);
  --shadow-lg: 0 10px 30px rgba(14,28,51,.10), 0 30px 70px rgba(14,28,51,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
sup { font-size: .55em; vertical-align: super; }
input, select, textarea { font-family: inherit; }

/* ---- Layout ----------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 18px;
}
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }

.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }
@media (min-width: 860px) {
  .section { padding-block: 96px; }
  .section--tight { padding-block: 64px; }
}

/* ---- Typography atoms ------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Section heading block -------------------------------- */
.shead {
  margin-bottom: 32px;
}
.shead__title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  margin-top: 14px;
  max-width: 18ch;
}
.shead p {
  color: var(--muted);
  font-size: 16px;
  max-width: 42ch;
  margin-top: 10px;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .shead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
  }
  .shead__title { font-size: clamp(30px, 3.4vw, 46px); }
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 14px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,77,143,.28);
}
.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 10px 26px rgba(26,77,143,.36);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

@media (min-width: 600px) {
  .btn { font-size: 16px; padding: 17px 26px; }
}

/* ---- Chip / pill ------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.chip--active, .chip:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ---- Comparison level bars -------------------------------- */
.level { display: inline-flex; gap: 3px; }
.level i {
  width: 7px; height: 13px;
  border-radius: 2px;
  background: #ccd5e2;
  display: block;
}
.level--heat  i.on { background: var(--sig-heat); }
.level--noise i.on { background: var(--sig-noise); }
.level--light i.on { background: var(--sig-light); }

/* ---- Placeholder images ----------------------------------- */
.ph {
  position: relative;
  background-color: #eef3fa;
  background-image: repeating-linear-gradient(135deg,
     rgba(26,77,143,.07) 0, rgba(26,77,143,.07) 1px,
     transparent 1px, transparent 11px);
  border: 1px dashed rgba(26,77,143,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,77,143,.62);
  overflow: hidden;
}
.ph__label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: lowercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--blue);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}
.ph--dark {
  background-color: #16233c;
  background-image: repeating-linear-gradient(135deg,
     rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px,
     transparent 1px, transparent 11px);
  border-color: rgba(255,255,255,.16);
}
.ph--dark .ph__label { background: rgba(255,255,255,.10); color: #cfe0f5; }

/* ---- Form fields ------------------------------------------ */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---- Scroll reveal ---------------------------------------- */
@keyframes riseIn {
  from { transform: translateY(16px); }
  to   { transform: none; }
}
html.js-anim .reveal.in {
  animation: riseIn .6s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal.in { animation: none; }
}

/* ---- Accessibility ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
