/* ============================================================
   STYLE.CSS — Автошины 55
   ============================================================ */

/* ============================================================
   1. БАЗОВОЕ
   ============================================================ */

h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 800; }
h4 { font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 800; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   2. LAYOUT
   ============================================================ */

.wrapper-page {
    position: relative;
    z-index: 1;
}

.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--soft { background: var(--bg-soft); }

.section-head {
    max-width: 700px;
    margin-bottom: 44px;
}
.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head h2 { margin-bottom: 12px; }
.section-head h2 em { font-style: normal; color: var(--orange); }
.section-head p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange-dark);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--orange);
}

/* ============================================================
   3. BREADCRUMBS
   ============================================================ */

.breadcrumbs {
    padding: 130px 0 20px;
    background: var(--bg);
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
}
.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: var(--line);
    font-weight: 400;
    margin-left: 2px;
}
.breadcrumbs__item a { color: var(--gray); }
.breadcrumbs__item a:hover { color: var(--orange); }
.breadcrumbs__item.is-active span {
    color: var(--dark);
    font-weight: 700;
}

/* ============================================================
   4. HERO — дополнения
   ============================================================ */

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
    pointer-events: none;
}
.hero__contact:hover { color: var(--orange); }

/* ============================================================
   5. КАТЕГОРИЯ — заголовок + сетка 3 + SEO-текст
   ============================================================ */

.category--soft {
    background: var(--bg-soft);
}

/* Заголовок раздела */
.category__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--line);
}
.category__head-icon {
    width: 68px;
    height: 68px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.category__head-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}
.category__head h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
}
.category__head h2 em {
    font-style: normal;
    color: var(--orange);
}

/* Сетка 3 колонки: список | форма | стакан */
.category__grid {
    display: grid;
    grid-template-columns: 370px 530px 250px;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

/* Колонка списка */
.category__list-col {
    width: 100%;
}
.category__list-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}
.category__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.category__list li {
    position: relative;
    padding-left: 20px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--dark-2);
}
.category__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

/* Колонка формы */
.category__form-wrap {
    width: 100%;
    max-width: 520px;
}

/* Колонка со стаканом */
.category__visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 300px;
    width: 250px;
    justify-self: end;
}
.category__card {
    position: relative;
    width: 250px;
    height: 300px;
    background: linear-gradient(180deg, #f26522 0%, #ffffff 100%);
    border-radius: 40px 40px 90% 90% / 30px 30px 50% 50%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    z-index: 1;
    overflow: hidden;
    flex-shrink: 0;
}
.category__tire {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    max-width: 300px;
    height: auto;
    z-index: 2;
    opacity: 0;
}
.category.visible .category__tire {
    animation: tireRise 1s cubic-bezier(.22,1,.36,1) 0s forwards;
}
@keyframes tireRise {
    from { transform: translate(-50%, 80px); opacity: 0; }
    to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* SEO-текст под сеткой */
.category__seo {
    max-width: 818px;
}
.category__seo p {
    font-size: .98rem;
    line-height: 1.75;
    color: var(--gray);
    margin-bottom: 14px;
}
.category__seo p:last-child {
    margin-bottom: 0;
}
.category__seo strong {
    color: var(--dark-2);
    font-weight: 700;
}

/* ============================================================
   6. ФОРМА КАТЕГОРИИ
   ============================================================ */

.category__form {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
}
.category__form-title {
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}
.category__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.category__form-row--2 { grid-template-columns: 1fr 1fr; }
.category__form-row--full {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
}
.category__form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.category__form-field label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.category__form-field select,
.category__form-field input,
.category__form-field textarea {
    width: 100%;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: var(--tr);
}
.category__form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
.category__form-field textarea {
    min-height: 62px;
    resize: vertical;
    line-height: 1.5;
}
.category__form-field select:focus,
.category__form-field input:focus,
.category__form-field textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.category__form-field input::placeholder,
.category__form-field textarea::placeholder {
    color: var(--gray-light);
}
.category__form-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--orange-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--tr);
}
.category__form-btn:hover {
    background: var(--orange-dark);
}

/* Чекбокс согласия — формы категорий */
.category__form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
}
.category__form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}
.category__form-consent a {
    color: var(--orange-dark);
    text-decoration: underline;
    text-decoration-color: rgba(242,101,34,.4);
    text-underline-offset: 2px;
    transition: var(--tr);
}
.category__form-consent a:hover {
    color: var(--orange-dark);
    text-decoration-color: var(--orange-dark);
}

/* ============================================================
   7. КАК РАБОТАЕМ (шаги)
   ============================================================ */

.steps { background: var(--white); }
.steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 32px 26px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    transition: var(--tr);
    counter-increment: step;
    border: 1px solid transparent;
}
.step:hover {
    background: var(--white);
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(242,101,34,.15);
    line-height: 1;
    letter-spacing: -.03em;
}
.step__icon {
    width: 48px;
    height: 48px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--tr);
}
.step:hover .step__icon { background: var(--orange); color: #fff; }
.step__icon svg { width: 22px; height: 22px; fill: currentColor; }
.step__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.step__desc {
    font-size: .92rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================================
   8. ГАРАНТИИ
   ============================================================ */

.guarantees { background: var(--bg-soft); }
.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.guarantee {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--tr);
    border-top: 4px solid var(--orange);
}
.guarantee:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.guarantee__icon {
    width: 52px;
    height: 52px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.guarantee__icon svg { width: 24px; height: 24px; fill: currentColor; }
.guarantee__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}
.guarantee__desc {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ============================================================
   9. DROM
   ============================================================ */

.drom-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    border-left: 4px solid var(--orange);
}
.drom-block__content { max-width: 680px; }
.drom-block__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.drom-block__desc {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.6;
}
.drom-block__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--orange);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius);
    white-space: nowrap;
}
.drom-block__btn:hover { background: var(--orange-dark); }

/* ============================================================
   10. FAQ
   ============================================================ */

.faq__list { max-width: 780px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--tr);
}
.faq-item.active { border-color: var(--orange); box-shadow: var(--shadow); }
.faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 26px;
    text-align: left;
    font-size: .98rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    cursor: pointer;
    background: none;
    border: none;
}
.faq-item__q:hover { color: var(--orange); }
.faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    transition: var(--tr);
}
.faq-item.active .faq-item__icon {
    background: var(--orange);
    color: #fff;
    transform: rotate(45deg);
}
.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-item__a-inner {
    padding: 0 26px 22px;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--gray);
}

/* ============================================================
   11. КОНТАКТЫ
   ============================================================ */

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contacts__block {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
}
.contacts__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contacts__item:last-child { margin-bottom: 0; }
.contacts__item-icon {
    width: 40px;
    height: 40px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contacts__item-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contacts__label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}
.contacts__value {
    font-size: .98rem;
    font-weight: 700;
    color: var(--dark);
}
.contacts__value a { color: var(--dark); }
.contacts__value a:hover { color: var(--orange); }

/* ============================================================
   12. ФОРМА (в контактах)
   ============================================================ */

.form-block {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.form-block h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.form-block > p {
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 22px;
    line-height: 1.6;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 12px;
    transition: var(--tr);
}
.form-input:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
}
.form-input::placeholder { color: var(--gray-light); }
textarea.form-input { min-height: 90px; resize: vertical; }
.form-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--orange-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--tr);
}
.form-btn:hover { background: var(--orange-dark); }

/* Чекбокс согласия — форма контактов */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
    margin-bottom: 14px;
}
.form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}
.form-consent a {
    color: var(--orange-dark);
    text-decoration: underline;
    text-decoration-color: rgba(242,101,34,.4);
    text-underline-offset: 2px;
    transition: var(--tr);
}
.form-consent a:hover {
    color: var(--orange-dark);
    text-decoration-color: var(--orange-dark);
}

/* Honeypot — скрытое поле от ботов */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   DOC-BACK — кнопка «На главную» на внутренних страницах
   ============================================================ */

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--tr);
    margin-top: 40px;
    margin-bottom: 20px;
    text-decoration: none;
}
.doc-back:hover {
    border-color: var(--orange);
    color: var(--orange);
    text-decoration: none;
}
.doc-back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: var(--tr);
}
.doc-back:hover svg {
    transform: translateX(-3px);
}

/* ============================================================
   13. ПОПАП
   ============================================================ */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn .3s ease;
}
@keyframes popIn {
    from { transform: scale(.95); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.popup__icon {
    width: 64px;
    height: 64px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.popup__icon svg { width: 32px; height: 32px; fill: currentColor; }
.popup__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}
.popup__desc {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
}
.popup__btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--orange);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.popup__btn:hover { background: var(--orange-dark); }

/* ============================================================
   14. ПОДВАЛ
   ============================================================ */

.footer {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    padding: 52px 0 24px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 36px;
}
.footer__logo {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}
.footer__logo span { color: var(--orange); }
.footer__brand p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255,255,255,.65);
}
.footer__phones a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.footer__phones a:hover { color: var(--orange); }
.footer__col h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a {
    font-size: 13px;
    color: rgba(255,255,255,.65);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}
.footer__bottom a { color: rgba(255,255,255,.45); }
.footer__bottom a:hover { color: #fff; }
.footer__dev {color: rgba(255,255,255,.55);}

/* Юридические ссылки в подвале */
.footer__docs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-size: 11px;
    line-height: 1.9;
}
.footer__docs a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: var(--tr);
}
.footer__docs a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer__docs-sep {
    display: inline-block;
    margin: 0 8px;
    color: rgba(255,255,255,.25);
}