/* HERO */
.hero {
    display: flex;
    position: relative;
    align-items: center;
    margin-block: 0 50px;
    background: url('../img/ar-hand-1.jpg') center/cover no-repeat;
    height: 100vh;
    min-height: 600px;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.5), #121212);
    width: 100%;
    height: 100%;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.hero__title {
    margin-bottom: 20px;
    font-size: 64px;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.hero__subtitle {
    margin: 0 auto 40px auto;
    max-width: 600px;
    color: var(--color-text-muted);
    font-size: 20px;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 992px) {
    .hero__title {
        font-size: 40px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Базовая сетка */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Обычная карточка */
.service-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
    background: transparent;
    padding: 15px;
    overflow: hidden;
}

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

.service-card__img {
    border-radius: 15px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.service-card__title {
    margin: 0;
    color: var(--color-text-on-white);
    font-size: var(--section-text-font-size);
}

.service-card__text {
    margin: 0;
    color: var(--color-text-muted-on-white);
    font-size: var(--card-text-font-size);
}

/* Кнопки в обычных (узких) карточках: ставим друг под другом */
.service-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.service-card__link,
.service-card__order {
    transition: var(--transition);
    cursor: pointer;
    border-radius: 25px;
    padding: 12px 18px;
    width: 100%;
    font-weight: 600;
    text-align: center;
}

.service-card__link {
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-text-on-white);
}

.service-card__order {
    border: none;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.service-card__link:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.05);
}

.service-card__order:hover {
    transform: translateY(-3px);
    filter: brightness(0.85);
}

.service-card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    margin-block: 40px;
    background: var(--color-primary);
}

.service-card--wide .service-card__img {
    max-width: 50%;
    height: 100%;
}

.service-card--wide .service-card__title {
    color: var(--color-text-on-primary);
}

.service-card--wide .service-card__text {
    color: var(--color-text-muted);
}

.service-card--wide .service-card__actions {
    flex-direction: row;
    margin-top: 20px;
}

.service-card--wide .service-card__link {
    border-color: var(--color-bg-white);
    color: var(--color-text-on-primary);
}

.service-card--wide .service-card__order {
    background: var(--color-bg-white);
    color: var(--color-text-on-white);
}

@media (max-width: 992px) {
    .services__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card--wide {
        grid-column: span 1;
        flex-direction: column;
        margin-block: 20px;
    }

    .service-card--wide .service-card__img {
        border-radius: 15px 15px 0 0;
        max-width: 100%;
        height: 250px;
    }

    .service-card__actions,
    .service-card--wide .service-card__actions {
        flex-direction: column;
        max-width: 100%;
    }
}

/* ADVANTAGES */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-block-start: 20px;
}

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

.advantage-card__img {
    transition: transform 0.5s ease;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
}

.advantage-card__img:hover {
    transform: scale(1.05);
}

.advantage-card__title {
    margin-top: 20px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 28px;
    line-height: normal;
    text-align: center;
}

.advantage-card__text {
    margin-block-start: 15px;
    color: var(--color-text-muted-on-white);
    font-size: var(--standart-text-size);
    text-align: center;
}

@media (max-width: 992px) {
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantage-card__img {
        height: 250px;
    }

    .advantage-card__title {
        font-size: 24px;
    }
}

/* SWIPERS (Clients & Cases) */
.clients {
    padding: 60px 0;
}

.swiper {
    --swiper-theme-color: var(--color-primary);
    --swiper-pagination-bullet-size: 8px;
    position: relative;
    margin: 0 auto;
    padding: 20px 40px 50px;
    max-width: 100%;
}

.clients-swiper {
    --swiper-pagination-top: 120px;
}

.cases-swiper {
    --swiper-pagination-top: auto;
}

.cases-swiper .swiper-button-next,
.cases-swiper .swiper-button-prev {
    top: 50%;
}

.clients-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.clients-swiper .swiper-slide a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.clients-swiper .swiper-slide img {
    transform: scale(1);
    transition: all 0.3s ease;
    border-radius: 0;
    max-width: 155px;
    max-height: 60px;
    object-fit: contain;
}

.clients-swiper .swiper-slide img:hover {
    position: relative;
    transform: scale(1.15);
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 40%;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: transparent;
    width: 44px;
    height: 44px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    transition: color 0.3s ease;
    color: #666666;
    font-weight: bold;
    font-size: 14px;
    font-family: swiper-icons;
    text-transform: none;
}

.swiper-button-prev {
    left: 0px;
}

.swiper-button-next {
    right: 0px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    border-color: var(--color-primary);
    background: #f5f5f5;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: var(--color-primary);
}

.case-card {
    display: flex;
    align-items: center;
    gap: 40px;
    border-radius: 20px;
    background: #ffffff;
    padding: 20px;
    overflow: hidden;
}

.case-card__image-wrapper {
    flex: 0 0 50%;
    border-radius: 15px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.case-card__img:hover {
    transform: scale(1.05);
}

.case-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 15px;
}

.case-card__title {
    margin: 0;
    color: #333;
    font-size: 24px;
    line-height: 1.2;
}

.case-card__desc {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.case-card__link {
    align-self: flex-start;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .case-card {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .case-card__image-wrapper {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* STEPS */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    user-select: none;
}

.step-item {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    background: #ffffff;
    padding: 40px 30px;
    overflow: hidden;
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.step-item__number {
    position: absolute;
    top: -10px;
    right: 10px;
    opacity: 0.3;
    z-index: 1;
    transition: all 0.4s ease;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 100px;
}

.step-item:hover .step-item__number {
    transform: scale(1.1);
    opacity: 1;
}

.step-item::before {
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.4s ease;
    background: var(--color-primary);
    width: 0;
    height: 4px;
    content: '';
}

.step-item:hover::before {
    width: 100%;
}

.step-item__title {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-text-on-white);
    font-weight: 700;
    font-size: 22px;
    text-align: center;
}

.step-item__text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.steps__footer {
    position: relative;
    transition: all 0.5s;
    margin-right: auto;
    margin-left: auto;
    margin-block: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    background: #ffffff;
    padding: 35px;
    max-width: 550px;
    overflow: hidden;
    text-align: center;
}

.steps__footer-title {
    color: var(--color-text-muted-on-white);
}

.steps__footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.steps__footer svg {
    transition: transform 0.5s ease, color 0.3s ease;
}

.steps__footer:hover svg {
    transform: rotate(15deg) scale(1.1);
    color: var(--color-primary);
}

.steps__footer-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
    color: var(--color-text-on-white);
    font-weight: 800;
    font-size: 32px;
}

.steps__footer-time span {
    position: relative;
    z-index: 1;
}

.steps__footer-time span::after {
    position: absolute;
    bottom: 4px;
    left: 0;
    opacity: 0.3;
    z-index: -1;
    transition: width 0.4s ease-out;
    background: var(--color-primary);
    width: 0;
    height: 8px;
    content: '';
}

.steps__footer:hover .steps__footer-time span::after {
    width: 100%;
}

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

@media (max-width: 768px) {
    .steps__grid {
        grid-template-columns: 1fr;
    }
}

/* CALC */
.calc-section {
    padding: 40px 20px;
}

.calc-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 10px;
}

.calc-title {
    margin-bottom: 15px;
    color: var(--color-text-on-white);
    font-weight: 800;
    font-size: 48px;
}

.calc-subtitle {
    margin-bottom: 40px;
    color: #666;
    font-size: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.input-group label {
    transition: color 0.3s ease;
    margin-bottom: 8px;
    color: #999;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.input-group input {
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 25px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 10px 20px rgba(168, 0, 33, 0.05);
    border-color: var(--color-primary);
    background: #fff;
}

.input-group input:focus+label,
.input-group:focus-within label {
    color: var(--color-primary);
}

.calc-form-side {
    padding-inline-end: 75px;
}

.calc-info-card {
    position: relative;
    box-shadow: 0 20px 40px rgba(168, 0, 33, 0.2);
    border-radius: 30px;
    background: var(--color-primary);
    padding: 25px;
    color: white;
}

.calc-info-card h3 {
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
}

.calc-list {
    padding: 0;
    list-style: none;
}

.calc-list li {
    position: relative;
    opacity: 0.95;
    margin-bottom: 20px;
    padding-left: 15px;
    font-size: var(--standart-text-size);
}

.calc-list li::before {
    position: absolute;
    left: 0;
    content: '●';
    color: #fff;
    font-size: 14px;
}

.form-privacy {
    margin-top: 20px;
    color: #aaa;
    font-size: 13px;
}

.form-privacy a {
    color: var(--color-primary);
    text-decoration: none;
}

@media (max-width: 992px) {
    .calc-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .calc-info-card {
        order: -1;
    }

    .calc-form-side {
        padding-inline-end: 0;
    }
}

/* FAQ */
.faq {
    background: #fff;
    padding: 40px 0;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    max-width: 800px;
}

.faq-item {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #f9f9f9;
}

.faq-item.is-active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
    background: #fff;
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 25px 30px;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    list-style: none;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

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

.faq-item__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 50%;
    background: #eee;
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 12px;
}

.faq-item.is-active .faq-item__icon {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: #fff;
}

.faq-item__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.is-active .faq-item__content {
    grid-template-rows: 1fr;
}

.faq-item__inner {
    overflow: hidden;
}

.faq-item__text {
    margin: 0;
    padding: 0 30px 25px 30px;
    color: #555;
    line-height: 1.6;
}

/* CONTACTS */
.contacts-section {
    padding: 40px 0;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 40px;
}

.contacts__card {
    border-radius: 24px;
    padding: 40px;
}

.contacts__card-title {
    margin-bottom: 25px;
    color: var(--color-text-on-white);
    font-weight: 700;
    font-size: 24px;
}

.contacts__card--primary {
    box-shadow: 0 15px 30px rgba(168, 0, 33, 0.15);
    background: var(--color-primary);
    color: white;
}

.contacts__card--primary .contacts__card-title {
    color: white;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-icon {
    fill: currentColor;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
}

.contacts__card--light {
    border: 1px solid #eaeaea;
    background: #fcfcfc;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    font-size: 15px;
}

.contacts__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contacts__list span {
    color: #666;
    white-space: nowrap;
}

.contacts__list strong {
    color: #333;
    text-align: right;
}

@media (max-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .contacts__list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contacts__list strong {
        text-align: left;
    }
}

/* MAP */
.map-section {
    padding: 0 0 20px 0;
}

.map-section__header {
    margin-block: 40px;
    text-align: center;
}

.map-wrapper {
    position: relative;
    transform: translateZ(0);
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background-color: var(--color-bg-white);
    width: 100%;
    max-width: var(--container-width);
    min-height: 400px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-wrapper {
        border-radius: 0;
    }
}