/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .logo-text {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: #666;
    font-size: 0.9rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2563eb;
}

.header-phone {
    color: #2563eb;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    margin-top: 3rem;
}

.computer-icon {
    font-size: 6rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: #10b981;
    font-weight: bold;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

/* Prices Section */
.prices {
    padding: 80px 0;
    background: #f8fafc;
}

.prices h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.price-card p {
    color: #64748b;
    font-size: 0.9rem;
}
/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #2563eb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #1e293b;
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services,
    .about,
    .prices,
    .contact {
        padding: 60px 0;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.price-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Phone links styling */
.header-phone a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.header-phone a:hover {
    color: #1d4ed8;
}

.contact-item a,
.footer-section a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2563eb;
}

.footer-section a[href^="tel:"]:hover {
    color: #2563eb;
}
/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notification-content {
    padding: 1.5rem;
    position: relative;
}

.notification-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Loading States */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Mobile notification adjustments */
@media (max-width: 480px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 1rem;
    }
}
/* Yandex SmartCaptcha Styles */
.captcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px; /* Стандартная высота виджета */
}

/* Стили для кнопок в ожидании капчи */
.captcha-pending {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.captcha-pending::after {
    content: '🤖 Подтвердите, что вы не робот';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fef3c7;
    color: #92400e;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid #fbbf24;
}

/* Адаптивные стили для капчи */
@media (max-width: 480px) {
    .captcha-container {
        margin: 1rem 0;
    }
    
    .captcha-pending::after {
        font-size: 11px;
        padding: 4px 8px;
        top: -25px;
    }
}

/* Стили для уведомлений о капче */
.captcha-notification {
    background: #e0f2fe;
    border: 1px solid #0284c7;
    color: #0c4a6e;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

.captcha-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
}

/* Анимация загрузки капчи */
.captcha-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.captcha-loading::before {
    content: '🔄 Загрузка защиты от роботов...';
    color: #64748b;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Стили для форм с капчей */
.form-with-captcha {
    position: relative;
}

.form-with-captcha .btn[disabled] {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Информационное сообщение о капче */
.captcha-info {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.captcha-info p {
    margin: 0;
    color: #0c4a6e;
    font-size: 14px;
}

.captcha-info .icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}
/* Enhanced Form Styles */
.form-with-captcha {
    position: relative;
}

.form-with-captcha input,
.form-with-captcha select,
.form-with-captcha textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-with-captcha input:focus,
.form-with-captcha select:focus,
.form-with-captcha textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-with-captcha input:invalid,
.form-with-captcha select:invalid,
.form-with-captcha textarea:invalid {
    border-color: #ef4444;
}

.form-with-captcha input:valid,
.form-with-captcha select:valid,
.form-with-captcha textarea:valid {
    border-color: #10b981;
}

/* Form labels and placeholders */
.form-with-captcha input::placeholder,
.form-with-captcha textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-with-captcha select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Required field indicators */
.form-with-captcha input[required]::after,
.form-with-captcha select[required]::after,
.form-with-captcha textarea[required]::after {
    content: ' *';
    color: #ef4444;
}

/* Form validation messages */
.form-validation-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 1rem;
    display: none;
}

.form-validation-message.show {
    display: block;
}

.form-validation-message.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Enhanced button states */
.form-with-captcha .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.form-with-captcha .btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 2px solid #e2e8f0;
}

.form-with-captcha .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Loading state for buttons */
.form-with-captcha .btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-with-captcha .btn.loading {
    color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form progress indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.form-step {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 14px;
}

.form-step.active {
    color: #2563eb;
    font-weight: 600;
}

.form-step.completed {
    color: #10b981;
}

.form-step::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 8px;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .form-with-captcha input,
    .form-with-captcha select,
    .form-with-captcha textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-with-captcha .btn {
        padding: 16px 24px;
        font-size: 18px;
    }
    
    .captcha-info {
        padding: 10px 14px;
        margin: 12px 0;
    }
    
    .captcha-info p {
        font-size: 13px;
    }
}

/* Form accessibility improvements */
.form-with-captcha input:focus-visible,
.form-with-captcha select:focus-visible,
.form-with-captcha textarea:focus-visible,
.form-with-captcha button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-with-captcha input,
    .form-with-captcha select,
    .form-with-captcha textarea {
        border-width: 3px;
    }
    
    .captcha-info {
        border: 2px solid;
    }
}