/* ============================================
   Стиль пиццерии Неаполя, 1950-е годы
   Тёплые тона, винтаж, итальянский шарм
   ============================================ */

/* ---------- Основные цвета и шрифты ---------- */
:root {
    --rosso: #b22222;
    --verde: #2e6b2e;
    --crema: #fdf5e6;
    --panna: #faf0e1;
    --legno: #8b6b4d;
    --scuro: #3a2c1b;
    --oro: #c9a84c;
    --cartapesta: #e8d8c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--cartapesta);
    background-image: radial-gradient(ellipse at center, #f0e4d4 0%, #dac8b4 100%);
    color: var(--scuro);
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--panna);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9b8a8' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: 40px 40px 30px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 2px 0 #fff6e8;
    padding: 30px;
    border: 2px solid var(--legno);
    position: relative;
}

/* Декоративная звезда справа (оставлена) */
.container::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L58 40 L90 40 L65 58 L75 88 L50 70 L25 88 L35 58 L10 40 L42 40 Z' fill='%23c9a84c' opacity='0.15'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
}

/* ---------- Навигация ---------- */
nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px double var(--legno);
    flex-wrap: wrap;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a {
    text-decoration: none;
    color: var(--scuro);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--rosso);
    background: rgba(178, 34, 34, 0.08);
    border-color: var(--rosso);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ---------- Заголовки ---------- */
h1 {
    font-size: 3rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--scuro);
    text-shadow: 3px 3px 0 rgba(178,34,34,0.1);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    border-left: 8px solid var(--rosso);
    padding-left: 20px;
}

h1::after {
    content: " 🍕";
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
    font-family: 'Georgia', serif;
    color: var(--scuro);
    margin: 40px 0 15px;
    border-left: 6px solid var(--oro);
    padding-left: 15px;
    background: linear-gradient(to right, rgba(201,168,76,0.1), transparent);
    border-radius: 0 8px 8px 0;
}

h3 {
    font-family: 'Georgia', serif;
    color: var(--scuro);
    font-size: 1.4rem;
    margin-top: 20px;
}

/* ---------- Текст и карточки ---------- */
.subhead {
    font-size: 1.2rem;
    color: #5a4a3a;
    font-style: italic;
    margin-left: 28px;
    border-bottom: 1px dashed var(--legno);
    padding-bottom: 10px;
}

.intro {
    background: var(--crema);
    padding: 25px;
    border-radius: 30px 10px 30px 10px;
    margin-bottom: 30px;
    border: 1px solid var(--legno);
    box-shadow: inset 0 0 20px rgba(139,107,77,0.1);
    font-size: 1.1rem;
}

.intro p {
    margin-bottom: 10px;
}

.intro strong {
    color: var(--rosso);
}

/* ---------- Сетка карточек (для рецептов) ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.card {
    background: var(--panna);
    border-radius: 20px 5px 20px 5px;
    padding: 20px;
    border: 1px solid #dccfc0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card h3 {
    border-bottom: 2px dotted var(--oro);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* ---------- Калькулятор ---------- */
.calc-box {
    background: var(--crema);
    border-radius: 30px 10px 30px 10px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--legno);
    box-shadow: inset 0 0 30px rgba(139,107,77,0.1);
}

.calc-box label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
    color: var(--scuro);
}

.calc-box input,
.calc-box select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #c9b8a8;
    border-radius: 40px;
    font-size: 1rem;
    background: white;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s;
}

.calc-box input:focus,
.calc-box select:focus {
    border-color: var(--rosso);
    outline: none;
}

.calc-box button {
    background: var(--rosso);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #7a1a1a;
}

.calc-box button:hover {
    background: #8b1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5e1212;
}

.calc-box button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5e1212;
}

.result {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    display: none;
    border-left: 8px solid var(--oro);
}

.result.show {
    display: block;
}

.result p {
    font-size: 1.2rem;
    margin: 8px 0;
}

.result strong {
    color: var(--rosso);
}

/* ---------- Таблицы ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panna);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 20px 0;
}

th {
    background: var(--legno);
    color: var(--panna);
    padding: 14px 12px;
    text-align: left;
    font-weight: bold;
    letter-spacing: 1px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #dccfc0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(201,168,76,0.08);
}

/* ---------- FAQ ---------- */
.faq-item {
    background: white;
    border: 1px solid #dccfc0;
    border-radius: 20px;
    padding: 18px 22px;
    margin: 12px 0;
    transition: background 0.2s;
}

.faq-item:hover {
    background: #fcf8f0;
}

.faq-item h4 {
    color: var(--scuro);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.faq-item h4::before {
    content: "❓ ";
    font-size: 1.1rem;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    background: var(--rosso);
    color: white;
    padding: 12px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.2s;
    border: 1px solid var(--rosso);
    box-shadow: 0 4px 0 #7a1a1a;
    letter-spacing: 1px;
}

.btn:hover {
    background: #8b1a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #5e1212;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5e1212;
}

/* ---------- Изображения ---------- */
.recipe-image {
    background: #f4ede6;
    border-radius: 30px;
    overflow: hidden;
    margin: 20px 0;
    border: 3px solid var(--legno);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Списки ---------- */
ul, ol {
    padding-left: 25px;
    margin: 12px 0;
}

li {
    margin-bottom: 6px;
    padding-left: 5px;
}

ul li::marker {
    color: var(--rosso);
}

ol li::marker {
    font-weight: bold;
    color: var(--legno);
}

/* ---------- Футер ---------- */
footer {
    margin-top: 50px;
    text-align: center;
    color: var(--legno);
    border-top: 2px double var(--legno);
    padding-top: 25px;
    font-size: 0.95rem;
    font-style: italic;
}

footer a {
    color: var(--rosso);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 700px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 2.2rem;
        border-left-width: 5px;
        padding-left: 12px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    nav {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    nav a {
        font-size: 1rem;
    }
    .calc-box input,
    .calc-box select {
        max-width: 100%;
    }
}

/* ---------- Винтажный акцент ---------- */
blockquote {
    font-style: italic;
    border-left: 4px solid var(--oro);
    padding-left: 20px;
    margin: 20px 0;
    color: #5a4a3a;
}

.card {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}