:root {
    --cream: #f4eee5;
    --cream-light: #fbf8f3;
    --brown: #725b49;
    --brown-dark: #49392d;
    --text: #332a24;
    --muted: #8b7b6c;
    --border: #ded3c6;
    --white: #ffffff;
    --red: #a94c43;
    --purple: #75618f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream-light);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    padding-top: 86px;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}


/* =========================
   ШАПКА
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(251, 248, 243, 0.96);

    transition:
        transform 0.35s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-110%);
}

.site-header.header-scrolled {
    background: rgba(248, 241, 232, 0.96);
    box-shadow: 0 8px 25px rgba(73, 57, 45, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    width: min(1200px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.brand-main {
    color: #4b382d;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 3px;
}

.brand-sub {
    margin-top: 6px;
    color: #a47b5b;
    font-size: 10px;
    letter-spacing: 5px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--brown-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* =========================
   КНОПКА КОРЗИНЫ
========================= */

.cart-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 17px;

    border: 1px solid rgba(91, 65, 48, 0.2);
    border-radius: 12px;

    background: #fffaf4;
    color: #4b382d;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cart-button:hover {
    background: #5c4435;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(73, 57, 45, 0.15);
}

.cart-icon {
    font-size: 16px;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 35px;
    height: 23px;
    padding: 0 7px;

    border-radius: 20px;
    background: #ead8c5;
    color: #5c4435;

    font-size: 11px;
    font-weight: 800;
}

.cart-button:hover .cart-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}


/* =========================
   КНОПКА МЕНЮ
========================= */

.menu-toggle {
    width: 46px;
    height: 44px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid rgba(91, 65, 48, 0.2);
    border-radius: 12px;

    background: #5c4435;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.menu-toggle:hover {
    background: #765844;
    transform: translateY(-2px);
}

.menu-toggle span {
    width: 20px;
    height: 2px;

    display: block;

    background: #ffffff;
    border-radius: 2px;
}


/* =========================
   ОБЩИЕ БЛОКИ
========================= */

.section {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--brown);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 15px;
}


/* =========================
   ЗАГОЛОВОК КАТАЛОГА
========================= */

.section-title {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-title .section-label {
    display: block;
    margin-bottom: 14px;

    color: var(--purple);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 0;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-title > p:not(.section-label) {
    max-width: 540px;
    margin: 18px auto 0;

    color: #9b8979;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   ГЛАВНЫЙ ЭКРАН
========================= */

.hero {
    width: min(1200px, calc(100% - 40px));
    min-height: 650px;
    margin: -86px auto 0;
    padding-top: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    max-width: 560px;
}

.hero h1 {
    margin-bottom: 25px;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 400;
    line-height: 1.08;
}

.hero-description {
    max-width: 440px;
    margin-bottom: 35px;

    color: var(--muted);
    font-size: 16px;
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 25px;

    border: 1px solid var(--brown);
    background: var(--brown);
    color: var(--white);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.main-button:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}

.instagram-button {
    border: none;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.instagram-button:hover {
    background: linear-gradient(135deg, #6d279b, #d91818, #e29a27);
}


/* =========================
   ДЕКОРАЦИЯ ГЛАВНОГО ЭКРАНА
========================= */

.hero-decoration {
    width: 430px;
    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #e8ded1;
}

.large-spool {
    position: relative;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        repeating-radial-gradient(
            circle at center,
            #8e7560 0,
            #8e7560 7px,
            #725b49 8px,
            #a58c76 13px
        );

    box-shadow:
        0 25px 35px rgba(73, 57, 45, 0.2),
        inset 0 0 0 20px rgba(255, 255, 255, 0.1);
}

.large-spool::before,
.large-spool::after {
    content: "";
    position: absolute;
    left: 50%;

    width: 100%;
    height: 35px;

    transform: translateX(-50%);
    border-radius: 50%;
    background: #c4aa91;
}

.large-spool::before {
    top: -12px;
}

.large-spool::after {
    bottom: -12px;
}

.spool-hole {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;

    width: 65px;
    height: 65px;

    transform: translate(-50%, -50%);

    border: 16px solid #5a4637;
    border-radius: 50%;
    background: #d7c1aa;
}


/* =========================
   КАТАЛОГ
========================= */

.catalog {
    padding-top: 50px;
}

.catalog .section-title {
    margin-bottom: 45px;
}

.products-grid {
    display: block;
}


/* =========================
   КАРТОЧКА ТОВАРА
========================= */

.product-card {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(350px, 1fr);
    gap: 55px;

    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 35px;

    overflow: hidden;

    border: 1px solid #e4d9cc;
    border-radius: 28px;

    background: var(--white);

    box-shadow: 0 20px 60px rgba(73, 57, 45, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(73, 57, 45, 0.12);
}


/* =========================
   КАРТИНКА ТОВАРА
========================= */

.product-image-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 620px;
    padding: 0;

    overflow: hidden !important;

    border: none;
    border-radius: 22px !important;

    background: transparent;
}

.product-image-wrapper::before,
.product-image-wrapper::after {
    display: none;
    content: none;
}

.product-image {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    max-width: 570px;
    max-height: 570px;

    object-fit: contain;
    object-position: center;

    border-radius: 22px !important;

    transform: scale(1.12);
    transform-origin: center;

    filter: drop-shadow(0 20px 20px rgba(73, 57, 45, 0.16));

    transition:
        opacity 0.2s ease,
        transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.17);
}


/* =========================
   ИНФОРМАЦИЯ О ТОВАРЕ
========================= */

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 10px 5px;
}

.product-label {
    display: inline-block;
    width: fit-content;

    margin: 0 0 13px;
    padding: 7px 12px;

    border-radius: 50px;
    background: #f0e9f5;
    color: var(--purple);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.product-category {
    margin-bottom: 8px;

    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.product-info h3 {
    margin: 0 0 15px;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.1;
}

.product-description {
    max-width: 470px;
    margin: 0 0 30px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   ПАРАМЕТРЫ
========================= */

.product-option {
    margin-bottom: 24px;
}

.product-option h4 {
    margin: 0 0 11px;

    color: var(--brown-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================
   КНОПКИ ВЫБОРА
========================= */

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.option-button {
    display: block;
    cursor: pointer;
}

.option-button input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.option-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;
    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.option-button span:hover {
    border-color: var(--brown);
    color: var(--brown-dark);
}

.option-button input:checked + span {
    border-color: var(--brown);
    background: var(--brown);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(114, 91, 73, 0.18);
}


/* =========================
   ЦВЕТНЫЕ КРУЖКИ
========================= */

.color-buttons .option-button span {
    gap: 9px;
}

.color-buttons .option-button span::before {
    content: "";

    display: block;

    width: 13px;
    height: 13px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;

    background: #222;
}

.color-buttons .option-button:nth-child(2) span::before {
    background: #a94c43;
}

.color-buttons .option-button:nth-child(3) span::before {
    background: #75618f;
}

.color-buttons .option-button:nth-child(4) span::before {
    background: #ffffff;
}


/* =========================
   SELECT ДИАМЕТРА
========================= */

.product-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    background: var(--cream-light);
    color: var(--text);

    font-size: 13px;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-select:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(114, 91, 73, 0.1);
}


/* =========================
   МЕТРАЖ
========================= */

.meters-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
}

.meters-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--brown);

    font-size: 22px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.meters-button:hover {
    border-color: var(--brown);
    background: var(--cream);
}

.meters {
    width: 85px;
    height: 43px;
    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    background: var(--cream-light);
    color: var(--text);

    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.meters:focus {
    border-color: var(--brown);
}

.meters-wrapper > span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   НИЖНЯЯ ЧАСТЬ КАРТОЧКИ
========================= */

.product-buy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-top: 12px;
    padding-top: 25px;

    border-top: 1px solid #eee7df;
}

.product-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-total span,
.price-label {
    display: block;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-total strong,
.product-price {
    color: var(--brown-dark);
    font-size: 27px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================
   КНОПКА ДОБАВЛЕНИЯ
========================= */

.add-to-cart {
    flex: 1;

    min-height: 48px;
    padding: 0 20px;

    border: 1px solid var(--brown);
    background: var(--brown);
    color: var(--white);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.add-to-cart:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}

.add-to-cart:active {
    transform: translateY(0);
}


/* =========================
   СТАРЫЕ СТИЛИ ШПУЛЕК
========================= */

.spool {
    position: relative;

    width: 165px;
    height: 165px;

    border-radius: 50%;
    box-shadow: 0 20px 25px rgba(73, 57, 45, 0.18);
}

.spool::before,
.spool::after {
    content: "";

    position: absolute;
    left: 50%;

    width: 100%;
    height: 22px;

    transform: translateX(-50%);
    border-radius: 50%;

    background: inherit;
    filter: brightness(1.15);
}

.spool::before {
    top: -7px;
}

.spool::after {
    bottom: -7px;
}

.spool-center {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;

    width: 42px;
    height: 42px;

    transform: translate(-50%, -50%);

    border: 10px solid rgba(50, 35, 25, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.spool-beige {
    background:
        repeating-radial-gradient(
            circle,
            #c9ae8d 0,
            #c9ae8d 6px,
            #a98c6b 7px,
            #ddc5a7 12px
        );
}

.spool-brown {
    background:
        repeating-radial-gradient(
            circle,
            #856149 0,
            #856149 6px,
            #5d4030 7px,
            #a77b5a 12px
        );
}

.spool-black {
    background:
        repeating-radial-gradient(
            circle,
            #3e3e3e 0,
            #3e3e3e 6px,
            #171717 7px,
            #5a5a5a 12px
        );
}

.spool-red {
    background:
        repeating-radial-gradient(
            circle,
            #b8584e 0,
            #b8584e 6px,
            #81352f 7px,
            #d27a6e 12px
        );
}

.spool-purple {
    background:
        repeating-radial-gradient(
            circle,
            #806a9d 0,
            #806a9d 6px,
            #55436e 7px,
            #a18bbd 12px
        );
}


/* =========================
   ПРИМЕРЫ РАБОТ
========================= */

.works {
    padding-top: 80px;
}

.works .section-title {
    margin-bottom: 45px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    width: min(1120px, 100%);
    margin: 0 auto;
}

.work-card {
    overflow: hidden;

    border: 1px solid #e4d9cc;
    border-radius: 22px;

    background: var(--white);

    box-shadow: 0 15px 40px rgba(73, 57, 45, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(73, 57, 45, 0.12);
}

.work-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 270px;
    overflow: hidden;

    border-radius: 22px 22px 0 0;

    background: linear-gradient(145deg, #faf7f1, #eee5da);
}

.work-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(73, 57, 45, 0.08)
    );

    pointer-events: none;
}

.work-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 22px 22px 0 0;

    transition: transform 0.4s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 24px 25px 27px;
}

.work-content h3 {
    margin-bottom: 10px;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}

.work-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   О НАС И КОНТАКТЫ
========================= */

.about {
    border-top: 1px solid var(--border);
}

.contacts {
    padding-top: 30px;
    padding-bottom: 100px;
}


/* =========================
   ПОДВАЛ
========================= */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--cream);
}

.footer-container {
    width: min(1200px, calc(100% - 40px));
    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: var(--muted);
    font-size: 12px;
}


/* =========================
   КОРЗИНА
========================= */

.cart-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(51, 42, 36, 0.55);
}

.cart-modal.active {
    display: flex;
}

.cart-window {
    width: min(600px, 100%);
    max-height: 90vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--cream-light);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--brown-dark);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    color: var(--red);
}

.cart-items {
    overflow-y: auto;
    padding: 20px 30px;
}

.empty-cart {
    padding: 50px 10px;
    color: var(--muted);
    text-align: center;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
    margin-bottom: 8px;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.cart-item-info p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-controls label {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.cart-meters-input {
    width: 65px;
    padding: 8px;

    border: 1px solid var(--border);
    outline: none;

    background: var(--white);
    text-align: center;
}

.cart-meters-input:focus {
    border-color: var(--brown);
}

.cart-item-total {
    min-width: 100px;

    color: var(--brown-dark);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.remove-cart-item {
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 11px;
    white-space: nowrap;
}

.remove-cart-item:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border);
}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;

    color: var(--brown-dark);
    font-size: 18px;
}

.cart-total-row strong {
    font-size: 24px;
}

.checkout-button {
    width: 100%;
    min-height: 48px;

    border: 1px solid var(--brown);
    background: var(--brown);
    color: var(--white);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.checkout-button:hover {
    background: var(--brown-dark);
}


/* =========================
   УВЕДОМЛЕНИЕ
========================= */

.toast {
    position: fixed;
    z-index: 2000;
    right: 25px;
    bottom: 25px;

    max-width: 350px;
    padding: 15px 20px;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    background: var(--brown-dark);
    color: var(--white);

    font-size: 13px;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   БОКОВОЕ МЕНЮ
========================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;

    background: rgba(35, 25, 19, 0.35);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;

    width: min(380px, 88vw);
    height: 100vh;
    padding: 28px;

    display: flex;
    flex-direction: column;

    background: #f8f1e8;
    box-shadow: -12px 0 35px rgba(50, 35, 25, 0.15);

    transform: translateX(105%);

    transition: transform 0.35s ease;
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;
    border-bottom: 1px solid rgba(91, 65, 48, 0.15);
}

.side-menu-header h2 {
    margin: 0;
    color: #4b382d;
}

.menu-close {
    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #ead8c5;
    color: #4b382d;

    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.side-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 25px;
}

.side-navigation a {
    padding: 15px 0;

    color: #4b382d;
    text-decoration: none;

    font-size: 18px;
    font-weight: 600;

    border-bottom: 1px solid rgba(91, 65, 48, 0.1);

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.side-navigation a:hover {
    padding-left: 8px;
    color: #a47b5b;
}

.side-menu-info {
    margin-top: auto;
    margin-bottom: 25px;
}

.side-info-block {
    margin-bottom: 20px;
}

.side-info-label {
    display: block;
    margin-bottom: 8px;

    color: #a47b5b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.side-info-block p {
    margin: 5px 0;
    color: #4b382d;
    font-size: 14px;
}

.side-menu-button {
    display: block;

    padding: 15px;
    border-radius: 12px;

    background: #25d366;
    color: #ffffff;

    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.side-menu-button:hover {
    color: #ffffff;
}

body.menu-open {
    overflow: hidden;
}


/* =========================
   КНОПКА WHATSAPP
========================= */

.whatsapp-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    overflow: hidden;

    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    border: none;

    box-shadow:
        0 10px 25px rgba(18, 140, 126, 0.22),
        0 4px 10px rgba(37, 211, 102, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.whatsapp-button::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );

    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.whatsapp-button:hover {
    transform: translateY(-4px);

    background: linear-gradient(135deg, #20c961, #0d806f);

    box-shadow:
        0 16px 35px rgba(18, 140, 126, 0.3),
        0 6px 14px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover::before {
    left: 130%;
}

.whatsapp-button:active {
    transform: translateY(-1px);
}

.whatsapp-icon {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border: 2px solid currentColor;
    border-radius: 50%;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.whatsapp-button span:last-child {
    position: relative;
    z-index: 1;
}


/* =========================
   АДАПТИВ
========================= */

@media (max-width: 1000px) {
    .hero {
        min-height: 550px;
    }

    .hero-decoration {
        width: 340px;
        height: 340px;
    }

    .large-spool {
        width: 240px;
        height: 240px;
    }

    .product-card {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 25px;
    }

    .product-image-wrapper {
        min-height: 500px;
        border-radius: 22px !important;
    }

    .product-image {
        max-width: 480px;
        max-height: 480px;
        border-radius: 22px !important;
        transform: scale(1.08);
    }

    .product-image:hover {
        transform: scale(1.12);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12.5px);
        margin: 0 auto;
    }
}

@media (max-width: 800px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 30px;

        width: min(600px, 100%);
        padding: 20px;
        border-radius: 22px;
    }

    .product-image-wrapper {
        min-height: 430px;
        border-radius: 22px !important;
    }

    .product-image {
        max-width: 460px;
        max-height: 460px;
        border-radius: 22px !important;
        transform: scale(1.06);
    }

    .product-image:hover {
        transform: scale(1.1);
    }

    .product-info {
        padding: 5px;
    }

    .product-buy {
        align-items: stretch;
        flex-direction: column;
    }

    .add-to-cart {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .header-container {
        min-height: 70px;
    }

    .navigation {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 80px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-decoration {
        align-self: center;
        width: 280px;
        height: 280px;
    }

    .large-spool {
        width: 200px;
        height: 200px;
    }

    .section {
        padding: 70px 0;
    }

    .cart-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 76px;
    }

    .header-container,
    .section,
    .hero,
    .footer-container {
        width: min(100% - 30px, 1200px);
    }

    .header-container {
        min-height: 76px;
    }

    .hero {
        margin-top: -76px;
        padding-top: 76px;
    }

    .brand-main {
        font-size: 20px;
    }

    .brand-sub {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .cart-button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .cart-button .cart-icon {
        display: none;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title .section-label {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .section-title h2 {
        font-size: 35px;
    }

    .section-title > p:not(.section-label) {
        font-size: 14px;
    }

    .product-image-wrapper {
        min-height: 360px;
        padding: 0;
        border-radius: 22px !important;
    }

    .product-image {
        width: 100%;
        max-width: 100%;
        max-height: 350px;
        border-radius: 22px !important;
        transform: scale(1.04);
    }

    .product-image:hover {
        transform: scale(1.07);
    }

    .product-info {
        padding: 5px;
    }

    .product-info h3 {
        font-size: 30px;
    }

    .product-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .add-to-cart {
        width: 100%;
    }

    .cart-window {
        max-height: 95vh;
    }

    .cart-header,
    .cart-items,
    .cart-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cart-item-controls {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cart-item-total {
        min-width: auto;
    }

    .footer-container {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .works {
        padding-top: 60px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .work-image {
        height: 240px;
        border-radius: 22px 22px 0 0 !important;
    }

    .work-image img {
        border-radius: 22px 22px 0 0 !important;
    }

    .work-content {
        padding: 20px;
    }

    .work-content h3 {
        font-size: 23px;
    }
}


/* =========================
   ФИНАЛЬНОЕ ЗАКРУГЛЕНИЕ
   ИМЕННО ЭТИ ПРАВИЛА
   ПЕРЕКРЫВАЮТ СТАРЫЕ
========================= */

/* Фото товара */
.product-image-wrapper {
    overflow: hidden !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px);
}

.product-image-wrapper .product-image {
    display: block;
    border-radius: 22px !important;
}

/* Карточки примеров */
.work-card {
    overflow: hidden !important;
    border-radius: 22px !important;
}

.work-image {
    overflow: hidden !important;
    border-radius: 22px 22px 0 0 !important;
}

.work-image img {
    display: block;
    border-radius: 22px 22px 0 0 !important;
}

/* Если нужны полностью закруглённые сами картинки */
.product-image,
.work-image img {
    border-radius: 22px !important;
}


/* =========================
   ДОПОЛНИТЕЛЬНЫЙ АДАПТИВ
========================= */

@media (max-width: 1000px) {
    .product-image-wrapper {
        border-radius: 22px !important;
    }

    .product-image {
        border-radius: 22px !important;
    }
}

@media (max-width: 800px) {
    .product-image-wrapper {
        border-radius: 22px !important;
    }

    .product-image {
        border-radius: 22px !important;
    }
}

@media (max-width: 600px) {
    .product-image-wrapper {
        border-radius: 22px !important;
    }

    .product-image {
        border-radius: 22px !important;
    }
}
/* Цветные кружки внутри существующих кнопок */

.color-buttons .option-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Убираем старые дополнительные кружки */
.color-buttons .option-button::before {
    display: none !important;
}

/* Кружок создаётся у самого span с названием */
.color-buttons .option-button span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.color-buttons .option-button span::before {
    content: "";
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(73, 57, 45, 0.3);
    box-sizing: border-box;
}

/* 1. Чёрный */
.color-buttons .option-button:nth-child(1) span::before {
    background: #171717;
}

/* 2. Изумрудный лес */
.color-buttons .option-button:nth-child(2) span::before {
    background: #176044;
}

/* 3. Шоколад */
.color-buttons .option-button:nth-child(3) span::before {
    background: #6b422d;
}

/* 4. Оливковый */
.color-buttons .option-button:nth-child(4) span::before {
    background: #7b8040;
}

/* 5. Тёмная Вишня */
.color-buttons .option-button:nth-child(5) span::before {
    background: #641f32;
}

/* 6. Пыльная Роза */
.color-buttons .option-button:nth-child(6) span::before {
    background: #b98286;
}

/* 7. Терракот */
.color-buttons .option-button:nth-child(7) span::before {
    background: #b7653b;
}

/* 8. Голубая лаванда */
.color-buttons .option-button:nth-child(8) span::before {
    background: #9b91c7;
}

/* 9. Айвори */
.color-buttons .option-button:nth-child(9) span::before {
    background: #eee4d2;
}
/* Название сайта вместо катушки */

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    user-select: none;
}

.hero-brand-main {
    color: #49392d;
    font-family: Arial, sans-serif;
    font-size: clamp(58px, 7vw, 105px);
    font-weight: 800;
    letter-spacing: 8px;
}

.hero-brand-sub {
    margin-top: 10px;
    margin-left: 5px;
    color: #a77b62;
    font-family: Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: 700;
    letter-spacing: 7px;
}

@media (max-width: 800px) {
    .hero-brand-main {
        font-size: 58px;
        letter-spacing: 5px;
    }

    .hero-brand-sub {
        font-size: 13px;
        letter-spacing: 5px;
    }
}
/* Убираем старую катушку и её круг */

.hero-decoration {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-decoration::before,
.hero-decoration::after {
    display: none !important;
    content: none !important;
}

.large-spool,
.spool-hole {
    display: none !important;
}
/* Слайдер примеров изделий */

.works-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.works-viewport {
    width: 100%;
    overflow: hidden;
}

.works-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.works-track .work-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.works-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid #d8cbbb;
    border-radius: 50%;
    background: #f8f3ed;
    color: #49392d;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.works-arrow:hover {
    background: #75618f;
    color: #ffffff;
    transform: scale(1.08);
}

.works-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

@media (max-width: 1000px) {
    .works-track .work-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 650px) {
    .works-slider {
        gap: 8px;
    }

    .works-track {
        gap: 0;
    }

    .works-track .work-card {
        flex: 0 0 100%;
    }

    .works-arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 28px;
    }
}
/* СЕТКА КАРТОЧЕК ИЗДЕЛИЙ */

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* ГАЛЕРЕЯ ВНУТРИ КАРТОЧКИ */

.work-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #f3eee8;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease;
}


/* СТРЕЛОЧКИ */

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;

    background: rgba(73, 57, 45, .75);
    color: #fff;

    font-size: 31px;
    line-height: 1;
    cursor: pointer;

    opacity: 0;
    transform: translateY(-50%);

    transition:
        opacity .2s ease,
        background .2s ease,
        transform .2s ease;
}

.work-gallery:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #75618f;
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}


/* СЧЁТЧИК ФОТОГРАФИЙ */

.gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;

    padding: 6px 10px;

    border-radius: 20px;
    background: rgba(73, 57, 45, .75);
    color: #fff;

    font-size: 12px;
    line-height: 1;
}


/* АДАПТИВ */

@media (max-width: 1000px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .gallery-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
}
/* =========================
   КРАСИВОЕ ОФОРМЛЕНИЕ КОНТАКТОВ
========================= */

.contacts {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    max-width: none;
    margin: 80px 0 0;
    padding: 125px 20px 145px;

    border-top: 1px solid rgba(114, 91, 73, 0.15);
    border-bottom: 1px solid rgba(114, 91, 73, 0.15);

    background:
        radial-gradient(
            circle at 12% 25%,
            rgba(117, 97, 143, 0.09),
            transparent 25%
        ),
        radial-gradient(
            circle at 88% 75%,
            rgba(169, 76, 67, 0.07),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #fbf8f3 0%,
            #f4eee5 100%
        );

    text-align: center;
}

/* Большие декоративные окружности */
.contacts::before,
.contacts::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(114, 91, 73, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.contacts::before {
    top: -190px;
    left: -150px;
}

.contacts::after {
    right: -170px;
    bottom: -210px;
}

/* Дополнительные тонкие окружности */
.contacts .section-title::before,
.contacts .section-title::after {
    content: "";
    position: absolute;
    z-index: -1;

    border: 1px solid rgba(117, 97, 143, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

.contacts .section-title {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Надпись над заголовком */
.contacts .section-label,
.contacts .eyebrow {
    display: block;
    margin-bottom: 20px;

    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 5px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Заголовок */
.contacts h2 {
    margin: 0 0 24px;

    color: var(--brown-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1px;
}

/* Описание */
.contacts p {
    max-width: 610px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Контейнер кнопок */
.contacts .contact-buttons,
.contacts .contacts-buttons,
.contacts .social-buttons {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}

/* Если в HTML кнопки находятся прямо внутри contacts */
.contacts > a {
    margin-top: 38px;
}

/* Общий стиль ссылок-кнопок */
.contacts a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-width: 215px;
    min-height: 56px;
    padding: 0 25px;

    overflow: hidden;

    border: none;
    border-radius: 0;

    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;

    box-shadow:
        0 12px 25px rgba(73, 57, 45, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

/* Блик на кнопках */
.contacts a::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 75%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.28),
        transparent
    );

    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.contacts a:hover::before {
    left: 140%;
}

.contacts a:hover {
    transform: translateY(-5px);
    filter: brightness(1.04);

    box-shadow:
        0 18px 35px rgba(73, 57, 45, 0.18);
}

/* WhatsApp */
.contacts a[href*="wa.me"],
.contacts .whatsapp-button {
    background: linear-gradient(
        135deg,
        #25d366,
        #128c7e
    );
}

/* Instagram */
.contacts a[href*="instagram"],
.contacts .instagram-button {
    background: linear-gradient(
        135deg,
        #833ab4,
        #c13584,
        #fd1d1d,
        #fcb045
    );
}

/* Иконки */
.contacts a span,
.contacts a i,
.contacts a svg,
.contacts a img {
    position: relative;
    z-index: 1;
}

/* Текст внутри кнопок */
.contacts a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Маленькая подпись под кнопками */
.contacts .contact-note {
    position: relative;
    z-index: 1;

    margin-top: 38px;

    color: #aa9784;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.7;
}

/* Декоративная линия под кнопками */
.contacts .contact-note::before {
    content: "";

    display: block;

    width: 45px;
    height: 1px;

    margin: 0 auto 18px;

    background: #cdbba8;
}

/* Если contact-note отсутствует, добавляем визуальную линию */
.contacts .contact-buttons::after,
.contacts .contacts-buttons::after,
.contacts .social-buttons::after {
    content: "";

    display: block;
    flex-basis: 100%;

    width: 45px;
    height: 1px;

    margin-top: 24px;

    background: #cdbba8;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .contacts {
        margin-top: 50px;
        padding: 90px 18px 105px;
    }

    .contacts::before,
    .contacts::after {
        width: 230px;
        height: 230px;
    }

    .contacts::before {
        top: -130px;
        left: -130px;
    }

    .contacts::after {
        right: -130px;
        bottom: -140px;
    }

    .contacts h2 {
        font-size: 43px;
        letter-spacing: -0.5px;
    }

    .contacts p {
        max-width: 340px;
        font-size: 14px;
        line-height: 1.7;
    }

    .contacts .contact-buttons,
    .contacts .contacts-buttons,
    .contacts .social-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .contacts a,
    .contacts > a {
        width: 100%;
        max-width: 320px;
        min-height: 55px;
        margin-top: 0;
    }

    .contacts .contact-note {
        max-width: 280px;
        margin: 35px auto 0;
    }
}
.color-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 12px;
    margin-top: 20px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-align: center;
}

.color-option input {
    display: none;
}

.color-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: 0.2s ease;
}

.color-option:hover .color-circle {
    transform: scale(1.08);
}

.color-option input:checked + .color-circle {
    border-color: #252525;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px #252525;
}

.color-option small {
    font-size: 11px;
    line-height: 1.2;
}

/* Цвета */
.black {
    background: #171717;
}

.emerald {
    background: #176b4d;
}

.chocolate {
    background: #6b3e26;
}

.olive {
    background: #777b38;
}

.cherry {
    background: #641f32;
}

.dusty-rose {
    background: #c58f91;
}

.terracotta {
    background: #b85f43;
}

.blue-lavender {
    background: #9baed1;
}

.ivory {
    background: #eee7d2;
}

.lavender {
    background: #b9a6d3;
}

.mustard {
    background: #c6a13a;
}

.linen {
    background: #d8c7a5;
}

.turquoise {
    background: #32b8b0;
}

.cappuccino {
    background: #b99572;
}

@media (max-width: 600px) {
    .color-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 8px;
    }

    .color-circle {
        width: 36px;
        height: 36px;
    }

    .color-option small {
        font-size: 10px;
    }
}
/* Новые цвета */

.color-buttons .option-button .color-lavender::before {
    background: #b9a6d3;
}

.color-buttons .option-button .color-mustard::before {
    background: #c6a13a;
}

.color-buttons .option-button .color-linen::before {
    background: #d8c7a5;
}

.color-buttons .option-button .color-turquoise::before {
    background: #32b8b0;
}

.color-buttons .option-button .color-cappuccino::before {
    background: #b99572;
}
/* ОФОРМЛЕНИЕ ЗАКАЗА */

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(45, 35, 28, 0.45);
    backdrop-filter: blur(5px);
}

.checkout-modal.active {
    display: flex;
}

.checkout-window {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.checkout-header h2 {
    margin: 0;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.checkout-field label {
    font-size: 13px;
    font-weight: 600;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #dfd2c5;
    border-radius: 10px;
    background: #fffaf4;
    color: #46362d;
    font: inherit;
    outline: none;
}

.checkout-field textarea {
    resize: vertical;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    border-color: #795b46;
}

.checkout-info {
    margin-bottom: 20px;
    padding: 13px;
    border-radius: 10px;
    background: #f4ede5;
    color: #725d4c;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-submit {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: #795b46;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.checkout-submit:hover {
    background: #604633;
}

@media (max-width: 600px) {
    .checkout-window {
        padding: 22px;
        border-radius: 18px;
    }
}
/* =========================
   ОПТИМИЗАЦИЯ ПОД ТЕЛЕФОН
========================= */

@media (max-width: 768px) {

    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }

    .section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    h1 {
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.15;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Шапка */

    .header {
        padding: 14px 0;
    }

    .header .container {
        gap: 12px;
    }

    .logo {
        max-width: 145px;
        height: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .cart-button {
        min-width: 42px;
        min-height: 42px;
        padding: 10px;
    }

    .menu-toggle {
        display: flex;
        min-width: 42px;
        min-height: 42px;
        align-items: center;
        justify-content: center;
    }

    /* Главный экран */

    .hero {
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .button,
    .hero-buttons a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Каталог */

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .catalog-card {
        width: 100%;
    }

    .product-card {
        width: 100%;
    }

    .product-image,
    .catalog-card img {
        max-height: 280px;
        object-fit: contain;
    }

    .product-info {
        padding: 18px;
    }

    .product-options {
        gap: 12px;
    }

    .color-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .color-option {
        min-height: 42px;
        padding: 10px 8px;
        font-size: 13px;
    }

    .meters-control {
        width: 100%;
    }

    .meters-control button {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .meters-control input {
        min-width: 0;
        width: 100%;
        height: 44px;
        text-align: center;
    }

    .add-to-cart,
    #addCordToCart {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }

    /* Фильтры каталога */

    .catalog-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-right: -18px;
        padding-right: 18px;
        scrollbar-width: none;
    }

    .catalog-filters::-webkit-scrollbar {
        display: none;
    }

    .catalog-filters button {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 42px;
    }

    /* О нас и преимущества */

    .about-grid,
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    /* Галерея работ */

    .work-gallery {
        width: 100%;
        overflow: hidden;
    }

    .gallery-image {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }

    .gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    /* Контакты */

    .contacts-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-card {
        padding: 20px;
    }

    /* Корзина */

    .cart-modal {
        align-items: flex-end;
        padding: 0;
    }

    .cart-window {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
        padding: 22px 18px;
        box-sizing: border-box;
    }

    .cart-items {
        max-height: 45vh;
        overflow-y: auto;
    }

    .cart-item {
        gap: 12px;
        padding: 14px 0;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .cart-item-details {
        font-size: 12px;
        line-height: 1.5;
    }

    .cart-item-controls {
        flex-wrap: wrap;
    }

    .cart-total {
        font-size: 20px;
    }

    .checkout-button {
        width: 100%;
        min-height: 50px;
    }

    /* Оформление заказа */

    .checkout-modal {
        align-items: flex-end;
        padding: 0;
    }

    .checkout-window {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        padding: 22px 18px;
        border-radius: 22px 22px 0 0;
        box-sizing: border-box;
    }

    .checkout-field input,
    .checkout-field select,
    .checkout-field textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .checkout-submit {
        min-height: 50px;
    }

    /* Кнопки */

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    button {
        touch-action: manipulation;
    }

    /* Нижние блоки */

    .footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}


@media (max-width: 420px) {

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero {
        padding-top: 40px;
        padding-bottom: 45px;
    }

    .color-options {
        grid-template-columns: 1fr 1fr;
    }

    .product-image,
    .catalog-card img {
        max-height: 230px;
    }

    .checkout-window,
    .cart-window {
        padding-left: 15px;
        padding-right: 15px;
    }
}
.meters-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meters-control input {
    width: 80px;
    text-align: center;
}

.meters-unit {
    font-size: 15px;
    color: #725d4c;
    user-select: none;
}


/* Дополнительные цвета шнура */
.color-buttons .option-button:nth-child(10) span::before { background: #9b91c7; }
.color-buttons .option-button:nth-child(11) span::before { background: #c49a32; }
.color-buttons .option-button:nth-child(12) span::before { background: #d8c7a8; }
.color-buttons .option-button:nth-child(13) span::before { background: #35a9a0; }
.color-buttons .option-button:nth-child(14) span::before { background: #b89572; }
.color-buttons .option-button:nth-child(15) span::before { background: #4b4b4b; }
.color-buttons .option-button:nth-child(16) span::before { background: #174a8b; }
.color-buttons .option-button:nth-child(17) span::before { background: #6eb6e8; }
.color-buttons .option-button:nth-child(17) span::before { background: #c8c8c8; }


/* Декоративный фон сайта */
body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 12%, rgba(184, 149, 114, 0.13) 0, rgba(184, 149, 114, 0.13) 2px, transparent 3px),
        radial-gradient(circle at 92% 24%, rgba(114, 91, 73, 0.09) 0, rgba(114, 91, 73, 0.09) 2px, transparent 3px),
        radial-gradient(circle at 18% 82%, rgba(184, 149, 114, 0.10) 0, rgba(184, 149, 114, 0.10) 2px, transparent 3px),
        linear-gradient(135deg, #fbf8f3 0%, #f5eee5 48%, #fbf8f3 100%);
    background-size: 150px 150px, 190px 190px, 230px 230px, auto;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

body::before {
    width: 420px;
    height: 420px;
    top: 8%;
    left: -180px;
    background: radial-gradient(circle, rgba(184, 149, 114, 0.14), transparent 68%);
}

body::after {
    width: 520px;
    height: 520px;
    right: -230px;
    bottom: 5%;
    background: radial-gradient(circle, rgba(114, 91, 73, 0.10), transparent 68%);
}

/* Лёгкая текстура на основных секциях */
section,
.hero,
.catalog-section,
.about-section,
.delivery-section,
.contacts-section {
    position: relative;
}
