/* AstraMedia.kz */
:root {
  --bg: #0C0D10;
  --surface: #16181D;
  --line: #23252B;
  --line-2: #3A3D45;
  --text: #F3F1EC;
  --text-2: #C9CBD0;
  --muted: #A3A6AD;
  --accent: #FF5A36;
  --light: #F3F1EC;
  --radius: 20px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section--light { background: var(--light); color: var(--bg); border-top: 0; }
.section--light a { color: var(--bg); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 16px; border-radius: 8px; }

.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.01em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; }
.lead { font-size: 19px; color: var(--text-2); max-width: 620px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker--accent { color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 48px; }
.section-head p { max-width: 440px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--bg) !important; font-weight: 700; font-family: inherit; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(12, 13, 16, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo .muted { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--text-2); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.burger { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 1100px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: 88px 0 96px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__media { flex: 1 1 440px; min-width: 0; }
.viewfinder { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.viewfinder .vf-corner { position: absolute; width: 32px; height: 32px; border-color: var(--text); border-style: solid; border-width: 0; z-index: 2; }
.vf-tl { top: 20px; left: 20px; border-top-width: 2px !important; border-left-width: 2px !important; }
.vf-tr { top: 20px; right: 20px; border-top-width: 2px !important; border-right-width: 2px !important; }
.vf-bl { bottom: 20px; left: 20px; border-bottom-width: 2px !important; border-left-width: 2px !important; }
.vf-br { bottom: 20px; right: 20px; border-bottom-width: 2px !important; border-right-width: 2px !important; }
.vf-rec { position: absolute; z-index: 2; top: 28px; left: 64px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vf-rec .dot { animation: blink 1.6s infinite; }
.vf-label { position: absolute; z-index: 2; top: 28px; right: 64px; font-size: 13px; color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vf-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 15px; text-align: center; padding: 24px; }
.viewfinder button.work__thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vf-rec .dot { animation: none; } html { scroll-behavior: auto; } }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; }
.page-hero .lead { margin-top: 20px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.card__num { font-family: var(--display); font-size: 14px; color: var(--accent); }
.card ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 12px 22px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 700; }
.chip--solid { background: var(--bg); color: var(--light); border-color: var(--bg); }

/* Features (broadcast) */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 380px; min-width: 0; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.feature b { font-size: 18px; }
.feature span { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid var(--line-2); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps li:first-child { border-top-color: var(--accent); }
.steps .n { font-family: var(--display); font-size: 28px; font-weight: 700; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); }

/* Works */
.works { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.work { display: flex; flex-direction: column; gap: 16px; }
.work[hidden] { display: none; }
.work__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work__thumb:hover img { transform: scale(1.04); }
.work__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s; }
.work__thumb:hover .work__play { transform: scale(1.08); }
.work__meta { display: flex; flex-direction: column; gap: 6px; }
.work__meta h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.35; }
.work__client { color: var(--text-2); font-weight: 700; font-size: 15px; }
.work__desc { color: var(--muted); font-size: 15px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }

/* Clients */
.clients { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.client { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.client__logo { height: 120px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px 24px; }
.client__logo img { max-width: 100%; max-height: 88px; object-fit: contain; }
.client h3 { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.35; }
.client p { color: var(--text-2); font-size: 15px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.logos .client__logo { height: 96px; }
.logos .client__logo img { max-height: 64px; }

/* CTA band */
.cta { background: var(--accent); color: var(--bg); border-radius: var(--radius); padding: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta .h2 { max-width: 640px; }
.cta .btn { background: var(--bg); color: var(--text) !important; }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field--full { grid-column: 1 / -1; }
.input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; font-size: 16px; width: 100%; }
textarea.input { padding: 12px 14px; resize: vertical; min-height: 110px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { grid-column: 1 / -1; }
.contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contact-list .big { font-weight: 700; font-size: 26px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer__grid p { margin-top: 12px; font-size: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__links a { color: var(--text-2); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 30; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.modal__box { position: relative; width: min(1100px, 100%); }
.modal__video { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.modal__video iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .card, .form { padding: 24px; }
  .cta { padding: 32px; }
  .works { grid-template-columns: 1fr; }
}
[id]{scroll-margin-top:90px}
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
