/* ===== Дорпер — основной стиль ===== */
:root {
    --yellow: #f2bc13;
    --yellow-dark: #d9a910;
    --green: #2ca621;
    --green-dark: #248f1b;
    --red: #f44336;
    --text: #242424;
    --text-gray: #4a4a4a;
    --text-light: #6e6e6e;
    --bg-gray: #f7f7f7;
    --font: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
    margin: 0 0 40px;
}

.section-title--left {
    text-align: left;
}

.text-yellow {
    color: var(--yellow);
}

.text-highlight {
    background: var(--green);
    color: #fff;
    padding: 0 10px;
    white-space: nowrap;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn--yellow {
    background: var(--yellow);
    color: #fff;
}

.btn--yellow:hover {
    background: var(--yellow-dark);
}

.btn--green {
    background: var(--green);
    color: #fff;
}

.btn--green:hover {
    background: var(--green-dark);
}

/* ===== Шапка ===== */
.header {
    background: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s ease;
}

.header--shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__icon {
    width: 50px;
    height: 50px;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__line1 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.logo__line2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--yellow);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--yellow);
    transition: width 0.25s ease;
}

.nav__list a:hover {
    color: var(--green);
}

.nav__list a:hover::after {
    width: 100%;
}

/* ===== Кнопки мессенджеров ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links__btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.social-links__btn--wa {
    background: #25d366;
}

.social-links__btn--max {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.nav__phone-item {
    display: none;
}

.header__phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header__phone:hover {
    color: var(--green);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #20331f;
}

.hero__img {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 70px;
    pointer-events: none;
}

.hero__title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    line-height: 1.9;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero__title .text-yellow {
    color: var(--yellow);
}

.hero__title-mobile {
    display: none;
}

/* ===== Интро ===== */
.intro {
    text-align: center;
    padding-top: 70px;
}

.intro__text {
    max-width: 900px;
    margin: 0 auto 10px;
    font-size: 18px;
    color: var(--text-gray);
}

/* ===== Предлагаем к продаже ===== */
.offer__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.offer__image img {
    width: 100%;
    border-radius: 4px;
}

.offer__title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin: 0 0 24px;
}

.offer__text {
    color: var(--text-gray);
    margin: 0 0 28px;
}

.offer__content {
    text-align: center;
}

.offer__content .offer__text {
    text-align: left;
}

/* ===== Преимущества ===== */
.advantages__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: start;
}

.advantages__intro {
    position: sticky;
    top: 110px;
}

.advantages__intro .section-title {
    font-size: 26px;
    margin-bottom: 24px;
}

.advantages__intro img {
    width: 100%;
    border-radius: 6px;
}

.advantages__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.advantages__item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantages__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.advantages__item h3 {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: var(--green);
}

.advantages__item p {
    margin: 0;
    color: var(--text-gray);
    font-size: 15px;
}

/* ===== Каталог ===== */
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-gray);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card__header {
    background: var(--green);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    padding: 16px 10px;
}

.product-card__image {
    display: block;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card__image:hover img {
    transform: scale(1.05);
}

.product-card__body {
    padding: 24px 16px 28px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-card__body .btn {
    margin-top: auto;
}

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-gray);
}

.product-card__price span {
    font-weight: 400;
}

.product-card__price-old {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card__price-new {
    color: var(--red);
}

/* ===== Скидки ===== */
.discount {
    text-align: center;
}

.discount__text {
    max-width: 1000px;
    margin: 0 auto 30px;
    color: var(--text-gray);
}

/* ===== Галерея ===== */
.gallery {
    padding-top: 0;
}

.gallery__swiper {
    padding-bottom: 46px;
}

.gallery__swiper .swiper-slide a {
    display: block;
    overflow: hidden;
}

.gallery__swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery__swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d8d8d8;
    opacity: 1;
}

.gallery__swiper .swiper-pagination-bullet-active {
    background: var(--yellow);
}

/* ===== Миссия ===== */
.mission__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission__content .section-title {
    font-size: 26px;
    margin-bottom: 24px;
}

.mission__content p {
    color: var(--text-gray);
    margin: 0 0 16px;
}

.mission__image img {
    width: 100%;
    border-radius: 4px;
}

/* ===== Сертификаты ===== */
.certificates {
    background: #fff;
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.certificates__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates__item a:hover img {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.certificates__caption {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 14px;
}

/* ===== Шаги ===== */
.steps__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
}

.steps__item {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    padding: 18px 0;
}

.steps__number {
    font-size: 40px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.steps__item p {
    margin: 0;
    font-size: 18px;
    padding-top: 6px;
}

/* ===== Футер ===== */
.footer {
    padding: 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.footer__overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 70px 0 30px;
}

.footer__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.footer__form-inner {
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 40px 36px;
    text-align: center;
}

.footer__form-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 14px;
}

.footer__form-subtitle {
    font-size: 14px;
    margin: 0 0 26px;
    opacity: 0.9;
}

.footer__name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 18px;
}

.footer__requisites {
    margin: 0 0 8px;
    opacity: 0.85;
}

.footer__address {
    margin: 18px 0 30px;
    opacity: 0.85;
}

.footer__contacts-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 22px;
}

.footer__phone:hover {
    color: var(--yellow);
}

.footer__contacts .social-links {
    margin-top: 18px;
}

.footer__contacts .social-links__btn {
    width: 48px;
    height: 48px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    opacity: 0.8;
}

.footer__bottom p {
    margin: 0;
}

.footer__bottom a {
    color: #fff;
}

/* ===== Формы ===== */
.lead-form {
    text-align: left;
}

.footer .form-group input[type="text"],
.footer .form-group input[type="tel"] {
    width: 100%;
    padding: 12px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.footer .form-group input:focus {
    border-bottom-color: var(--yellow);
}

.modal .form-group input[type="text"],
.modal .form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal .form-group input:focus {
    border-color: var(--yellow);
}

.form-group.error input {
    border-bottom-color: var(--red) !important;
    border-color: var(--red);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group--agreement {
    margin-bottom: 20px;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.agreement input {
    margin-top: 4px;
    flex-shrink: 0;
}

.agreement__text {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

.agreement__text a {
    color: inherit;
    text-decoration: underline;
}

.lead-form__submit {
    width: 100%;
}

.error-message {
    display: none;
    color: var(--red);
    font-size: 13px;
    margin: -12px 0 12px;
}

/* ===== Модальные окна ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 36px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__content--form {
    text-align: left;
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.modal__message {
    color: var(--text-gray);
    margin: 0 0 22px;
}

.modal__product {
    font-weight: 600;
    color: var(--green);
    margin: 0 0 16px;
}

.modal__product:empty {
    display: none;
}

.modal__close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.modal__close-btn:hover {
    color: var(--text);
}

/* ===== Кнопка наверх ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text);
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--yellow);
    color: #fff;
}

/* ===== 404 / текстовые страницы ===== */
.page-content {
    padding: 60px 0;
    min-height: 50vh;
}

.page-content h1 {
    font-size: 32px;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.page-content h2 {
    font-size: 20px;
    margin: 28px 0 12px;
}

.page-content p,
.page-content li {
    color: var(--text-gray);
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
    .header__phone {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero__overlay {
        padding-top: 50px;
    }

    .hero__title {
        font-size: 30px;
        line-height: 1.7;
    }

    .section-title {
        font-size: 26px;
    }

    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .advantages__intro {
        position: static;
    }

    .footer__wrapper {
        gap: 36px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 44px 0;
    }

    .hero__overlay {
        padding-top: 90px;
    }

    .hero__title {
        font-size: 28px;
        line-height: 2.2;
    }

    .hero__title-desktop {
        display: none;
    }

    .hero__title-mobile {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 200;
        padding: 80px 30px 30px;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .nav__list a {
        font-size: 16px;
    }

    .nav__list a::after {
        display: none;
    }

    .nav__phone-item {
        display: block;
        margin-top: 8px;
        padding-top: 18px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .nav__phone {
        font-size: 20px !important;
        font-weight: 700;
        color: var(--text) !important;
    }

    .nav__socials .social-links__btn {
        width: 46px;
        height: 46px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 300;
    }

    .offer__wrapper,
    .mission__wrapper,
    .footer__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__form-inner {
        padding: 30px 22px;
    }
}

@media (max-width: 560px) {
    .hero__overlay {
        padding-top: 70px;
    }

    .hero__title {
        font-size: 24px;
    }

    .text-highlight {
        white-space: normal;
    }

    .section-title {
        font-size: 21px;
    }

    .catalog__grid,
    .certificates__grid,
    .advantages__items {
        grid-template-columns: 1fr;
    }

    .steps__item p {
        font-size: 16px;
    }

    .logo {
        gap: 9px;
    }

    .logo__icon {
        width: 40px;
        height: 40px;
    }

    .logo__line1 {
        font-size: 9px;
    }

    .logo__line2 {
        font-size: 18px;
    }
}
