/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
	scrollbar-width: thin;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3 {
    margin: 0 0 16px;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 12px;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 26px;
}

.home a {
	color: #dde6f9;
	text-decoration: none;
}

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
    flex: 1 0 auto;
    padding: 30px 0 30px;
}

.intro {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.intro h1 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 14px;
	text-align: center;
}

.intro p {
    color: #333;
    font-size: 16px;
    margin: 0;
	text-align: justify;
}

/* ============================================================
   КОНСТРУКТОР
   ============================================================ */
.constructor {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 22px;
    align-items: start;
}

/* ---------- Панели ---------- */
.panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.panel__title {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef1f6;
	text-align: center;
}

.panel__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 6px;

    /* Firefox */
    scrollbar-width: thin;
    /*scrollbar-color: #2a5298 #eef1f6;*/

    /* Плавная прокрутка при клике по полосе */
    scroll-behavior: smooth;
}

/* WebKit-браузеры: Chrome, Edge, Safari, Opera */

/* Общий контейнер полосы */
.panel__list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Дорожка */
.panel__list::-webkit-scrollbar-track {
    background: #eef1f6;
    border-radius: 8px;
}

/* Ползунок */
.panel__list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 8px;
    border: 2px solid #eef1f6;
    transition: all 0.5s;
}

/* Ползунок при наведении */
.panel__list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    border-color: #dde5f0;
}

/* Уголок между горизонтальной и вертикальной полосами */
.panel__list::-webkit-scrollbar-corner {
    background: #eef1f6;
}

/* ---------- Элемент каталога ---------- */
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid #eef1f6;
    border-radius: 10px;
    cursor: grab;
    background: #fafbfd;
    transition: all 0.5s;
    user-select: none;
    touch-action: none;
}

.item:hover {
    border-color: #2a5298;
    background: #f0f5ff;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.12);
}

.item:active {
    cursor: grabbing;
}

.item.dragging {
    opacity: 0.4;
}

.item__img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.item__placeholder {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf5;
    border-radius: 8px;
    color: #2a5298;
    font-size: 26px;
}

.item__name {
    font-size: 13px;
    text-align: center;
    color: #333;
    line-height: 1.3;
}

.item__price {
    font-size: 14px;
    font-weight: 700;
    color: #1e3c72;
}

/* ---------- Рабочая область ---------- */
.workspace {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.workspace__title {
    font-size: 18px;
    color: #1e3c72;
    margin: 0;
    text-align: center;
}

.workspace__stage {
    position: relative;
    min-height: 440px;
    border: 2px dashed #c5d2e8;
    border-radius: 12px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.5s;
}

.workspace__stage.drag-over {
    border-color: #2a5298;
    background: #eef4ff;
}

.stage__hint {
    text-align: center;
    color: #8899b0;
    font-size: 15px;
}

.stage__hint i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: #b0c0d8;
}

.stage__hint p {
    margin: 0;
}

/* ---------- Информация ---------- */
.workspace__info {
    background: #f8fafd;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
	border: 2px solid #eef1f6;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.info-label {
    color: #6b7a90;
}

.info-value {
    font-weight: 600;
    color: #1e3c72;
}

/* ---------- Итог ---------- */
.workspace__total {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
    border-top: 1px solid #eef1f6;
}

.qty-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-label {
    font-size: 15px;
    color: #6b7a90;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #eef1f6;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #f0f4fa;
    color: #1e3c72;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #2a5298;
    color: #fff;
}

.qty-input {
    width: 70px;
    height: 42px;
    border: none;
    border-left: 2px solid #eef1f6;
    border-right: 2px solid #eef1f6;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e3c72;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.total-label {
    color: #6b7a90;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s;
    font-family: inherit;
    text-decoration: none;
}

.btn--primary {
    background: #2a5298;
    color: #ffffff;
	transition: all 0.5s;
}

.btn--primary:hover {
    background: #1e3c72;
}

.btn--ghost {
    background: transparent;
    color: #6b7a90;
    border: 2px solid #dde5f0;
}

.btn--ghost:hover {
    border-color: #2a5298;
    color: #2a5298;
}

.btn--order {
    width: 200px;
	margin: 0 auto;
}

.btn--add {
    width: 50%;
}

.btn--reset {
    width: 50%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1e3c72;
    color: #c9d6ea;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.site-footer p {
    margin: 0;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__title {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 22px;
    text-align: center;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #3a4a63;
}

.req {
    color: #d9534f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    padding: 12px 14px;
    border: 2px solid #e0e7f1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #2c2c2c;
    background: #fafbfd;
    outline: none;
    transition: all 0.5s;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="tel"]:hover {
    border-color: #b8c8e0;
}

.form-group input.invalid {
    border-color: #d9534f;
    background: #fff5f5;
}

.form-group--checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #3a4a63;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2a5298;
}

.checkbox-label input.invalid + .checkbox-text {
    color: #d9534f;
}

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}



/* ============================================================
   УВЕДОМЛЕНИЕ (TOAST)
   ============================================================ */
.toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #2a5298;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.5s;
    z-index: 2000;
    pointer-events: none;
	box-shadow: 0 0px 30px rgba(0, 0, 0, 0.2);
	width: 240px;
	text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================
   ВКЛАДКИ ОБЪЁМОВ
   ============================================================ */
.volume-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.volume-tab {
    flex: 1 1 auto;
    min-width: 90px;
    padding: 12px 18px;
    border: 2px solid #dde6f9;
    border-radius: 9px;
    background: #f0f5ff;
    color: #3a4a63;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.5s;
    text-align: center;
}

.volume-tab:hover {
    background: #2a5298;
    color: #ffffff;
    border: 2px solid #2a5298;
}

.volume-tab.is-active {
    background: #2a5298;
    color: #ffffff;
    border: 2px solid #2a5298;
}

.button-zakaz {
	display: flex;
	gap: 10px;
}

.name-bottles {
	padding: 5px 0px;
}

/* Вкладки коричневых флаконов */
.volume-tab--brown {
    background: #f5e9dc;
    color: #5a3a1e;
    border-color: #ecdcca;
}

.volume-tab--brown:hover {
    background: #8b5a2b;
    color: #ffffff;
    border-color: #8b5a2b;
}

/* Активная коричневая вкладка */
.volume-tab--brown.is-active {
    background: #8b5a2b;
    color: #ffffff;
    border-color: #8b5a2b;
}

.btn-zakaz {
	width: 50%;
	padding: 14px;
}

/* ============================================================
   КОРЗИНА
   ============================================================ */
.workspace__cart {
    background: #f8fafd;
    border-radius: 12px;
    padding: 10px 10px 30px 10px;
    border: 2px solid #eef1f6;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart__title {
    font-size: 18px;
    color: #1e3c72;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef1f6;
    text-align: center;
}

.cart__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    background: #ffffff;
    border: 2px solid #eef1f6;
    border-radius: 10px;
    padding: 12px 14px;
}

.cart__item-visual {
    width: 82px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart__item-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cart__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart__item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e3c72;
    line-height: 1.3;
}

.cart__item-closure-name {
    font-size: 13px;
    color: #6b7a90;
}

.cart__item-unit {
    font-size: 13px;
    color: #6b7a90;
	width: 140px;
}

.cart__item-qty {
    display: flex;
    align-items: center;
    border: 2px solid #eef1f6;
    border-radius: 8px;
    overflow: hidden;
}

.cart__item-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f0f4fa;
    color: #1e3c72;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart__item-qty-btn:hover {
    background: #2a5298;
    color: #ffffff;
}

.cart__item-qty-input {
    width: 50px;
    height: 34px;
    border: none;
    border-left: 2px solid #eef1f6;
    border-right: 2px solid #eef1f6;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e3c72;
    outline: none;
    -moz-appearance: textfield;
}

.cart__item-qty-input::-webkit-outer-spin-button,
.cart__item-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart__item-sum {
    font-size: 15px;
    font-weight: 700;
    color: #1e3c72;
    min-width: 70px;
    text-align: right;
}

.cart__item-remove {
    width: 34px;
    height: 34px;
    border: 2px solid #eef1f6;
    background: #ffffff;
    color: #1e3c72;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart__item-remove:hover {
    border-color: #d9534f;
    background: #fff5f5;
	color: #d9534f;
}

.cart__total-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid #eef1f6;
    font-size: 18px;
}

.cart__total-label {
    color: #6b7a90;
}

.cart__total-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
}

.constructor,
.workspace,
.panel,
.panel__list,
.cart__item,
.cart__item-info {
    min-width: 0;
}

.intro__text--mobile {
    display: none;
}

/* ---------- Собранный флакон ---------- */
.assembled {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
    height: 350px;
	top: 40px;
}

.assembled__bottle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 200px;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ============================================================
   РАЗМЕРЫ РАБОЧЕЙ ОБЛАСТИ ПОД КАЖДЫЙ ОБЪЁМ ФЛАКОНОВ
   ============================================================ */

/* ---------- 5 мл ---------- */
.assembled.volume-5 {
    width: 83px;
    height: 176px;
}

.assembled.volume-5 .assembled__bottle {
    width: 83px;
    height: 176px;
}

.assembled.glass-brown.volume-5 {
    width: 83px;
    height: 176px;
}

.assembled.glass-brown.volume-5 .assembled__bottle {
    width: 83px;
    height: 176px;
}

/* ---------- 10 мл ---------- */
.assembled.volume-10 {
    width: 83px;
    height: 198px;
}

.assembled.volume-10 .assembled__bottle {
    width: 83px;
    height: 198px;
}

.assembled.glass-brown.volume-10 {
    width: 83px;
    height: 198px;
}

.assembled.glass-brown.volume-10 .assembled__bottle {
    width: 83px;
    height: 198px;
}

/* ---------- 30 мл ---------- */
.assembled.volume-30 {
    width: 100px;
    height: 245px;
}

.assembled.volume-30 .assembled__bottle {
    width: 100px;
    height: 245px;
}

.assembled.glass-brown.volume-30 {
    width: 100px;
    height: 245px;
}

.assembled.glass-brown.volume-30 .assembled__bottle {
    width: 100px;
    height: 245px;
}

/* ---------- 30 мл квадратный ---------- */
.assembled.shape-square.volume-30 {
    width: 100px;
    height: 202px;
}

.assembled.shape-square.volume-30 .assembled__bottle {
	width: 116px;
	height: 264px;
}

/* ---------- 50 мл ---------- */
.assembled.volume-50 {
    width: 106px;
    height: 264px;
}

.assembled.volume-50 .assembled__bottle {
    width: 106px;
    height: 264px;
}

/* ---------- 100 мл ---------- */
.assembled.volume-100 {
    width: 117px;
    height: 292px;
}

.assembled.volume-100 .assembled__bottle {
    width: 117px;
    height: 292px;
}

.assembled__bottle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.assembled__closure {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.assembled__closure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 5 МЛ (для прозрачных флаконов)
   =============================================================================================================== */
.assembled.glass-clear.volume-5 .assembled__closure--cap     { top: -2px; width: 67px; height: 54px; }
.assembled.glass-clear.volume-5 .assembled__closure--cap-silver{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-5 .assembled__closure--cap-gold{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-5 .assembled__closure--dropper { top: -2px; width: 67px; height: 86px; }
.assembled.glass-clear.volume-5 .assembled__closure--pipette { top: -70px; width: 66px; height: 230px; }
.assembled.glass-clear.volume-5 .assembled__closure--spray   { top: -76px; width: 68px; height: 233px; }
.assembled.glass-clear.volume-5 .assembled__closure--pump    { top: -78px; width: 68px; height: 233px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 5 МЛ (для коричневых флаконов)
   =============================================================================================================== */
.assembled.glass-brown.volume-5 .assembled__closure--cap     { top: -2px; width: 67px; height: 54px; }
.assembled.glass-brown.volume-5 .assembled__closure--cap-silver{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-5 .assembled__closure--cap-gold{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-5 .assembled__closure--dropper { top: -2px; width: 67px; height: 86px; }
.assembled.glass-brown.volume-5 .assembled__closure--pipette { top: -74px; width: 68px; height: 234px; }
.assembled.glass-brown.volume-5 .assembled__closure--spray   { top: -76px; width: 68px; height: 233px; }
.assembled.glass-brown.volume-5 .assembled__closure--pump    { top: -80px; width: 68px; height: 238px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 10 МЛ (для прозрачных флаконов)
   =============================================================================================================== */
.assembled.glass-clear.volume-10 .assembled__closure--cap     { top: -2px; width: 67px; height: 54px; }
.assembled.glass-clear.volume-10 .assembled__closure--cap-silver{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-10 .assembled__closure--cap-gold{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-10 .assembled__closure--dropper { top: -2px; width: 67px; height: 86px; }
.assembled.glass-clear.volume-10 .assembled__closure--pipette { top: -70px; width: 66px; height: 250px; }
.assembled.glass-clear.volume-10 .assembled__closure--spray   { top: -76px; width: 68px; height: 256px; }
.assembled.glass-clear.volume-10 .assembled__closure--pump    { top: -76px; width: 66px; height: 252px; }

/* ===============================================================================================================
    ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 10 МЛ (для коричневых флаконов)
   =============================================================================================================== */
.assembled.glass-brown.volume-10 .assembled__closure--cap     { top: -2px; width: 67px; height: 54px; }
.assembled.glass-brown.volume-10 .assembled__closure--cap-silver{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-10 .assembled__closure--cap-gold{ top: -2px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-10 .assembled__closure--dropper { top: -2px; width: 67px; height: 86px; }
.assembled.glass-brown.volume-10 .assembled__closure--pipette { top: -76px; width: 68px; height: 258px; }
.assembled.glass-brown.volume-10 .assembled__closure--spray   { top: -78px; width: 68px; height: 256px; }
.assembled.glass-brown.volume-10 .assembled__closure--pump    { top: -81px; width: 68px; height: 260px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 30 МЛ (для прозрачных флаконов)
   =============================================================================================================== */
.assembled.glass-clear.volume-30 .assembled__closure--cap     { top: -4px; width: 67px; height: 54px; }
.assembled.glass-clear.volume-30 .assembled__closure--cap-silver{ top: -4px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-30 .assembled__closure--cap-gold{ top: -4px; width: 68px; height: 42px; }
.assembled.glass-clear.volume-30 .assembled__closure--dropper { top: -4px; width: 67px; height: 86px; }
.assembled.glass-clear.volume-30 .assembled__closure--pipette { top: -72px; width: 66px; height: 296px; }
.assembled.glass-clear.volume-30 .assembled__closure--spray   { top: -76px; width: 66px; height: 302px; }
.assembled.glass-clear.volume-30 .assembled__closure--pump    { top: -80px; width: 66px; height: 306px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 30 МЛ (для коричневых флаконов)
   =============================================================================================================== */
.assembled.glass-brown.volume-30 .assembled__closure--cap     { top: -4px; width: 67px; height: 54px; }
.assembled.glass-brown.volume-30 .assembled__closure--cap-silver{ top: -4px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-30 .assembled__closure--cap-gold{ top: -4px; width: 68px; height: 42px; }
.assembled.glass-brown.volume-30 .assembled__closure--dropper { top: -4px; width: 67px; height: 86px; }
.assembled.glass-brown.volume-30 .assembled__closure--pipette { top: -76px; width: 68px; height: 308px; }
.assembled.glass-brown.volume-30 .assembled__closure--spray   { top: -80px; width: 68px; height: 312px; }
.assembled.glass-brown.volume-30 .assembled__closure--pump    { top: -84px; width: 68px; height: 316px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 30 МЛ (для коричневых квадратных флаконов)
   =============================================================================================================== */
.assembled.shape-square.glass-brown.volume-30 .assembled__closure--cap-silver { top: -36px; left: 58px; width: 68px; height: 42px; }
.assembled.shape-square.glass-brown.volume-30 .assembled__closure--cap-gold  { top: -36px; left: 58px; width: 68px; height: 42px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 50 МЛ (для прозрачных флаконов)
   =============================================================================================================== */
.assembled.volume-50 .assembled__closure--cap     { top: -4px; width: 67px; height: 54px; }
.assembled.volume-50 .assembled__closure--cap-silver{ top: -4px; width: 68px; height: 42px; }
.assembled.volume-50 .assembled__closure--cap-gold{ top: -4px; width: 68px; height: 42px; }
.assembled.volume-50 .assembled__closure--dropper { top: -4px; width: 67px; height: 86px; }
.assembled.volume-50 .assembled__closure--pipette { top: -72px; width: 66px; height: 314px; }
.assembled.volume-50 .assembled__closure--spray   { top: -75px; width: 66px; height: 316px; }
.assembled.volume-50 .assembled__closure--pump    { top: -79px; width: 66px; height: 321px; }

/* ===============================================================================================================
   ПОЗИЦИОНИРОВАНИЕ УКУПОРКИ ДЛЯ 100 МЛ (для прозрачных флаконов)
   =============================================================================================================== */
.assembled.volume-100 .assembled__closure--cap     { top: -4px; width: 67px; height: 54px; }
.assembled.volume-100 .assembled__closure--cap-silver{ top: -4px; width: 68px; height: 42px; }
.assembled.volume-100 .assembled__closure--cap-gold{ top: -4px; width: 68px; height: 42px; }
.assembled.volume-100 .assembled__closure--dropper { top: -4px; width: 67px; height: 86px; }
.assembled.volume-100 .assembled__closure--pipette { top: -74px; width: 66px; height: 341px; }
.assembled.volume-100 .assembled__closure--spray   { top: -80px; width: 68px; height: 352px; }
.assembled.volume-100 .assembled__closure--pump    { top: -84px; width: 68px; height: 358px; }


/* ============
   АДАПТИВНОСТЬ
   ============ */

/* Планшеты */
@media (max-width: 1024px) {
    .constructor {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "bottles closures"
            "workspace workspace";
    }

    .panel--bottles {
        grid-area: bottles;
    }

    .panel--closures {
        grid-area: closures;
    }

    .workspace {
        grid-area: workspace;
    }

    .panel__list {
        max-height: 300px;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .item {
        flex: 0 0 120px;
    }
}

/* Мобильные */
@media (max-width: 680px) {
    .container {
        padding: 0 12px;
    }

    .intro__text--desktop {
        display: none;
    }
    .intro__text--mobile {
        display: block;
    }

    .intro {
        padding: 20px 18px;
    }

    .intro h1 {
        font-size: 22px;
    }

    .constructor {
        grid-template-columns: 1fr;
        grid-template-areas:
            "workspace"
            "bottles"
            "closures";
        gap: 16px;
    }

    .panel {
        padding: 14px;
    }

    .panel__list {
        max-height: none;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .item {
        flex: 0 0 110px;
    }

    .item__img,
    .item__placeholder {
        width: 60px;
        height: 60px;
    }

    .workspace {
        padding: 16px;
    }

    .workspace__stage {
        min-height: 440px;
    }

    .total-value {
        font-size: 20px;
    }

    .modal {
        padding: 22px 18px;
    }

    .modal__title {
        font-size: 19px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 15px;
    }
	
	.volume-tabs {
        gap: 6px;
        padding: 6px;
    }

    .volume-tab {
        min-width: 60px;
        padding: 10px 12px;
        font-size: 13px;
    }
	
	.cart__item {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        grid-template-areas:
            "visual info remove"
            "visual qty sum";
        gap: 8px;
		max-width: 100%;
    }
	
	.cart__item-info {
        min-width: 0;
    }
	
	.cart__item-name,
    .cart__item-closure-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cart__item-visual { grid-area: visual; }
    .cart__item-info   { grid-area: info; }
    .cart__item-qty    { grid-area: qty; }
    .cart__item-sum    { grid-area: sum; text-align: left; }
    .cart__item-remove { grid-area: remove; justify-self: end; }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 22px;
    }

    .intro h1 {
        font-size: 19px;
    }

    .qty-btn {
        width: 38px;
        height: 38px;
    }

    .qty-input {
        width: 56px;
        height: 38px;
    }
	
	.cart__item-closure-name {
		width: 140px;
	}
	
	.cart__item-name {
		width: 140px;
	}
	
	.cart__item-qty {
		height: 30px;
	}
	
	.cart__item-sum {
		min-width: 70px;
	}
	
	.cart__item-visual {
		width: auto;
		height: 120px;
	}
	
	.button-zakaz {
		display: grid;
		gap: 10px;
	}
	
	.btn-zakaz {
		width: 100%;
	}
	
	.btn--add {
		width: 100%;
	}
	
	.btn--reset {
		width: 100%;
	}
	
	.btn--order {
		width: 100%;
		margin: 0 auto;
	}
	
	.check-font-size {
		font-size: 10px;
	}
	
	.site-main {
		padding: 12px 0 12px;
	}
	
	.intro {
	  margin-bottom: 20px;
	}
	
	.volume-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .volume-tab {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
	
	.intro p {
		text-align: left;
	}
}