:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #ff9800;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.theme-switch-label {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Темная тема */
body.dark-theme {
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --background-light: #1a1a1a;
    --white: #2d2d2d;
    --primary-dark: #4caf50;
    --primary-color: #66bb6a;
    color: var(--text-dark);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: var(--primary-color);
}

body.dark-theme .header-contact p,
body.dark-theme .header-phone {
    color: var(--text-dark);
}

body.dark-theme .feature-card p,
body.dark-theme .step p,
body.dark-theme .info-card p,
body.dark-theme .about-content p,
body.dark-theme .contact-info,
body.dark-theme .price-note p,
body.dark-theme .footer-section p {
    color: var(--text-light);
}

body.dark-theme .price-highlight {
    color: var(--primary-color);
}

body.dark-theme .documents-list li {
    color: var(--text-light);
}

body.dark-theme .form-group label {
    color: var(--text-dark);
}

body.dark-theme .section-title h2 {
    color: var(--primary-color);
}

body.dark-theme .theme-switch-label {
    color: var(--text-dark);
}

/* Исправления для таблицы цен */
body.dark-theme .price-table {
    color: var(--text-dark);
}

body.dark-theme .price-table td {
    color: var(--text-light);
    border-bottom-color: #444;
}

body.dark-theme .price-table tr:nth-child(even) {
    background-color: #363636;
}

/* Исправления для формы */
body.dark-theme .contact-form {
    background-color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .form-control {
    background-color: #3d3d3d;
    border-color: #555;
    color: var(--text-dark);
}

body.dark-theme .form-control::placeholder {
    color: #888;
}

/* Исправления для подвала */
body.dark-theme footer {
    background-color: #1e1e1e;
}

body.dark-theme .copyright {
    border-top-color: #444;
}

/* Исправления для информационных карточек */
body.dark-theme .info-card,
body.dark-theme .contact-card {
    background-color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .contact-card h3 {
    border-bottom-color: #444;
}

/* Исправления для кнопки звонка */
body.dark-theme .call-now {
    background-color: var(--secondary-color);
    color: white;
}

body.dark-theme header {
    background-color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .logo {
    color: var(--primary-color);
}

body.dark-theme nav a {
    color: var(--text-dark);
}

body.dark-theme .features,
body.dark-theme .prices,
body.dark-theme .about,
body.dark-theme .contact-form,
body.dark-theme .info-card,
body.dark-theme .contact-card {
    background-color: #2d2d2d;
}

body.dark-theme .feature-card,
body.dark-theme .price-table td {
    background-color: #3d3d3d;
}

body.dark-theme .price-table th {
    background-color: var(--primary-dark);
}

body.dark-theme .form-control {
    background-color: #3d3d3d;
    border-color: #555;
    color: var(--text-dark);
}

body.dark-theme .price-note {
    background-color: #3d3d3d;
    border-left-color: var(--secondary-color);
}

body.dark-theme .documents-list li {
    border-bottom-color: #555;
}

body.dark-theme .hero p,
body.dark-theme .copyright p {
    color: #ffffff !important;
}

/* Дополнительные исправления для читаемости */
body.dark-theme .cta-note,
body.dark-theme .cta-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-theme .footer-section h3 {
    color: #ffffff;
}

/* Убедимся, что важные тексты всегда видны */
body.dark-theme .price-note h3 {
    color: var(--primary-color);
}



body.dark-theme .contact-info a {
    color: var(--primary-light);
    text-decoration: none;
}

body.dark-theme .contact-info a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.header-contact {
    text-align: right;
}

.contact-info a,
.header-phone {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.header-phone:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/z8.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #f57c00;
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Process */
.process {
    padding: 4rem 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Prices Section */
.prices {
    padding: 4rem 0;
    background-color: var(--white);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.price-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
}

.price-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:nth-child(even) {
    background-color: var(--background-light);
}

.price-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-note {
    background-color: #fff8e1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
}

/* Info Section */
.info {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.documents-list {
    list-style-type: none;
}

.documents-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.documents-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.phones-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 18px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phone-number:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.phone-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.phone-text {
    letter-spacing: 0.5px;
}

.cta-note {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

/* Contacts Section */
.contacts {
    padding: 4rem 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--background-light);
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Form */
.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: #263238;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Call Now Button */
.call-now {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s;
}

.call-now:hover {
    background-color: #f57c00;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        position: relative;
        padding-right: 85px;
    }

    .theme-switch {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        margin-left: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .theme-switch-label {
        font-size: 0.75rem;
        margin-right: 0;
        white-space: nowrap;
    }

    .switch {
        width: 40px;
        height: 22px;
        flex-shrink: 0;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }

    input:checked+.slider:before {
        transform: translateX(18px);
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-contact {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 40px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .phone-number {
        font-size: 1.2rem;
        padding: 15px 25px;
    }

    .phones-container {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.7rem;
    }

    .phone-number {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
    }

    .phone-text {
        font-size: 1.1rem;
    }
}