/* MG Ajans – site stilleri */
:root {
  --navy-900: #050f22;
  --navy: #0c2440;
  --navy-700: #12345c;
  --blue: #1880c8;
  --blue-600: #1270b0;
  --sky: #5ab8f2;
  --ice: #cfe9ff;
  --paper: #f3f6fa;
  --ink: #0b1b30;
  --muted: #56667b;
  --line: #d9e2ec;
  --green: #22c770;
  --amber: #f0a92e;
  --gray: #8e9aab;
  --r: 14px;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: #fff; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--head);
  color: #fff; background: var(--blue); border: 0; border-radius: 999px; padding: 14px 24px; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-600); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost-dark { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost-dark:hover { background: var(--paper); }
.btn-wa { background: #1fa855; margin-top: 8px; }
.btn-wa:hover { background: #188f47; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--blue); }
.top-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { display: flex; align-items: center; gap: 8px; color: var(--navy); font: 600 16px var(--head); text-decoration: none; white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; fill: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 12px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(24,128,200,.45), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy) 60%, var(--navy-900)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(118deg, transparent 0 46px, var(--sky) 46px 47px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ice);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: 22px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,199,112,.55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(34,199,112,0); } }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; max-width: 13ch; }
.hero-text { font-size: 19px; color: #c9d8ea; max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: flex; gap: 40px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts dt { font: 600 30px/1 var(--head); color: #fff; }
.hero-facts dd { margin: 6px 0 0; color: #9fb4cc; font-size: 15px; }

/* totem – the signature element */
.totem { position: relative; justify-self: center; width: min(340px, 78vw); display: flex; flex-direction: column; align-items: center; }
.totem-glow { position: absolute; inset: 6% -18% 18%; background: radial-gradient(closest-side, rgba(90,184,242,.55), transparent); filter: blur(30px); }
.totem-body { position: relative; width: 100%; background: linear-gradient(160deg, #1a2333, #070b12 55%); border-radius: 22px; padding: 12px 12px 0;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); }
.totem-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.totem-screen video { width: 100%; height: 100%; object-fit: cover; }
.totem-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 38%); pointer-events: none; }
.totem-chin { height: 74px; display: grid; place-items: center; }
.totem-chin img { opacity: .55; width: 90px; height: auto; }
.totem-base { width: 64%; height: 18px; margin-top: -2px; background: linear-gradient(#121a27, #05080d); border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 30px -12px rgba(0,0,0,.8); }

/* ---------- sections */
.sec { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 18px; }

/* board: directory-sign styled area list */
.board-sec { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.chip { font: 500 15px var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-on span { color: var(--sky); }
.only-free { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 15px; color: var(--muted); cursor: pointer; }
.only-free input { width: 18px; height: 18px; accent-color: var(--green); }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area[hidden] { display: none; }
.area-link { display: block; height: 100%; text-decoration: none; color: inherit; background: var(--navy); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 rgba(12,36,64,.05); transition: transform .25s, box-shadow .25s; }
.area-link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(12,36,64,.55); }
.area-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-700); }
.area-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.area-link:hover .area-img img { transform: scale(1.04); }
.area-sign { padding: 16px 18px 18px; color: #fff; border-top: 3px solid var(--blue); }
.area-sign h3 { font-size: 19px; margin: 8px 0 4px; }
.area-sign p { margin: 0; color: #9fb4cc; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--head); }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); }
.s-musait { color: #6ee7a6; } .s-musait i { background: var(--green); box-shadow: 0 0 10px 1px rgba(34,199,112,.7); }
.s-rezerve { color: #ffd38a; } .s-rezerve i { background: var(--amber); }
.s-kirada { color: #b9c4d2; } .s-kirada i { background: var(--gray); }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 22px; color: var(--muted); }

/* video */
.video-sec { background: var(--navy); color: #fff; }
.video-in { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.video-frame { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-copy p { color: #c9d8ea; font-size: 18px; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid rgba(255,255,255,.1); color: #e3edf8; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg); }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding: 28px 0 0; border-top: 3px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; top: -22px; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: #fff; font: 600 18px/40px var(--head); text-align: center; box-shadow: 0 0 0 6px #fff; }
.steps li:first-child { border-top-color: var(--blue); }
.steps p { color: var(--muted); }

/* why */
.why-sec { background: var(--paper); }
.why-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.why-list > div { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.why-list > div:last-child { border-bottom: 0; margin-bottom: 0; }
.why-list p { color: var(--muted); margin: 0; }

/* faq */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.4 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* quote */
.quote-sec { background: linear-gradient(180deg, var(--paper), #fff); }
.quote-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-big { display: inline-block; font: 700 clamp(28px, 3.4vw, 38px) var(--head); color: var(--navy); text-decoration: none; margin: 8px 0 4px; }
.quote-box { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 24px 60px -30px rgba(12,36,64,.35), 0 0 0 1px var(--line); }
.quote label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.quote input, .quote select, .quote textarea { display: block; width: 100%; margin-top: 6px; font: 400 16px var(--body); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,128,200,.18); }
.quote .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.quote .opt { color: var(--muted); font-weight: 400; }
.quote .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; }
.quote .check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-err { background: #fdecec; color: #9b1c1c; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.form-done { display: flex; gap: 14px; align-items: flex-start; background: #e9f9f0; color: #11573a; border-radius: 12px; padding: 20px; }
.form-done svg { width: 28px; height: 28px; fill: var(--green); flex: none; }
.map iframe { width: 100%; height: 260px; border: 0; border-radius: 14px; margin-top: 24px; }

/* detail page */
.detail-top { padding: 28px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.g-main { border-radius: 18px; overflow: hidden; background: var(--paper); }
.g-main img { width: 100%; height: auto; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb { width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-on { border-color: var(--blue); }
.d-info { position: sticky; top: 100px; }
.d-info .status { background: var(--navy); padding: 7px 14px; border-radius: 999px; margin-bottom: 14px; }
.d-info h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.d-desc { color: var(--muted); font-size: 18px; }
.specs { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.board-3 { grid-template-columns: repeat(3, 1fr); }
.nf { text-align: left; min-height: 50vh; }

/* footer */
.footer { background: var(--navy-900); color: #b9c8da; padding: 64px 0 28px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.f-brand img { width: 190px; height: auto; margin-bottom: 14px; }
.f-h { font-size: 16px; color: #fff; margin-bottom: 14px; }
.f-list { list-style: none; padding: 0; margin: 0; }
.f-list li { margin-bottom: 8px; }
.f-list a { color: #b9c8da; text-decoration: none; }
.f-list a:hover { color: #fff; }
.f-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #7f91a8; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1fa855;
  display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(0,0,0,.45); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- responsive */
@media (max-width: 1040px) {
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .menu-btn { display: block; }
  .phone-link span { display: none; }
  .top-cta { margin-left: auto; }
  .board, .board-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .sec { padding: 68px 0; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 48px; }
  .hero-facts { gap: 26px; }
  .totem { width: min(300px, 74vw); }
  .video-in, .why-in, .faq-in, .quote-in, .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .video-frame { max-width: 360px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .d-info { position: static; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .only-free { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .topbar-in { height: 66px; gap: 12px; }
  .nav { inset: 66px 0 auto 0; }
  .brand img { width: 124px; }
  .top-cta .btn-sm { padding: 10px 14px; font-size: 14px; }
  .board, .board-3 { grid-template-columns: 1fr; }
  .quote .grid2 { grid-template-columns: 1fr; }
  .quote-box { padding: 22px 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts dt { font-size: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .only-free { flex: none; width: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
