/*
Theme Name: AutoStyle24
Theme URI: https://autostyle24.ru
Author: AutoStyle24
Description: Одностраничная тема для студии детейлинга и автостайлинга.
Version: 1.0
Text Domain: autostyle24
*/

/* Базовые стили */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-main: #05060a;
    --bg-dark: #0b0d12;
    --bg-card: #10131b;
    --accent: #ff4b2b;
    --accent-soft: rgba(255, 75, 43, 0.1);
    --text: #f5f5f5;
    --text-muted: #9aa0b5;
    --border: #1b1f2a;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.5rem;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.6);
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151b28 0, #05060a 55%, #020308 100%);
    color: var(--text);
    line-height: 1.6;
}

/* Контейнер */

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

/* Кнопки */

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff814b);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
}

.btn--small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn--full {
    width: 100%;
}

/* Шапка */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: radial-gradient(circle at top, rgba(10, 14, 24, 0.98), rgba(2, 3, 8, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    gap: 1rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ffdd3c);
    margin-right: 8px;
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.7);
}

/* Навигация */

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav__link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.2rem;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #ff814b);
    transition: width var(--transition-fast);
}

.nav__link:hover {
    color: #fff;
}

.nav__link:hover::after {
    width: 100%;
}

/* Контакты в шапке */

.header__contacts {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header__phone {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    white-space: nowrap;
}

/* Бургер */

.burger {
    display: none;
    width: 38px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 18, 0.95);
    padding: 0 9px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.burger span {
    height: 2px;
    border-radius: 999px;
    background: #fff;
    width: 100%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
    position: relative;
    min-height: 88vh;
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at top, #181f2e 0, #05060a 55%, #020308 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -120px;
    background: url("img/hero-bg.jpg") center/cover no-repeat;
    opacity: 0.17;
    filter: saturate(1.2) contrast(1.15);
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 75, 43, 0.2) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(77, 147, 255, 0.25) 0, transparent 45%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.7rem;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.2rem, 3.1vw + 1.4rem, 3.1rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero__title span {
    display: block;
    font-weight: 500;
    font-size: 0.9em;
    color: var(--accent);
    text-transform: none;
}

.hero__subtitle {
    max-width: 560px;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 1.4rem;
    font-weight: 700;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero card */

.hero__card {
    background: radial-gradient(circle at top left, rgba(255, 75, 43, 0.25), rgba(9, 10, 19, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.6rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.hero__card-title {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

.hero__card-text {
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Формы */

.form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form__input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 9, 16, 0.85);
    color: #fff;
    font: inherit;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form__input--textarea {
    min-height: 110px;
    border-radius: 1rem;
    resize: vertical;
}

.form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 75, 43, 0.3);
    background: rgba(5, 7, 13, 0.95);
}

.form__note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Секции */

.section {
    padding: 3.3rem 0;
}

.section--dark {
    background: radial-gradient(circle at top, #151823 0, #05060a 60%, #020307 100%);
}

.section--contacts {
    background: radial-gradient(circle at 15% 0, rgba(255, 75, 43, 0.15) 0, transparent 55%), #05060a;
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
}

.section__head--center {
    align-items: center;
    text-align: center;
}

.section__title {
    margin: 0;
    font-size: 1.9rem;
}

.section__subtitle {
    margin: 0;
    color: var(--text-muted);
    max-width: 520px;
}

.section__footer {
    margin-top: 2rem;
    text-align: center;
}

/* Сетки */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Карточки услуг */

.card {
    background: linear-gradient(145deg, rgba(16, 19, 27, 0.96), rgba(9, 10, 17, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(255, 75, 43, 0.3), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 75, 43, 0.6);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.card__title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.card__text {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card__list li + li {
    margin-top: 0.3rem;
}

/* ===== Портфолио ===== */

.portfolio {
    margin-top: 1.4rem;
    display: grid;
    gap: 1.5rem;
}

.portfolio__item {
    background: #0b0c10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.portfolio__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Картинка */
.portfolio__img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Блок текста под картинкой */
.portfolio__info {
    padding: 1rem 1.1rem 1.2rem;
    background: #0b0c10;
}

/* Категория: более спокойный, не режущий глаз цвет */
.portfolio__tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: #888; /* спокойный серый */
    margin-bottom: 0.3rem;
}

/* Название проекта */
.portfolio__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

/* Преимущества */

.benefit {
    background: linear-gradient(160deg, rgba(16, 18, 27, 0.9), rgba(7, 9, 16, 0.98));
    padding: 1.3rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.benefit__icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.benefit__title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.benefit__text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Этапы */

.steps {
    display: grid;
    gap: 1rem;
}

.steps__item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 12, 19, 0.9);
}

.steps__number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 75, 43, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.steps__title {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.steps__content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Отзывы */

.reviews {
    margin-top: 1rem;
}

.review {
    background: linear-gradient(150deg, rgba(16, 19, 30, 0.94), rgba(7, 9, 15, 0.98));
    padding: 1.1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

.review__text {
    margin: 0 0 0.8rem;
    color: var(--text-muted);
}

.review__author {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.review__name {
    font-weight: 600;
}

.review__details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ */

.faq {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 0.7rem;
}

.faq__item {
    background: rgba(10, 12, 20, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.7rem 0.95rem;
}

.faq__question {
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    color: #fff;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__answer {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Контакты */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contacts__text {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contacts__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.92rem;
}

.contacts__list li + li {
    margin-top: 0.3rem;
}

.contacts__list a {
    color: #fff;
    text-decoration: none;
}

.contacts__list a:hover {
    text-decoration: underline;
}

.contacts__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contacts__social {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
    color: #fff;
    background: rgba(7, 9, 15, 0.9);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.contacts__social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.contacts__form {
    background: rgba(7, 9, 16, 0.98);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
}

.contacts__form-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

/* Подвал */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem 0 1.1rem;
    background: #040509;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer__logo {
    font-weight: 600;
    margin-right: 0.6rem;
    color: #fff;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__link {
    color: var(--text-muted);
    text-decoration: none;
}

.footer__link:hover {
    color: #fff;
}

/* Адаптив */

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .header__contacts {
        display: none;
    }

    .nav {
        position: fixed;
        inset: 64px 16px auto;
        flex-direction: column;
        background: radial-gradient(circle at top, #171b2a, #05060a);
        padding: 0.9rem 1rem 1.1rem;
        border-radius: 1.2rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
        z-index: 90;
    }

    .nav--open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .burger {
        display: flex;
    }

    .header__inner {
        padding: 0.6rem 0;
    }

    .hero {
        padding-top: 3.3rem;
        padding-bottom: 2.3rem;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__card {
        order: -1;
    }

    .contacts {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--3,
    .grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.4rem 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__stats {
        gap: 1.2rem;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
