﻿/* ============================================================
   FORTER SOLAR — REDESIGN
   Visual: unisolar.energy  |  Structure: se.net.ua
   ============================================================ */

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

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- TOKENS ---- */
:root {
  /* brand — dark blue + orange + white */
  --green:        #f97316;   /* orange accent (primary CTA) */
  --green-d:      #ea580c;   /* orange darker */
  --green-light:  #fff3e8;   /* orange tint bg */
  --navy:         #0c2340;   /* deep corporate blue */
  --navy-2:       #163354;   /* blue mid */
  --navy-3:       #254d72;   /* blue lighter */

  /* neutral */
  --white:        #ffffff;
  --gray-50:      #f7f9fc;
  --gray-100:     #eef2f7;
  --gray-200:     #dce4ef;
  --gray-400:     #8fa3bb;
  --gray-600:     #4a637d;
  --gray-800:     #163354;

  /* type */
  --font:         'Montserrat', system-ui, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* misc */
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --t: .2s ease;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--navy);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ---- TYPE HELPERS ---- */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-d);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.label--blue {
  color: var(--navy-2);
  background: rgba(21,101,192,.10);
}
.label--light {
  color: var(--green);
  background: rgba(249,115,22,.15);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
}
.section-sub--light { color: rgba(255,255,255,.65); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn--green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--green:hover {
  background: var(--green-d);
  border-color: var(--green-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.4);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn--full { width: 100%; }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.btn--pulse {
  animation: pulse 2s ease-out infinite;
}
.btn--pulse:hover {
  animation: none;
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  height: 52px;
  width: auto;
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
  max-width: 1200px;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  transition: box-shadow var(--t);
  pointer-events: all;
}
.header.scrolled .header__inner { box-shadow: var(--shadow-md); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: var(--t);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav__link:hover { color: var(--navy); background: var(--gray-100); }
.nav__link.active { color: var(--green-d); }

.nav__link--cta {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  margin-left: 8px;
}
.nav__link--cta:hover { background: var(--green-d); color: var(--white); }

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav__arrow {
  transition: transform var(--t);
  flex-shrink: 0;
}
.nav__dropdown.open .nav__arrow { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 8px 8px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius);
  transition: var(--t);
  white-space: normal;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__dropdown-icon { width: 38px; height: 38px; flex-shrink: 0; padding-right: 10px; border-right: 1.5px solid rgba(12,35,64,.12); }
.nav__dropdown-item:hover { background: var(--gray-100); color: var(--green-d); }

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  flex-shrink: 0;
  background: rgba(12,35,64,.08);
  border-radius: 999px;
  padding: 3px;
}
.lang-sep { display: none; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(12,35,64,.4);
  padding: 4px 0;
  min-width: 44px;
  border-radius: 999px;
  transition: color .2s, background .25s;
  font-family: var(--font-body);
  line-height: 1.4;
  vertical-align: middle;
  text-align: center;
}
.lang-btn--active {
  color: var(--white);
  background: var(--navy);
}
.lang-btn:hover:not(.lang-btn--active) { color: var(--navy); }
.lang-toggle.lang-toggle--nav { display: none; }

/* Burger (mobile) */
.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(--navy);
  border-radius: 2px;
  transition: var(--t);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(4,13,26,0.75) 0%, rgba(4,13,26,0.00) 60%),
    linear-gradient(to bottom, rgba(4,13,26,0.45) 0%, rgba(4,13,26,0.55) 50%, rgba(4,13,26,0.75) 100%);
  z-index: 1;
}
.hero__svg {
  position: absolute;
  inset: 0;
  background-image: url('../images/solar-bg.svg');
  background-size: cover;
  background-position: center center;
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding-top: 140px;
  padding-bottom: 100px;
}
.hero__inner > * {
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--white);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__title-line {
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}
.hero__title { max-width: none; }

.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.80);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 40px;
  width: 100%;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 48px 0 0;
  gap: 6px;
}
.trust-item:first-child { padding-left: 0; }

.trust-item strong {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.trust-item span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
  margin-right: 48px;
  flex-shrink: 0;
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
.partners {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.partners__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partners__label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  white-space: nowrap;
}
.partners__logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .04em;
  transition: color var(--t);
  cursor: default;
}
.partner-logo:hover { color: var(--navy); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-title { margin-bottom: 20px; }
.about__text p { color: var(--gray-600); margin-bottom: 16px; font-size: 15px; }

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  justify-content: center;
}
.about__pillars::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--navy-3));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.2s ease;
}
.about__pillars.pillars--animated::before {
  transform: scaleY(1);
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 36px;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .5s ease, transform .5s ease;
}
.pillar:last-child { padding-bottom: 0; }
.pillar.pillar--visible {
  opacity: 1;
  transform: translateX(0);
}
.pillar__icon {
  position: relative;
  z-index: 1;
  font-size: 22px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(249,115,22,.10);
}
.pillar__icon--num {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--green);
  background: var(--green-light);
  border-color: var(--green);
}
.pillar__body { padding-top: 10px; }
.pillar strong { font-size: 15px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin: 0; }

/* ============================================================
   BRANDS MARQUEE
   ============================================================ */
.brands {
  background: var(--white);
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.brands--glass {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: none;
  padding: 14px 0;
}
.brands--glass .brands__label { color: rgba(255,255,255,.7); }
.brands--glass .brands__overflow {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands--navy {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
}
.brands--navy .brands__overflow {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 40px;
}
.brands__overflow {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.brands__row {
  display: flex;
  width: max-content;
  animation: marquee-left 35s linear infinite;
}
.brands__track {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.brands__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  padding: 0 32px;
  display: inline-block;
  flex-shrink: 0;
  opacity: .85;
  transition: opacity var(--t);
}
.brands__logo:hover { opacity: 1; }

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.brands__overflow:hover .brands__row { animation-play-state: paused; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-bottom: 0;
}
.services__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.services__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,13,26,.78);
  z-index: 1;
}
.services .section-title { color: var(--white); }
.services .section-sub { color: rgba(255,255,255,.65); }
.services .label--light { color: var(--green); background: rgba(249,115,22,.15); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.svc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green);
}
.svc-card--accent {
  background: var(--navy);
  border-color: var(--navy);
}
.svc-card--accent h3,
.svc-card--accent p { color: rgba(255,255,255,.85); }
.svc-card--accent .svc-card__num { color: rgba(255,255,255,.1); }
.svc-card--accent .svc-card__icon { background: rgba(249,115,22,.15); }
.svc-card--accent:hover { border-color: var(--green); }

.svc-card__icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 0 0 5px rgba(249,115,22,.10);
  margin-bottom: 20px;
}

.svc-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
}

.svc-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.svc-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--white); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--t);
  position: relative;
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
  transform: translateY(-3px);
}

.why-card__icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 0 0 5px rgba(249,115,22,.10);
  margin-bottom: 20px;
}
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--navy); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.proj-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.proj-card--large {
  grid-column: span 2;
  height: 360px;
}

.proj-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.proj-card:hover .proj-card__bg { transform: scale(1.06); }

.proj-card__bg--solar   { background: linear-gradient(160deg, #0c2340 0%, #163354 45%, #f97316 100%); }
.proj-card__bg--wind    { background: linear-gradient(160deg, #0c2340 0%, #254d72 55%, #93c5fd 100%); }
.proj-card__bg--bess    { background: linear-gradient(160deg, #163354 0%, #254d72 55%, #f97316 100%); }
.proj-card__bg--hybrid  { background: linear-gradient(160deg, #0c2340 0%, #1d4ed8 50%, #f97316 100%); }
.proj-card__bg--rooftop { background: linear-gradient(160deg, #0c2340 0%, #ea580c 55%, #fed7aa 100%); }

.proj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

.proj-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.proj-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.proj-card__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.proj-card__content p { font-size: 13px; color: rgba(255,255,255,.55); }
.projects__more-btn { display: none; }

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews { background: var(--gray-50); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--t);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.review-card__stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }

.review-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; font-style: italic; flex: 1; }

.review-card__author { display: flex; align-items: center; gap: 12px; }

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__author strong { display: block; font-size: 14px; color: var(--navy); }
.review-card__author span { font-size: 12px; color: var(--gray-400); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); }

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq__head .section-title { margin-bottom: 16px; }
.faq__head p { font-size: 15px; color: var(--gray-600); line-height: 1.6; }
.faq__head a:not(.btn) { color: var(--green-d); font-weight: 600; }
.faq__head a:not(.btn):hover { text-decoration: underline; }

.faq__list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  line-height: 1.4;
  transition: color var(--t);
}
.faq-item__q:hover { color: var(--green-d); }

.faq-item__arrow {
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: transform .25s ease;
  line-height: 1;
}

.faq-item.open .faq-item__arrow { transform: rotate(45deg); }

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item__a p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.open .faq-item__a { max-height: 300px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--gray-50); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-title { margin-bottom: 16px; }
.contact__info > p { color: var(--gray-600); font-size: 15px; margin-bottom: 36px; line-height: 1.7; }

.contact__list { display: flex; flex-direction: column; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }

.contact__ico {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  box-shadow: 0 0 0 5px rgba(249,115,22,.10);
}

.contact__list strong { display: block; font-size: 13px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact__list a, .contact__list span { font-size: 15px; color: var(--navy); }
.contact__list a:hover { color: var(--green-d); text-decoration: underline; }

/* Form */
.contact__form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: .01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--t);
  resize: vertical;
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.form-note { font-size: 12px; color: var(--gray-400); text-align: center; }
.form-note a { color: var(--green-d); }

/* Modal — overflow guard (supplements inline styles in each HTML) */
.modal-overlay { overflow-x: hidden; }
.modal         { max-width: min(560px, calc(100vw - 40px)); overflow-x: hidden; }
.modal__body form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer .logo__img { height: 56px; }

.footer__col--brand p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer__social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  transition: var(--t);
}
.social-btn:hover { background: var(--green); color: var(--navy); }

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__col-arrow { display: none; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  transition: color var(--t);
}
.footer__col ul a:hover { color: var(--green); }

.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.footer__contact-ico {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,.8);
}
.footer__contacts a { color: rgba(255,255,255,.45); transition: color var(--t); }
.footer__contacts a:hover { color: var(--green); }

.footer__bottom { padding: 20px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,.25); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 13px; color: rgba(255,255,255,.25); transition: color var(--t); }
.footer__legal a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- 1024px — tablet ---- */
@media (max-width: 1024px) {
  .services__grid   { grid-template-columns: repeat(2, 1fr); }
  .why__grid        { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid    { grid-template-columns: repeat(2, 1fr); }
  .about__inner     { grid-template-columns: 1fr; }
  .faq__inner       { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner   { grid-template-columns: 1fr; gap: 48px; }
  .footer__top      { grid-template-columns: 1fr 1fr; }
  .projects__grid   { grid-template-columns: repeat(2, 1fr); }
  .proj-card--large { grid-column: span 2; }
}

/* ---- 768px — mobile ---- */
@media (max-width: 768px) {

  /* Header — full-width bar */
  .header { top: 0; }
  .header__inner {
    border-radius: 0;
    padding: 0 16px;
    height: 60px;
    max-width: 100%;
  }
  .logo__img { height: 42px; }

  /* Nav — slide-down panel */
  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: var(--white);
    padding: 12px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 199;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 8px; font-size: 15px; }
  .nav__link--cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
  .burger { display: flex; }
  .lang-toggle { display: none; }
  .lang-toggle.lang-toggle--nav {
    display: flex;
    margin: 20px auto 4px;
    background: rgba(12,35,64,.08);
    border-radius: 999px;
    padding: 3px;
  }

  /* Dropdown — inline in mobile nav */
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 4px;
    margin-top: 4px;
    display: none;
    min-width: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: flex; }
  .nav__dropdown-item { font-size: 13px; padding: 10px 12px; }

  /* Sections */
  .section { padding: 56px 0; }

  /* Hero */
  .hero { min-height: auto; }
  .hero__inner { padding-top: 100px; padding-bottom: 56px; }
  .hero__title-line { white-space: normal; }
  .hero__sub { margin-bottom: 32px; }

  /* Stats bar — 2-col on dark bg */
  .stats-bar { margin-top: 40px; padding-top: 28px; flex-wrap: nowrap; }
  .trust-divider { display: none; }
  .trust-item:first-child { display: none; }
  .trust-item {
    flex: 1 1 0;
    padding: 16px 20px;
    border-right: none;
    border-bottom: none;
  }
  .trust-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.2); }

  /* Grids */
  .services__grid { grid-template-columns: 1fr; }
  .why__grid      { grid-template-columns: 1fr; }
  .reviews__grid  { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .proj-card--large { grid-column: span 1; height: 240px; }

  /* Projects — show more */
  .proj-card--hidden-mobile { display: none; }
  .proj-card--hidden-mobile.open { display: block; }
  .projects__more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px auto 0;
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--t);
  }
  .projects__more-btn:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
  .projects__more-btn svg { transition: transform .25s ease; flex-shrink: 0; }
  .projects__more-btn.open svg { transform: rotate(180deg); }

  /* Partners */
  .partners__inner { gap: 16px; }

  /* Contact form */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__form  { padding: 24px 16px; }
  .form-row       { grid-template-columns: 1fr; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 0; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Footer dividers */
  .footer__col--brand { padding-top: 14px; padding-bottom: 14px; }
  .footer__col:not(.footer__col--brand) { padding-top: 14px; padding-bottom: 14px; }
  .footer__col:not(.footer__col--brand) + .footer__col { border-top: 1px solid rgba(255,255,255,.1); }

  /* Footer accordion */
  .footer__col-title { cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; user-select: none; }
  .footer__col-title .footer__col-arrow { display: inline-block; transition: transform .25s ease; flex-shrink: 0; opacity: .5; }
  .footer__col-title.open .footer__col-arrow { transform: rotate(180deg); opacity: .9; }
  .footer__col-title + ul { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .footer__col-title.open + ul { max-height: 400px; }
}

/* ---- 480px — small mobile ---- */
@media (max-width: 480px) {
  .container   { padding: 0 20px; }
  .section     { padding: 44px 0; }
  .logo__img   { height: 36px; }
  .hero__inner { padding-top: 88px; padding-bottom: 44px; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__actions .btn { width: 100%; }
  .trust-item  { flex: 1 1 0; padding: 12px 16px; }
}
