/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #d4af37;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.highlight {
    color: var(--accent-color);
}

/* Кнопки */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Хедер */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header__phone {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    white-space: nowrap;
}

.header__social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link.whatsapp {
    background-color: #25D366;
}

.social-link.telegram {
    background-color: #0088cc;
}

.social-link.vk {
    background-color: #4680C2;
}

.social-link:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #fafbfc 0%, var(--white) 100%);
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__image {
    text-align: center;
}

.hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

/* Услуги */
.services {
    padding: 6rem 0;
    background-color: var(--white);
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: var(--shadow);
}

.service-item__header {
    padding: 1.5rem;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.service-item__header:hover {
    background-color: #e9ecef;
}

.service-item__header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
}

.service-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-item.active .service-toggle {
    transform: rotate(45deg);
}

.service-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-item.active .service-item__content {
    max-height: 500px;
    padding: 1.5rem;
}

.service-item__content ul {
    list-style: none;
    padding-left: 0;
}

.service-item__content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-item__content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-item__content li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-item__content li a:hover {
    color: var(--primary-color);
}

/* Преимущества */
.advantages {
    padding: 6rem 0;
    background-color: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advantages__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.advantages__info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.advantages__info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.work-process {
    margin-top: 4rem;
}

.work-process__steps {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.step__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__icon svg {
    width: 100%;
    height: 100%;
}

.step h4 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.won-cases {
    margin-top: 4rem;
}

.won-cases__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Блок доверия */
.trust {
    padding: 6rem 0;
    background-color: #0a0e1a;
    position: relative;
    overflow: hidden;
}

.trust__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230a0e1a"/><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="%23151a25" opacity="0.5"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.trust .container {
    position: relative;
    z-index: 1;
}

.trust__header {
    text-align: center;
    margin-bottom: 4rem;
}

.trust__subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
}

.trust__icon {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
}

.trust__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.02em;
}

.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
    min-height: 400px;
}

.review-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.review-slide.active {
    display: block;
}

.review-slide__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.3) 100%);
}

.review-slide__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-slide__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.5) 100%);
}

.review-slide__name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.review-slide__role {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.review-slide__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.review-slide__rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: var(--accent-color);
    width: 24px;
}

/* Секция сертификатов (ниже отзывов, на светлом фоне) */
.certificates-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.certificates-section .section-title {
    margin-bottom: 3rem;
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.certificate:hover {
    transform: scale(1.05);
}

.certificate img {
    width: 100%;
    height: auto;
    display: block;
}

/* Форма обратной связи */
.contact-form-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form__image {
    position: relative;
}

.contact-form__image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.contact-form__form {
    padding: 2rem 0;
}

.contact-form__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-form__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    background-color: transparent;
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9b7dd4;
}

.form-group textarea {
    resize: vertical;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
}

.phone-input-wrapper:focus-within {
    border-color: #9b7dd4;
}

.phone-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background-color: #f5f5f5;
    border-right: 1px solid #d0d0d0;
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.phone-input-wrapper input {
    border: none;
    flex: 1;
    padding: 1rem;
}

.phone-input-wrapper input:focus {
    outline: none;
    border: none;
}

.form-checkboxes {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #7b5fb8;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #6a4fa0;
}

/* Футер */
.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__column h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer__column p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer__column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__column a:hover {
    color: var(--accent-color);
}

.footer__column ul {
    list-style: none;
}

.footer__column ul li {
    margin-bottom: 0.5rem;
}

.footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer__map {
    border-radius: 8px;
    overflow: hidden;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
}

.modal__close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: var(--text-color);
}

.modal__content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Мобильное меню */
@media (max-width: 968px) {
    .header__nav,
    .header__contacts {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .header__nav.mobile-active,
    .header__contacts.mobile-active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .header__contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Адаптивность */
@media (max-width: 968px) {
    .work-process__steps {
        flex-direction: column;
        align-items: stretch;
    }

    .step {
        max-width: 100%;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form__image {
        order: 2;
    }

    .contact-form__form {
        order: 1;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .trust__title {
        font-size: 2rem;
    }

    .won-cases__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .certificates__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .won-cases__stats {
        grid-template-columns: 1fr;
    }

    .certificates__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }
}
