/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; overflow-x: hidden; }
html::-webkit-scrollbar { display: none; }

/* ===== CUSTOM SCROLLBAR ===== */
.scroll-thumb {
  position: fixed;
  right: 4px;
  top: 0;
  width: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 9999;
  cursor: grab;
  pointer-events: auto;
}
.scroll-thumb.active  { opacity: 1; }
.scroll-thumb.dragging { background: rgba(255,255,255,0.65); cursor: grabbing; }

:root {
  --bg:        #1A2330;
  --bg-2:      #2E3A47;
  --bg-3:      #3D4F60;
  --accent:    #F07D1A;
  --accent-h:  #C4620E;
  --text:      #FFFFFF;
  --text-s:    #B8C4CC;
  --border:    rgba(255,255,255,0.10);
  --font-h:    'Barlow Condensed', sans-serif;
  --font-b:    'Barlow', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: 0.06em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.accent { color: var(--accent); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.section-head { margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { color: var(--text); }
.section-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: 0.06em; color: var(--text); }
.section-head p {
  margin-top: 16px;
  color: var(--text-s);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,35,48,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo-wrap img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-s);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--accent-h); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  gap: 4px;
}
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-s);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .mob-cta {
  margin-top: 12px;
  color: var(--accent);
}
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(26,35,48,1) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 120px;
}
.hero-content h1 {
  max-width: 800px;
  margin-bottom: 24px;
}
.hero-content p {
  max-width: 560px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-s);
  letter-spacing: 0.05em;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-s);
  font-family: var(--font-h);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== FOR WHOM ===== */
.for-whom { background: var(--bg-2); }
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.for-whom-card {
  background: var(--bg-2);
  padding: 40px 32px;
  transition: background 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
#contacts { scroll-margin-top: 72px; }
.for-whom-card:hover { background: var(--bg-3); }
.for-whom-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}
.for-whom-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.for-whom-card p {
  color: var(--text-s);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== DIRECTIONS ===== */
.directions { background: var(--bg); }
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.dir-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.dir-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dir-card:hover img { transform: scale(1.05); }
.dir-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  transition: background 0.3s;
}
.dir-card:hover .dir-card-overlay {
  background: linear-gradient(to top, rgba(240,125,26,0.75) 0%, rgba(0,0,0,0.2) 70%);
}
.dir-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}
.dir-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  line-height: 1.5;
}
.dir-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.dir-card:hover .dir-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BRANDS ===== */
.brands { background: var(--bg-2); padding: 64px 0; }
.brands-inner { text-align: center; }
.brands-label {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-s);
  margin-bottom: 40px;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  min-width: 120px;
  height: 64px;
  transition: border-color 0.2s, background 0.2s;
}
.brand-item:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}
.brand-item img {
  width: 100%;
  height: 100%;
  filter: grayscale(1) brightness(1.8);
  transition: filter 0.3s;
  object-fit: contain;
  padding: 12px 20px;
  box-sizing: border-box;
}
.brand-item:hover img { filter: grayscale(0) brightness(1); }

/* ===== HERO STATS ===== */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  background: rgba(26,35,48,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}
.hero-stat {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-s);
  letter-spacing: 0.05em;
}

/* ===== ADVANTAGES ===== */
.advantages { background: var(--bg); }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.adv-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.2s;
  position: relative;
  overflow: visible;
}
.adv-card:hover { background: var(--bg-2); }

/* Corner squares on hover — Dark Grid pattern */
.adv-card::before,
.adv-card::after,
.adv-card .corner-br,
.adv-card .corner-bl {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.adv-card::before { top: -1px; left: -1px; }
.adv-card::after  { top: -1px; right: -1px; }
.adv-card .corner-br { bottom: -1px; right: -1px; }
.adv-card .corner-bl { bottom: -1px; left: -1px; }
.adv-card:hover::before,
.adv-card:hover::after,
.adv-card:hover .corner-br,
.adv-card:hover .corner-bl { opacity: 1; }

/* Inner hover glow */
.adv-card::before,
.adv-card::after { pointer-events: none; }

.adv-num {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.adv-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.adv-card p {
  color: var(--text-s);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ===== HOW WE WORK ===== */
.how { background: var(--bg-2); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}
.how-step {
  padding: 40px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative;
}
.how-step-num {
  font-family: var(--font-h);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.how-step:hover .how-step-num { color: var(--accent); }
.how-step h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.how-step p {
  color: var(--text-s);
  font-size: 0.9rem;
  line-height: 1.6;
}
.how-arrow {
  position: absolute;
  top: 44px;
  right: -14px;
  color: var(--accent);
  z-index: 2;
}

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--bg); }
.portfolio-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  width: fit-content;
}
.tab-btn {
  padding: 12px 28px;
  background: transparent;
  border: none;
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-s);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--accent);
  color: #fff;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: none;
}
.portfolio-item.visible { display: block; }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-h);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; }

/* ===== REVIEWS ===== */
.reviews { background: var(--bg-2); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.review-card {
  background: var(--bg-2);
  padding: 36px 32px;
}
.review-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-text {
  color: var(--text-s);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.review-author {
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(240,125,26,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 0;
}
.cta-banner h2 { max-width: 520px; }
.cta-banner h2 span { color: var(--accent); }
.cta-banner-sub {
  margin-top: 12px;
  color: var(--text-s);
  font-size: 1rem;
}
.cta-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}
.cta-phone {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.2s;
}
.cta-phone:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: #111820;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo img { height: 88px; margin-bottom: 16px; }
.footer-logo p {
  color: var(--text-s);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-nav h4, .footer-contacts h4 {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-s);
  margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.95rem;
  color: var(--text-s);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-contacts p {
  font-size: 0.95rem;
  color: var(--text-s);
  margin-bottom: 8px;
}
.footer-contacts a { color: var(--text-s); transition: color 0.2s; }
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.82rem;
  color: #555;
}

/* ===== OBJECT TYPE SELECTOR ===== */
.obj-type-wrap { margin-bottom: 8px; }
.obj-type-label {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-s);
  margin-bottom: 12px;
}
.obj-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.obj-type-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.obj-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.obj-type-icon {
  color: var(--text-s);
  transition: color 0.2s;
  line-height: 0;
}
.obj-type-name {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-s);
  text-align: center;
  transition: color 0.2s;
}
.obj-type-card:hover {
  border-color: rgba(240,125,26,0.4);
  background: var(--bg-2);
}
.obj-type-card:hover .obj-type-icon,
.obj-type-card:hover .obj-type-name { color: var(--text); }

.obj-type-card input[type="radio"]:checked ~ .obj-type-icon { color: var(--accent); }
.obj-type-card input[type="radio"]:checked ~ .obj-type-name { color: var(--text); }
.obj-type-card:has(input:checked),
.obj-type-card.selected {
  border-color: var(--accent);
  background: rgba(240,125,26,0.08);
}
.obj-type-card.selected .obj-type-icon,
.obj-type-card:has(input:checked) .obj-type-icon { color: var(--accent); }
.obj-type-card.selected .obj-type-name,
.obj-type-card:has(input:checked) .obj-type-name { color: var(--text); }

/* 4-карткова сітка переваг (внутрішні сторінки) — рівне 2×2, без порожніх клітин */
.advantages-grid.adv-4 { grid-template-columns: repeat(2, 1fr); }

/* ===== PAGE HERO (внутрішні сторінки) ===== */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,35,48,0.7) 0%, rgba(26,35,48,0.55) 50%, rgba(26,35,48,0.95) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 64px;
  width: 100%;
}
.page-hero-content h1 { max-width: 760px; margin-bottom: 20px; }
.page-hero-content p {
  max-width: 600px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 36px;
}
.page-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-s);
  letter-spacing: 0.05em;
}

/* Активний пункт навігації */
.nav-links a.active { color: var(--accent); }

/* ===== TYPE CARDS (типи скління/вікон/дверей) ===== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.type-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.type-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.type-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.type-card:hover .type-card-img img { transform: scale(1.05); }
.type-card-body {
  background: var(--bg-2);
  padding: 28px 28px 32px;
  flex: 1;
  border: 1px solid var(--border);
  border-top: none;
}
.type-card-body h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text); }
.type-card-body > p {
  color: var(--text-s);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.type-card-list { display: flex; flex-direction: column; gap: 8px; }
.type-card-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-s);
  font-size: 0.9rem;
  line-height: 1.5;
}
.type-card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
}

/* ===== ABOUT — текстові блоки ===== */
.about-intro p {
  font-size: 1.05rem;
  color: var(--text-s);
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 20px;
}
.about-intro p:last-child { margin-bottom: 0; }
.about-geo {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.about-geo svg { color: var(--accent); flex-shrink: 0; }
.about-geo h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--text); }
.about-geo p { color: var(--text-s); font-size: 0.95rem; }

/* ===== CONTACTS GRID ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-s); }
.contact-form textarea { min-height: 100px; resize: vertical; }

/* Повідомлення форми */
.form-error {
  margin-top: 4px;
  color: #ff6b6b;
  font-size: 0.85rem;
  line-height: 1.4;
}
.form-success {
  padding: 28px 24px;
  border: 1px solid var(--accent);
  background: rgba(240,125,26,0.08);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 400px;
}
.form-success strong {
  display: block;
  font-family: var(--font-h);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .for-whom-grid,
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links, .header-cta { display: none; }
  .burger { display: flex; }

  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary { width: 100%; justify-content: center; }
  .hero-actions .btn-ghost { width: auto; }

  /* Hero на мобільному: контент і статистика в потоці (стек), без накладання */
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-content { padding-top: 110px; padding-bottom: 40px; }
  .hero-content p { margin-bottom: 28px; }
  .hero-stats { position: static; }

  /* Hero stats: 4-в-ряд не влазить на мобільному → 2×2 сітка */
  .hero-stats-inner { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .hero-stat { padding: 16px 20px; }
  .hero-stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.08); }
  .hero-stat:nth-child(even) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.72rem; }

  .for-whom-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .dir-card { aspect-ratio: 16/9; }
  .dir-card-link { opacity: 1; transform: none; }

  .advantages-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-caption { opacity: 1; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-item { min-width: 0; }
  .reviews-grid { grid-template-columns: 1fr; }

  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  #contacts { padding: 64px 0 !important; }

  .type-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 60vh; }
  .page-hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .page-hero-actions { flex-direction: column; align-items: flex-start; }
  .page-hero-actions .btn-primary { width: 100%; justify-content: center; }
  .about-geo { flex-direction: column; align-items: flex-start; text-align: left; }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 0;
  }
  .cta-banner-right { align-items: flex-start; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .portfolio-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .tab-btn {
    flex: none;
    padding: 10px 8px;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-caption { font-size: 0.7rem; padding: 8px; }
}

/* ===== FAQ ===== */
.faq { background: var(--bg); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  position: relative;
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  padding: 0 48px 24px 0;
  color: var(--text-s);
  font-size: 1rem;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .faq-item summary { font-size: 1rem; padding-right: 40px; }
}

/* ===== FORM TRUST (CRO мікрокопі) ===== */
.form-trust {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-trust li {
  position: relative;
  padding-left: 28px;
  color: var(--text-s);
  font-size: 0.92rem;
  line-height: 1.4;
}
.form-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.form-trust strong { color: var(--text); }

/* ===== BLOG INDEX ===== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.blog-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.25s;
}
.blog-card:hover { background: var(--bg-2); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px 28px 28px; }
.blog-card-tag {
  font-family: var(--font-h);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-family: var(--font-h);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.02em; color: var(--text);
  margin: 12px 0 10px; line-height: 1.15;
}
.blog-card p { color: var(--text-s); font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 1024px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-list { grid-template-columns: 1fr; } }

/* ===== ARTICLE ===== */
.article { padding: 128px 0 80px; }
.article-head { max-width: 840px; margin: 0 auto 36px; }
.article-head h1 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800;
  line-height: 1.06; letter-spacing: 0.01em;
  color: var(--text); margin: 16px 0 18px;
}
.article-meta { color: var(--text-s); font-size: 0.9rem; display: flex; gap: 18px; flex-wrap: wrap; }
.article-cover { max-width: 1040px; margin: 0 auto 48px; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { max-width: 840px; margin: 0 auto; }
.article-body h2 {
  font-family: var(--font-h);
  font-size: 1.55rem; font-weight: 800;
  color: var(--text); margin: 40px 0 14px; letter-spacing: 0.02em;
}
.article-body p { color: var(--text-s); font-size: 1.05rem; line-height: 1.75; margin-bottom: 18px; }
.article-body ul { list-style: none; padding: 0; margin: 0 0 18px; }
.article-body li { position: relative; padding-left: 24px; color: var(--text-s); line-height: 1.7; margin-bottom: 8px; }
.article-body li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--accent); }
.article-specs { background: var(--bg-2); border: 1px solid var(--border); padding: 28px 32px; margin: 32px 0; }
.article-specs h3 { font-family: var(--font-h); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.article-specs dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; }
.article-specs dt { color: var(--text-s); }
.article-specs dd { color: var(--text); font-weight: 600; margin: 0; }
.article-cta {
  max-width: 840px; margin: 56px auto 0;
  padding: 36px 40px; background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.article-cta h3 { font-family: var(--font-h); font-size: 1.45rem; color: var(--text); letter-spacing: 0.02em; }
@media (max-width: 640px) { .article { padding: 96px 0 56px; } .article-specs dl { grid-template-columns: 1fr; } }

/* ===== SEO-доповнення ===== */
.reviews-rating { display: inline-block; margin-top: 14px; color: var(--text-s); font-family: var(--font-h); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.reviews-rating:hover { color: var(--accent); }
.portfolio-more { text-align: center; margin-top: 48px; }
.portfolio-cases { margin-top: 16px; color: var(--text-s); font-size: 1rem; line-height: 1.6; }
.portfolio-cases a { color: var(--accent); text-decoration: none; }
.portfolio-cases a:hover { text-decoration: underline; }
.article-related { max-width: 840px; margin: 56px auto 0; }
.article-related h3 { font-family: var(--font-h); font-size: 1.2rem; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.article-related a { display: block; color: var(--text-s); text-decoration: none; padding: 14px 0; border-top: 1px solid var(--border); transition: color .2s; }
.article-related a:hover { color: var(--accent); }
