* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    font-size: 3rem;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    font-size: 2rem;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 5%;
    font-size: 2.5rem;
    animation-delay: 4s;
}

.floating-icon:nth-child(4) {
    bottom: 15%;
    right: 10%;
    font-size: 1.8rem;
    animation-delay: 1s;
}

.floating-icon:nth-child(5) {
    top: 50%;
    left: 20%;
    font-size: 1.5rem;
    animation-delay: 3s;
}

.floating-icon:nth-child(6) {
    top: 60%;
    right: 25%;
    font-size: 2.2rem;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.2; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
    padding-top: 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: slideInFromLeft 1s ease-out;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: slideInFromLeft 1s ease-out 0.2s both;
    color: white !important;
}

.hero h1 .highlight {
    background: linear-gradient(45deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #ffd89b, #19547b);
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 1.5s both;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 100%; }
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 3rem;
    animation: slideInFromLeft 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #90ee90, #32cd32);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Enhanced Visual Element */
.hero-visual {
    position: relative;
    animation: slideInFromRight 1s ease-out 0.8s both;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 25px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff5f56;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27ca3f; }

.mockup-content {
    color: white;
    position: relative;
    z-index: 1;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.mockup-row:nth-child(1) { animation-delay: 1.2s; }
.mockup-row:nth-child(2) { animation-delay: 1.4s; }
.mockup-row:nth-child(3) { animation-delay: 1.6s; }

.mockup-row:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.mockup-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mockup-row:nth-child(2) .mockup-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.mockup-row:nth-child(3) .mockup-icon {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.mockup-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.mockup-text {
    flex: 1;
}

.mockup-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.mockup-text small {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Enhanced Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    animation: slideInFromBottom 1s ease-out 1s both;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .dashboard-mockup {
        padding: 1.5rem;
    }

    .mockup-row {
        padding: 1rem;
        gap: 1rem;
    }

    .mockup-icon {
        width: 40px;
        height: 40px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    align-items: center;
}

.pricing-card {
    background: #f5f7fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e5ec;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    background: white;
    transform: scale(1.05);
    border: 2px solid #667eea;
    position: relative;
    overflow: hidden;
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -45px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: #666;
    margin-bottom: 2rem;
    min-height: 40px;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #333;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: #999;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-features .fa-check-circle {
    color: #27ca3f;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1.02);
    }
}

/* --- Стили для всплывающей формы (модальное окно) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 51, 70, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    position: relative;
    color: white;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2.2rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.2);
}

/* --- НОВЫЕ СТИЛИ: Стилизация формы Forminator --- */

.popup-content .forminator-custom-form {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Общие стили для полей */
.popup-content .forminator-row {
    margin-bottom: 1.2rem !important;
}

.popup-content .forminator-label {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    text-align: left;
}

.popup-content .forminator-input,
.popup-content .forminator-textarea {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 12px 15px !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.popup-content .forminator-input::placeholder,
.popup-content .forminator-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.popup-content .forminator-is-focused .forminator-input,
.popup-content .forminator-is-focused .forminator-textarea {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
}

/* Стили для кнопки "Отправить" */
.popup-content .forminator-button-submit {
    background: linear-gradient(45deg, #ff6b6b, #feca57) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.9rem 2.2rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3) !important;
}

.popup-content .forminator-button-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4) !important;
}

/* --- ДОПОЛНИТЕЛЬНЫЕ СТИЛИ для компактности формы Forminator --- */

/* Уменьшаем вертикальный отступ между полями */
.popup-content .forminator-row {
    margin-bottom: 0.8rem !important; /* Было 1.2rem */
}

/* Уменьшаем отступ под заголовком поля */
.popup-content .forminator-label {
    margin-bottom: 0.3rem !important; /* Было 0.5rem */
}

/* Уменьшаем внутренние отступы (padding) самих полей, делая их ниже */
.popup-content .forminator-input,
.popup-content .forminator-textarea {
    padding: 10px 15px !important; /* Было 12px 15px */
}

/* Уменьшаем минимальную высоту текстового поля */
.popup-content .forminator-textarea {
    min-height: 80px !important;
}

/* Уменьшаем отступ перед кнопкой */
.popup-content .forminator-pagination-steps, /* Скрываем шаги, если они есть */
.popup-content .forminator-pagination-footer {
    margin-top: 1rem !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .popup-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: none;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-content .wpforms-form .wpforms-field-name .wpforms-field-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .popup-content .wpforms-form .wpforms-field input[type=text],
    .popup-content .wpforms-form .wpforms-field input[type=email],
    .popup-content .wpforms-form .wpforms-field textarea {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
}

/* --- НОВЫЙ КОД: Стилизация формы логина WordPress --- */

.popup-content .aup-login-form-container p {
    margin-bottom: 1.5rem;
}

/* Стили для полей и их названий (label) */
.popup-content .aup-login-form-container label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

/* Стили для полей ввода */
.popup-content .aup-login-form-container input[type=text],
.popup-content .aup-login-form-container input[type=password] {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    padding: 15px;
    width: 100%;
    transition: background 0.3s ease;
    font-size: 1rem;
    margin-bottom: 1rem; /* Добавим отступ снизу */
}

.popup-content .aup-login-form-container input[type=text]:focus,
.popup-content .aup-login-form-container input[type=password]:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

/* Стили для блока "Запомнить меня" */
.popup-content .aup-login-form-container .login-remember {
    text-align: left;
    margin-bottom: 1.5rem;
}
.popup-content .aup-login-form-container .login-remember label {
    display: inline; /* Чтобы чекбокс и текст были в одну строку */
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
}

/* Стили для кнопки "Войти" */
.popup-content #wp-submit {
    background: linear-gradient(45deg, #ff6b6b, #feca57) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 1rem 2.5rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3) !important;
    height: auto !important; /* Сбрасываем стандартную высоту */
    text-shadow: none !important; /* Убираем стандартную тень текста */
    text-transform: none !important; /* Убираем заглавные буквы, если они есть */
}

.popup-content #wp-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4) !important;
}

.popup-content .aup-login-form-container .wp-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4) !important;
}

/* Стили для сообщения "Вы уже вошли" */
.popup-content .aup-login-form-container a {
    color: #feca57;
    text-decoration: underline;
}
.popup-content .aup-login-form-container a:hover {
    color: #ff6b6b;
}

.cta-section h2 {
    color: white !important;
}

/* --- НОВЫЙ КОД: Стили для модальных окон с документами --- */

.popup-content.document-popup {
    text-align: left;
    max-width: 800px; /* Делаем окно шире для удобства чтения */
    max-height: 80vh; /* Ограничиваем высоту, чтобы окно не вылезало за экран */
    overflow-y: auto; /* Добавляем вертикальный скролл, если контент не помещается */
}

/* Стилизация контента, загруженного из WordPress */
.document-popup h1,
.document-popup h2,
.document-popup h3 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.document-popup p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.7;
}

.document-popup ul,
.document-popup ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.document-popup li {
    margin-bottom: 0.5rem;
}

.document-popup a {
    color: #feca57;
    text-decoration: underline;
}

.document-popup a:hover {
    color: #ff6b6b;
}

/* Стили для модального окна с видео */
.video-popup-content {
    padding: 0; /* Убираем внутренние отступы по умолчанию */
    background: transparent; /* Делаем фон прозрачным, чтобы не было белой рамки */
    box-shadow: none; /* Убираем тень */
    max-width: 900px; /* Максимальная ширина окна */
    width: 90%; /* Ширина окна */
}

.video-popup-content .popup-close {
    color: #fff; /* Цвет крестика закрытия */
    top: -50px; /* Позиция над видео */
    right: 0;
    font-size: 40px;
    opacity: 0.9;
}

.video-popup-content .popup-close:hover {
    opacity: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}