* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: #FFFFF0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #0e1120;
    color-scheme: dark;
}

.navigation {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 20px 24px;
    background: rgba(25, 28, 40, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    min-height: 48px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFF0;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
    font-family: 'PT Sans', sans-serif;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(255, 224, 102, 0.15);
    border-color: rgba(255, 224, 102, 0.4);
    color: #FFFFF0;
}

.nav-tab.active {
    background: linear-gradient(135deg, #FFE066 0%, #FFD54F 100%);
    color: #21252e;
    border-color: #FFE066;
    box-shadow: 0 4px 15px rgba(255, 224, 102, 0.35);
}

.nav-tab .symbol {
    font-size: 22px;
    line-height: 1;
    font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", "Arial Unicode MS", serif;
    font-weight: 600;
    -webkit-text-stroke: 0.4px currentColor;
}

.nav-tab .tab-title {
    font-size: 16px;
    white-space: nowrap;
}

.content-container {
    position: relative;
    z-index: 10;
    padding-top: 150px;
    padding-bottom: 50px;
    min-height: 100vh;
}

.content-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    animation: fadeIn 0.25s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-content {
    background: rgba(25, 28, 40, 0.85);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 224, 102, 0.15);
    color: #FFFFF0;
}

.section-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 30px;
    color: #FFFFF0;
    text-align: center;
    font-weight: normal;
    letter-spacing: 2px;
}

.section-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 30px 0 15px 0;
    color: #FFFFF0;
    font-weight: normal;
}

.content-text {
    line-height: 1.8;
    font-size: 17px;
    color: #FFFFF0;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text ul {
    margin: 20px 0 20px 30px;
}

.content-text li {
    margin-bottom: 15px;
}

.services-list li {
    margin-bottom: 20px;
    line-height: 1.6;
}

.content-text strong {
    color: #FFFFF0;
    font-weight: 600;
}

.contact-info {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 224, 102, 0.1);
    border-radius: 10px;
    border-left: 4px solid #FFE066;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info .email-link {
    color: #FFFFF0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-info .email-link:hover {
    border-bottom-color: #FFE066;
    color: #FFE066;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 224, 102, 0.1);
    border: 2px solid #FFE066;
    border-radius: 12px;
    text-decoration: none;
    color: #FFFFF0;
    font-size: 16px;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 224, 102, 0.2);
    border-color: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 224, 102, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.availability {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 224, 102, 0.15);
    border-radius: 8px;
    text-align: center;
    font-style: italic;
    color: #FFFFF0;
}

/* Бургер-кнопка и overlay (скрыты на десктопе) */
.nav-burger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(25, 28, 40, 0.92);
    border: 2px solid #FFE066;
    border-radius: 12px;
    cursor: pointer;
    z-index: 150;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFF0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 120;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.open {
    display: block;
    opacity: 1;
}

/* Контролы (язык) в правом верхнем углу — на мобильном.
   На десктопе JS переносит кнопку внутрь .navigation. */
.top-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    z-index: 150;
}

.top-controls:empty {
    display: none;
}

/* Кнопка переключения языка */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    background: rgba(255, 224, 102, 0.1);
    border: 2px solid #FFE066;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFF0;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    font-family: 'PT Sans', sans-serif;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(255, 224, 102, 0.25);
    border-color: #FFD54F;
    box-shadow: 0 2px 10px rgba(255, 224, 102, 0.35);
}

/* Логика переключения языков */
.ru { display: none; }

body.lang-ru .ru { display: block; }
body.lang-ru .en { display: none; }

span.ru { display: none; }
body.lang-ru span.ru { display: inline; }
body.lang-ru span.en { display: none; }

/* =========================================
   ДИНАМИЧЕСКИЙ ФОН: ночное небо + созвездия знаков зодиака
   ========================================= */
#dynamic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(40, 52, 88, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(60, 40, 80, 0.45) 0%, transparent 55%),
        linear-gradient(180deg, #0e1120 0%, #151a2d 50%, #0b0e1a 100%);
}

/* Мелкие фоновые звёздочки (статичный звёздный ковёр) */
.starfield {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 27% 62%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 42% 38%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 57% 82%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 66% 14%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 76% 54%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 86% 32%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 16% 88%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 92% 76%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 36% 8%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1.2px 1.2px at 48% 48%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 6% 42%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1px 1px at 62% 70%, rgba(255, 255, 255, 0.55), transparent 60%);
    animation: starfieldTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starfieldTwinkle {
    0%   { opacity: 0.55; }
    100% { opacity: 0.9; }
}

/* Созвездия знаков зодиака */
.constellation {
    position: absolute;
    opacity: 0;
    animation: constellationCycle 80s ease-in-out infinite;
    will-change: opacity;
    overflow: visible;
}

.constellation circle {
    fill: #FFE066;
    filter: drop-shadow(0 0 2.5px #FFD54F);
}

.constellation circle.bright {
    fill: #FFF3B0;
    filter:
        drop-shadow(0 0 3px #FFE066)
        drop-shadow(0 0 8px rgba(255, 224, 102, 0.65));
}

.constellation line {
    stroke: rgba(255, 224, 102, 0.28);
    stroke-width: 0.55;
    stroke-linecap: round;
}

/* Цикл 80s (на 20% быстрее прежних 96s). Сдвиг между созвездиями = 80/12 ≈ 6.67s.
   Окно видимости ~25s — так в кадре обычно одновременно 3 созвездия. */
@keyframes constellationCycle {
    0%    { opacity: 0; }
    4%    { opacity: 1; }
    28%   { opacity: 1; }
    32%   { opacity: 0; }
    100%  { opacity: 0; }
}

/* Позиции и тайминг — desktop. Размеры увеличены на 50% относительно прежних. */
.constellation-aries       { top: 4%;  left: 2%;   width: 330px; animation-delay:  0s;    }
.constellation-taurus      { top: 6%;  right: 3%;  width: 360px; animation-delay:  6.67s; }
.constellation-gemini      { top: 30%; left: 1%;   width: 315px; animation-delay: 13.33s; }
.constellation-cancer      { top: 26%; right: 2%;  width: 270px; animation-delay: 20s;    }
.constellation-leo         { top: 56%; left: 2%;   width: 345px; animation-delay: 26.67s; }
.constellation-virgo       { top: 54%; right: 1%;  width: 330px; animation-delay: 33.33s; }
.constellation-libra       { top: 78%; left: 4%;   width: 255px; animation-delay: 40s;    }
.constellation-scorpio     { top: 76%; right: 3%;  width: 375px; animation-delay: 46.67s; }
.constellation-sagittarius { top: 10%; left: 28%;  width: 300px; animation-delay: 53.33s; }
.constellation-capricorn   { top: 14%; right: 25%; width: 285px; animation-delay: 60s;    }
.constellation-aquarius    { top: 68%; left: 28%;  width: 300px; animation-delay: 66.67s; }
.constellation-pisces      { top: 72%; right: 25%; width: 315px; animation-delay: 73.33s; }

@media (prefers-reduced-motion: reduce) {
    .constellation {
        animation: none;
        opacity: 0.35;
    }
    .starfield {
        animation: none;
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        padding: 80px 20px 24px 20px;
        border-radius: 0 20px 20px 0;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.55);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 130;
    }

    .navigation.open {
        transform: translateX(0);
    }

    .nav-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 16px;
    }

    .nav-tab .tab-title {
        font-size: 16px;
    }

    .top-controls {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .content-container {
        padding-top: 80px;
        padding-bottom: 32px;
    }

    .content-section {
        padding: 0 16px;
    }

    .section-content {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .section-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .section-content h2 {
        font-size: 22px;
        margin: 24px 0 12px 0;
    }

    .content-text {
        font-size: 16px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    .content-text ul {
        margin: 16px 0 16px 20px;
    }

    .contact-info {
        padding: 16px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .social-link {
        padding: 10px 16px;
        font-size: 15px;
    }

    /* Созвездия на мобильном — только там, где их будет видно: ниже карточки контента.
       Все top/left с десктопа сбрасываем и раскладываем по нижней трети вьюпорта. */
    .constellation {
        top: auto;
        left: auto;
        right: auto;
    }
    .constellation-aries       { bottom: 4vh;  left: 4%;   width: 225px; }
    .constellation-taurus      { bottom: 22vh; right: 4%;  width: 240px; }
    .constellation-gemini      { bottom: 12vh; left: 28%;  width: 195px; }
    .constellation-cancer      { bottom: 6vh;  right: 24%; width: 180px; }
    .constellation-leo         { bottom: 18vh; left: 6%;   width: 225px; }
    .constellation-virgo       { bottom: 28vh; left: 22%;  width: 210px; }
    .constellation-libra       { bottom: 2vh;  right: 6%;  width: 195px; }
    .constellation-scorpio     { bottom: 25vh; right: 14%; width: 240px; }
    .constellation-sagittarius { bottom: 9vh;  right: 4%;  width: 210px; }
    .constellation-capricorn   { bottom: 30vh; left: 8%;   width: 210px; }
    .constellation-aquarius    { bottom: 15vh; right: 28%; width: 195px; }
    .constellation-pisces      { bottom: 4vh;  left: 32%;  width: 180px; }
}

@media (max-width: 480px) {
    .nav-burger {
        top: 12px;
        left: 12px;
        width: 44px;
        height: 44px;
    }

    .navigation {
        width: 260px;
        padding: 72px 16px 20px 16px;
    }

    .content-container {
        padding-top: 72px;
    }

    .content-section {
        padding: 0 12px;
    }

    .section-content {
        padding: 20px 16px;
    }

    .section-content h1 {
        font-size: 24px;
    }

    .section-content h2 {
        font-size: 20px;
    }

    .content-text {
        font-size: 15px;
    }

    .nav-tab .tab-title {
        font-size: 15px;
    }

    .nav-tab .symbol {
        font-size: 20px;
    }

    .constellation-aries       { width: 195px; }
    .constellation-taurus      { width: 210px; }
    .constellation-gemini      { width: 175px; }
    .constellation-cancer      { width: 165px; }
    .constellation-leo         { width: 195px; }
    .constellation-virgo       { width: 190px; }
    .constellation-libra       { width: 175px; }
    .constellation-scorpio     { width: 210px; }
    .constellation-sagittarius { width: 180px; }
    .constellation-capricorn   { width: 180px; }
    .constellation-aquarius    { width: 175px; }
    .constellation-pisces      { width: 160px; }
}
