/* ============================================
   ASHIROV - УЛУЧШЕННАЯ ВЕРСИЯ СЛАЙДЕРА
   Увеличенные карточки + плавный свайп
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #122C4F;
    --dark-bg: #2A2A2A;
    --card-beige: #FCF7E4;
    --text-white: #FFFFFF;
    --text-dark: #2A2A2A;
    --font-main: 'El Messiri', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--primary-blue);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-white);
    transition: opacity 0.3s;
}

.header__link:hover {
    opacity: 0.8;
}

/* ===== MAIN ===== */
.main {
    margin-top: 80px;
    padding: 40px 0;
}

/* ===== HERO - БЕЗ ЗАТЕМНЕНИЯ ПО УМОЛЧАНИЮ ===== */
.hero {
    background: url('assets/img/hero-bg.jpg') center/cover no-repeat;
    height: 500px;
    position: relative;
    border-radius: 24px;
    margin: 0 40px 60px;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.hero:hover .hero__overlay {
    background: rgba(0, 0, 0, 0.4);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero:hover .hero__title {
    opacity: 1;
}

/* ===== SECTION ===== */
.section {
    padding: 60px 0;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-white);
}

/* ===== ПРЕИМУЩЕСТВА - УВЕЛИЧЕННЫЕ ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.advantage-card {
    background-color: var(--primary-blue);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

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

.advantage-card__icon {
    font-size: 72px;
    margin-bottom: 30px;
}

.advantage-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.advantage-card__text {
    font-size: 16px;
    color: var(--text-white);
    opacity: 0.95;
    line-height: 1.8;
}

/* ===== КАРУСЕЛЬ УСЛУГ - УЛУЧШЕННАЯ ===== */
.services-slider {
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

.services-slider__container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.services-slider__container:active {
    cursor: grabbing;
}

.services-slider__container::-webkit-scrollbar {
    display: none;
}

.services-slider__track {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.service-card {
    min-width: 400px;
    max-width: 400px;
    width: 400px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-radius: 24px;
    padding: 40px 30px;
    flex-shrink: 0;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
}

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

.service-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
    min-height: 65px;
    line-height: 1.4;
}

.service-card__description {
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-white);
    opacity: 0.9;
    min-height: 95px;
    flex-grow: 1;
}

.service-card__price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.service-card__format {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-white);
    opacity: 0.8;
}

.service-card__button {
    width: 100%;
    background-color: var(--text-white);
    color: var(--primary-blue);
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
}

.service-card__button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 20px;
}

.slider-arrow:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev {
    left: 50px;
}

.slider-arrow--next {
    right: 50px;
}

/* ===== КАК ЭТО РАБОТАЕТ - КАК В FIGMA ===== */
.steps {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.step {
    background-color: var(--card-beige);
    border-radius: 24px;
    padding: 50px 60px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    color: var(--text-dark);
    min-height: 280px;
}

.step__number {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    min-width: 120px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.step__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-dark);
}

.step__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0;
}

.step__button {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s;
}

.step__button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== ОТЗЫВЫ - ОДИНАКОВЫЕ КАРТОЧКИ ===== */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.review-card {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.review-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
}

/* ===== КАТАЛОГ - С ПОЛНЫМИ ОПИСАНИЯМИ ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.catalog-grid .service-card {
    background-color: var(--card-beige);
    color: var(--text-dark);
    min-width: auto;
    max-width: none;
    width: 100%;
}

.catalog-grid .service-card__title,
.catalog-grid .service-card__description,
.catalog-grid .service-card__price,
.catalog-grid .service-card__format {
    color: var(--text-dark);
}

.catalog-grid .service-card__description {
    min-height: 120px;
    opacity: 1;
}

.catalog-grid .service-card__button {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* ===== КОНТАКТЫ - БЕЗ ДВОЙНОГО ЗАГОЛОВКА ===== */
.contacts-card {
    background-color: var(--card-beige);
    border-radius: 24px;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

.contacts-card__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.contacts-card__item {
    margin-bottom: 20px;
    text-align: center;
}

.contacts-card__label {
    font-size: 16px;
    margin-bottom: 5px;
}

.contacts-card__value {
    font-size: 18px;
    font-weight: 600;
}

.contacts-card__value a {
    color: var(--text-dark);
    transition: opacity 0.3s;
}

.contacts-card__value a:hover {
    opacity: 0.7;
}

.schedule {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.schedule__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.schedule__text {
    font-size: 16px;
}

/* ===== ФОРМА CHECKOUT ===== */
.checkout-form {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-form__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-white);
}

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

.form-group__input,
.form-group__textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background-color: transparent;
    color: var(--text-white);
    font-size: 16px;
    font-family: var(--font-main);
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group__input:focus,
.form-group__textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.form-group__textarea {
    min-height: 100px;
    resize: vertical;
    border-radius: 20px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-checkbox__input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
}

.form-checkbox__label {
    font-size: 14px;
    color: var(--text-white);
}

.form-checkbox__label a {
    color: var(--text-white);
    text-decoration: underline;
    cursor: pointer;
}

.form-checkbox__label a:hover {
    opacity: 0.8;
}

.form-submit {
    width: 100%;
    background-color: var(--text-white);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== FOOTER - ПРАВИЛЬНАЯ ВЕРСТКА ===== */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
    opacity: 0.95;
}

.footer__link {
    font-size: 14px;
    line-height: 2;
    cursor: pointer;
    transition: opacity 0.3s;
    color: var(--text-white);
}

.footer__link:hover {
    opacity: 0.7;
}

.footer__section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.payment-systems {
    display: flex;
    gap: 20px;
    margin: 20px 0 25px;
    align-items: center;
    justify-content: center;
}

.payment-systems img {
    height: 40px;
    width: auto;
}

.footer__payment-text {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.9;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .service-card {
        min-width: 380px;
        max-width: 380px;
        width: 380px;
    }
    
    .slider-arrow--prev {
        left: 20px;
    }
    
    .slider-arrow--next {
        right: 20px;
    }
}

@media (max-width: 900px) {
    .advantages,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        height: 500px;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container,
    .advantages,
    .services-slider,
    .steps,
    .reviews,
    .catalog-grid {
        padding: 0 20px;
    }
    
    /* Компактный header для мобильных */
    .header {
        padding: 12px 0;
    }
    
    .header__container {
        padding: 0 15px;
    }
    
    .header__logo {
        font-size: 22px;
    }
    
    .header__nav {
        gap: 12px;
    }
    
    .header__link {
        font-size: 15px;
        white-space: nowrap;
    }
    
    .main {
        margin-top: 60px;
    }
    
    .hero {
        margin: 0 20px 40px;
        height: 300px;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .section__title {
        font-size: 28px;
    }
    
    .advantages,
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 40px 30px;
    }
    
    .reviews {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        height: 450px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .slider-arrow {
        display: none;
    }
    
    .service-card {
        min-width: 85vw;
        max-width: 85vw;
        width: 85vw;
    }
    
    /* Убираем hover эффекты на мобильных для плавного свайпа */
    .service-card:hover {
        transform: none;
    }
    
    .advantage-card:hover {
        transform: none;
    }
    
    .contacts-card,
    .checkout-form {
        padding: 30px 20px;
    }
    
    .footer__container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .header__container {
        padding: 0 10px;
    }
    
    .header__logo {
        font-size: 20px;
    }
    
    .header__nav {
        gap: 8px;
    }
    
    .header__link {
        font-size: 13px;
    }
    
    .main {
        margin-top: 50px;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .service-card {
        min-width: 90vw;
        max-width: 90vw;
        width: 90vw;
    }

.legal-page {
    max-width: 800px;
    margin: 80px auto 120px;
    padding: 0 16px;
}

.legal-page h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.legal-page h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p {
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 0 0 16px 20px;
}

.legal-page li {
    margin-bottom: 6px;
}
   
    /* Убираем все hover эффекты на маленьких экранах */
    .service-card:hover,
    .advantage-card:hover,
    .slider-arrow:hover,
    .service-card__button:hover,
    .step__button:hover {
        transform: none;
    }
}
