/* Pilcrow — Home page styles */

/* ===== COMMON ===== */
.section-title {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 3.3vw, 48px);
    line-height: 1.1;
    text-transform: uppercase;
    color: #2b2a2b;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 60px;
    padding: 0 32px;
    min-width: 124px;
    border-radius: 20px;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
    color: #2b2a2b;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.btn--outline { border: 1px solid #2a2a2a; background: transparent; color: #2b2a2b; }
.btn--outline:hover { background: #2a2a2a; color: #fff; }
.btn--icon { padding: 0 16px; min-width: 124px; }
.btn__arrow {
    width: 48px;
    height: 24px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* ===== 1. HERO ===== */
.hero {
    position: relative;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    aspect-ratio: 1440 / 1024;
    max-height: 89vh;
    overflow: hidden;
    color: #ffffff;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/bitrix/templates/pilcrow/images/hero-bg.jpg'); /* fallback */
    background-image: image-set(
        url('/bitrix/templates/pilcrow/images/hero-bg.avif') type('image/avif'),
        url('/bitrix/templates/pilcrow/images/hero-bg.webp') type('image/webp'),
        url('/bitrix/templates/pilcrow/images/hero-bg.jpg')  type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero__title {
    position: absolute;
    z-index: 1;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    color: #e1ded7;
    margin: 0;
}
.hero__title--main      { left: 8.2%;  top: 5.5%;  font-size: clamp(48px, 7.7vw, 110px); }
.hero__title--cherez    { left: 8.8%;  top: 21.8%; font-size: clamp(28px, 4.4vw, 63px); }
.hero__title--formu     { left: 22.6%; top: 30.5%; font-size: clamp(28px, 4.4vw, 63px); }
.hero__title--nastroenie{ left: 36.7%; top: 76%;   font-size: clamp(28px, 4.4vw, 63px); }
.hero__title--igrafiku  { left: 54.7%; top: 84.5%; font-size: clamp(28px, 4.4vw, 63px); }

/* ===== 2. ABOUT ===== */
.about {
    padding: 60px 0 80px;
    background: #ffffff;
}
.about__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 494px;
    grid-template-areas:
        "brand   photoR"
        "text1   photoR"
        "text2   photoR"
        "photoB  photoR"
        "photoB  cta";
    grid-template-rows: auto auto 1fr auto auto;
    column-gap: 60px;
    row-gap: 30px;
}
.about__inner > picture { display: contents; }
.about__brand {
    grid-area: brand;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.about__brand-symbol { height: 60px; width: auto; }
.about__brand-logo { height: 60px; width: auto; }

.about__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 25px;
    text-transform: uppercase;
    color: #2b2a2b;
    margin: 0;
    max-width: 462px;
}
.about__text--1 {
    grid-area: text1;
    justify-self: end;
    align-self: start;
}
.about__text--2 {
    grid-area: text2;
    justify-self: start;
    align-self: end;
    margin-top: 220px;
}

.about__photo {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    display: block;
}
.about__photo--right {
    grid-area: photoR;
    height: 100%;
    min-height: 600px;
    max-height: 880px;
}
.about__photo--bottom {
    grid-area: photoB;
    aspect-ratio: 617 / 417;
}

.about__cta {
    grid-area: cta;
    justify-self: end;
    align-self: end;
    width: 342px;
}

/* ===== 3. COLLECTIONS ===== */
.collections {
    padding: 60px 0 80px;
    background: #ffffff;
}
.collections__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1.1fr;
    grid-template-areas:
        "title  title  title"
        "y2k    cars   print"
        "y2k    cars   cta";
    column-gap: 30px;
    row-gap: 40px;
}
.collections .section-title { grid-area: title; }

.collection-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    transition: transform .25s ease;
    transform-origin: center;
}
.collection-card:hover { transform: scale(1.015); }
.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.collection-card__label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
    color: #e1ded7;
}
.collection-card--y2k   { grid-area: y2k;   aspect-ratio: 370 / 386; align-self: end; }
.collection-card--cars  { grid-area: cars;  aspect-ratio: 510 / 771; }
.collection-card--print { grid-area: print; aspect-ratio: 342 / 385; align-self: start; }
.collection-card--cars .collection-card__label { top: 20px; bottom: auto; }

.collections__cta {
    grid-area: cta;
    align-self: end;
    justify-self: stretch;
}

/* ===== 4. NOVELTIES ===== */
.novelties {
    padding: 60px 0 80px;
    background: #ffffff;
}
.novelties__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
}
.novelties .section-title {
    margin-bottom: 40px;
}
.novelties__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.product-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease;
    transform-origin: center;
}
.product-card:hover {
    transform: scale(1.015);
}
.product-card__arrow {
    position: absolute;
    right: 20px;
    width: 200px;
    height: 60px;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 0 24px;
    color: #2b2a2b;
}
.product-card__arrow svg {
    width: 100%;
    height: 22px;
    fill: currentColor;
    flex-shrink: 1;
}
.product-card--arrow-top .product-card__arrow    { top: 20px; }
.product-card--arrow-bottom .product-card__arrow { bottom: 20px; }
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 410 / 565;
    display: block;
}
.novelties__cta {
    display: flex;
    margin-left: auto;
    width: 342px;
}

/* ===== 5. BESTSELLERS ===== */
.bestsellers {
    padding: 60px 0 80px;
    background: #ffffff;
}
.bestsellers__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
}
.bestsellers__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.bestsellers__nav { width: 124px; }
.bestsellers__swiper {
    width: 100%;
    overflow: hidden;
    user-select: none;
}
.bestsellers__swiper .swiper-wrapper {
    align-items: stretch;
}
.bestsellers__swiper .swiper-slide {
    width: 325px;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
}
.bestsellers__swiper .product-card,
.bestsellers__swiper .product-card img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}
.bestsellers__swiper .product-card:hover {
    transform: scale(1.015);
    z-index: 2;
}
.bestsellers__swiper .product-card img {
    aspect-ratio: 325 / 415;
    width: 100%;
    pointer-events: none;
}
.bestsellers__swiper .swiper-scrollbar { display: none !important; }

/* ===== 6. GENDERS ===== */
.genders {
    padding: 60px 0 80px;
    background: #ffffff;
}
.genders__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
}
.genders__logo {
    display: block;
    height: 88px;
    width: auto;
    margin: 0 auto 40px;
}
.genders__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.gender-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease;
    transform-origin: center;
}
.gender-card:hover { transform: scale(1.015); }
.gender-card__img {
    width: 100%;
    aspect-ratio: 617 / 721;
    object-fit: cover;
    display: block;
}
.gender-card__cta {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 342px;
    max-width: calc(100% - 40px);
    height: 60px;
    border: 1px solid #E1DED7;
    border-radius: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 8px;
    color: #E1DED7;
}
.gender-card__cta-text {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
    flex-shrink: 0;
}
.gender-card__cta-arrow {
    flex: 1;
    height: 22px;
    fill: currentColor;
    min-width: 0;
}

/* ===== 7. SEO OVERSIZE ===== */
.seo-oversize {
    padding: 60px 0 80px;
    background: #ffffff;
}
.seo-oversize__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.seo-oversize__title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.seo-oversize__subtitle {
    grid-column: 1 / -1;
    margin-top: 8px;
    margin-bottom: 30px;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #292d32;
    text-align: right;
}
.seo-oversize__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    text-transform: uppercase;
    color: #292d32;
}
.seo-oversize__text p {
    margin: 0 0 12px;
}
.seo-oversize__photo {
    border: 1px solid #292d32;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 534 / 302;
}
.seo-oversize__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seo-oversize__img--mobile { display: none; }

/* ===== 8. FAQ ===== */
.faq {
    padding: 60px 0 80px;
    background: #ffffff;
}
.faq__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
}
.faq .section-title {
    margin-bottom: 40px;
}
.faq__item {
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 16px;
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #2b2a2b;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__arrow {
    width: 32px;
    height: 32px;
    transition: transform .2s ease;
    flex-shrink: 0;
    color: #2b2a2b;
}
.faq__item[open] .faq__arrow {
    transform: rotate(180deg);
}
.faq__a {
    padding-top: 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    text-transform: uppercase;
    color: #2b2a2b;
}
.faq__a p { margin: 0 0 12px; }
.faq__a ol { margin: 0; padding-left: 36px; }
.faq__a li { margin-bottom: 8px; }

/* Точки-индикатор под мобильными каруселями (скрыты на десктопе) */
.scroll-dots { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "text1"
            "photoR"
            "text2"
            "photoB"
            "cta";
    }
    .about__photo--right { height: auto; aspect-ratio: 494 / 691; }
    .about__cta { justify-self: stretch; width: 100%; }
    .about__brand-symbol,
    .about__brand-logo { height: 44px; }

    .collections__inner { min-height: auto; }
    .collection-card,
    .collections .section-title,
    .collections__cta {
        position: static;
        width: 100%;
        height: auto;
    }
    .collection-card { aspect-ratio: 1 / 1; margin-bottom: 24px; }
}

@media (max-width: 768px) {
    .hero { aspect-ratio: 6 / 5; min-height: 83.33vw; }
    .hero__bg { background-image: url('/bitrix/templates/pilcrow/images/hero-bg-mobile.jpg'); }
    .hero__title--main { font-size: 34px; }
    .hero__title--cherez,
    .hero__title--formu,
    .hero__title--nastroenie,
    .hero__title--igrafiku { font-size: 24px; }
    .about__inner,
    .collections__inner,
    .novelties__inner,
    .bestsellers__inner,
    .genders__inner,
    .seo-oversize__inner,
    .faq__inner { padding: 0 16px; }
    .novelties { padding: 24px 0 40px; }
    .novelties .section-title { margin-bottom: 16px; }
    .novelties__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
    .product-card__arrow { width: 44px; height: 22px; right: 7px; padding: 0 8px; border-radius: 7px; }
    .product-card__arrow svg { height: 10px; }
    .product-card--arrow-top .product-card__arrow { top: 7px; }
    .product-card--arrow-bottom .product-card__arrow { bottom: 7px; }
    .faq { padding: 28px 0 28px; }
    .faq .section-title { margin-bottom: 16px; }
    .faq__item { border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
    .faq__q { font-size: 16px; gap: 12px; }
    .faq__arrow { width: 20px; height: 20px; }
    .faq__a { padding-top: 10px; font-size: 11px; line-height: 17px; }
    .faq__a p { margin: 0 0 8px; }
    .faq__a ol { padding-left: 18px; }
    .faq__a li { margin-bottom: 4px; }
    .btn { font-size: 24px; height: 52px; padding: 0 20px; border-radius: 8px; }
    .btn__arrow { width: 60px; }
    .novelties__cta { width: fit-content; height: 40px; padding: 0 18px; font-size: 16px; gap: 10px; }
    .novelties__cta .btn__arrow { width: 32px; }

    /* Заголовки секций по макету Figma (мобайл) */
    .section-title { font-size: 24px; }

    /* ===== О БРЕНДЕ (мобайл) ===== */
    .about { padding: 28px 0 36px; }
    .about__inner {
        grid-template-columns: 1fr 0.8fr;
        grid-template-areas:
            "brand  brand"
            "text1  photoR"
            "cta    photoR";
        grid-template-rows: auto auto 1fr;
        column-gap: 14px;
        row-gap: 14px;
    }
    .about__text--2,
    .about__photo--bottom { display: none; }
    .about__brand-symbol,
    .about__brand-logo { height: 32px; }
    .about__text { font-size: 13px; line-height: 17px; max-width: none; }
    .about__text--1 { justify-self: start; align-self: start; }
    .about__photo--right {
        grid-area: photoR;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 175 / 245;
        align-self: start;
        border-radius: 8px;
    }
    .about__cta {
        grid-area: cta;
        justify-self: start;
        align-self: end;
        width: auto;
        height: 38px;
        padding: 0 16px;
        font-size: 16px;
        gap: 10px;
        border-radius: 8px;
    }
    .about__cta .btn__arrow { width: 32px; }

    /* ===== КОЛЛЕКЦИИ (мобайл) ===== */
    .collections { padding: 28px 0 32px; }
    .collections__inner {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "title title title"
            "y2k   cars  print";
        column-gap: 8px;
        row-gap: 16px;
    }
    .collection-card,
    .collection-card--y2k,
    .collection-card--cars,
    .collection-card--print {
        position: relative;
        margin-bottom: 0;
        aspect-ratio: 130 / 199;
        align-self: stretch;
        border-radius: 8px;
    }
    .collection-card__label { font-size: 12px; bottom: 10px; left: 10px; }
    .collection-card--cars .collection-card__label { top: 10px; bottom: auto; }
    .collections__cta { display: none; }

    /* ===== БЕСТСЕЛЛЕРЫ (мобайл) ===== */
    .bestsellers { padding: 28px 0 36px; }
    .bestsellers__head { justify-content: flex-end; margin-bottom: 16px; }
    .bestsellers__nav { display: none; }
    .bestsellers__swiper .swiper-slide { width: 164px; }
    .bestsellers__swiper .product-card {
        border: 1px solid #2a2a2a;
        border-radius: 20px;
    }
    .bestsellers__swiper .product-card img {
        aspect-ratio: 164 / 209;
        border-radius: 20px;
    }

    /* Точки-индикатор */
    .scroll-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
    }
    .scroll-dots span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #c9c7c2;
    }

    /* ===== ПИЛКРОУ — МУЖЧИНЫ / ЖЕНЩИНЫ (мобайл) ===== */
    .genders { padding: 8px 0 28px; }
    .genders__logo { height: 32px; margin: 0 auto 20px; }
    .genders__cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gender-card { border-radius: 8px; }
    .gender-card__img { aspect-ratio: 196 / 229; }
    .gender-card__cta {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 12px;
        width: auto;
        max-width: calc(100% - 20px);
        height: 24px;
        padding: 0 12px;
        gap: 8px;
        border-radius: 8px;
        justify-content: center;
    }
    .gender-card__cta-text { font-size: 12px; }
    .gender-card__cta-arrow { flex: none; width: 16px; height: 9px; }

    /* ===== SEO ОВЕРСАЙЗ (мобайл): текст поверх фото ===== */
    .seo-oversize { padding: 8px 0 32px; }
    .seo-oversize__inner { grid-template-columns: 1fr; gap: 0; }
    .seo-oversize__title { font-size: 20px; text-align: center; margin: 0 0 4px; color: #292d32; }
    .seo-oversize__subtitle {
        grid-column: 1 / -1;
        font-size: 16px;
        text-align: center;
        margin: 0 0 18px;
    }
    .seo-oversize__photo {
        grid-area: 3 / 1;
        border: none;
        border-radius: 8px;
        aspect-ratio: 402 / 365;
    }
    .seo-oversize__img--desktop { display: none; }
    .seo-oversize__img--mobile { display: block; object-position: center top; }
    .seo-oversize__text {
        grid-area: 3 / 1;
        z-index: 1;
        align-self: start;
        padding: 6px 18px 22px 12px;
        font-size: 11px;
        line-height: 15px;
        color: #e1ded7;
    }
    .seo-oversize__text p { display: inline; margin: 0; }
}
