/*
Theme Name: AutoFix Kras
Theme URI: https://autofix-kras.ru
Author: AutoFix Kras
Description: Светлый лендинг кузовного сервиса: покраска и полировка автомобилей.
Version: 2.0
Text Domain: autofix-kras
*/

/* === БАЗА === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6fa;
    color: #1f2933;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* === КОНТЕЙНЕР И СЕКЦИИ === */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 3.5rem 0;
}

.section--muted {
    background: #edf1f7;
}

.section__head {
    margin-bottom: 2rem;
}

.section__title {
    margin: 0 0 .4rem;
    font-size: 1.9rem;
    font-weight: 700;
}

.section__subtitle {
    margin: 0;
    color: #6b7280;
    max-width: 620px;
    font-size: .95rem;
}

.section__head--center {
    text-align: center;
}

.section__head--center .section__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* === ХЕДЕР === */

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.logo__name {
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .95rem;
    color: #111827;
}

.logo__sub {
    font-size: .8rem;
    color: #6b7280;
}

.nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.nav__link {
    font-size: .9rem;
    color: #4b5563;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #2563eb;
    transition: width .2s ease;
}

.nav__link:hover {
    color: #111827;
}

.nav__link:hover::after {
    width: 100%;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
}

.header__phone a {
    text-decoration: none;
    font-weight: 600;
    color: #111827;
}

.header__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #2563eb;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
}

.burger {
    display: none;
    width: 40px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0 9px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.burger span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

/* === КНОПКИ === */

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    border-radius: 999px;
    padding: .7rem 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .9rem;
    transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn--outline {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.btn--outline:hover {
    background: #f3f4f6;
}

.btn--small {
    padding: .5rem 1.1rem;
    font-size: .82rem;
}

/* === HERO (главный экран) === */

.hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(120deg, #ffffff 0, #f3f4ff 45%, #e5f0ff 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero__pre {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: .7rem;
}

.hero__title {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    line-height: 1.1;
    color: #0f172a;
}

.hero__title span {
    color: #2563eb;
}

.hero__text {
    margin: 0 0 1.6rem;
    color: #4b5563;
    max-width: 520px;
    font-size: .96rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: .85rem;
    color: #6b7280;
}

.hero__stat-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111827;
}

.hero__card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.hero__image {
    height: 220px;
    background: url("img/hero-paint.jpg") center/cover no-repeat;
}

.hero__card-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.hero__card-title {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.hero__card-text {
    margin: 0 0 .9rem;
    font-size: .9rem;
    color: #6b7280;
}

.hero__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .9rem;
    color: #4b5563;
}

.hero__list li + li {
    margin-top: .25rem;
}

/* === СЕТКИ / КАРТОЧКИ === */

.grid {
    display: grid;
    gap: 1.4rem;
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1.1rem 1.2rem 1.3rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: box-shadow .2s ease, transform .1s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    border-color: #d1d5db;
}

.card__title {
    margin: 0 0 .35rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #111827;
}

.card__text {
    margin: 0;
    font-size: .9rem;
    color: #6b7280;
}

/* Услуги */

.service-card__image {
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: .8rem;
    background-size: cover;
    background-position: center;
}

.service-card__image--full { background-image: url("img/service-full.jpg"); }
.service-card__image--local { background-image: url("img/service-local.jpg"); }
.service-card__image--polish { background-image: url("img/service-polish.jpg"); }

/* Процесс */

.process__item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.process__step {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Цены */

.prices {
    padding: 4.5rem 0 5rem;
    background: #f4f6fb;
}

.prices__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: stretch;
}

.prices__card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 35, 52, 0.08);
    padding: 2.2rem 2.4rem;
}

.prices__card--list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prices__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ecf0f8;
}

.prices__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #ecf0f8;
    font-size: 0.98rem;
}

.prices__row span:last-child {
    font-weight: 600;
    color: #1b51ff;
}

.prices__note {
    margin-top: 1.2rem;
    font-size: 0.86rem;
    color: #8691a5;
}

/* Правая карточка */

.prices__card--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.prices__cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.prices__cta-text {
    font-size: 0.95rem;
    color: #5b6476;
    margin-bottom: 1.6rem;
    max-width: 320px;
}

.prices__cta-btn {
    align-self: flex-start;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.prices__cta-note {
    font-size: 0.85rem;
    color: #9aa3b6;
}

/* Адаптив для планшета/телефона */

@media (max-width: 900px) {
    .prices__layout {
        grid-template-columns: 1fr;
    }

    .prices__card--cta {
        text-align: left;
    }

    .prices__cta-btn {
        align-self: flex-start;
    }
}

/* Галерея */

.gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
}

.gallery__main {
    height: 260px;
    border-radius: 18px;
    background: url("img/gallery-1.jpg") center/cover no-repeat;
}

.gallery__side {
    display: grid;
    gap: .7rem;
}

.gallery__thumb {
    height: 82px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.gallery__thumb--2 { background-image: url("img/gallery-2.jpg"); }
.gallery__thumb--3 { background-image: url("img/gallery-3.jpg"); }
.gallery__thumb--4 { background-image: url("img/gallery-4.jpg"); }

/* Отзывы */

.review {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.2rem;
    font-size: .9rem;
}

.review__text {
    margin: 0 0 .7rem;
    color: #4b5563;
}

.review__author {
    font-weight: 600;
    color: #111827;
}

.review__car {
    font-size: .8rem;
    color: #6b7280;
}

/* FAQ */

.faq {
    max-width: 780px;
    margin: 0 auto;
}

.faq details {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: .7rem .9rem;
    font-size: .9rem;
}

.faq details + details {
    margin-top: .6rem;
}

.faq summary {
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq__answer {
    margin: .4rem 0 0;
    color: #4b5563;
}

/* Контакты и форма */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: flex-start;
}

.contacts__text {
    margin: .6rem 0 1rem;
    color: #4b5563;
}

.contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
}

.contacts__list li + li {
    margin-top: .3rem;
}

.contacts__list a {
    color: #111827;
    text-decoration: none;
}

.contacts__list a:hover {
    text-decoration: underline;
}

.contacts__form {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1.3rem 1.3rem 1.4rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.contacts__form-title {
    margin: 0 0 .8rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.form__input {
    width: 100%;
    padding: .7rem .9rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font: inherit;
    color: #111827;
    outline: none;
}

.form__input--textarea {
    border-radius: 14px;
    min-height: 110px;
    resize: vertical;
}

.form__input::placeholder {
    color: #9ca3af;
}

.form__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.form__note {
    margin: 0;
    font-size: .78rem;
    color: #6b7280;
}

/* FOOTER */

.footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: .9rem 0 1rem;
    font-size: .82rem;
    color: #6b7280;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.footer__logo {
    font-weight: 600;
    color: #111827;
}

/* АДАПТИВ */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero__card {
        max-width: 420px;
        margin: 0 auto;
    }
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prices,
    .gallery,
    .contacts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        inset: 60px 16px auto;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e5e7eb;
        flex-direction: column;
        gap: .6rem;
        padding: .8rem 1rem 1rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .nav--open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    .header__phone {
        display: none;
    }
    .burger {
        display: flex;
    }
    .section {
        padding: 2.7rem 0;
    }
    .grid--3,
    .grid--2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    outline: none;
    transition: 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.05);
}

.form-input:focus {
    border-color: #1c6eff;
    box-shadow: 0px 4px 10px rgba(28,110,255,0.15);
}

.textarea {
    min-height: 120px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #1c6eff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: #0057e6;
}
