:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #2997ff; /* Apple Blue */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur-amount: 20px;
    --transition-speed: 0.3s;
    --muted-color: #9aa4b2;
    --soft-color: #d5d9e0;
    --dim-color: #97a3b4;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-link-color: #a9b1bf;
    --nav-link-hover: #ffffff;
    --mobile-nav-bg: rgba(0, 0, 0, 0.95);
    --mobile-nav-link-color: #ffffff;
    --liquid-start: #1a1a1a;
    --liquid-end: #000000;
    --title-grad-start: #ffffff;
    --title-grad-end: #aaaaaa;
    --map-bg: #111111;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    --btn-primary-bg: rgba(255, 255, 255, 0.1);
    --btn-primary-color: #ffffff;
    --btn-primary-border: 1px solid rgba(255, 255, 255, 0.3);
    --btn-primary-hover-bg: #ffffff;
    --btn-primary-hover-color: #000000;
    --btn-secondary-border: 1px solid rgba(255, 255, 255, 0.2);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-color: #666f7f;
    --logo-offset-y: 10px;
    --logo-scale: 1;
    --logo-object-position-y: 43.8%;
    --phone-color: #ffffff;
    --map-fallback-color: #cfd6e2;
    --map-fallback-border: rgba(255, 255, 255, 0.24);
}

body[data-theme='light'] {
    --bg-color: #eef3fb;
    --text-color: #111827;
    --accent-color: #1466e6;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(15, 23, 42, 0.16);
    --muted-color: #4e5b6d;
    --soft-color: #2f3b4d;
    --dim-color: #596a7f;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-link-color: #394557;
    --nav-link-hover: #111827;
    --mobile-nav-bg: rgba(241, 246, 255, 0.97);
    --mobile-nav-link-color: #111827;
    --liquid-start: #f7f9ff;
    --liquid-end: #e5edf8;
    --title-grad-start: #111827;
    --title-grad-end: #425068;
    --map-bg: #d7e2f2;
    --card-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    --card-hover-shadow: 0 15px 34px rgba(15, 23, 42, 0.16);
    --btn-primary-bg: #111827;
    --btn-primary-color: #ffffff;
    --btn-primary-border: 1px solid #111827;
    --btn-primary-hover-bg: #1f2937;
    --btn-primary-hover-color: #ffffff;
    --btn-secondary-border: 1px solid rgba(15, 23, 42, 0.24);
    --btn-secondary-hover-bg: rgba(15, 23, 42, 0.08);
    --footer-color: #4d5b6f;
    --logo-offset-y: 12px;
    --logo-scale: 1.052;
    --logo-object-position-y: 45.0%;
    --phone-color: #111827;
    --map-fallback-color: #4f5f76;
    --map-fallback-border: rgba(15, 23, 42, 0.22);
}

html {
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.loading-state,
.error-msg {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.error-msg {
    color: #ffb3b3;
}

.noscript-warning {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    text-align: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Background Animation */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--liquid-start) 0%, var(--liquid-end) 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #0044ff;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #5500ff;
    bottom: -100px;
    right: -100px;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #00ccff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

body[data-theme='light'] .orb {
    opacity: 0.24;
}

body[data-theme='light'] .orb-1 {
    background: #7ea2ff;
}

body[data-theme='light'] .orb-2 {
    background: #9cb6ff;
}

body[data-theme='light'] .orb-3 {
    background: #7fd9ff;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glass Components */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: var(--btn-primary-border);
}

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: var(--btn-secondary-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--nav-link-hover);
}

.btn-telegram {
    background: #24A1DE;
    color: white;
    border: none;
}

.btn-telegram:hover {
    background: #1d8abf;
    box-shadow: 0 0 20px rgba(36, 161, 222, 0.4);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-image {
    width: 420px;
    height: 84px;
    object-fit: cover;
    object-position: center var(--logo-object-position-y);
    border-radius: 0;
    border: 0;
    flex-shrink: 0;
    display: block;
    transform: translateY(var(--logo-offset-y)) scale(var(--logo-scale));
    transform-origin: center center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--nav-link-hover);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: var(--btn-secondary-border);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.theme-toggle-icon {
    font-size: 16px;
    line-height: 1;
}

/* Sections */
.section {
    padding: 100px 0;
    scroll-margin-top: 88px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--title-grad-start) 0%, var(--title-grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* Animated in JS */
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 24px;
    color: var(--muted-color);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
}

.service-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-examples {
    margin-top: 0;
}

.btn-examples:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pricing-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.service-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.features-list li {
    padding: 8px 0;
    color: var(--soft-color);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Contacts */
.contacts-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

@media (min-width: 768px) {
    .contacts-wrapper {
        flex-direction: row;
    }
}

.contacts-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-container {
    flex: 1;
    min-height: 400px;
    background: var(--map-bg);
}

.map-widget-frame {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    display: block;
}

.address {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--soft-color);
}

.phone {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--phone-color);
}

.actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--footer-color);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget {
    margin-top: 20px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-link {
    color: #24A1DE;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #7ed7ff;
}

/* Legal page */
body.legal-page {
    min-height: 100vh;
}

.legal-nav .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-logo-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-main {
    padding: 132px 0 72px;
}

.legal-container {
    max-width: 1040px;
}

.legal-hero {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.legal-kicker {
    margin: 0 0 14px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.legal-lead {
    max-width: 760px;
    margin: 20px auto 0;
    color: var(--soft-color);
    font-size: 1.08rem;
}

.legal-note {
    max-width: 820px;
    margin: 28px auto 0;
    text-align: left;
}

.legal-note:hover,
.legal-card:hover {
    transform: none;
}

.legal-note p {
    margin: 0;
    color: var(--soft-color);
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px;
}

.legal-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.legal-toc a {
    text-decoration: none;
    color: var(--text-color);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(126, 215, 255, 0.45);
    background: rgba(126, 215, 255, 0.08);
}

.legal-section + .legal-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.legal-section p {
    margin: 0 0 14px;
    color: var(--soft-color);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-requisites {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.legal-requisites dt {
    color: var(--dim-color);
    font-weight: 600;
}

.legal-requisites dd {
    margin: 0;
    color: var(--soft-color);
}

.legal-requisites a {
    color: #7ed7ff;
}

.legal-footer {
    padding-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 20px;
    }

    .legal-main {
        padding-top: 120px;
    }

    .legal-card {
        padding: 28px;
    }

    .legal-toc {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 10px 0;
    }

    .logo {
        gap: 0;
    }

    .logo-image {
        width: 290px;
        height: 58px;
        transform: translateY(calc(var(--logo-offset-y) * 0.7)) scale(var(--logo-scale));
    }

    .section {
        padding: 72px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pricing-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 16px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.22));
    }

    .service-preview {
        aspect-ratio: 4 / 3;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        box-sizing: border-box;
        padding:
            calc(24px + env(safe-area-inset-top))
            24px
            calc(24px + env(safe-area-inset-bottom));
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 22px;
        color: var(--mobile-nav-link-color);
    }

    .theme-toggle {
        height: 36px;
        padding: 0 11px;
        gap: 6px;
        font-size: 13px;
    }

    .hero {
        height: auto;
        min-height: 92vh;
        padding: 110px 0 56px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        max-width: 34ch;
        margin: 0 auto 32px;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 40px;
    }

    .glass-card {
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }

    .contacts-info {
        padding: 26px;
    }

    .phone {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 28px;
        word-break: break-word;
    }

    .actions {
        gap: 12px;
    }

    .map-container {
        min-height: 260px;
    }

    .orb {
        opacity: 0.28;
        filter: blur(56px);
        animation-duration: 16s;
    }

    .orb-2 {
        display: none;
    }

    .legal-nav .nav-content {
        align-items: flex-start;
    }

    .legal-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .legal-hero {
        text-align: left;
    }

    .legal-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .legal-note {
        margin-left: 0;
        margin-right: 0;
    }

    .legal-requisites {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .legal-requisites dt {
        margin-top: 8px;
    }

    .legal-requisites dt:first-child {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.4px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero {
        min-height: 86vh;
        padding-top: 96px;
    }

    .btn-primary, .btn-secondary, .btn-telegram {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    .actions {
        flex-direction: column;
        gap: 15px;
    }

    .pricing-card {
        padding: 18px;
    }
    
    .service-price {
        font-size: 26px;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .section {
        padding: 60px 0;
    }

    /* Reduce animations for performance */
    .orb {
        animation-duration: 20s;
        filter: blur(60px);
    }

    .orb-3 {
        display: none;
    }

    .legal-main {
        padding: 118px 0 52px;
    }

    .legal-card {
        padding: 22px 18px;
    }

    .legal-hero h1 {
        font-size: 1.95rem;
    }

    .legal-lead {
        font-size: 1rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .footer-links {
        gap: 10px 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover img,
    .gallery-item:hover video {
        transform: none;
    }

    .glass-card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .orb {
        animation: none !important;
    }
}

/* Reviews */
.yandex-rating-badge {
    display: flex;
    justify-content: center;
    margin: -22px 0 28px;
}

.yandex-rating-badge__surface {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.yandex-rating-badge__label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--muted-color);
    white-space: nowrap;
}

.yandex-rating-badge__frame {
    width: 150px;
    height: 50px;
    border-radius: 11px;
    overflow: hidden;
    line-height: 0;
}

.yandex-rating-badge__frame iframe {
    display: block;
    width: 150px;
    height: 50px;
    border: 0;
}

.yandex-rating-badge__fallback-link {
    display: none;
    color: var(--soft-color);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    line-height: 1.2;
}

.yandex-rating-badge__fallback-link:hover {
    color: var(--text-color);
}

.yandex-rating-badge.is-fallback .yandex-rating-badge__frame {
    display: none !important;
}

.yandex-rating-badge.is-fallback .yandex-rating-badge__fallback-link {
    display: inline-block;
}

body[data-theme='light'] .yandex-rating-badge__surface {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .yandex-badge-dark {
    display: none;
}

body:not([data-theme='light']) .yandex-badge-light {
    display: none;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reviews-host {
    display: block;
}

.reviews-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.reviews-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.reviews-nav-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.reviews-nav-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.reviews-page-indicator {
    min-width: 48px;
    text-align: center;
    color: var(--muted-color);
    font-size: 14px;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #5500ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.author-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.stars {
    color: #ffd700;
    font-size: 14px;
    margin-top: 5px;
}

.review-date {
    font-size: 14px;
    color: var(--muted-color);
}

.review-text {
    font-size: 16px;
    color: var(--soft-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.review-photo-thumb {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.review-photo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.review-photo-thumb:hover img {
    transform: scale(1.04);
}

.review-photo-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.46);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.review-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.review-gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.review-gallery-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-gallery-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.review-gallery-close {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.review-gallery-viewer {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
    align-items: center;
}

.review-gallery-nav {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.review-gallery-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.review-gallery-image {
    width: 100%;
    height: min(62vh, 560px);
    object-fit: contain;
    border-radius: 14px;
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.review-gallery-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-gallery-counter {
    color: #bdbdbd;
    font-size: 14px;
}

.review-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    max-height: 140px;
    overflow: auto;
    padding-right: 4px;
}

.review-gallery-thumb {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.review-gallery-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.review-gallery-thumb.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(41, 151, 255, 0.45);
}

.review-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted-color);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.reviews-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reviews-more-btn,
.reviews-more-link {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-more-btn:hover,
.reviews-more-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.map-fallback {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--map-fallback-color);
    text-align: center;
    padding: 20px;
}

.map-fallback a {
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--map-fallback-border);
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 999px;
}

/* Gallery Description */
.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: white;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    color: var(--soft-color);
    line-height: 1.4;
}

.gallery-desc {
    font-size: 13px;
    color: var(--dim-color);
    margin-top: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.examples-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.examples-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.examples-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.examples-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.examples-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.examples-close {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.examples-viewer {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
    align-items: center;
}

.examples-nav {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.examples-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.examples-image {
    width: 100%;
    height: min(62vh, 560px);
    object-fit: contain;
    border-radius: 14px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.examples-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.examples-counter {
    color: #bdbdbd;
    font-size: 14px;
}

.examples-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    max-height: 150px;
    overflow: auto;
    padding-right: 4px;
}

.examples-thumb {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.examples-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.examples-thumb.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(41, 151, 255, 0.45);
}

.examples-empty {
    margin: 0;
    color: #bdbdbd;
    text-align: center;
    padding: 18px 0;
}

@media (max-width: 768px) {
    .yandex-rating-badge {
        margin: -10px 0 20px;
    }

    .yandex-rating-badge__surface {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .yandex-rating-badge__label {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .reviews-controls {
        justify-content: center;
    }

    .reviews-actions {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-more-btn,
    .reviews-more-link {
        width: 100%;
        text-align: center;
    }

    .review-text {
        font-size: 15px;
        line-height: 1.55;
    }

    .review-photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .review-gallery-modal {
        padding: 0;
    }

    .review-gallery-dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 14px;
        gap: 10px;
    }

    .review-gallery-title {
        font-size: 18px;
    }

    .review-gallery-viewer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .review-gallery-nav {
        display: none;
    }

    .review-gallery-image {
        height: min(58vh, 480px);
    }

    .review-gallery-thumbs {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(88px, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    .examples-modal {
        padding: 0;
    }

    .examples-dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 14px;
        gap: 10px;
    }

    .examples-title {
        font-size: 20px;
    }

    .examples-viewer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .examples-nav {
        display: none;
    }

    .examples-image {
        height: min(58vh, 460px);
    }

    .examples-thumbs {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(92px, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .review-photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-toggle-label {
        display: none;
    }

    .theme-toggle {
        padding: 0 10px;
        min-width: 38px;
        justify-content: center;
    }

    .gallery-desc {
        -webkit-line-clamp: 2;
    }
}

/* ===== Личный кабинет — drawer ===== */

/* Scroll lock when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Nav trigger button — matches .nav-links a style */
.nav-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-link-color);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    margin-left: 30px;
    line-height: inherit;
    transition: color 0.3s ease;
}

.nav-link-btn:hover {
    color: var(--nav-link-hover);
}

/* Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Drawer panel — slides in from right */
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: min(92vw, 460px);
    height: 100dvh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-panel.is-open {
    transform: translateX(0);
}

/* Drawer header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.01em;
}

.drawer-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-link-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer-close-btn:hover {
    background: var(--glass-bg);
    color: var(--text-color);
}

/* Drawer body */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.drawer-account-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    text-align: center;
    min-height: 200px;
}

/* Inner account states */
.account-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.account-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.account-login-hint,
.account-fallback,
.account-error {
    color: var(--muted-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.telegram-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

/* Primary action area: login button + open-bot link */
.tg-primary-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.telegram-start-btn {
    width: 100%;
}

.telegram-open-bot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 999px;
    border: var(--btn-secondary-border);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.telegram-open-bot-link:hover {
    background: var(--btn-secondary-hover-bg);
}

/* Command hint + code block */
.tg-command-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.telegram-command-hint {
    text-align: center;
    margin: 0;
}

.telegram-auth-code {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    box-sizing: border-box;
}

.telegram-auth-status {
    text-align: center;
    max-width: 340px;
    margin: 0;
}

/* Блок статуса подписки в личном кабинете */
.account-subscription {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-sizing: border-box;
}

.account-subscription--active {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.07);
}

.account-subscription--inactive {
    border-color: var(--glass-border);
    background: var(--glass-bg);
}

.subscription-status-line {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.subscription-status-badge {
    font-weight: 600;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.85rem;
}

.badge-active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.badge-inactive {
    color: var(--muted-color);
    background: rgba(128, 128, 128, 0.12);
}

.sub-plan-name {
    margin: 4px 0 2px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.sub-expires {
    margin: 2px 0 6px;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.sub-limit {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.sub-limit b {
    color: var(--text-color);
}

.account-courses {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.account-section-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-section-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim-color);
}

.account-section-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-color);
}

.account-courses-grid {
    display: grid;
    gap: 12px;
}

.account-course-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(41, 151, 255, 0.24);
    background: linear-gradient(180deg, rgba(41, 151, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-sizing: border-box;
}

body[data-theme='light'] .account-course-card {
    border-color: rgba(20, 102, 230, 0.18);
    background: linear-gradient(180deg, rgba(20, 102, 230, 0.08), rgba(255, 255, 255, 0.88));
}

.account-course-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-course-kicker {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.account-course-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-color);
}

.account-course-summary {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--soft-color);
}

.account-course-status {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted-color);
}

.account-course-action {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (min-width: 560px) {
    .account-course-card {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .account-course-copy {
        flex: 1;
    }

    .account-course-action {
        width: auto;
        min-width: 190px;
    }
}

@media (max-width: 768px) {
    .nav-link-btn {
        margin: 20px 0;
        font-size: 22px;
        color: var(--mobile-nav-link-color);
    }

    .drawer-panel {
        width: 100%;
        max-width: 100%;
        border-left: none;
    }

    .telegram-login-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .drawer-header {
        padding: 16px 18px;
    }

    .drawer-body {
        padding: 24px 18px;
    }

    .telegram-auth-code {
        font-size: 12px;
    }

    .tg-command-block {
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Раздел «Годовой абонемент»
   ═══════════════════════════════════════════════════════════ */

.subscription-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.subscription-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted-color);
    margin: 0 0 12px;
    font-weight: 400;
}

.subscription-description {
    font-size: 1rem;
    color: var(--soft-color);
    margin: 0 0 24px;
    line-height: 1.65;
}

.subscription-audience-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--muted-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subscription-tariffs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tariff-card--highlighted {
    border-color: var(--accent-color);
}

.tariff-card--highlighted:hover {
    border-color: var(--accent-color);
}

.tariff-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.tariff-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-color);
}

.tariff-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 20px;
    line-height: 1.2;
}

.tariff-price-current {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
}

.tariff-price-original {
    font-size: 0.95rem;
    color: var(--muted-color);
    text-decoration: line-through;
    opacity: 0.8;
}

.tariff-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.28);
    color: #ff6b6b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.tariff-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.93rem;
    color: var(--soft-color);
    line-height: 1.5;
}

.tariff-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.tariff-cta {
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Блок «Гарантия дождя» */
.rain-guarantee-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    max-width: 720px;
    margin: 0 auto;
}

.rain-guarantee-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.rain-guarantee-text {
    font-size: 0.92rem;
    color: var(--soft-color);
    line-height: 1.6;
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .subscription-tariffs {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .rain-guarantee-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tariff-price-current {
        font-size: 1.6rem;
    }

    .subscription-intro {
        margin-bottom: 32px;
    }
}

/* ─── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#admin-panel {
  display: none;
  padding: 2rem 1rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}
#admin-panel.visible { display: block; }

.admin-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  border-top: 3px solid var(--accent, #e53935);
}
.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent, #e53935);
}
.kpi-card .kpi-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
}

.admin-chart-section {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.admin-chart-section h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Simple bar chart (CSS-only, no external lib) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.bar-chart .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 28px;
  flex: 1;
}
.bar-chart .bar {
  background: var(--accent, #e53935);
  border-radius: 3px 3px 0 0;
  width: 100%;
  min-height: 2px;
  transition: height 0.3s;
}
.bar-chart .bar-label {
  font-size: 0.6rem;
  color: #999;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top right;
  margin-top: 2px;
}

.admin-section {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}
.admin-section h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.activity-feed {
  list-style: none;
  padding: 0; margin: 0;
  max-height: 280px;
  overflow-y: auto;
}
.activity-feed li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #444;
}
.activity-feed li:last-child { border-bottom: none; }
.activity-feed .af-action { font-weight: 600; }
.activity-feed .af-time   { font-size: 0.75rem; color: #999; float: right; }

.user-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.user-table th { background: #f5f5f5; padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; }
.user-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f0f0f0; }
.user-table .role-badge {
  font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 8px;
  background: #f0f0f0; color: #555;
}
.user-table .role-badge.admin      { background: #fff3e0; color: #e65100; }
.user-table .role-badge.superadmin { background: #fce4ec; color: #c62828; }

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .user-table th:nth-child(3),
  .user-table td:nth-child(3) { display: none; }
}
