/* === VisionAstro page styles === */

body:has(.astro-page) {
    background:
        radial-gradient(ellipse at 15% 2%, rgba(55, 32, 91, 0.4), transparent 45rem),
        radial-gradient(ellipse at 90% 10%, rgba(22, 70, 100, 0.27), transparent 42rem),
        #080b19;
}

.astro-page {
    --astro-line: rgba(179, 154, 255, 0.25);
}

.astro-page section[id] {
    scroll-margin-top: 100px;
}

/* === Hero === */
.astro-page .hero {
    position: relative;
    padding: clamp(76px, 10vw, 132px) 0 clamp(62px, 8vw, 98px);
    text-align: center;
}

.astro-page .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(36px, 7vw, 84px);
    text-align: left;
}

.astro-page h1 {
    font-size: clamp(2.55rem, 6vw, 5.7rem);
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.astro-brand {
    display: inline;
    font-size: 0.36em;
    letter-spacing: -0.025em;
    color: var(--violet);
    margin-right: 0.3em;
    vertical-align: baseline;
}

.astro-page .hero-copy .hero-kicker {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.astro-page .hero-lead {
    max-width: 780px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.8vw, 1.3rem);
    line-height: 1.75;
}

.astro-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    color: #d4d2e4;
    font-size: 0.8rem;
}

.astro-facts li::before {
    content: "·";
    color: var(--gold);
    font-weight: 900;
    margin-right: 8px;
}

.astro-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 32px;
}

.astro-page .hero-copy .astro-release,
.astro-release {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin-top: 18px;
    max-width: 600px;
}

.astro-page .hero-copy .astro-file-size,
.astro-file-size {
    color: #9cabc5;
    font-size: 0.78rem;
    margin-top: 8px;
}

/* === Hero visual — телефон внутри круга === */
.astro-page .hero-visual {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    min-height: 0;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.astro-page .hero-orbit {
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 30, 60, 0.6), rgba(10, 15, 35, 0.3));
    box-shadow: inset 0 0 80px rgba(93, 112, 255, 0.12);
    z-index: 1;
}

.astro-page .hero-orbit::before,
.astro-page .hero-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 28px currentColor;
    z-index: 3;
}

.astro-page .hero-orbit::before {
    width: 12px;
    height: 12px;
    top: 17%;
    right: 8%;
}

.astro-page .hero-orbit::after {
    width: 8px;
    height: 8px;
    left: 6%;
    bottom: 24%;
    color: var(--aqua);
    background: currentColor;
}

.astro-page .hero-device-calendar {
    position: relative;
    z-index: 2;
    width: 38%;
    flex: 0 0 38%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.21);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), 0 0 40px rgba(178, 2, 171, 0.18);
    transform: rotate(3deg);
}

.astro-page .hero-device-calendar img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 27px;
}

/* === Навигация по странице === */
.astro-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 25px;
    padding-block: 25px;
    border-block: 1px solid var(--line);
}

.astro-toc a {
    font-size: 0.87rem;
    color: var(--muted);
    text-decoration: none;
}

.astro-toc a:hover {
    color: var(--gold);
}

/* === Сетка «На каждый день» === */
.astro-day-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.astro-eyebrow {
    color: var(--violet);
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.astro-day-grid h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-top: 20px;
}

.astro-page .content-card p,
.astro-page .content-card li {
    line-height: 1.75;
}

.astro-page .section-heading .hero-kicker {
    color: var(--violet);
    font-size: 0.74rem;
    margin-bottom: 16px;
}

/* === Features === */
.astro-features .content-card {
    position: relative;
    padding-top: 30px;
}

.astro-number {
    display: block;
    color: var(--violet);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 17px;
}

.astro-features h3 {
    font-size: 1.48rem;
}

.astro-features ul {
    padding-left: 20px;
    margin-bottom: 0;
    font-size: 0.94rem;
}

.astro-features li + li {
    margin-top: 10px;
}

.astro-features li::marker,
.astro-access li::marker {
    color: var(--violet);
}

/* === Галерея === */
.astro-gallery-title {
    margin: 35px 0 22px;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.astro-gallery {
    display: grid;
    gap: 25px;
    margin-bottom: 45px;
}

.astro-gallery.phone {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.astro-gallery.tablet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.astro-gallery figure {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.astro-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 570px;
    border-radius: 22px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(40, 32, 60, 0.5), rgba(18, 21, 37, 0.38));
    border: 1px solid var(--line);
}

.astro-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.astro-gallery figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.83rem;
    text-align: center;
    line-height: 1.5;
}

.astro-gallery.tablet .astro-image-link {
    min-height: 200px;
}

.astro-more[open] {
    padding-bottom: 15px;
}

.astro-more .astro-gallery {
    padding: 20px;
}

/* === Темы оформления === */
.astro-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.astro-theme {
    background: #101526;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px 10px 17px;
    display: flex;
    flex-direction: column;
}

.astro-swatch {
    border-radius: 12px;
    height: 100px;
    background: linear-gradient(130deg, var(--theme-start), var(--theme-end));
    padding: 18px;
    position: relative;
}

.astro-swatch i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-accent);
    opacity: 0.9;
    margin-right: 5px;
}

.astro-swatch i:nth-child(2) {
    opacity: 0.6;
}

.astro-swatch i:nth-child(3) {
    opacity: 0.3;
}

.astro-swatch span {
    position: absolute;
    right: 22px;
    bottom: 12px;
    color: var(--theme-accent);
    font-size: 32px;
}

.astro-theme h3 {
    font-size: 1rem;
    margin: 17px 8px 8px;
}

.astro-theme p {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 8px 15px;
    line-height: 1.6;
}

.astro-tier {
    color: var(--violet);
    margin: auto 8px 0;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === Доступ (бесплатно / VIP) === */
.astro-access h3 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-top: 18px;
}

.astro-access ul {
    padding-left: 20px;
}

.astro-access li {
    margin-bottom: 12px;
}

.astro-access .astro-vip {
    border-color: rgba(255, 217, 106, 0.4);
    background: linear-gradient(140deg, #2c2544, #111529);
}

.astro-vip .astro-eyebrow {
    color: var(--gold);
}

.astro-access-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 930px;
    margin: 25px auto 0;
}

/* === «Единый расчёт» === */
.astro-basis {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 45px;
    align-items: center;
}

.astro-basis h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.astro-basis .section-heading {
    margin-bottom: 0;
}

.astro-page .notice {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.85;
}

/* === Панель загрузки === */
.astro-download-panel {
    background:
        radial-gradient(ellipse at 50% 0, rgba(88, 66, 123, 0.4), transparent 85%),
        #101627;
    border: 1px solid var(--astro-line);
    border-radius: 32px;
    padding: clamp(26px, 6vw, 70px);
    text-align: center;
}

.astro-download-panel h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.045em;
    margin: 10px 0 22px;
}

.astro-download-panel > p {
    max-width: 730px;
    margin-inline: auto;
    color: var(--muted);
}

.astro-download-panel .hero-kicker {
    color: var(--gold);
}

.astro-install-note {
    font-size: 0.77rem;
    line-height: 1.7;
    margin-top: 26px;
}

/* === Лайтбокс === */
.astro-lightbox {
    border: 1px solid var(--line);
    padding: 50px 20px 15px;
    border-radius: 18px;
    background: #0b1020;
    color: var(--text);
    max-width: 94vw;
    max-height: 94dvh;
    overflow: auto;
}

.astro-lightbox::backdrop {
    background: rgba(2, 4, 11, 0.92);
}

.astro-lightbox img {
    display: block;
    max-height: 74dvh;
    max-width: 87vw;
    margin: auto;
    width: auto;
    height: auto;
    object-fit: contain;
}

.astro-lightbox p {
    margin: 15px auto 0;
    text-align: center;
    font-size: 0.9rem;
}

.astro-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    font-size: 30px;
}

/* === Бейдж версии === */
.astro-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 12px 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 215, 0, 0.38);
    border-radius: 999px;
    color: #ffe77b;
    background: rgba(255, 215, 0, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.astro-version-badge span {
    color: var(--gold);
    font-size: 1rem;
}

/* === Адаптивность === */
@media (max-width: 1000px) {
    .astro-theme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .astro-day-grid {
        grid-template-columns: 1fr;
    }
    .astro-gallery.phone {
        gap: 14px;
    }
}

@media (max-width: 820px) {
    .astro-page .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .astro-page .hero-copy {
        margin-inline: auto;
    }
    .astro-page .hero-lead {
        margin-inline: auto;
    }
    .astro-page .hero-actions {
        justify-content: center;
    }



    .astro-facts {
        justify-content: center;
    }
    .astro-basis {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .astro-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .astro-theme h3 {
        font-size: 0.9rem;
    }
    .astro-gallery.phone {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }
    .astro-gallery.phone figure {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }
    .astro-gallery.tablet {
        grid-template-columns: 1fr;
    }
    .astro-gallery.tablet .astro-image-link {
        min-height: 0;
    }
    .astro-toc {
        gap: 10px 18px;
    }
    .astro-page .hero-actions {
        align-items: stretch;
    }
    .astro-features h3 {
        font-size: 1.35rem;
    }



}

@media (max-width: 700px) {
    .astro-version-badge {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }
}
/* VisionAstro 3.0: uncropped supplied screens and a separate tablet section. */
.astro-gallery-hint { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.astro-gallery.phone-landscape, .astro-gallery.tablet-landscape, .astro-gallery.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.astro-gallery.tablet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.astro-gallery.phone-landscape .astro-image-link, .astro-gallery.tablet-landscape .astro-image-link, .astro-gallery.overview .astro-image-link { min-height: 0; max-height: none; }
.astro-gallery.phone-landscape img, .astro-gallery.tablet-landscape img, .astro-gallery.overview img { max-height: none; }
.astro-image-link { transition: border-color .2s, background .2s; }
.astro-image-link:hover, .astro-image-link:focus-visible { border-color: var(--gold); background: rgba(85, 61, 133, .3); }
.astro-tablet-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(56, 42, 94, .15), transparent); }
.astro-lightbox img { max-height: 68dvh; }
.astro-lightbox-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.astro-lightbox-controls button { min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 12px; background: #191c35; color: var(--text); cursor: pointer; font: inherit; }
.astro-lightbox-controls button:hover, .astro-lightbox-controls button:focus-visible { border-color: var(--gold); }
html.astro-viewing { overflow: hidden; }
@media (max-width: 1000px) { .astro-gallery.tablet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .astro-gallery.phone-landscape, .astro-gallery.tablet-landscape, .astro-gallery.overview { grid-template-columns: minmax(0, 1fr); }
  .astro-gallery.tablet { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 14px; }
  .astro-gallery.tablet figure { flex: 0 0 84%; scroll-snap-align: center; }
  .astro-more .astro-gallery { padding-inline: 0; }
  .astro-lightbox { padding-inline: 10px; max-width: calc(100vw - 20px); }
  .astro-lightbox-controls button { font-size: .8rem; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .astro-image-link { transition: none; } }

/* Three views share one compact panel, without changing other galleries or the hero. */
.astro-gallery.phone-3d{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(40,32,60,.5),rgba(18,21,37,.38))}
.astro-gallery.phone-3d .astro-image-link{height:auto;max-height:none;min-height:0;border:0;padding:0;border-radius:0;background:none}
.astro-gallery.phone-3d img{width:100%;max-height:460px;object-fit:contain}
@media(max-width:620px){.astro-gallery.phone-3d{display:flex;gap:16px;padding:16px;overflow-x:auto;scroll-snap-type:x mandatory}.astro-gallery.phone-3d figure{flex:0 0 76%;scroll-snap-align:center}.astro-gallery.phone-3d img{max-height:430px}}
