/* ========================================
   Новый дизайн mashol.ru - Style
   Glassmorphism, Dark Theme, Modern UI
   ======================================== */

/* Подключение локальных шрифтов */
/* Manrope 300 - Кириллица */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-cyrillic-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Manrope 300 - Латиница */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope 500 - Кириллица */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-cyrillic-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Manrope 500 - Латиница */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope 800 - Кириллица */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-cyrillic-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Manrope 800 - Латиница */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #03070c;
    /* Цвет фона темной темы по умолчанию */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent, #00d2ff);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Dark Theme (Default) */
:root {
    --bg: #03070c;
    --accent: #00d2ff;
    --accent-end: #5046e5;
    --btn-text: #ffffff;
    --prism-1: rgba(0, 210, 255, 0.25);
    --prism-2: rgba(147, 51, 234, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-inset: rgba(255, 255, 255, 0.1);
    --glass-glow: linear-gradient(135deg, rgba(0, 210, 255, 0.3), rgba(147, 51, 234, 0.1), transparent 50%);
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --btn-gradient: linear-gradient(135deg, var(--accent), var(--accent-end));
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-placeholder: rgba(255, 255, 255, 0.4);
    --input-focus: rgba(255, 255, 255, 0.12);
    --faq-bg: rgba(255, 255, 255, 0.02);
    --dock-bg: rgba(255, 255, 255, 0.08);
    --dock-shadow: rgba(0, 0, 0, 0.5);
    --close-btn-bg: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(0, 210, 255, 0.3);
    --star-gold: #ffb800;
}

/* Light Theme Variables */
body.light-theme {
    --bg: #f8fafc;
    --accent: #0ea5e9;
    --accent-end: #6366f1;
    --btn-text: #ffffff;
    --prism-1: rgba(14, 165, 233, 0.15);
    --prism-2: rgba(99, 102, 241, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: rgba(0, 0, 0, 0.06);
    --glass-inset: rgba(255, 255, 255, 0.9);
    --glass-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.05), transparent 50%);
    --text: #0f172a;
    --text-dim: #334155;
    --text-muted: #64748b;
    --overlay-bg: rgba(0, 0, 0, 0.2);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-placeholder: rgba(0, 0, 0, 0.45);
    --input-focus: rgba(0, 0, 0, 0.05);
    --faq-bg: rgba(0, 0, 0, 0.02);
    --dock-bg: rgba(255, 255, 255, 0.7);
    --dock-shadow: rgba(0, 0, 0, 0.1);
    --close-btn-bg: rgba(0, 0, 0, 0.05);
    --accent-glow: rgba(14, 165, 233, 0.2);
    --star-gold: #ffb800;
}

/* Auto Theme detection */
@media (prefers-color-scheme: light) {
    body:not(.dark-theme) {
        --bg: #f8fafc;
        --accent: #0ea5e9;
        --accent-end: #6366f1;
        --btn-text: #ffffff;
        --prism-1: rgba(14, 165, 233, 0.15);
        --prism-2: rgba(99, 102, 241, 0.15);
        --glass-bg: rgba(255, 255, 255, 0.6);
        --glass-border: rgba(255, 255, 255, 0.8);
        --glass-shadow: rgba(0, 0, 0, 0.06);
        --glass-inset: rgba(255, 255, 255, 0.9);
        --glass-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.05), transparent 50%);
        --text: #0f172a;
        --text-dim: #334155;
        --text-muted: #64748b;
        --overlay-bg: rgba(0, 0, 0, 0.2);
        --border-subtle: rgba(0, 0, 0, 0.06);
        --input-bg: rgba(0, 0, 0, 0.03);
        --input-placeholder: rgba(0, 0, 0, 0.45);
        --input-focus: rgba(0, 0, 0, 0.05);
        --faq-bg: rgba(0, 0, 0, 0.02);
        --dock-bg: rgba(255, 255, 255, 0.7);
        --dock-shadow: rgba(0, 0, 0, 0.1);
        --close-btn-bg: rgba(0, 0, 0, 0.05);
        --accent-glow: rgba(14, 165, 233, 0.2);
        --star-gold: #ffb800;
    }
}

/* Logo */
.logo {
    font-weight: 800;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-dot {
    color: var(--accent);
}

.logo-accent,
.hero span {
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo:active {
    transform: scale(0.98);
    transition: 0.1s;
}

/* Utilities */
.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.8rem;
}

.text-xxs {
    font-size: 0.75rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-dim {
    color: var(--text-dim);
}

.text-center {
    text-align: center;
}

.opacity-70 {
    opacity: 0.7;
}

.font-bold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.icon-accent {
    color: var(--accent);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.spacer-lg {
    height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

html,
body {
    min-width: 320px;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.ready {
    opacity: 1;
}

/* Default heading and text styles */
h3,
h4 {
    color: var(--text);
}

strong {
    color: var(--text);
}


/* Эффект Призмы на фоне */
.prism-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    overflow: hidden;
    will-change: transform;
    contain: strict;
}

.prism-light {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: var(--prism-1);
    animation: move 20s infinite alternate;
}

.prism-light:nth-child(2) {
    background: var(--prism-2);
    right: 0;
    bottom: 0;
    animation: move 15s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(20%, 20%);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Cards - Enhanced Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 var(--glass-inset);
}

/* Gradient border glow effect */
.glass::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: var(--glass-glow);
    z-index: -1;
    opacity: 0.5;
}

header {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Header Button */
.header-btn {
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--btn-gradient);
    border: none;
    color: var(--btn-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.header-btn:active {
    transform: scale(0.95);
}

/* Header link for legal pages (same style as header-btn but without JS handler) */
.header-link {
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--btn-gradient);
    border: none;
    color: var(--btn-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--accent-glow);
    display: inline-block;
}

.header-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.header-link:active {
    transform: scale(0.95);
}


@media (max-width: 380px) {
    .logo {
        font-size: 1.1rem;
    }

    .header-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }

    header {
        gap: 10px;
    }
}

/* Status Badge - simplified glass for small elements */
.status-badge {
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.status-badge .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 35px;
}

/* Bento Grid */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.bento-item {
    padding: 30px;
}

.bento-item.bento-accent {
    background: var(--btn-gradient);
    color: var(--btn-text);
    border: none;
}

.bento-item.bento-accent h3 {
    color: var(--btn-text);
}

.bento-bottom-mobile {
    margin-bottom: 25px;
}

/* Profile Block */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-bottom: 40px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--btn-gradient);
    padding: 3px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* filter: grayscale(1); */
}

.master-info h4 {
    font-size: 1.4rem;
}

.master-info p {
    color: var(--accent);
    font-weight: 600;
}

/* Workflow Steps */
.steps {
    margin: 60px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-num {
    background: var(--btn-gradient);
    color: var(--btn-text);
    width: 35px;
    height: 35px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--accent-glow);
}

/* Prices */
.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.price-list sup {
    color: var(--text-muted);
    font-size: 0.7em;
}

/* FAQ */
.faq {
    margin-top: 40px;
}

details {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: var(--radius-sm);
    background: var(--faq-bg);
}

summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    color: var(--text);
}

details p {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Floating Dock - Glassmorphism */
.dock-system {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.dock-system>* {
    pointer-events: auto;
}

.dock {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--dock-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 25px 50px var(--dock-shadow),
        inset 0 1px 0 var(--glass-inset);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-btn {
    background: var(--btn-gradient);
    color: var(--btn-text);
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.cta-btn:active {
    transform: scale(0.97);
}

/* Floating Messengers */
.messengers {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    order: -1;
    /* Above dock on mobile */
    pointer-events: none;
    padding-right: 12px;
}

.msg-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dock-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 25px 50px var(--dock-shadow),
        inset 0 1px 0 var(--glass-inset);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.msg-btn svg {
    width: 26px;
    height: 26px;
}

.msg-btn:hover,
.msg-btn:active {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--dock-shadow);
}

/* Form Section */
.form-section {
    margin: 40px 0;
    padding: 30px;
}

.form-section h2,
.form-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text);
}

.form-section .subtitle,
.form-modal .subtitle {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Модальное окно формы */
.form-modal {
    position: fixed;
    margin: auto;
    padding: 30px;
    width: 94%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 40px 100px var(--dock-shadow);
    overflow: hidden;
}

.form-modal::backdrop {
    background: var(--overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Анимация появления модалки */
.form-modal[open] {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Кнопка закрытия */
.close-form {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--close-btn-bg);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: 0.3s;
    z-index: 10;
}

.close-form:hover {
    background: var(--glass-border);
    transform: scale(1.1);
}


.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-input.is-invalid {
    border-color: #ff4b4b !important;
    box-shadow: 0 0 0 4px rgba(255, 75, 75, 0.1) !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.form-input::placeholder {
    color: var(--input-placeholder);
}

.form-input:focus {
    background: var(--input-focus);
    box-shadow: 0 0 0 2px var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--btn-gradient);
    color: var(--btn-text);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-legal-notice {
    margin-top: 15px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-legal-notice a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.form-legal-notice a:hover {
    opacity: 0.7;
}


.error-message {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #ff4b4b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 75, 75, 0.3);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reviews */
.reviews {
    margin: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.review-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.platform:hover {
    background: var(--glass-inset);
    transform: translateY(-1px);
}

.platform.google {
    color: #4285F4;
}

.platform.yandex {
    color: #ff0000;
}

.platform.avito {
    color: #00AAFF;
}

.stars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.stars svg {
    width: 15px !important;
    height: 15px !important;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 184, 0, 0.3));
}

.stars svg,
.stars svg path {
    fill: var(--star-gold) !important;
    stroke: var(--star-gold) !important;
    stroke-width: 2px !important;
    color: var(--star-gold) !important;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
    font-style: italic;
    margin: 0;
}

/* Collapsible logic */
.collapsible-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-text.expanded {
    display: block;
    max-height: 1000px;
}

.read-more-btn {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 50px;
    margin-top: 10px;
    display: inline-block;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: var(--glass-inset);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--glass-shadow);
}

.read-more-btn:active {
    transform: translateY(0);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
}

.review-footer strong {
    font-size: 0.9rem;
}

.review-footer .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
}

footer .vcard {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-instant {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Thanks Page Styles
   ======================================== */
.thanks-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--btn-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: thanks-pulse 2s ease-in-out infinite;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.thanks-icon i,
.thanks-icon svg {
    width: 50px;
    height: 50px;
    color: var(--btn-text);
}

@keyframes thanks-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px transparent;
    }
}

.thanks-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: var(--text);
}

.thanks-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.thanks-info {
    padding: 25px 35px;
    margin-bottom: 30px;
}

.thanks-info h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.thanks-phone {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.thanks-phone a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.thanks-phone a:hover {
    color: var(--accent);
}

.thanks-call-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.thanks-legal-notice {
    margin: 25px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.thanks-legal-notice a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.thanks-legal-notice a:hover {
    color: var(--accent);
}

.thanks-legal-notice span {
    margin: 0 10px;
    color: var(--border-subtle);
}


.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-link:hover {
    background: var(--input-focus);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glass-shadow);
}

.back-link:active {
    transform: scale(0.98);
}

.back-link i,
.back-link svg {
    width: 18px;
    height: 18px;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-bottom-mobile {
        margin-bottom: 0;
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .form-row {
        display: flex;
        gap: 15px;
    }

    .form-row .form-group {
        flex: 1;
    }

    .form-row .form-group:last-child {
        flex: 0 0 auto;
    }

    .dock-system {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        left: 50%;
        right: auto;
        /* Reset mobile right position */
        transform: translateX(-50%);
        width: auto;
        max-width: none;
        gap: 12px;
        padding: 10px 15px;
        /* Uniform padding */
        background: var(--dock-bg);
        /* Unified glass background for PC */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: 32px;
        box-shadow:
            0 25px 50px var(--dock-shadow),
            inset 0 1px 0 var(--glass-inset);
    }

    .dock {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        width: auto;
    }

    .cta-btn {
        width: auto;
        padding: 16px 24px;
        border-radius: var(--radius-md);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .messengers {
        width: auto;
        order: 0;
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
        align-self: auto;
        pointer-events: auto;
        padding-right: 0;
    }

    .msg-btn {
        width: 54px;
        height: 54px;
        border-radius: var(--radius-md);
        background: var(--input-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid var(--glass-border);
        box-shadow: none;
        flex-shrink: 0;
    }

    .msg-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   Legal Pages Styles
   ======================================== */
.legal-content {
    padding: 20px 15px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.legal-section {
    padding: 20px;
    margin-bottom: 15px;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
    line-height: 1.3;
}

.legal-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.legal-section ul {
    margin: 12px 0 12px 20px;
    list-style: disc;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.legal-section a:hover {
    opacity: 0.7;
}

.legal-contacts {
    background: var(--btn-gradient);
    color: var(--btn-text);
    border: none;
}

.legal-contacts h2,
.legal-contacts p,
.legal-contacts strong {
    color: var(--btn-text);
}

.legal-contacts p {
    font-size: 0.9rem;
}

.legal-contacts a {
    color: var(--btn-text);
    text-decoration: underline;
}

.legal-navigation {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer Legal Links */
footer .legal-links {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

footer .legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
    position: relative;
}

footer .legal-links a:hover {
    color: var(--accent);
}

footer .legal-links a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -12px;
    color: var(--border-subtle);
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-bottom: 30px;
    /* Увеличим отступ снизу, чтобы не перекрывалось доком на мобильных */
    line-height: 1.6;
}

.vcard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vcard a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.vcard a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 2.25rem;
        margin-bottom: 35px;
    }

    .legal-section {
        padding: 25px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }

    .legal-navigation {
        gap: 15px;
        margin-top: 35px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .legal-content h1 {
        font-size: 2.5rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
}