/* StreamTeam — статична версія.
   Палітра і шрифти взяті з оригінального сайту на Weblium.
   Всі кольори змінюються тут, у блоці :root. */

:root {
  --blue: #657efa;
  --blue-light: #b4c0ff;
  --blue-grad: linear-gradient(160deg, #1b2246 0%, #10100e 55%);
  --yellow: #fab415;
  --black: #000000;
  --bg: #10100e;
  --bg-alt: #16161a;
  --surface: #1c1c1a;
  --ink: #f2f0ea;
  --text: #a5a29a;
  --line: rgba(255,255,255,.09);
  --bg-soft: #1c1c1a;
  --maxw: 1180px;
  --font-head: "Comfortaa", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(16,16,14,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(16,16,14,.97); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 88px; }

.logo {
  display: flex; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink);
}
.logo img { height: 58px; width: auto; display: block; }   /* запобіжник */
.logo-mark { position: relative; display: block; height: 58px; width: auto; flex-shrink: 0; line-height: 0; }
.logo-mark img { height: 58px; width: auto; display: block; transition: opacity .35s ease; }
/* logo1 (сам знак, без напису) лежить поверх logo і проявляється при прокрутці */
/* у потоці завжди рівно одна картинка — тому ширина шапки
   підлаштовується під ту, що зараз видима, і порожнечі не лишається */
.logo-mark .logo-b { position: absolute; top: 0; left: 0; opacity: 0; }
.header.scrolled .logo-mark .logo-a { position: absolute; top: 0; left: 0; opacity: 0; }
.header.scrolled .logo-mark .logo-b { position: relative; opacity: 1; }

/* напис з'являється тоді ж, коли знак лишається без власного напису */
.logo .wordmark {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .45s ease, opacity .35s ease .1s, margin-left .45s ease;
}
.logo .wordmark b { color: var(--yellow); }
.header.scrolled .logo .wordmark { max-width: 260px; opacity: 1; margin-left: 14px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--yellow); }

.lang { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.lang a, .lang span { padding: 5px 10px; border-radius: 3px; }
.lang .active { background: var(--yellow); color: var(--black); }
.lang a { color: var(--text); }
.lang a:hover { color: var(--yellow); }

.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }
.header .wrap { position: relative; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 14px; letter-spacing: .04em;
  padding: 16px 36px; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: .2s;
}
.btn-solid { background: var(--yellow); color: var(--black); }
.btn-solid:hover { background: #e0a00c; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.btn-ghost:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #222; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 90px; color: var(--ink);
  background:
    radial-gradient(ellipse at 72% 18%, rgba(101,126,250,.28), transparent 62%),
    radial-gradient(ellipse at 12% 78%, rgba(250,180,21,.10), transparent 58%),
    var(--bg);
}
.hero-inner { max-width: 860px; }
.hero .eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.15; color: var(--ink);
}
.rotator { color: var(--yellow); display: inline-block; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); margin: 28px 0 42px; max-width: 620px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Секції ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--blue-grad); color: var(--text); }
.section-dark { background: var(--bg-alt); color: var(--text); }

.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.2; color: var(--ink);
}
.section-alt .section-title, .section-dark .section-title { color: var(--ink); }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--yellow); margin: 22px 0 0; }
.section-sub { max-width: 640px; margin: 22px 0 60px; }
.section-alt .section-sub { color: var(--text); }

/* ---------- Послуги ---------- */
.services { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.service:hover { border-color: var(--yellow); box-shadow: 0 18px 44px rgba(0,0,0,.5); transform: translateY(-4px); }
.service img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-body { padding: 30px 28px 34px; }
.service h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px; line-height: 1.35;
}
.service p { font-size: 16px; }

/* ---------- Чому ми ---------- */
.features { display: grid; gap: 44px 50px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 12px; }
.feature h3::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--yellow); border-radius: 2px; margin-right: 12px; }
.feature p { font-size: 16px; color: var(--text); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 4/3; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.shot:hover img { transform: scale(1.07); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { color: var(--yellow); }

/* ---------- Instagram ---------- */
.ig-link { color: var(--yellow); font-weight: 600; }
.section-dark .ig-link, .section-alt .ig-link { color: var(--yellow); }
.ig-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; min-height: 60px; }
.ig-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 5px; background: var(--surface); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ig-item:hover img { transform: scale(1.07); }
.ig-item .ig-cap {
  position: absolute; inset: 0; padding: 16px; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.8));
  font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .25s;
}
.ig-item:hover .ig-cap { opacity: 1; }
.ig-item .ig-badge { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 11px; letter-spacing: .06em; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 3px; }
.ig-empty { grid-column: 1 / -1; font-size: 15px; }

/* ---------- Форма ---------- */
.contact-grid { display: grid; gap: 60px; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-info p { margin-bottom: 18px; color: var(--text); }
.contact-list { list-style: none; margin-top: 36px; }
.contact-list li { margin-bottom: 20px; font-size: 17px; color: var(--ink); }
.contact-list b { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); display: block; margin-bottom: 4px; font-weight: 700; }
.contact-list a:hover { color: var(--yellow); }

form { display: grid; gap: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 15px 16px; font: inherit; font-size: 16px; border-radius: 4px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { padding: 14px 16px; border-radius: 4px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: rgba(250,180,21,.14); border: 1px solid var(--yellow); color: var(--ink); }
.form-status.err { display: block; background: rgba(217,83,76,.12); border: 1px solid #d9534c; color: #ffb3b3; }
.hp { position: absolute; left: -9999px; }

/* ---------- StandWithUkraine ---------- */
.support { background: var(--yellow); color: var(--black); padding: 46px 24px; text-align: center; }
.support h4 { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.support p { margin-bottom: 22px; font-size: 16px; }

/* ---------- Підвал ---------- */
.footer { background: var(--bg); padding: 40px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer p { color: var(--text); font-size: 14px; }
.socials { display: flex; gap: 20px; }
.socials a { color: var(--text); font-size: 14px; }
.socials a:hover { color: var(--yellow); }

/* ---------- Поява при скролі ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Мобільна ---------- */
@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 88px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 17px; width: 100%; }
  .lang { padding-top: 14px; }
  .logo-mark, .logo-mark img { height: 48px; }
  .header.scrolled .logo .wordmark { max-width: 0; opacity: 0; margin-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 76px 0; }
}

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

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
