/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #F4F1EA;
    --color-text: #2C2A29;
    --color-leather: #3E2723;
    --color-wood: #8D6E63;
    --color-copper: #B87333;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(141, 110, 99, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(62, 39, 35, 0.03) 1px, transparent 1px);
    background-size: 24px 24px, 18px 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-leather);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn--primary {
    background-color: var(--color-copper);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #a0622a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 115, 51, 0.45);
}

.btn--primary:active {
    transform: translateY(0);
}

.hero .btn--primary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn--large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    max-width: 100%;
}

.header__logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-leather);
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

.header__logo-short {
    display: none;
}

.header__nav {
    display: flex;
    gap: 2rem;
}

.header__nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.header__nav a:hover {
    color: var(--color-copper);
}

.header__cta {
    min-width: 140px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background:
        linear-gradient(135deg, rgba(44, 42, 41, 0.82) 0%, rgba(44, 42, 41, 0.65) 50%, rgba(44, 42, 41, 0.45) 100%),
        url('images/hero-bg.png') center/cover no-repeat;
    color: var(--color-white);
    position: relative;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(244, 241, 234, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__offer {
    background-color: rgba(184, 115, 51, 0.92);
    color: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero__offer-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.hero__microtext {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(244, 241, 234, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__microtext a {
    color: var(--color-copper);
    text-decoration: underline;
    font-weight: 500;
}

.hero__microtext a:hover {
    color: #d4915a;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__logo-frame {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero__logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scaleX(-1);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.about__content {
    overflow: hidden;
}

.about__image {
    float: left;
    margin: 0 2rem 1rem 0;
    max-width: 270px;
    width: 25%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about__text {
    font-size: 1.125rem;
    line-height: 1.6;
    overflow: hidden;
}

.about__text p {
    margin-bottom: 1rem;
}

.about__lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-leather);
    margin-bottom: 1rem;
}

.about__list {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.about__list li {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .about__image {
        float: none;
        width: 100%;
        max-width: 210px;
        margin: 0 auto 1.5rem;
    }
}

/* Catalog Section */
.catalog {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #e8e3d8 100%);
}

.catalog__carousel {
    position: relative;
    overflow: hidden;
    padding: 0 56px;
}

.carousel__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    cursor: grab;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__track:active {
    cursor: grabbing;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-copper);
    color: var(--color-white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.carousel__btn:hover {
    background-color: #a0622a;
    transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
    left: 0;
}

.carousel__btn--next {
    right: 0;
}

.product-card {
    flex: 0 0 calc(25% - 1.125rem);
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(184, 115, 51, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.product-card__image {
    width: 100%;
    height: 200px;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card__image img,
.product-card__image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-leather);
    min-height: 2.8em;
    line-height: 1.3;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-copper);
    margin-bottom: 0.5rem;
}

.product-card__status {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card__status--available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.product-card__status--order {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Why Long-lasting Section */
.why-long {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.pain-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pain-point {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e3d8 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-copper);
}

.pain-point h3 {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-wood);
}

.solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution {
    text-align: center;
    padding: 2rem;
}

.solution__icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-copper);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.solution h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-leather);
}

.solution p {
    color: var(--color-wood);
}

.cta-block {
    background: linear-gradient(135deg, var(--color-leather) 0%, #2a1f1c 100%);
    color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.cta-block__lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-block__text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cta-block__microtext {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.cta-block__microtext a {
    color: var(--color-copper);
    text-decoration: underline;
}

/* Delivery Section */
.delivery {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #e8e3d8 100%);
}

.delivery__options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.delivery__option {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 8px;
    transition: var(--transition);
}

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

.delivery__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    padding: 14px;
    border: 3px solid var(--color-copper);
    border-radius: 50%;
    color: var(--color-copper);
    background-color: rgba(184, 115, 51, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery__icon svg {
    width: 100%;
    height: 100%;
}

.delivery__option h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-leather);
}

.delivery__option p {
    color: var(--color-wood);
    font-size: 0.875rem;
}

/* Contacts Section */
.contacts {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contacts__item:hover {
    transform: translateY(-4px);
    border-color: var(--color-copper);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contacts__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-copper);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.contacts__item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-leather);
}

.contacts__item p {
    color: var(--color-wood);
    font-size: 0.95rem;
    word-break: break-all;
}

/* Contact Form Section */
.contact-form {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-leather);
}

.form__group input,
.form__group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__group textarea {
    min-height: 120px;
    resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--color-copper);
}

.form__group input.error,
.form__group textarea.error {
    border-color: #d32f2f;
}

.form__error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form__error-message.visible {
    display: block;
}

.form__microtext {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-wood);
    text-align: center;
}

.form__microtext a {
    color: var(--color-copper);
    text-decoration: underline;
}

.form-success {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: var(--color-white);
    border-radius: 12px;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-leather);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer__info a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__info a:hover {
    color: var(--color-copper);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer__links a:hover {
    color: var(--color-copper);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    width: 44px;
    height: 44px;
    background-color: var(--color-copper);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.footer__social a:hover {
    background-color: #a0622a;
    transform: translateY(-2px);
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal__content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-wood);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

.modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal__body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 400px;
    object-fit: contain;
    background-color: var(--color-bg);
}

.modal__info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-leather);
}

.modal__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-copper);
    margin-bottom: 1.5rem;
}

.modal__info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tablet: 768–1199px */
@media (max-width: 1199px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__logo-frame {
        max-width: 420px;
    }

    .product-card {
        flex: 0 0 calc(33.333% - 1rem);
    }

    .pain-points,
    .solutions {
        grid-template-columns: 1fr;
    }

    .delivery__options {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacts__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile: ≤767px */
@media (max-width: 767px) {
    .header__content {
        gap: 0.5rem;
    }

    .header__nav {
        display: none;
    }

    .header__logo a {
        font-size: 1.25rem;
        min-height: 40px;
        line-height: 40px;
        flex-shrink: 1;
        min-width: 0;
    }

    .header__cta {
        min-width: auto;
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 40px;
        flex-shrink: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__text {
        order: -1;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__logo-frame {
        max-width: 370px;
        margin: 0 auto;
    }

    .catalog__carousel {
        padding: 0 40px;
    }

    .carousel__btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.5rem;
    }

    .product-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .delivery__options,
    .contacts__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .delivery__options::-webkit-scrollbar,
    .contacts__grid::-webkit-scrollbar {
        display: none;
    }

    .delivery__option,
    .contacts__item {
        flex: 0 0 calc(66.666% - 0.5rem);
        scroll-snap-align: start;
        min-width: 220px;
    }

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

    .btn--large {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .form__group input,
    .form__group textarea {
        min-height: 52px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}

/* Small Mobile: ≤480px */
@media (max-width: 480px) {
    .header__logo-full {
        display: none;
    }

    .header__logo-short {
        display: inline;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__logo-frame {
        max-width: 320px;
        padding: 1rem;
    }

    .catalog__carousel {
        padding: 0 0 0 15px;
        overflow: visible;
    }

    .carousel__track {
        gap: 1rem;
    }

    .carousel__btn {
        display: none;
    }

    .product-card {
        flex: 0 0 calc(66.666% - 0.5rem);
        min-width: 240px;
    }

    .product-card__image {
        height: 180px;
    }

    .delivery__option,
    .contacts__item {
        flex: 0 0 calc(66.666% - 0.5rem);
        min-width: 200px;
    }

    .contacts__item {
        padding: 1.5rem 1rem;
    }

    .cta-block {
        padding: 2rem 1.5rem;
    }

    .footer__links a {
        min-height: 44px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
