/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    --primary: #F97415;
    --primary-hover: #e0620c;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --border: #EAEAEA;
    --shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
    /* Цвета для фоновых кружочков - сделаны ярче! */
    --orange-light: #FFE0CC;
    --blue-light: #E6F4FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

.text-center {
    text-align: center;
}

.orange-text {
    color: var(--primary);
}

/* Заголовки секций */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

/* Универсальные фоновые кружочки для иконок */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.bg-orange-light {
    background-color: var(--orange-light);
    width: 90px;
    height: 90px;
}

.bg-blue-light {
    background-color: var(--blue-light);
    width: 90px;
    height: 90px;
}

.bg-orange-light-sm {
    background-color: var(--orange-light);
    width: 64px;
    height: 64px;
}

.bg-orange-light img,
.bg-blue-light img {
    width: 40px;
    height: 40px;
}

.bg-orange-light-sm img {
    width: 30px;
    height: 30px;
}


/* =========================================
   2. ШАПКА (HEADER)
   ========================================= */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--white);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--orange-light);
}

.cart-count {
    font-weight: 600;
    color: var(--primary);
}

.burger-btn {
    display: none;
}

/* =========================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero {
    /* Пицца теперь светлее, затемнение 0.4 вместо 0.7 */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/pizza-pepperoni.jpg') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 40px;
    color: #E0E0E0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   4. ПРЕИМУЩЕСТВА (FEATURES)
   ========================================= */
.features {
    padding: 60px 0;
}

.features-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 40px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

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

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* =========================================
   5. КАТЕГОРИИ (CATEGORIES)
   ========================================= */
.categories {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
   6. О НАС (ABOUT)
   ========================================= */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-text {
    max-width: 800px;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--white);
    padding: 30px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 12px;
    color: var(--text-gray);
}

.story-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

/* =========================================
   7. МЕНЮ (OUR MENU)
   ========================================= */
.menu {
    padding: 80px 0;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-input-wrapper {
    position: relative;
}

/* Обновленная лупа */
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

/* Обновленные инпуты */
.menu-filters input,
.menu-filters select {
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-gray);
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.menu-filters input {
    width: 300px;
    padding-left: 45px;
    cursor: text;
}

.menu-filters input::placeholder {
    color: #999;
}

.showing-text {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Обновленная карточка меню с Flexbox (кнопки не прыгают) */
.menu-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.menu-img-wrapper {
    position: relative;
    height: 220px;
}

.menu-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge,
.rating {
    position: absolute;
    top: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge {
    left: 15px;
    background: var(--primary);
    color: var(--white);
}

.rating {
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating img {
    width: 14px;
    height: 14px;
}

/* Контент карточки тянется */
.menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.menu-title-row h3 {
    font-size: 18px;
}

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

/* Текст описания выталкивает кнопку вниз */
.menu-content p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.rest-name {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.btn-add {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    margin-top: auto;
}

.btn-add:hover {
    background: var(--primary-hover);
}

/* =========================================
   8. КОНТАКТЫ (CONTACT US)
   ========================================= */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.small-text {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 5px;
}

.contact-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper,
.contact-map-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3,
.contact-map-wrapper h3 {
    margin-bottom: 30px;
    font-size: 24px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-icon {
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.map-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.map-text {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
}

/* =========================================
   9. ПОДВАЛ (FOOTER)
   ========================================= */
.footer {
    background-color: #0D0B0A;
    color: var(--white);
    padding-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-info p {
    color: #A0A0A0;
    font-size: 14px;
    max-width: 450px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    padding: 14px 20px;
    width: 300px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--white);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.subscribe-form input:focus {
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: #666;
    background-color: #000;
}