/* ==========================================================================
   Штыковские двери — стили главной страницы
   ========================================================================== */

/* ============================ Главный экран ============================ */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--anthracite);
    overflow: hidden;
}
@media (min-width: 1024px) { .hero { min-height: 640px; align-items: center; } }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1s var(--ease), transform 7s linear;
    transform: scale(1.06);
}
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16, 19, 21, .5) 0%, rgba(16, 19, 21, .35) 40%, rgba(16, 19, 21, .92) 100%);
}
@media (min-width: 1024px) {
    .hero__overlay {
        background: linear-gradient(90deg, rgba(16, 19, 21, .93) 0%, rgba(16, 19, 21, .72) 45%, rgba(16, 19, 21, .25) 100%);
    }
}

.hero__inner { position: relative; padding-top: 60px; padding-bottom: 40px; }
@media (min-width: 1024px) { .hero__inner { padding: 60px 32px; } }
.hero__content { max-width: 640px; }
.hero__eyebrow { color: #8fc4a8; }
.hero__title { color: #fff; margin-bottom: 14px; text-wrap: balance; }
.hero__lead { font-size: 16px; color: #d3d8da; max-width: 54ch; margin-bottom: 24px; }
@media (min-width: 1024px) { .hero__lead { font-size: 18px; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 200px; }
@media (min-width: 700px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__facts b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 700px) { .hero__facts b { font-size: 30px; } }
.hero__facts span { font-size: 11px; color: #a9b0b4; line-height: 1.3; display: block; }
@media (min-width: 700px) { .hero__facts span { font-size: 13px; } }

.hero__dots {
    position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
    display: flex; justify-content: center; gap: 8px;
}
@media (min-width: 1024px) { .hero__dots { left: auto; right: 32px; bottom: 32px; flex-direction: column; } }
.hero__dot {
    width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px;
    background: rgba(255, 255, 255, .35); transition: background .2s var(--ease), width .2s var(--ease);
}
@media (min-width: 1024px) { .hero__dot { width: 4px; height: 26px; } }
.hero__dot.is-on { background: #fff; }

/* ============================ Преимущества ============================ */
.adv__item {
    position: relative; padding: 22px 20px 20px;
    background: var(--bg-2); border-radius: var(--radius-lg);
    border: 1px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.adv__item:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.adv__num {
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em;
    color: var(--accent); margin-bottom: 10px;
}
.adv__item h3 { font-size: 18px; margin-bottom: 8px; }
.adv__item p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ============================ Акции ============================ */
.promo-strip { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .promo-strip { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 210px; padding: 20px; border-radius: var(--radius-lg); overflow: hidden;
    color: #fff; background: var(--anthracite);
}
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s var(--ease); }
.promo-card:hover img { transform: scale(1.05); }
.promo-card > * { position: relative; }
.promo-card h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.promo-card p { font-size: 14px; color: #d3d8da; margin-bottom: 12px; }
.promo-card__until {
    position: absolute; top: 16px; left: 16px; padding: 5px 10px; border-radius: 3px;
    background: var(--sale); font-size: 12px; font-weight: 700;
}

/* ============================ Категории ============================ */
.cats { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 260px; padding: 22px; border-radius: var(--radius-lg); overflow: hidden;
    color: #fff; background: var(--anthracite);
}
@media (min-width: 1024px) { .cat:first-child { grid-column: span 2; min-height: 320px; } }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16, 19, 21, .05) 30%, rgba(16, 19, 21, .85) 100%);
}
.cat:hover img { transform: scale(1.05); }
.cat > * { position: relative; z-index: 1; }
.cat h3 { color: #fff; margin-bottom: 6px; }
.cat p { font-size: 14px; color: #d3d8da; margin-bottom: 10px; max-width: 46ch; }
.cat__price { font-size: 13px; color: #8fc4a8; font-weight: 600; }

/* ============================ Карусели ============================ */
.carousel { position: relative; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.carousel__track {
    display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: thin;
}
.carousel__track::-webkit-scrollbar { height: 4px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: 2px; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 82%; }
@media (min-width: 700px) { .carousel__track > * { flex: 0 0 46%; } }
@media (min-width: 1024px) { .carousel__track > * { flex: 0 0 31%; } }

.proj {
    display: block; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--anthracite-2); color: #fff;
}
.proj__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--anthracite-2); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__body { padding: 16px 18px 20px; }
.proj__type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fc4a8; }
.proj h3 { font-size: 17px; color: #fff; margin: 6px 0 8px; }
.proj__meta { font-size: 13px; color: #a9b0b4; }

.review {
    display: flex; flex-direction: column; gap: 12px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.review__stars { color: var(--star); font-size: 15px; letter-spacing: 2px; }
.review__text { font-size: 15px; color: var(--ink-2); margin: 0; }
.review__who { margin-top: auto; font-size: 14px; }
.review__who b { display: block; }
.review__who span { color: var(--muted); font-size: 13px; }

.ya-rating { display: flex; align-items: center; gap: 14px; }
.ya-rating__score { display: flex; flex-direction: column; align-items: center; }
.ya-rating__score b { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.ya-rating__score span { color: var(--star); font-size: 14px; letter-spacing: 2px; }
.ya-rating__meta { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ============================ Этапы сервиса ============================ */
.steps { display: grid; gap: var(--gap); grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps__item { position: relative; padding: 20px; background: var(--bg-2); border-radius: var(--radius-lg); }
.steps__n {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 800;
}
.steps__item h3 { font-size: 17px; margin-bottom: 6px; }
.steps__item p { font-size: 14px; color: var(--ink-2); margin: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 220px; }
@media (min-width: 700px) { .cta-row .btn { flex: 0 0 auto; } }

/* ============================ Партнёры ============================ */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 40px; align-items: center; animation: slide 34s linear infinite; width: max-content; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
    display: flex; align-items: center; justify-content: center; height: 68px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
    font-weight: 700; color: var(--muted); white-space: nowrap; letter-spacing: .04em;
}

/* ============================ Мозаика ============================ */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 1; border: 0; padding: 0; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic__item:hover img { transform: scale(1.07); }
@media (min-width: 700px) {
    .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
    .mosaic__item:nth-child(6) { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* ============================ Контакты ============================ */
.contacts-block { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contacts-block { grid-template-columns: 1.3fr 1fr; } }

.map {
    position: relative; min-height: 320px; height: 100%;
    background: #e8ece9; border-radius: var(--radius-lg); overflow: hidden;
}
.map__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px; opacity: .55;
}
.map__pins { position: absolute; inset: 0; }
.map__pin {
    position: absolute; transform: translate(-50%, -100%);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; padding: 0; color: var(--ink);
}
.map__pin::after {
    content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
    background: var(--accent); transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.map__pin span {
    font-size: 12px; font-weight: 700; background: #fff; padding: 3px 7px;
    border-radius: 3px; box-shadow: var(--shadow); white-space: nowrap;
}
.map__pin:hover span { background: var(--accent); color: #fff; }
.map__note {
    position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0;
    font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .9);
    padding: 8px 10px; border-radius: var(--radius);
}

.salon {
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.salon:last-child { border-bottom: 0; }
.salon h3 { font-size: 17px; margin-bottom: 4px; }
.salon p { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.salon a { color: var(--accent); font-weight: 600; }
.salon small { color: var(--muted); font-size: 13px; }

.ask-block {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 32px; padding: 26px; background: var(--accent-tint); border-radius: var(--radius-lg);
}
.ask-block h3 { margin-bottom: 4px; }
.ask-block p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 52ch; }
.ask-block__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================ Просмотрщик ============================ */
.lightbox {
    position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
    background: rgba(12, 14, 15, .94); padding: 40px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
    position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .18s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; margin-top: -23px; }
.lightbox__nav--next { right: 12px; top: 50%; margin-top: -23px; }
.lightbox__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #c9ced1; font-size: 14px; margin: 0; }
