/* ALTÆRA MEDIA — сайт. Тёмный, фиолетовый акцент, тяжёлые заголовки. Без внешних шрифтов и скриптов. */
:root {
  --bg: #08070d; --card: #12101b; --line: #2a2540; --text: #f4f2fb; --muted: #a39fbb;
  --violet: #9b6bff; --violet2: #b996ff; --cyan: #5fe1ee;
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 600px at 80% -5%, rgba(155, 107, 255, .18), transparent 60%), radial-gradient(700px 500px at -10% 40%, rgba(95, 225, 238, .06), transparent 60%); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
main, .nav, .foot, .copy { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 18px 0; background: rgba(8, 7, 13, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b { font-family: var(--display); font-weight: 900; letter-spacing: .02em; font-size: 18px; }
.mk { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; font-style: italic; letter-spacing: -.08em; }
.links { margin-left: auto; display: flex; gap: 34px; }
.links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.links a:hover { color: var(--violet2); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(180deg, #a87dff, #8a5bff); color: #fff; box-shadow: 0 10px 30px -10px rgba(155, 107, 255, .7); }
.btn.ghost { border-color: #d9d4ee; color: var(--text); }
.btn.tg { background: var(--violet); color: #fff; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.soon { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #2b2740; color: #cfc8ee; }
.soon.big { font-size: 13px; padding: 6px 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kicker { color: var(--violet2); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 0 0 14px; }

/* первый экран */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px 0 46px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.lead { font-size: 20px; color: #dcd8ea; margin: 20px 0 26px; max-width: 30ch; }
.hint { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.hero-art { position: relative; min-height: 360px; }
.screen { margin: 0; position: relative; z-index: 2; border-radius: 16px; overflow: hidden; border: 1px solid #3a3358; background: #0e0c16; box-shadow: 0 30px 80px -20px rgba(155, 107, 255, .45), 0 0 0 6px rgba(155, 107, 255, .06); transform: perspective(1400px) rotateY(-6deg); }
.screen .dots { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #241f36; font-size: 12px; }
.screen .dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .screen .dots i:nth-child(2) { background: #febc2e; } .screen .dots i:nth-child(3) { background: #28c840; }
.screen .dots b { margin-left: 8px; letter-spacing: .06em; font-size: 11px; }
.logo3d { position: absolute; z-index: 3; right: -26px; top: -54px; width: 170px; mix-blend-mode: screen; filter: drop-shadow(0 0 30px rgba(155, 107, 255, .5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* поток */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 6%; border-top: 1px solid #3a3358; border-bottom: 1px solid #3a3358; }
.flow span { font-weight: 800; font-size: clamp(18px, 2.2vw, 26px); }
.flow i { font-style: normal; color: var(--violet); font-size: 28px; }

/* блоки */
.block { padding: 72px 0 0; }
.block h2 { font-size: clamp(32px, 4.4vw, 54px); }
.sub { font-size: 20px; margin: 12px 0 30px; color: #dcd8ea; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid #4a3f74; text-decoration: none; aspect-ratio: 1.18; background: #120f1c; isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s ease; z-index: -1; }
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(8, 7, 13, .7) 62%, rgba(8, 7, 13, .96)); }
.card:hover img { transform: scale(1.04); }
.card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.card h3 { font-size: clamp(26px, 3.4vw, 42px); }
.card p { margin: 8px 0 14px; font-size: 18px; color: #e8e4f4; }
.card span { color: var(--violet2); font-weight: 800; font-size: 18px; }
.card.red:hover { border-color: #ff4a5a; } .card.violet:hover { border-color: var(--violet); } .card.green:hover { border-color: #49e36a; } .card.amber:hover { border-color: #ffb648; }

.os { display: grid; }
.os > div { padding: 40px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(155, 107, 255, .12), rgba(18, 16, 27, .9) 55%); }
.os h2 { max-width: 18ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.ticks li { padding-left: 26px; position: relative; color: #dcd8ea; }
.ticks li::before { content: '✦'; position: absolute; left: 0; color: var(--cyan); }
.ticks b { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tile i { font-style: normal; font-size: 24px; color: var(--violet2); }
.tile h3 { font-size: 17px; margin: 14px 0 8px; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.house-text { padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 74, 90, .35); background: linear-gradient(140deg, rgba(255, 74, 90, .10), rgba(18, 16, 27, .9) 55%); }
.house-text > p { color: #dcd8ea; max-width: 70ch; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.prices div { padding: 16px; border-radius: 14px; background: rgba(8, 7, 13, .6); border: 1px solid var(--line); }
.prices small { color: var(--muted); display: block; font-size: 13px; }
.prices b { font-family: var(--display); font-size: 26px; display: block; margin: 4px 0; font-variant-numeric: tabular-nums; }
.prices span { color: var(--muted); font-size: 14px; }

.about p { font-size: 20px; color: #dcd8ea; max-width: 62ch; margin: 18px 0 0; }

/* подвал */
.foot { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-top: 80px; padding: 30px 0; border-top: 1px solid #3a3358; }
.foot p { margin: 0; font-size: 18px; }
.contact { color: var(--violet2); font-weight: 800; font-size: 20px; text-decoration: none; }
.copy { color: #6f6a88; font-size: 13px; padding-bottom: 30px; margin-top: 0; }

/* телефон */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .links { display: none; }
  .nav { gap: 12px; } .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 30px; }
  .hero-art { min-height: 0; }
  .screen { transform: none; }
  .logo3d { width: 110px; right: -6px; top: -40px; }
  .flow { padding: 18px 0; } .flow i { font-size: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 1.05; }
  .ticks, .prices { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .os > div, .house-text { padding: 26px 20px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } .flow span { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .logo3d { animation: none; } html { scroll-behavior: auto; } }

/* ===== живой макет ОС в первом экране (по макету) ===== */
.hero-art { padding: 30px 70px 30px 0; }
.logo3d { right: -40px; top: -20px; width: 210px; }
.screen.live { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); background: linear-gradient(180deg, #14111f, #0c0a14); animation: screenIn 1s cubic-bezier(.2,.8,.2,1) both; }
.screen.live .dots { gap: 6px; padding: 10px 14px; }
.screen.live .dots .mk { margin-left: 10px; font-weight: 900; color: #fff; font-size: 14px; }
.screen.live .dots b { margin-left: 4px; }
.screen.live .dots em { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.screen.live svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen.live .dots em svg { color: #b9b3d3; }
.ava { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #9b6bff, #4fd8e8); }
.os-body { display: grid; grid-template-columns: 36px 1.25fr 1fr; grid-template-rows: auto auto auto; gap: 10px; padding: 12px 14px 16px 10px; font-size: 10.5px; color: #d9d4ee; }
.os-rail { grid-row: 1 / 4; display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 2px; }
.os-rail i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #a49dc4; }
.os-rail i.on { background: linear-gradient(145deg, #9b6bff, #6b45d8); color: #fff; box-shadow: 0 6px 16px -6px #9b6bff; }
.os-rail svg { width: 15px !important; height: 15px !important; }
.os-card { position: relative; border-radius: 10px; background: #1a1628; border: 1px solid #2a2440; padding: 9px 10px; overflow: hidden; }
.os-card small { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: #cfc9e6; }
.os-card.map { grid-column: 2; grid-row: 1 / 3; min-height: 120px; background: #110e1b; }
.streets { position: absolute; inset: 22px 0 0; width: 100%; height: calc(100% - 22px); }
.streets path { fill: none; stroke: #2c2645; stroke-width: 1.2; }
.streets .river { stroke: #2b3f66; stroke-width: 4; opacity: .6; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #b48cff; box-shadow: 0 0 10px #9b6bff; animation: pin 2.4s ease-in-out infinite; }
.pin:nth-of-type(2) { animation-delay: .6s; } .pin:nth-of-type(3) { animation-delay: 1.2s; }
.pin::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #9b6bff; animation: ping 2.4s ease-out infinite; animation-delay: inherit; }
.os-card.angel { grid-column: 3; grid-row: 1; min-height: 62px; }
.os-card.angel small svg { color: #b48cff; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; margin: 4px 26px 2px 0; }
.wave span { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(180deg, #c7a8ff, #7b55e8); animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(odd) { animation-duration: .9s; } .wave span:nth-child(3n) { animation-delay: .2s; } .wave span:nth-child(4n) { animation-delay: .4s; } .wave span:nth-child(5n) { animation-delay: .1s; }
.os-card em { font-style: normal; font-size: 9px; color: #9a93b8; }
.play { position: absolute; right: 9px; top: 26px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #2c2645; font-size: 8px; }
.os-card.player { grid-column: 3; grid-row: 2; display: grid; grid-template-columns: 34px 1fr; gap: 3px 8px; align-items: center; }
.cover { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 7px; background: radial-gradient(circle at 40% 35%, #c9b4ff, #5b3bb8 55%, #1a1230); }
.player b { font-size: 10px; } .player small { font-size: 8.5px; color: #9a93b8; font-weight: 400; }
.ctl { grid-column: 2; font-size: 8px; color: #cfc9e6; letter-spacing: 6px; } .ctl span { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2c2645; letter-spacing: 0; }
.bar { grid-column: 1 / 3; height: 3px; border-radius: 2px; background: #2c2645; overflow: hidden; } .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #9b6bff, #c7a8ff); animation: prog 9s linear infinite; }
.os-card.cal { grid-column: 2; grid-row: 3; }
.cal small span { margin-left: auto; color: #9a93b8; font-weight: 400; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; text-align: center; font-size: 8.5px; }
.days i { font-style: normal; color: #8a84a6; } .days b { font-weight: 500; padding: 3px 0; border-radius: 5px; }
.days b.on { background: #9b6bff; color: #fff; box-shadow: 0 0 10px -2px #9b6bff; animation: day 3s ease-in-out infinite; }
.os-card.proj { grid-column: 3; grid-row: 3; }
.proj p { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; padding: 4px 6px; border-radius: 6px; background: #221d34; font-size: 8.5px; }
.proj p span { margin-left: auto; color: #8a84a6; }
.concept { position: absolute; right: 12px; bottom: -11px; display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 10px; background: #0e0c16; border: 1px solid #3a3358; color: #cfc9e6; }
.screen.live { overflow: visible; } .screen.live .os-body { border-radius: 0 0 16px 16px; overflow: hidden; }
@keyframes wave { 0%,100% { height: 25%; } 50% { height: 100%; } }
@keyframes pin { 0%,100% { transform: rotate(-45deg) translate(0,0); } 50% { transform: rotate(-45deg) translate(2px,-2px); } }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes prog { from { width: 0; } to { width: 100%; } }
@keyframes day { 0%,100% { filter: none; } 50% { filter: brightness(1.3); } }
@keyframes screenIn { from { opacity: 0; transform: perspective(1400px) rotateY(-16deg) translateY(24px); } }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.cards.rv .card { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.cards.rv.in .card { opacity: 1; transform: none; }
.cards.rv.in .card:nth-child(2) { transition-delay: .1s; } .cards.rv.in .card:nth-child(3) { transition-delay: .2s; } .cards.rv.in .card:nth-child(4) { transition-delay: .3s; }
.card:hover { box-shadow: 0 24px 60px -24px rgba(155, 107, 255, .55); }
.card span { display: inline-block; transition: transform .25s; } .card:hover span { transform: translateX(4px); }
.flow i { display: inline-block; animation: arrow 2s ease-in-out infinite; } .flow i:nth-of-type(2) { animation-delay: .3s; } .flow i:nth-of-type(3) { animation-delay: .6s; }
@keyframes arrow { 0%,100% { transform: translateX(0); opacity: .7; } 50% { transform: translateX(6px); opacity: 1; } }
@media (max-width: 900px) {
  .hero-art { padding: 10px 0 20px; }
  .logo3d { width: 120px; right: -8px; top: -46px; }
  .os-body { grid-template-columns: 30px 1.2fr 1fr; gap: 7px; padding: 10px 8px 14px 6px; }
  .os-rail i { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .rv, .cards.rv .card { opacity: 1; transform: none; transition: none; } .wave span, .pin, .pin::after, .bar i, .days b.on, .flow i, .screen.live { animation: none; } }
.screen.live .streets { width: 100%; height: calc(100% - 22px); }
.pin::after { inset: -4px; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (min-width: 901px) {
  .hero { grid-template-columns: 1fr 1.05fr; }
  .hero-art { padding: 40px 150px 30px 0; }
  .logo3d { right: -10px; top: 50%; margin-top: -120px; width: 220px; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%); mask-image: radial-gradient(circle, #000 52%, transparent 72%); }
}
@media (max-width: 900px) { .logo3d { width: 96px; top: -58px; right: 0; -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 72%); mask-image: radial-gradient(circle, #000 50%, transparent 72%); } }
@media (min-width: 901px) { .logo3d { right: -60px; } }
@media (max-width: 900px) { .hero-art { margin-top: 26px; } .logo3d { top: -48px; } }
