/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f766e;
    --accent-color: #dc2626;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-lighter: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft: #f1f5f9;
    --bg-dark: #0f172a;
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header__logo {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.header__logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: var(--transition);
}

.header__logo:hover .header__logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .header__logo-img {
        width: 32px;
        height: 32px;
    }
    
    .header__logo {
        font-size: 1.25rem;
    }
}

.nav__list {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 4rem;
    background: var(--bg-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: left;
    color: var(--text-dark);
    padding: 2rem 0;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__text {
    position: relative;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero__title span {
    color: var(--primary-color);
    position: relative;
}

.hero__title span::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__note {
    font-size: 0.875rem;
    color: var(--text-lighter);
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__note::before {
    content: '📍';
    font-size: 1rem;
}

.hero__visual {
    position: relative;
    height: 400px;
    background: var(--bg-soft);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero__visual:hover .hero__image {
    transform: scale(1.05);
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .statistics__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .technologies__grid {
        grid-template-columns: 1fr;
    }

    .contacts__info,
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .header__content {
        padding: 0.75rem 0;
    }

    .header__logo-img {
        width: 32px;
        height: 32px;
    }

    .header__logo {
        font-size: 1.125rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__text {
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__visual {
        height: 250px;
        order: -1;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero__badge {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .about {
        padding: 4rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .card__icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .card__icon {
        font-size: 1.25rem;
    }

    .statistics {
        padding: 3rem 0;
    }

    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-item__number {
        font-size: 2rem;
    }

    .stat-item__label {
        font-size: 0.875rem;
    }

    .service-card__title {
        font-size: 1.25rem;
        margin: 1.5rem 1.5rem 0.75rem;
    }

    .service-card__text {
        margin: 0 1.5rem 1.5rem;
        font-size: 0.875rem;
    }

    .technologies__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-item {
        padding: 1rem 1.5rem;
    }

    .tech-item__name {
        font-size: 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-card__header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .contacts__info,
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contacts__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contacts__item {
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .contacts__icon {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer__logo-img {
        width: 32px;
        height: 32px;
    }

    .footer__title {
        font-size: 1.25rem;
    }

    .modal__content {
        max-width: 95%;
        margin: 1rem;
    }

    .modal__body {
        padding: 2rem 1.5rem 1.5rem;
    }

    .cookie-popup {
        padding: 1rem;
    }

    .cookie-popup__content {
        gap: 0.75rem;
    }

    .cookie-popup__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn--primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn--secondary:hover {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.btn--full {
    width: 100%;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--bg-white);
    position: relative;
    padding: 6rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.about .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    display: block;
}

.about .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    display: block;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.card__icon {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', monospace;
    line-height: 1;
}

.card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.card__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.card__tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-soft);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover .card__tag {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Learning Process Section */
.learning-process {
    background: var(--bg-white);
    position: relative;
    padding: 6rem 0;
}

.learning-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline__stage {
    position: relative;
    margin-bottom: 4rem;
    width: calc(50% - 3rem);
}

.timeline__stage:last-child {
    margin-bottom: 0;
}

.timeline__stage--left {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline__stage--right {
    left: calc(50% + 3rem);
    text-align: left;
    padding-left: 3rem;
}

.timeline__stage::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 2;
}

.timeline__stage--left::before {
    right: -1.5rem;
    top: 0;
}

.timeline__stage--right::before {
    left: -1.5rem;
    top: 0;
}

.timeline__stage-content {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline__stage:hover .timeline__stage-content {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline__stage-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.timeline__stage-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 1.5rem;
    }

    .timeline__stage {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
    }

    .timeline__stage::before {
        left: 0.5rem !important;
        right: auto !important;
    }
}

/* Statistics Section */
.statistics {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0;
}

.statistics__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-item__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item__label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Services Section */
.services {
    background: var(--bg-dark);
    color: white;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-title {
    color: white;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card__image {
    height: 180px;
    background: rgba(30, 58, 138, 0.2);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
    transform: scale(1.1);
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 2rem 1rem;
    color: white;
    letter-spacing: -0.01em;
}

.service-card__text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 2rem 2rem;
    line-height: 1.7;
    font-size: 1rem;
}


.modal__content--form {
    max-width: 600px;
}

.modal__subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-form {
    margin-top: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
    cursor: pointer;
}

/* Reviews Section */
.reviews {
    background: var(--bg-white);
    position: relative;
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.review-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review-card__avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.review-card__name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.review-card__role {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card__text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: normal;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.review-card__rating {
    color: var(--accent-color);
    font-size: 1.125rem;
    letter-spacing: 2px;
}

/* Advantages Section */
.advantages {
    background: var(--bg-white);
    position: relative;
    padding: 6rem 0;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.advantages__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.advantage-item {
    background: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.advantage-item:hover {
    border-left-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.advantage-item__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-item__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.advantage-item__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Technologies Section */
.technologies {
    background: var(--bg-soft);
    padding: 6rem 0;
    position: relative;
}

.technologies .section-title {
    color: var(--text-dark);
}

.technologies .section-subtitle {
    color: var(--text-light);
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.technologies__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tech-item__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ Section */
.faq {
    background: var(--bg-white);
    padding: 6rem 0;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-item__question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-item__question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-item__answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Contacts Section */
.contacts {
    background: var(--bg-soft);
    position: relative;
}

.contacts .section-title {
    color: var(--text-dark);
}

.contacts .section-subtitle {
    color: var(--text-light);
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contacts__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contacts__info {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.contacts__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.contacts__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contacts__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contacts__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.contacts__icon--email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.contacts__icon--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.contacts__icon--location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* Form Styles */
.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

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

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.captcha-input {
    max-width: 200px;
}

@media (max-width: 767px) {
    .captcha-container {
        gap: 0.5rem;
    }

    .captcha-question {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }

    .captcha-input {
        max-width: 100%;
    }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.01em;
}

.footer__text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer__subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-popup__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cookie-popup__text {
    text-align: center;
    color: var(--text-dark);
    line-height: 1.6;
}

.cookie-popup__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.cookie-popup__link:hover {
    text-decoration: underline;
}

.cookie-popup__actions {
    display: flex;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.modal__close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal__body {
    padding: 3rem 2rem 2rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.modal__body h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal__body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal__body p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.modal__body ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal__body li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 2rem;
    }

    .hero__content {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__cta {
        flex-direction: row;
        gap: 1.5rem;
    }

    .hero__visual {
        height: 450px;
    }

    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .statistics__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .technologies__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav__list {
        display: flex;
    }

    .burger {
        display: none;
    }

    .nav {
        display: block;
    }

    .section-title {
        font-size: 3rem;
    }

    .hero__title {
        font-size: 4rem;
    }

    .about__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contacts__content {
        grid-template-columns: 1fr 1.5fr;
    }

    .technologies__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-popup__text {
        text-align: left;
        flex: 1;
    }

    .modal__content {
        max-width: 800px;
    }
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 5rem 2rem 2rem;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 1.125rem;
    }
}

