/* corporatevideo.bg - вариант А (тъмен, червено като „NEO“ в логото), 22.11.2026 */
@font-face { font-family: 'Oswald'; font-weight: 400; font-display: swap; src: url(../font/oswald-400.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(../font/oswald-700.woff2) format('woff2'); }

:root {
  --bg: #0f1012;
  --bg2: #17191c;
  --card: #1d2024;
  --line: #2c3036;
  --text: #f1f2f4;
  --muted: #a6acb5;
  --accent: #e0393e;
  --accent-hover: #c92f34;
  --head: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --radius: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0; }
h1, h2 { text-transform: uppercase; letter-spacing: .01em; }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font: inherit; font-weight: 650; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: #fff; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: #fff; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* меню */
header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff; }
header.plain { position: static; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { text-decoration: none; line-height: 1; }
.logo b { display: block; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.logo b span { color: var(--accent); }
.logo small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 28px; font-size: 15px; }
nav.main a { text-decoration: none; }
nav.main a:not(.btn):hover { color: var(--accent); }
nav.main .btn { padding: 9px 16px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 8px; background: none; color: inherit; cursor: pointer; padding: 0; }
.burger i { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }

/* първи екран */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: #fff; }
.hero-media { position: absolute; inset: 0; background: #111; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 13, .92) 0%, rgba(10, 11, 13, .68) 50%, rgba(10, 11, 13, .3) 100%); }
.hero .wrap { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 110px; padding-bottom: 72px; }
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 18px; }
.hero .lead { font-size: 19px; margin: 0 0 28px; max-width: 620px; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; opacity: .92; }
.trust a { text-decoration: none; }
.trust a:hover { text-decoration: underline; }

/* раздели */
section.part { padding: 88px 0; }
section.alt { background: var(--bg2); }
.part h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.part .intro { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.card .ico { width: 46px; height: 46px; border-radius: 10px; background: rgba(224, 57, 62, .14); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* проекти */
/* 2 големи горе и 3 под тях - мрежа от 6 колони */
.proj { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 20px; }
.proj button { all: unset; display: block; cursor: pointer; border-radius: var(--radius); grid-column: span 2; }
.proj button:nth-child(-n+2) { grid-column: span 3; }
.proj button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.proj .th { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.proj .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.proj button:hover img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.play::before { content: ''; border-left: 16px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.proj h3 { font-size: 18px; margin: 12px 0 2px; }
.proj p { margin: 0; color: var(--muted); font-size: 14px; }

/* как работим */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.steps li::before { counter-increment: s; content: '0' counter(s); font-family: var(--head); font-size: 34px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* оферта и формата */
.offer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contacts { list-style: none; padding: 0; margin: 26px 0 0; }
.contacts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contacts li b { display: inline-block; min-width: 92px; color: var(--muted); font-weight: 500; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--accent); }
form.f { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.f label { font-size: 14px; color: var(--muted); display: block; }
form.f label .req { color: var(--accent); }
form.f .full { grid-column: 1 / -1; }
form.f input, form.f select, form.f textarea { width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #3a3f46; border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; }
form.f input:focus, form.f select:focus, form.f textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
form.f textarea { min-height: 110px; resize: vertical; }
form.f .note { font-size: 13px; color: var(--muted); margin: 0; }
form.f .note a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* видео прозорец */
dialog.video { width: min(1100px, 94vw); padding: 0; border: 0; background: #000; border-radius: var(--radius); overflow: visible; }
dialog.video::backdrop { background: rgba(0, 0, 0, .86); }
dialog.video .frame { position: relative; aspect-ratio: 16 / 9; }
dialog.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
dialog.video .close { position: absolute; right: 0; top: -46px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 26px; line-height: 40px; cursor: pointer; }

/* текстови страници */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; text-transform: none; }
.page p, .page li { color: #d5d8dd; }
.page a { color: var(--accent); }
.page .muted { color: var(--muted); }

footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* телефон */
@media (max-width: 860px) {
  .burger { display: block; }
  nav.main { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; }
  nav.main .btn { margin-top: 6px; padding: 12px; }
  .bar { height: 64px; position: relative; }
  .hero .lead { font-size: 17px; }
  .hero .wrap { padding-bottom: 48px; }
  .hero-media img { object-position: 62% center; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10, 11, 13, .95) 0%, rgba(10, 11, 13, .7) 55%, rgba(10, 11, 13, .35) 100%); }
  section.part { padding: 60px 0; }
  .grid4, .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .proj { grid-template-columns: 1fr; }
  .proj button, .proj button:nth-child(-n+2) { grid-column: auto; }
  .offer { grid-template-columns: 1fr; gap: 28px; }
  form.f { grid-template-columns: 1fr; padding: 20px; }
  .wrap { padding: 0 18px; }
  dialog.video .close { top: -48px; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .hero .btns .btn { flex: 1 1 auto; }
}
