/* Прожектор — рекламна компанія, Біла Церква
   Кольори взяті з логотипа: чорна сцена, жовте світло, блакитний промінь. */

:root {
  --stage: #000000;
  --light: #ffc61a;
  --light-deep: #e0a800;
  --beam: #2e8fe6;
  --paper: #f3f5f7;
  --white: #ffffff;
  --ink: #15171a;
  --ink-soft: #565c66;
  --rule: #d5dae0;
  --rule-dark: #2a2d31;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Onest", "Segoe UI", Arial, sans-serif;

  --cut: 16px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--light); color: var(--stage); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Типографіка ---------- */

.display,
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.1rem, 6.2vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.2; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 38em; }
.muted { color: var(--ink-soft); }

/* ---------- Кнопки: зрізаний кут, як у літерах логотипа ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--light); color: var(--stage);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color .15s;
}
.btn:hover { background: var(--white); }
.btn--dark { background: var(--stage); color: var(--white); }
.btn--dark:hover { background: var(--beam); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.btn--ghost:hover { background: transparent; color: var(--light); }
.on-paper .btn--ghost:hover { color: var(--beam); }

.link { font-weight: 600; text-decoration-color: var(--light-deep); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--beam); }

/* ---------- Шапка ---------- */

.header { position: sticky; top: 0; z-index: 50; background: var(--stage); color: var(--white); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.header__logo { flex: none; display: block; }
.header__logo img { height: 64px; width: auto; mix-blend-mode: lighten; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__link {
  display: block; padding: 10px 0; text-decoration: none; font-weight: 500; font-size: .98rem;
  border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--light); }
.nav__link[aria-current="page"] { border-bottom-color: var(--light); color: var(--light); }

.header__phone { font: 700 .95rem var(--font-display); text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--light); }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px auto; background: currentColor; }

@media (max-width: 980px) {
  .burger { display: block; }
  .header__phone { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--stage); border-top: 1px solid var(--rule-dark); padding: 8px var(--gutter) 24px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule-dark); }
  .nav__phone { display: block; margin-top: 18px; font: 700 1.1rem var(--font-display); color: var(--light); text-decoration: none; }
}
@media (min-width: 981px) { .nav__phone { display: none; } }

/* ---------- Головний екран: промінь прожектора ---------- */

.hero { position: relative; background: var(--stage); color: var(--white); overflow: hidden; --mx: 79%; --my: 27%; }
.hero__img,
.hero__lit { position: absolute; inset: 0; background: url("../img/hero.webp") 70% center / cover no-repeat; }
.hero__img { filter: brightness(.3) saturate(.6); }
.hero__lit {
  -webkit-mask-image: radial-gradient(circle clamp(180px, 26vw, 380px) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, .55) 50%, transparent 100%);
          mask-image: radial-gradient(circle clamp(180px, 26vw, 380px) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, .55) 50%, transparent 100%);
}
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 0, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, 0) 72%); }
.hero__body { position: relative; padding-block: clamp(72px, 13vw, 170px) clamp(56px, 9vw, 120px); }
.hero h1 { max-width: 11em; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 28px; max-width: 30em; color: #e4e7eb; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__lines { position: relative; border-top: 1px solid var(--rule-dark); }
.hero__lines ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__lines a {
  display: block; padding: 22px 0; text-decoration: none;
  font: 700 clamp(.95rem, 1.5vw, 1.2rem) var(--font-display);
}
.hero__lines li + li a { padding-left: clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--rule-dark); }
.hero__lines a:hover { color: var(--light); }
.hero__lines small { display: block; margin-top: 6px; font: 400 .9rem/1.4 var(--font-body); color: #aab0b8; }
@media (max-width: 720px) {
  .hero__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .86) 0, rgba(0, 0, 0, .55) 100%); }
  .hero__lines ul { grid-template-columns: 1fr; }
  .hero__lines li + li a { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
}

/* ---------- Заголовок внутрішньої сторінки ---------- */

.pagehead { background: var(--stage); color: var(--white); }
.pagehead__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(48px, 7vw, 96px); }
.pagehead h1 { font-size: clamp(2rem, 5vw, 4rem); }
.pagehead .lead { margin-top: 22px; color: #dfe3e8; }
.pagehead__img { clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
.pagehead__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crumbs { margin-bottom: 20px; font-size: .92rem; color: #aab0b8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--light); }
@media (max-width: 820px) { .pagehead__grid { grid-template-columns: 1fr; } }

/* ---------- Секції ---------- */

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--stage { background: var(--stage); color: var(--white); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 56px); }
.section__head p { max-width: 34em; }

/* Напрямки на головній */
.lines { border-top: 2px solid var(--ink); }
.line { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 64px); padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--rule); align-items: center; }
.line__img { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.line__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.line h3 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
.line h3 a { text-decoration: none; }
.line h3 a:hover { color: var(--beam); }
.line p { margin-top: 14px; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags a, .tags span { padding: 7px 13px; background: var(--paper); font-size: .92rem; text-decoration: none; }
.section--white .tags a:hover { background: var(--light); }
@media (max-width: 760px) { .line { grid-template-columns: 1fr; } }

/* Роботи */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); }
.work { grid-column: span 4; }
.work__img { background: #dfe3e8; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.work__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; font-weight: 600; line-height: 1.35; }
.work figcaption span { flex: none; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.section--stage .work figcaption span { color: #aab0b8; }
.work[hidden] { display: none; }
@media (max-width: 900px) { .work { grid-column: span 6; } }
@media (max-width: 440px) { .work { grid-column: span 12; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filters button {
  min-height: 44px; padding: 8px 18px; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font: 500 1rem var(--font-body);
}
.filters button:hover { background: var(--rule); }
.filters button[aria-pressed="true"] { background: var(--stage); color: var(--light); }

/* Кроки роботи — це справді послідовність, тому нумерація */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--light); }
.steps li::before { content: counter(step); display: block; font: 800 2.4rem/1 var(--font-display); color: var(--light); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: #c9ced5; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Перелік послуг на внутрішніх сторінках */
.services { border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(16px, 3vw, 48px); padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.service h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.service dl { margin: 0; font-size: .95rem; }
.service dt { color: var(--ink-soft); }
.service dd { margin: 0 0 10px; font-weight: 600; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 12px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.split__img { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 + p { margin-top: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; }
.jump a { padding: 8px 14px; background: var(--paper); text-decoration: none; font-size: .95rem; }
.jump a:hover { background: var(--light); }

.checks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 9px; border-left: 3px solid var(--beam); border-bottom: 3px solid var(--beam); transform: rotate(-45deg); }
.section--stage .checks li { border-bottom-color: var(--rule-dark); }

.specs { width: 100%; border-collapse: collapse; font-size: .97rem; }
.specs th, .specs td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs thead th { font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.specs tbody th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.table-scroll .specs { min-width: 640px; }

/* ---------- Заявка ---------- */

.quote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); }
.quote__phones { margin-top: 28px; }
.quote__phones a { display: block; font: 700 clamp(1.25rem, 2.6vw, 1.9rem)/1.5 var(--font-display); text-decoration: none; }
.quote__phones a:hover { color: var(--light); }
.on-paper .quote__phones a:hover { color: var(--beam); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
@media (max-width: 820px) { .quote { grid-template-columns: 1fr; } }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input,
.form select,
.form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 0;
}
.on-paper .form input, .on-paper .form select, .on-paper .form textarea { border-color: var(--rule); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--beam); }
.form__note { font-size: .9rem; color: #aab0b8; }
.on-paper .form__note { color: var(--ink-soft); }
.form__status { padding: 14px 16px; background: var(--light); color: var(--stage); font-weight: 600; }
.form__status[hidden] { display: none; }

/* ---------- Підвал ---------- */

.footer { background: var(--stage); color: #c9ced5; border-top: 1px solid var(--rule-dark); padding-block: 48px 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer img { height: 84px; width: auto; mix-blend-mode: lighten; }
.footer h3 { font: 600 1rem var(--font-body); color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--light); }
.footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule-dark); color: #8b919a; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

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