/* ==================================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И НАСТРОЙКИ
   ================================================== */
:root {
    /* Цветовая палитра */
    --color-primary-dark: #0a260a;      /* Тёмно-зелёный, основной цвет */
    --color-primary-green: #1a3d1a;      /* Зелёный */
    --color-accent-green: #2d5a2d;       /* Акцентный зелёный */
    --color-light-green: #e8ece8;        /* Светло-зелёный для фона */
    --color-bg-gray: #f5f5f5;            /* Серый фон */
    --color-text-dark: #333333;          /* Тёмный текст */
    --color-text-light: #666666;         /* Светлый текст */
    --color-white: #ffffff;               /* Белый */
    --color-error: #e74c3c;               /* Цвет ошибки */
    --color-success: #27ae60;             /* Цвет успеха */
    --color-cart-summary-bg: #8fa68f;     /* Фон итоговой панели корзины */

    /* Типографика */
    --font-family-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Анимация и эффекты */
    --transition-main: all 0.3s ease;    /* Плавные переходы */
    --box-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

    /* Размеры и отступы */
    --container-width: 1200px;
    --border-radius-small: 30px;
    --border-radius-medium: 40px;
    --border-radius-large: 50px;
    --border-radius-round: 50%;
}

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

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

body {
    font-family: var(--font-family-base);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Контейнер для центрирования контента */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-main);
}

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

/* ==================================================
   ШАПКА САЙТА (HEADER)
   ================================================== */
.header {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.header__logo .logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-round);
    object-fit: cover;
}

/* Навигация (десктоп) */
.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.nav__link:hover,
.nav__link.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Правая часть шапки */
.header__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__cart {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--color-white);
    position: relative; /* Для позиционирования счетчика */
}

.cart__icon {
    width: 24px;
    height: 24px;
}

.header__contacts {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.contacts__phone {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.contacts__email {
    opacity: 0.9;
}

/* ==================================================
   БУРГЕР-МЕНЮ (ДЛЯ МОБИЛЬНЫХ)
   ================================================== */
.burger-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.burger-button span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary-dark);
    border-radius: 3px;
    transition: var(--transition-main);
}

/* Анимация бургера в крестик */
.burger-button.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.burger-button.active span:nth-child(2) {
    opacity: 0;
}

.burger-button.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Затемнение фона при открытом меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-main);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.4s ease;
    border-radius: 30px 0 0 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--color-light-green);
}

.mobile-menu__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.mobile-menu__close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--color-text-dark);
    transition: transform var(--transition-main);
}

.mobile-menu__close:hover {
    transform: rotate(90deg);
}

.mobile-menu__nav {
    padding: 20px 30px;
}

.mobile-menu__link {
    display: block;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-dark);
    border-radius: 15px;
    transition: var(--transition-main);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    background: var(--color-light-green);
    color: var(--color-primary-dark);
    padding-left: 30px; /* Эффект при наведении */
}

/* ==================================================
   ГЛАВНАЯ СТРАНИЦА (INDEX)
   ================================================== */

/* Hero-секция */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 38, 10, 0.85) 0%, rgba(255, 255, 255, 0.75) 300%),
        url('Img/background.png') center / cover no-repeat;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    max-width: 700px;
    color: var(--color-white);
    padding: 80px 20px;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 300;
}

.hero__text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-primary-dark);
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-light-green);
}

/* Секция "Хиты продаж" */
.bestsellers {
    padding: 80px 20px;
    background: var(--color-white);
}

.bestsellers__title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

/* Декоративная линия под заголовком */
.bestsellers__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-primary-green);
}

.bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.tea-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    transition: var(--transition-main);
    text-align: center;
    padding: 30px;
}

.tea-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.tea-card__image {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    border-radius: var(--border-radius-round);
    overflow: hidden;
    background: var(--color-light-green);
}

.tea-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-main);
}

.tea-card:hover .tea-card__img {
    transform: scale(1.05);
}

.tea-card__title {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.tea-card__text {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

/* ==================================================
   СТРАНИЦА КАТАЛОГА (CATALOG)
   ================================================== */
.catalog-page {
    background: var(--color-white);
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.catalog-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.products-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-card {
    background: var(--color-light-green);
    border-radius: var(--border-radius-small);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: var(--box-shadow-card);
    transition: var(--transition-main);
}

.product-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.product-image {
    width: 200px;
    height: 200px;
    background: var(--color-white);
    border-radius: var(--border-radius-round);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-field {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.product-label {
    font-weight: 600;
    color: var(--color-text-light);
    min-width: 200px;
    flex-shrink: 0;
}

.product-value {
    color: var(--color-text-dark);
}

.product-description {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 14px;
}

/* Кнопка "Добавить в корзину" */
.add-to-cart {
    background: var(--color-primary-dark);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-small);
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    align-self: center;
    transition: var(--transition-main);
    display: inline-flex; /* Изменено для лучшего контроля */
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.add-to-cart:hover {
    background: var(--color-primary-green);
    transform: scale(1.05);
}

.add-to-cart svg {
    width: 22px;
    height: 22px;
}

/* ==================================================
   СТРАНИЦА КОРЗИНЫ (CART)
   ================================================== */
.cart-page {
    padding: 40px 0 80px;
    background: var(--color-white);
    min-height: calc(100vh - 200px);
}

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-page .page-title {
    text-align: left;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    background: var(--color-light-green);
    border-radius: var(--border-radius-medium);
    padding: 20px 30px;
    gap: 30px;
    transition: var(--transition-main);
    position: relative; /* Для позиционирования кнопки удаления */
}

.cart-item:hover {
    box-shadow: var(--box-shadow-card);
}

.cart-item-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--border-radius-round);
    overflow: hidden;
    background: var(--color-white);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cart-item-detail {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.4;
}

.cart-item-detail strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

.cart-item-price {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Кнопка удаления товара из корзины */
.cart-item-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-error);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius-round);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-main);
    opacity: 0.8;
}

.cart-item-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Итоговая панель корзины */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-cart-summary-bg);
    border-radius: var(--border-radius-small);
    padding: 20px 40px;
    margin-top: 20px;
}

.cart-total {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
}

.cart-total span {
    font-weight: 700;
    margin-left: 10px;
}

.cart-checkout-btn {
    background: var(--color-primary-dark);
    color: var(--color-white);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius-small);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    font-family: var(--font-family-base);
}

.cart-checkout-btn:hover {
    background: var(--color-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.empty-cart {
    text-align: center;
    font-size: 20px;
    color: var(--color-text-light);
    padding: 60px 0;
}

/* ==================================================
   СТРАНИЦЫ ОФОРМЛЕНИЯ ЗАКАЗА (CHECKOUT) И ОПЛАТЫ (PAYMENT)
   ================================================== */
.checkout,
.payment-page {
    padding: 60px 0 80px;
    background: var(--color-bg-gray);
    min-height: calc(100vh - 200px);
}

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

.checkout__container,
.payment-container {
    background: var(--color-light-green);
    border-radius: var(--border-radius-medium);
    padding: 60px 80px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.checkout__title,
.payment-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.checkout__form,
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative; /* Для позиционирования сообщения об ошибке */
}

.form-input {
    width: 100%;
    padding: 18px 30px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    background: #d4d4d4;
    font-size: 16px;
    text-align: center;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.3s;
    font-family: var(--font-family-base);
}

.form-input::placeholder {
    color: #666;
}

.form-input:focus {
    background: #c9c9c9;
    border-color: var(--color-primary-dark);
}

/* Состояния для валидации */
.form-input.error {
    border-color: var(--color-error);
    background: #fdeaea;
}

.form-input.success {
    border-color: var(--color-success);
    background: #eafaf1;
}

/* Стили для выпадающего списка */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 30px center;
}

.error-message {
    position: absolute;
    left: 30px;
    top: 100%;
    font-size: 13px;
    color: var(--color-error);
    margin-top: 5px;
    display: none;
    text-align: left;
}

.error-message.show {
    display: block;
}

.checkout__button,
.payment-btn {
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 18px 40px;
    background: var(--color-primary-dark);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout__button:hover,
.payment-btn:hover {
    background: var(--color-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkout__button:disabled,
.payment-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.order-summary {
    background: var(--color-white);
    border-radius: 20px;
    padding: 25px 30px;
    margin: 20px 0;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.summary-row span:last-child {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary-dark);
}

/* Сообщение об успешной оплате */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: white;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 30px;
}

.success-message h2 {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.success-message p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-main);
}

.back-home:hover {
    background: var(--color-primary-green);
    transform: translateY(-2px);
}

/* ==================================================
   СТРАНИЦА "О НАС" (ABOUT)
   ================================================== */
.page-title-section {
    background: var(--color-bg-gray);
    padding: 40px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin: 0;
}

.about-intro {
    padding: 60px 0;
    background: var(--color-white);
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-text strong {
    color: var(--color-primary-green);
    font-weight: 700;
}

.about-image-section {
    width: 100%;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-section {
    padding: 60px 0;
    background: var(--color-white);
}

.about-section-alt {
    background: var(--color-bg-gray); /* Альтернативный фон */
}

.about-section-title {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.about-section-text {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.about-list {
    max-width: 700px;
    margin: 0 auto;
}

.about-list li {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.about-list li::before {
    content: '•';
    color: var(--color-primary-green);
    font-weight: bold;
    font-size: 24px;
    position: absolute;
    left: 10px;
    top: -2px;
}

/* ==================================================
   СТРАНИЦА КОНТАКТОВ (CONTACTS)
   ================================================== */
.contacts-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    background: var(--color-white);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacts-text-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacts-intro,
.contacts-signature,
.contacts-details {
    font-size: 18px;
    line-height: 1.6;
}

.contacts-signature {
    font-weight: 500;
}

.contacts-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
    line-height: 1.8;
}

.contacts-details span {
    color: var(--color-text-light);
    font-weight: 400;
}

.contacts-image-block {
    width: 100%;
}

.contacts-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-small);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================================================
   ПОДВАЛ (FOOTER)
   ================================================== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 40px 0 30px;
    margin-top: auto;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer__logo-img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-round);
}

.footer__copyright {
    font-size: 14px;
    opacity: 0.9;
}

.footer__center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 14px;
}

.footer__text {
    opacity: 0.9;
}

.footer__link {
    opacity: 0.8;
}

.footer__link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__right {
    text-align: right;
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.8;
}

/* ==================================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ================================================== */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 968px) {
    .header__nav,
    .header__contacts {
        display: none;
    }

    .burger-button {
        display: flex;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        font-size: 20px;
    }

    .hero__text {
        font-size: 16px;
    }

    .bestsellers__title {
        font-size: 32px;
    }

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

    .tea-card__image {
        width: 240px;
        height: 240px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 250px;
        border-radius: var(--border-radius-small);
    }

    .product-field {
        flex-direction: column;
        gap: 5px;
    }

    .product-label {
        min-width: auto;
    }

    .add-to-cart {
        width: 100%;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cart-item-info {
        align-items: center;
        margin: 15px 0;
    }

    .cart-item-price {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .cart-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cart-checkout-btn {
        width: 100%;
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

    .contacts-image-block {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__right {
        text-align: center;
    }

    .page-title {
        font-size: 32px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-image {
        height: 400px;
    }

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

    .checkout__container,
    .payment-container {
        padding: 40px 30px;
    }

    .checkout__title,
    .payment-title {
        font-size: 26px;
    }
}

/* Мобильные телефоны */
@media (max-width: 600px) {
    .hero {
        min-height: 400px;
    }

    .hero__content {
        padding: 60px 15px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .bestsellers {
        padding: 50px 15px;
    }

    .bestsellers__title {
        font-size: 28px;
    }

    .tea-card {
        padding: 25px 20px;
    }

    .tea-card__image {
        width: 200px;
        height: 200px;
    }

    .tea-card__title {
        font-size: 24px;
    }

    .catalog-title {
        font-size: 28px;
    }

    .product-image {
        height: 200px;
    }

    .cart-page .page-title {
        font-size: 28px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-price {
        font-size: 14px;
        padding: 8px 20px;
    }

    .contacts-page {
        padding: 40px 0;
    }

    .page-title {
        font-size: 28px;
    }

    .contacts-intro,
    .contacts-signature,
    .contacts-details {
        font-size: 16px;
    }

    .about-image {
        height: 300px;
    }

    .about-section {
        padding: 40px 0;
    }

    .about-section-title {
        font-size: 24px;
    }

    .checkout,
    .payment-page {
        padding: 40px 0;
    }

    .checkout__container,
    .payment-container {
        padding: 30px 20px;
    }

    .checkout__title,
    .payment-title {
        font-size: 22px;
    }

    .form-input {
        padding: 12px 15px;
    }

    .mobile-menu {
        width: 90%;
    }

    .mobile-menu__title {
        font-size: 20px;
    }

    .mobile-menu__link {
        font-size: 18px;
        padding: 15px 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .checkout {
        margin: 20px auto;
    }
}

/* Стили для ошибок валидации */
.form-input.input-error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1.2em;
}

.error-message:not(:empty) {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Плавный фокус для полей */
.form-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}