/* ===========================
   АЛЁНКИНА КУХНЯ - ОСНОВНЫЕ СТИЛИ
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    background: #FDF8F3;
    color: #5D4037;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===========================
   BACKGROUND
   =========================== */
#background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -10;
}

.gradient {
    position: absolute;
    width: 140vw;
    height: 140vw;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 180, 0.4), rgba(253, 248, 243, 0) 70%);
    animation: breath 12s ease-in-out infinite;
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: repeating-radial-gradient(circle at center, rgba(93, 64, 55, 0.08) 0px, transparent 2px, transparent 4px);
}

#particles {
    position: absolute;
    inset: 0;
}

/* ===========================
   HERO (Главная)
   =========================== */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: min(1400px, 95vw);
}

.subtitle {
    color: #8D6E63;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 12px;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(60px, 9vw, 140px);
    white-space: nowrap;
    letter-spacing: 12px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 25px;
    user-select: none;
    color: #4A3B32;
    animation: pulse 6s ease-in-out infinite;
}

h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.line {
    width: 120px;
    height: 1px;
    background: #D7CCC8;
    margin: 30px auto;
}

.description {
    color: #6D4C41;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 55px;
}

#enterButton {
    background: none;
    border: 1px solid #BCAAA4;
    color: #5D4037;
    padding: 18px 52px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: 0.4s;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

#enterButton:hover {
    background: #5D4037;
    color: #FDF8F3;
    border-color: #5D4037;
    box-shadow: 0 0 30px rgba(93, 64, 55, 0.15);
}

.scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll span {
    width: 2px;
    height: 60px;
    display: block;
    background: linear-gradient(transparent, #8D6E63);
    animation: scroll 2s infinite;
}

/* ===========================
   PRELOADER
   =========================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #FDF8F3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

.loader-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid rgba(93, 64, 55, 0.15);
    border-top: 1px solid #5D4037;
    animation: rotate 2s linear infinite;
}

.loader-text {
    margin-top: 35px;
    letter-spacing: 8px;
    font-size: 14px;
    color: #8D6E63;
    font-family: 'Playfair Display', serif;
}

/* ===========================
   Animations
   =========================== */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes breath {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(-15px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===========================
   MENU SECTION
   =========================== */
.menu-section {
    min-height: 100vh;
    background: #FDF8F3;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    color: #4A3B32;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-subtitle {
    color: #8D6E63;
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
}

.products-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 32px);
    color: #4A3B32;
    text-align: center;
    margin: 60px 0 40px;
}

/* Featured product (сырники) */
.product-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.1);
    margin-bottom: 50px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(93, 64, 55, 0.15);
}

.product-card.featured .product-image {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.product-card.featured .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card.featured:hover .product-image img {
    transform: scale(1.05);
}

.product-card.featured .product-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card.featured h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 32px);
    color: #4A3B32;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Products grid (блинчики) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(93, 64, 55, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.12);
}

.product-card .product-image {
    height: 250px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 25px;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4A3B32;
    margin-bottom: 10px;
}

.product-card .product-subtitle {
    color: #8D6E63;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-card .product-desc {
    color: #6D4C41;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F5F0EB;
}

.product-weight {
    color: #8D6E63;
    font-size: 14px;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #5D4037;
    font-weight: 700;
}

/* Buttons */
.btn-order {
    background: transparent;
    border: 2px solid #BCAAA4;
    color: #5D4037;
    padding: 15px 40px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    align-self: flex-start;
}

.btn-order:hover {
    background: #5D4037;
    color: #FDF8F3;
    border-color: #5D4037;
}

.btn-order-small {
    width: 100%;
    background: transparent;
    border: 1px solid #BCAAA4;
    color: #5D4037;
    padding: 12px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-order-small:hover {
    background: #5D4037;
    color: #FDF8F3;
    border-color: #5D4037;
}

/* Assortment section */
.assortment-section {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 30px auto 0 auto;
    max-width: 1200px;
    width: 100%;
}

.assortment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #4A3B32;
    margin-bottom: 15px;
}

.assortment-section p {
    color: #6D4C41;
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-assortment {
    background: #5D4037;
    color: #FDF8F3;
    border: none;
    padding: 18px 50px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
}

.btn-assortment:hover {
    background: #4A3B32;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 64, 55, 0.3);
}

/* ===========================
   ЗОНА ДОСТАВКИ (КАРТА)
   =========================== */
.delivery-map-section {
    padding: 80px 20px;
    background: #FDF8F3;
    position: relative;
    z-index: 10;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.1);
    z-index: 1;
}

.map-note {
    text-align: center;
    color: #8D6E63;
    font-size: 15px;
    max-width: 600px;
    margin: 20px auto 0 auto;
    line-height: 1.6;
    padding: 0 20px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: transparent;
    padding: 50px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #BCAAA4;
    border-radius: 8px;
    color: #5D4037;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: rgba(253, 248, 243, 0.85);
}

.footer-link:hover {
    background: #5D4037;
    color: #FDF8F3;
    border-color: #5D4037;
    transform: translateY(-2px);
}

.footer-link .custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-link:hover .custom-icon {
    filter: brightness(0) invert(1);
}

.footer-copy {
    color: #8D6E63;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ===========================
   СТРАНИЦА ЗАКАЗА (order.php)
   =========================== */
.order-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #FDF8F3;
}

.order-container {
    max-width: 700px;
    margin: 0 auto;
}

.order-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5D4037;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.order-back:hover {
    opacity: 0.7;
}

.order-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 36px);
    color: #4A3B32;
    margin-bottom: 30px;
    text-align: left;
    letter-spacing: 1px;
}

.order-product-info {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(93, 64, 55, 0.08);
}

.order-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #4A3B32;
    margin-bottom: 15px;
}

.order-product-desc {
    color: #6D4C41;
    line-height: 1.8;
    margin-bottom: 15px;
}

.order-product-details {
    background: #FFF3E0;
    padding: 15px 20px;
    border-radius: 10px;
    color: #5D4037;
    font-size: 14px;
}

.order-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(93, 64, 55, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #5D4037;
    font-size: 14px;
    font-weight: 500;
}

.form-label .required {
    color: #D32F2F;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #BCAAA4;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #5D4037;
    background: #FDF8F3;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #5D4037;
    background: #fff;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    color: #6D4C41;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.form-checkbox a {
    color: #5D4037;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: #5D4037;
    color: #FDF8F3;
    border: none;
    padding: 18px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-submit:hover {
    background: #4A3B32;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 64, 55, 0.3);
}

.btn-submit:disabled {
    background: #BCAAA4;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #C8E6C9;
    color: #2E7D32;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #FFCDD2;
    color: #C62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

/* ===========================
   СТРАНИЦА ПОЛИТИКИ (privacy.php)
   =========================== */
.privacy-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #FDF8F3;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5D4037;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.privacy-back:hover {
    opacity: 0.7;
}

.privacy-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 36px);
    color: #4A3B32;
    margin-bottom: 30px;
    text-align: left;
    letter-spacing: 1px;
}

.privacy-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(93, 64, 55, 0.08);
}

.privacy-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #4A3B32;
    margin-bottom: 15px;
}

.privacy-section p,
.privacy-section li {
    color: #6D4C41;
    line-height: 1.8;
    font-size: 15px;
}

.privacy-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.privacy-section li {
    margin-bottom: 8px;
}

.privacy-contact {
    background: #FFF3E0;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.privacy-contact a {
    color: #5D4037;
    text-decoration: underline;
}

/* ===========================
   ЗАЩИТА КОНТЕНТА
   =========================== */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
}

/* ===========================
   АДАПТИВ (Мобильные устройства)
   =========================== */
@media (max-width: 968px) {
    .product-card.featured {
        grid-template-columns: 1fr;
    }
    .product-card.featured .product-image {
        min-height: 300px;
    }
    .product-card.featured .product-info {
        padding: 30px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #title-line1 {
        font-size: clamp(32px, 8vw, 70px) !important;
        letter-spacing: 6px !important;
    }
    #title-line2 {
        font-size: clamp(36px, 9vw, 80px) !important;
        letter-spacing: 8px !important;
    }
    .subtitle {
        letter-spacing: 4px;
        font-size: 10px;
    }
    .description {
        font-size: 15px;
    }
    #enterButton {
        padding: 16px 36px;
        letter-spacing: 3px;
    }
    .delivery-map-section {
        padding: 60px 15px;
    }
    .map-container {
        height: 300px;
        border-radius: 15px;
    }
    .map-container iframe {
        border-radius: 15px !important;
    }
    .order-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    .order-product-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #title-line1 {
        font-size: clamp(24px, 10vw, 50px) !important;
        letter-spacing: 3px !important;
    }
    #title-line2 {
        font-size: clamp(28px, 11vw, 60px) !important;
        letter-spacing: 4px !important;
    }
    .subtitle {
        font-size: 9px;
        letter-spacing: 3px;
    }
    .description {
        font-size: 14px;
        line-height: 1.6;
    }
    #enterButton {
        display: none !important;
    }
    .line {
        width: 80px;
        margin: 20px auto;
    }
    .menu-section {
        padding: 60px 15px;
    }
    .section-title {
        font-size: 28px;
    }
    .product-card.featured h2 {
        font-size: 22px;
    }
    .product-card h3 {
        font-size: 18px;
    }
    .product-price {
        font-size: 20px;
    }
    .assortment-section {
        padding: 30px 20px;
    }
    .footer-social {
        gap: 10px;
    }
    .footer-link {
        padding: 10px 18px;
        font-size: 12px;
    }
    .order-page {
        padding: 40px 15px;
    }
    .order-title {
        font-size: clamp(20px, 6vw, 28px);
    }
    .order-product-info {
        padding: 20px;
    }
    .order-product-name {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .order-product-desc {
        font-size: 13px;
        line-height: 1.6;
    }
    .order-form {
        padding: 20px;
    }
    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px 15px;
        font-size: 14px;
    }
    .btn-submit {
        padding: 16px;
        font-size: 13px;
    }
    .privacy-page {
        padding: 40px 15px;
    }
    .privacy-title {
        font-size: 22px !important;
        text-align: center !important;
        letter-spacing: -0.5px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.3;
    }
    .privacy-section {
        padding: 20px;
    }
    .privacy-section h2 {
        font-size: 18px;
    }
}

/* Скрываем логотип и копирайт Leaflet */
.leaflet-control-attribution {
    display: none !important;
}