:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #F5F5F5;
    --white: #FFFFFF;
    --container-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-dark);
}

.footer .logo {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.primary-button,
.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-button:hover,
.submit-btn:hover {
    background: var(--primary-dark);
}

.primary-button.large,
.submit-btn.large {
    padding: 16px 32px;
    font-size: 16px;
    margin-bottom: 32px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 800px;
    padding: 160px 0 120px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg-3.jpg') no-repeat center 90%;
    background-size: cover;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15a35 35 0 1 0 0 70 35 35 0 0 0 0-70zm0 5a30 30 0 1 1 0 60 30 30 0 0 1 0-60z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") center/cover;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    display: none; /* Убираем дополнительный оверлей, так как теперь он в background */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    color: var(--white);
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.hero-feature span {
    font-size: 14px;
    font-weight: 500;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Footer */
.footer {
    background: var(--background-light);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-info {
    max-width: 300px;
}

.footer-info p {
    margin-top: 16px;
    color: var(--text-light);
}

.contact-info {
    margin-top: 24px;
}

.contact-info p {
    margin-top: 8px;
}

.contact-info .highlight {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info .highlight:hover {
    color: var(--primary-color-dark);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 32px;
    justify-content: flex-end;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 20px;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--background-light);
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How it Works Section *
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: left;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.step-card h3 {
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Стрелки между шагами *
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    width: 24px;
    height: 24px;
    z-index: 1;
}

/* Позиционирование стрелок *
.step-card:nth-child(1)::after {
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
}

.step-card:nth-child(2)::after {
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.step-card:nth-child(3)::after {
    left: -28px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.cta-block {
    text-align: center;
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-block h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-block p {
    color: var(--text-light);
    margin-bottom: 24px;
}
*/
/* How it Works Section */
.how-it-works {
    background: var(--background-light);
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
}

/* Стрелки между шагами */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    width: 24px;
    height: 24px;
    z-index: 1;
}

/* Позиционирование стрелок */
.step-card:nth-child(1)::after {
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
}

.step-card:nth-child(2)::after {
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.step-card:nth-child(3)::after {
    left: -28px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.cta-block {
    text-align: center;
    background: var(--white);
    color: var(--white);
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-block {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/cta-bg-2.jpg') no-repeat center 10%;
    background-size: cover;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15a35 35 0 1 0 0 70 35 35 0 0 0 0-70zm0 5a30 30 0 1 1 0 60 30 30 0 0 1 0-60z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") center/cover;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.cta-block h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-block p {
    color: var(--white);
    margin-bottom: 24px;
}

/* Specialists Section */
.specialists {
    background: var(--white);
}

.specialists h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.specialist-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.specialist-card:hover {
    transform: translateY(-5px);
}

.specialist-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
}

.specialist-card .specialist-info {
    padding: 24px;
}

.specialist-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.specialist-card .specialist-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.specialist-card .specialist-exp {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 14px;
}

.specialist-card .specialist-desc {
    color: var(--text-light);
    line-height: 1.5;
}

/* Contacts Section */
.contacts {
    background: var(--background-light);
}

.contacts h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.contact-info-block {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contacts-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 16px;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.field-error {
    color: #c62828;
    font-size: 14px;
    margin: 5px 0 0;
    min-height: 20px;
}

input:invalid, select:invalid, textarea:invalid {
    border-color: #ffcdd2;
}

input:focus:invalid, select:focus:invalid, textarea:focus:invalid {
    border-color: #c62828;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#my-form-status {
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-status.loading {
    display: block;
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.form-status.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    position: relative;
}

/* Utility Classes */
.no-scroll {
    overflow: hidden;
}

/* Mobile Menu Additional Styles */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 100px 20px 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: var(--primary-color);
    }

    .nav-links .primary-button {
        margin-top: 20px;
        font-size: 18px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 7px;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: -7px;
    }

    body.mobile-menu-open .nav-links {
        display: flex;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--background-light);
}

.reviews h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.review-avatar {
    margin-right: 16px;
}

.review-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.review-rating {
    color: #FFB800;
    font-size: 16px;
}

.review-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 60px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 24px;
    }

    .review-card {
        padding: 24px;
    }
} 

/* Contacts Section */
.contacts-info {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contacts-info h2 {
    margin-bottom: 32px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item h3 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-item .highlight {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item .highlight:hover {
    color: var(--primary-dark);
}

.contact-socials {
    margin-top: 32px;
}

.contact-socials .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.contact-socials .social-link i {
    font-size: 24px;
}

.contact-socials .social-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contacts-info {
        padding: 24px;
    }

    .contacts-info h2 {
        margin-bottom: 24px;
    }

    .contact-item {
        margin-bottom: 20px;
    }
} 

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body.mobile-menu-open .nav-links {
        display: flex;
    }
} 

.legal-info {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 10px;
    line-height: 1.4;
}

.legal-info p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header {
        padding: 12px 0;
    }

    .nav-list {
        gap: 16px;
    }

    .hero {
        min-height: 600px;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .primary-button.large,
    .submit-btn.large {
        padding: 14px 28px;
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-feature svg {
        width: 18px;
        height: 18px;
    }

    .hero-feature span {
        font-size: 12px;
    }

    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-content: start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 450px;
    }

    .service-card {
        padding: 24px;
    }

    .service-card h3 {
        font-size: 18px;
        min-height: auto;
    }

    .service-card p {
        min-height: auto;
    }

    .how-it-works {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 450px;
    }

    .step-card {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-card h3 {
        margin-bottom: 12px;
    }

    .step-card p {
        min-height: auto;
    }

    .cta-block {
        padding: 32px;
    }

    .cta-block h3 {
        font-size: 24px;
    }

    .specialists h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .specialist-card img {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .services h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    /* Общие стили для всех h2 на мобильных */
    h2 {
        font-size: 28px;
        margin-bottom: 32px;
        /* white-space: nowrap; */
        /* overflow: hidden; */
        /* text-overflow: ellipsis; */
    }

    /* Сбрасываем специфичные стили для h2 в разных секциях */
    .services h2,
    .how-it-works h2,
    .specialists h2,
    .reviews h2,
    .contacts h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }
}