/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo p {
    font-size: 0.85rem;
    color: var(--gray);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.header-contacts .phone {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
}

.hero-content {
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero > .container > .hero-content > p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 2rem;
    color: var(--accent);
}

.feature span {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-vk {
    background: #0077FF;
    color: var(--white);
}

.btn-vk:hover {
    background: #0055cc;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Why Choose Us */
.why-us {
    padding: 80px 0;
    background: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.advantage-card p {
    color: var(--gray);
}

/* Services */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark);
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Calculator */
.calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.calculator .section-title,
.calculator .section-subtitle {
    color: var(--white);
}

.calc-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.consent-label {
    font-size: 0.9rem;
}

.consent-label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-actions {
    text-align: center;
    margin-bottom: 20px;
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Portfolio */
.portfolio {
    padding: 80px 0;
    background: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.label {
    position: absolute;
    top: 10px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.9rem;
}

.label.before {
    left: 10px;
}

.label.after {
    right: 10px;
}

.portfolio-item h3 {
    padding: 20px;
    font-size: 1.3rem;
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* Reviews */
.reviews {
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.review-card img {
    width: 100%;
    height: auto;
    display: block;
}

.review-cta {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
}

.review-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Giveaway */
.giveaway {
    padding: 60px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.giveaway-content {
    text-align: center;
}

.giveaway-content i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.giveaway-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.giveaway-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.giveaway-content a {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
}

/* Certificate */
.certificate {
    padding: 80px 0;
    background: var(--light-gray);
}

.certificate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.certificate-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.certificate-text .highlight {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.benefits-list,
.services-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li,
.services-list li {
    padding: 12px 0;
    font-size: 1.1rem;
}

.services-list li i {
    color: var(--secondary);
    margin-right: 10px;
}

.certificate-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.certificate-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Articles */
.articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    display: block;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.article-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.article-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.article-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Privacy Section */
.privacy-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.privacy-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--dark);
}

.privacy-content p {
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.contact-list,
.footer-links,
.work-hours {
    list-style: none;
}

.contact-list li,
.footer-links li,
.work-hours li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list a,
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list a:hover,
.footer-links a:hover {
    color: var(--white);
}

.work-hours i {
    color: var(--accent);
}

.work-note {
    color: var(--accent);
    font-weight: 600;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom a {
    color: #9ca3af;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero > .container > .hero-content > p {
        font-size: 1.1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
