/**
 * Основные стили для сайта пиццерии "Лисицца"
 * Цветовая схема: оранжево-красные тона + золотистые акценты
 */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Цвета */
    --primary-color: #ff6b35;
    /* Оранжево-красный основной */
    --primary-dark: #e55a2b;
    /* Темнее основного */
    --primary-light: #ff8559;
    /* Светлее основного */

    --secondary-color: #ffb347;
    /* Золотистый */
    --secondary-dark: #e6a042;
    /* Темнее золотистого */
    --secondary-light: #ffc970;
    /* Светлее золотистого */

    --accent-color: #ff4757;
    /* Красный акцент */
    --success-color: #2ed573;
    /* Зеленый успех */
    --warning-color: #ffa502;
    /* Желтый предупреждение */
    --error-color: #ff3838;
    /* Красный ошибка */

    --text-color: #2c2c2c;
    /* Основной текст */
    --text-light: #666666;
    /* Светлый текст */
    --text-muted: #999999;
    /* Приглушенный текст */

    --bg-color: #ffffff;
    /* Основной фон */
    --bg-light: #f8f9fa;
    /* Светлый фон */
    --bg-dark: #2c2c2c;
    /* Темный фон */

    --border-color: #e1e5e9;
    /* Границы */
    --border-light: #f1f3f4;
    /* Светлые границы */

    /* Шрифты */
    --font-primary: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
    --font-heading: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Liberation Sans', Arial, sans-serif;

    /* Размеры */
    --container-width: 1200px;
    --container-padding: 20px;

    /* Радиусы */
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;

    /* Тени */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Переходы */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    /* Sticky footer layout */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure root takes full height for sticky footer */
html {
    height: 100%;
}

/* Main content grows to push footer down */
.main {
    flex: 1 0 auto;
}

/* Footer stays at the bottom without extra gap */
.footer {
    flex-shrink: 0;
}

/* ===== ТИПОГРАФИКА ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

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

.btn--secondary {
    background-color: white;
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn--small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== ХЕДЕР ===== */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 2rem;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    text-decoration: none;
}

.logo__image {
    width: 120px;
    height: auto;
    max-height: 50px;
}

/* В шапке скрываем подпись "Работаем:" и показываем только часы компактно */
.header .work-time__label {
    display: none;
}

/* Часы под телефоном на десктопе, компактно */
@media (min-width: 769px) {
    .header__info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .header .work-time {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
    }

    .header .work-time__hours {
        color: var(--text-muted);
        font-weight: 500;
        white-space: nowrap;
    }
}

/* Навигация */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu__link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu__link:hover {
    color: var(--primary-color);
}

.nav-menu__link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Информация в хедере */
.header__info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.work-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.875rem;
}

.work-time__label {
    color: var(--text-muted);
}

.work-time__hours {
    font-weight: 600;
    color: var(--success-color);
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.phone:hover {
    color: var(--primary-color);
}

/* Корзина */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-btn__count {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Мобильное меню */
.header__mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__mobile-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition-fast);
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: radial-gradient(1200px 500px at 10% -10%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, #ff6b35 0%, #ffb347 100%);
    color: white;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Файл hero-pattern.svg отсутствует на сервере → убираем фон, чтобы избежать 404 */
    /* background: url('/assets/images/hero-pattern.svg') repeat; */
    opacity: 0.1;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand {
    color: var(--secondary-color);
}

.hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    opacity: 0.92;
}

/* Мобильный логотип в hero (скрыт по умолчанию) */
.hero__mobile-logo {
    display: none;
}

.hero__mobile-logo-image {
    display: block;
    margin: 6px auto 10px;
    width: 320px;
    max-width: 92%;
    height: auto;
}

.hero__features {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature__icon {
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero__below {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ffffff;
}

.hero__image {
    position: relative;
    text-align: center;
}

.hero__pizza {
    max-width: 520px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.25));
    animation: float 7s ease-in-out infinite;
    transform: translateX(-4%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Декоративные элементы */
.hero__decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.decoration--pizza {
    background: rgba(255, 107, 53, 0.3);
    top: 10%;
    left: 10%;
    animation-delay: -1s;
}

.decoration--cheese {
    background: rgba(255, 179, 71, 0.3);
    top: 70%;
    right: 10%;
    animation-delay: -2s;
}

.decoration--tomato {
    background: rgba(255, 71, 87, 0.3);
    bottom: 20%;
    left: 20%;
    animation-delay: -3s;
}

/* ===== СЕКЦИИ ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== СЕКЦИЯ ПОПУЛЯРНЫХ ПИЦЦ ===== */
.popular-pizzas {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* ===== СЕТКА ПИЦЦ ===== */
.pizzas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pizzas-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

/* ===== КАРТОЧКА ПИЦЦЫ ===== */
.pizza-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pizza-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.pizza-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.pizza-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.pizza-card:hover .pizza-card__img {
    transform: scale(1.1);
}

.pizza-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    color: white;
}

.badge--popular {
    background-color: var(--accent-color);
}

.badge--new {
    background-color: var(--success-color);
}

.badge--cold {
    background-color: #17a2b8;
}

.badge--hot {
    background-color: #fd7e14;
}

.badge--alcoholic {
    background-color: #dc3545;
}

.pizza-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pizza-card__title {
    margin-bottom: 0.5rem;
}

.pizza-card__link {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.pizza-card__link:hover {
    color: var(--primary-color);
}

.pizza-card__description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.pizza-card__ingredients {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pizza-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.pizza-card__price {
    flex-grow: 1;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-range {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== РАЗМЕРЫ ПИЦЦ ===== */
.pizza-sizes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pizza-size {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
}

.pizza-size__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pizza-size__name {
    font-weight: 600;
    color: var(--text-color);
}

.pizza-size__diameter {
    font-size: 0.75rem;
    color: var(--text-light);
}

.pizza-size__price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== КАРТОЧКА НАПИТКА ===== */
.drink-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drink-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.drink-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.drink-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.drink-card:hover .drink-card__img {
    transform: scale(1.1);
}

.drink-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.5rem;
}

.drink-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drink-card__title {
    margin-bottom: 0.5rem;
}

.drink-card__link {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.drink-card__link:hover {
    color: var(--primary-color);
}

.drink-card__description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.drink-card__ingredients {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drink-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

/* ===== РАЗМЕРЫ НАПИТКОВ ===== */
.drink-sizes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.drink-size {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
}

.drink-size__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drink-size__name {
    font-weight: 600;
    color: var(--text-color);
}

.drink-size__volume {
    font-size: 0.75rem;
    color: var(--text-light);
}

.drink-size__price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== СЕТКА НАПИТКОВ ===== */
.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.drinks-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

/* Сетка напитков как у пицц: 4 на ПК, 2 на мобильном */
@media (max-width: 768px) {
    .drinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .drinks-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 1025px) {
    .drinks-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .drinks-grid--compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* ===== КАТЕГОРИИ ===== */
.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.category-card__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.category-card__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.category-card:hover .category-card__img {
    transform: scale(1.1);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(255, 107, 53, 0.4));
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.category-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card__description {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.category-card__count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ===== НОВИНКИ ===== */
.new-pizzas {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.advantage-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.advantage-card__title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.advantage-card__description {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.review-card__rating {
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.25rem;
    color: var(--border-color);
}

.star--filled {
    color: var(--secondary-color);
}

.review-card__text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card__author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 0.875rem;
}

.review-card__date {
    color: var(--text-muted);
}

/* ===== CTA СЕКЦИЯ ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== ФУТЕР ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__logo-image {
    width: 80px;
    height: auto;
    max-height: 40px;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-color);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-item__icon {
    font-size: 1rem;
}

.contact-item__text {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact-item__text:hover {
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright,
.footer__powered {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header__content {
        padding: 0.35rem 0;
    }

    .header__nav {
        display: none;
    }

    /* Телефон в правом углу, часы под телефоном (столбиком) на мобильных */
    .header__info {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        margin-left: auto;
    }

    .work-time {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
    }

    .work-time__label {
        display: none;
    }

    .work-time__hours {
        color: #2c2c2c;
        font-weight: 600;
        white-space: nowrap;
    }

    .phone {
        font-size: 0.9rem;
        gap: 0.35rem;
        color: var(--primary-color);
    }

    .phone__icon {
        font-size: 1rem;
    }

    .phone__number {
        white-space: nowrap;
    }

    .header__mobile-menu {
        display: block;
    }

    /* Компактная hero секция для мобильных */
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
    }

    /* Показываем новый логотип и скрываем старое изображение hero на мобильных */
    .hero__mobile-logo {
        display: block;
    }

    .hero__image {
        display: none;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero__features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature {
        font-size: 0.875rem;
        gap: 0.25rem;
    }

    .feature__icon {
        font-size: 1rem;
    }

    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .hero__image {
        margin-top: 0;
    }

    .hero__pizza {
        /* fallback: если hero__image будет показан на мобилках */
        max-width: 200px;
        width: 100%;
        height: auto;
        transform: none;
    }

    /* Скрываем декоративные элементы на мобильных */
    .hero__decoration {
        display: none;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

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

    .pizzas-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

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

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

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

    /* Дополнительные стили для мобильных карточек */
    .pizza-card__content {
        padding: 1rem;
    }

    .pizza-card__title {
        font-size: 1.125rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .pizza-card__description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .pizza-card__footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .pizza-card__btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Адаптивные стили для размеров пицц на мобильных */
    .pizza-sizes {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .pizza-size {
        padding: 0.375rem;
        font-size: 0.75rem;
    }

    .pizza-size__name {
        font-size: 0.75rem;
    }

    .pizza-size__diameter {
        font-size: 0.625rem;
    }

    .pizza-size__price {
        font-size: 0.875rem;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .header__content {
        gap: 0.5rem;
    }

    .logo__image {
        width: 120px;
        max-height: 50px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero__mobile-logo-image {
        width: 92vw;
        max-width: 96%;
        margin-top: 4px;
    }

    .work-time__hours {
        font-size: 0.7rem;
        line-height: 1;
    }

    .phone {
        font-size: 0.88rem;
        line-height: 1;
    }

    .phone__icon {
        font-size: 0.95rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero__features {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .feature {
        font-size: 0.8rem;
    }

    .feature__icon {
        font-size: 0.9rem;
    }

    .hero__pizza {
        max-width: 150px;
    }

    .hero__actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Скрываем один из feature элементов на очень маленьких экранах */
    .hero__features .feature:nth-child(3) {
        display: none;
    }
}

/* Стили для экранов меньше 360px */
@media (max-width: 360px) {
    .hero {
        padding: 25px 0;
    }

    .logo__image {
        width: 120px;
        max-height: 50px;
    }

    .phone {
        font-size: 0.8rem;
    }

    .work-time__hours {
        font-size: 0.65rem;
    }

    .hero__title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero__subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .hero__features {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .feature {
        font-size: 0.75rem;
    }

    .hero__pizza {
        max-width: 120px;
    }

    .hero__actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Скрываем еще один feature элемент */
    .hero__features .feature:nth-child(2) {
        display: none;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .pizzas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .pizzas-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Большие экраны */
@media (min-width: 1025px) {
    .pizzas-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .pizzas-grid--compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* ===== СТАТИЧЕСКИЕ СТРАНИЦЫ (страницы доставки, политика, возврат и т.д.) ===== */
.page-section {
    padding: 56px 0;
}

.page-title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-text,
.delivery-info {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    padding: 24px;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.legal-text h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 6px;
}

.legal-text p {
    color: var(--text-light);
}

.legal-text ul,
.legal-text ol {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--text-light);
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.delivery-info.grid-2>div {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 20px;
}

.note {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 179, 71, 0.06));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-light);
}

.link {
    color: var(--primary-color);
    text-decoration: underline dotted;
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.list {
    margin: 0.5rem 0 1rem 1.25rem;
}

.list li {
    margin-bottom: 0.35rem;
}

/* Утилиты отступов для статических страниц */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 32px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .legal-text,
    .delivery-info {
        padding: 16px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ВЫБОРА ПИЦЦЫ ===== */
.pizza-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.pizza-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.pizza-modal__container {
    position: relative;
    max-width: 800px;
    width: 100%;
    /* Use dynamic viewport units on iOS to prevent button being obscured by browser UI */
    max-height: 90vh;
    /* fallback */
    max-height: 90svh;
    /* small viewport */
    max-height: 90dvh;
    /* dynamic viewport */
    background-color: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    animation: modalShow 0.3s ease-out;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pizza-modal__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    /* fallback */
    max-height: 90svh;
    /* small viewport */
    max-height: 90dvh;
    /* dynamic viewport */
}

.pizza-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.pizza-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.pizza-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pizza-modal__close:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.pizza-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 24px;
    /* Allow scrolling past the footer so bottom fields (e.g., comment) are not obscured */
    padding-bottom: 140px;
    overflow-y: auto;
    flex: 1;
}

.pizza-modal__image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.pizza-modal__img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    z-index: 1;
}

.pizza-modal__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pizza-modal__description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pizza-modal__ingredients h4,
.pizza-modal__sizes h4,
.pizza-modal__quantity h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.pizza-modal__ingredients-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== СЕЛЕКТОР РАЗМЕРОВ ===== */
.size-selector {
    display: grid;
    gap: 12px;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: white;
}

.size-option:hover {
    border-color: var(--primary-light);
    background-color: rgba(255, 107, 53, 0.02);
}

.size-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.size-option__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.size-option__name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.size-option__diameter {
    font-size: 0.8rem;
    color: var(--text-light);
}

.size-option__visual {
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-option__circle {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background-color: white;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.size-option.active .size-option__circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.size-option.active .size-option__circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.size-option__price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== УПРАВЛЕНИЕ КОЛИЧЕСТВОМ ДЛЯ РАЗМЕРОВ ===== */
.size-option__quantity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border-radius: 20px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.size-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: white;
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.size-quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.size-quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.5);
}

.size-quantity-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    min-width: 16px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== СЕЛЕКТОР КОЛИЧЕСТВА ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-small);
    padding: 8px;
    width: fit-content;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.05);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== ИТОГОВАЯ ЦЕНА ===== */
.pizza-modal__total {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-small);
    /* Was auto which pinned the total block to the bottom and pushed extras/comment out of view */
    margin-top: 12px;
}

.pizza-modal__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pizza-modal__price-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.pizza-modal__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== ФУТЕР МОДАЛКИ ===== */
.pizza-modal__footer {
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-bottom: calc(24px + constant(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-light);
}

.pizza-modal__add-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px 24px;
}

/* ===== МОДАЛЬНОЕ ОКНО НАПИТКОВ ===== */
.drink-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

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

.drink-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.drink-modal__container {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius-large);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    /* fallback */
    max-height: 90svh;
    /* small viewport */
    max-height: 90dvh;
    /* dynamic viewport */
    overflow: hidden;
    box-shadow: var(--shadow-large);
    animation: modalShow 0.3s ease-out;
}

.drink-modal__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drink-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.drink-modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.drink-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-fast);
    color: var(--text-muted);
}

.drink-modal__close:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.drink-modal__body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.drink-modal__image {
    flex: 0 0 300px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drink-modal__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 300px;
}

.drink-modal__info {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.drink-modal__description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.drink-modal__ingredients h4,
.drink-modal__sizes h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.drink-modal__ingredients-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.drink-modal__total {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.drink-modal__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drink-modal__price-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.drink-modal__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.drink-modal__footer {
    padding: 1.5rem 2rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    padding-bottom: calc(1.5rem + constant(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.drink-modal__add-btn {
    width: 100%;
    justify-content: center;
}

/* Адаптивность для модального окна напитков */
@media (max-width: 768px) {
    .drink-modal {
        padding: 10px;
    }

    .drink-modal__container {
        max-height: 95vh;
        max-width: 100%;
        margin: 0 10px;
    }

    .drink-modal__content {
        max-height: 95vh;
    }

    .drink-modal__body {
        flex-direction: column;
    }

    .drink-modal__header {
        padding: 1rem 1.5rem;
    }

    .drink-modal__title {
        font-size: 1.25rem;
    }

    .drink-modal__image {
        flex: 0 0 200px;
    }

    .drink-modal__img {
        max-height: 200px;
    }

    .drink-modal__info {
        padding: 1.5rem;
    }

    .drink-modal__description {
        font-size: 0.875rem;
    }

    .drink-modal__ingredients h4,
    .drink-modal__sizes h4 {
        font-size: 1rem;
    }

    .drink-modal__ingredients-text {
        font-size: 0.875rem;
    }

    .drink-modal__price-label {
        font-size: 1rem;
    }

    .drink-modal__price-value {
        font-size: 1.25rem;
    }

    .drink-modal__footer {
        padding: 1rem 1.5rem;
    }

    .drink-modal__add-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ===== АДАПТИВНОСТЬ МОДАЛКИ ===== */
@media (max-width: 768px) {
    .pizza-modal {
        padding: 2px;
        align-items: flex-end;
    }

    .pizza-modal__container {
        max-height: 99vh;
        border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    }

    .pizza-modal__body {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 12px;
        overflow-y: auto;
        max-height: calc(99vh - 120px);
    }

    .pizza-modal__header {
        padding: 12px 12px 0;
        margin-bottom: 12px;
    }

    .pizza-modal__title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .pizza-modal__image {
        order: 1;
        min-height: 100px;
        padding: 8px;
        margin-bottom: 0;
    }

    .pizza-modal__info {
        order: 2;
        gap: 8px;
    }

    .pizza-modal__img {
        max-height: 120px;
    }

    .pizza-modal__description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 6px;
        padding: 6px 8px;
        background: rgba(255, 255, 255, 0.9);
    }

    .pizza-modal__ingredients h4,
    .pizza-modal__sizes h4,
    .pizza-modal__quantity h4 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .pizza-modal__ingredients-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .size-selector {
        gap: 6px;
    }

    .size-option {
        padding: 6px;
        min-height: auto;
        gap: 6px;
    }

    .size-option__name {
        font-size: 0.8rem;
    }

    .size-option__diameter {
        font-size: 0.7rem;
    }

    .size-option__price {
        font-size: 0.85rem;
    }

    .size-option__circle {
        width: 20px;
        height: 20px;
    }

    .size-option.active .size-option__circle::after {
        width: 4px;
        height: 4px;
    }

    .quantity-selector {
        gap: 6px;
        padding: 4px;
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
    }

    .quantity-input {
        width: 36px;
        height: 24px;
        font-size: 0.8rem;
    }

    .pizza-modal__total {
        padding: 8px;
        margin-top: 6px;
    }

    .pizza-modal__price-label {
        font-size: 0.85rem;
    }

    .pizza-modal__price-value {
        font-size: 1.1rem;
    }

    .pizza-modal__footer {
        padding: 12px;
    }

    .pizza-modal__add-btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    /* Адаптивные стили для управления количеством размеров */
    .size-option__quantity {
        gap: 4px;
        margin-top: 4px;
        padding: 3px 6px;
    }

    .size-quantity-btn {
        width: 18px;
        height: 18px;
    }

    .size-quantity-value {
        font-size: 0.75rem;
        min-width: 14px;
    }
}