/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B8B;
    --secondary-color: #6C63FF;
    --accent-color: #4ECDC4;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --background: #FAFAFA;
    --white: #FFFFFF;
    --gray-light: #F7FAFC;
    --gray-border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cart-icon:hover {
    background-color: var(--gray-light);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cake {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6B8B, #6C63FF);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.floating-cake::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Cakes Grid */
.cakes-section {
    padding: 100px 0;
}

.cakes-section .section-lead {
    max-width: none;
    white-space: nowrap;
    text-align: center;
}

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

.cake-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.cake-card:hover {
    transform: scale(1.02); /* легкое увеличение вместо поднятия */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cake-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-light), var(--gray-border));
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.cake-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cake-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cake-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.customize-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.customize-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* Customizer */
.customizer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.cake-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
}

.cake-preview div {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Size options */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.size-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.size-option input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.size-option input:checked + span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Filling select */
.filling-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filling-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* Extra options */
.extra-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.extra-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-option:hover {
    border-color: var(--accent-color);
}

.extra-option input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.extra-option input:checked + span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Total price display */
.total-price {
    text-align: center;
    font-size: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.total-price strong {
    font-weight: 700;
}

/* Add to cart button */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Cart */
.cart-modal {
    max-width: 500px;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(176, 150, 132, 0.8);
    box-shadow:
        0 10px 24px rgba(33, 24, 20, 0.12);
}

.cart-modal::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(214, 190, 171, 0.65);
    border-radius: 8px;
    pointer-events: none;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-border);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--gray-light);
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.remove-item-btn:hover {
    color: #ff4757;
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 71, 87, 0.1);
}

.cart-total {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-btn, .clear-cart {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.clear-cart {
    background: var(--gray-light);
    color: var(--text-secondary);
}

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

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--gray-light);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #CBD5E0;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cakes-section .section-lead {
        white-space: normal;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 50px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

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

    .floating-cake {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1rem;
        width: 95%;
    }
}

/* Order Form Styles */
.order-modal {
    max-width: 600px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input:invalid:not(:focus) {
    border-color: #ff6b6b;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.required-field::after {
    content: " *";
    color: #ff6b6b;
}

/* Order Steps */
.order-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.order-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--gray-border);
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.step.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Delivery Options */
.delivery-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.delivery-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.delivery-option input {
    display: none;
}

.delivery-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.delivery-option input:checked + span {
    color: var(--secondary-color);
    font-weight: 600;
}

.delivery-option span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.delivery-option small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Order Summary */
.order-summary {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.order-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.order-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info h5 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.order-item-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 1rem;
}

.order-total {
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    margin-top: 1rem;
}

/* Payment Info */
.payment-info {
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    border: 2px solid var(--accent-color);
}

.payment-info p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.payment-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-border);
}

.next-step-btn, .prev-step-btn, .send-order-btn, .back-to-cart-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.next-step-btn {
    background: var(--secondary-color);
    color: white;
    margin-left: auto;
}

.prev-step-btn {
    background: var(--gray-light);
    color: var(--text-secondary);
}

.send-order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100%;
}

.back-to-cart-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--gray-border);
}

.next-step-btn:hover, .prev-step-btn:hover, .send-order-btn:hover, .back-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-step[data-step="3"] ~ .form-actions .back-to-cart-btn,
.order-form .form-actions .back-to-cart-btn {
    margin-left: auto;
}

.form-step[data-step="3"] ~ .form-actions .send-order-btn,
.order-form .form-actions .send-order-btn {
    margin-top: 0.6rem;
}

/* Filters */
.filters-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-border);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 25px;
    background: var(--white);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.sort-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

#priceRange {
    width: 150px;
    height: 5px;
    border-radius: 5px;
    background: var(--gray-border);
    outline: none;
    -webkit-appearance: none;   /* Убирает стандартный стиль в WebKit/Blink браузерах */
    -moz-appearance: none;      /* Убирает стандартный стиль в Firefox */
    appearance: none;           /* Стандартное свойство */
}

#priceRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}

#priceRange::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}

#priceValue {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

/* Portfolio */
.portfolio-section {
    padding: 100px 0;
    background: var(--gray-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gray-border);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portfolio-filter.active,
.portfolio-filter:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Animation for buttons */
.cta-button, .add-to-cart-btn, .checkout-btn {
    position: relative;
    overflow: hidden;
}

.cta-button::after, .add-to-cart-btn::after, .checkout-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:active::after, .add-to-cart-btn:active::after, .checkout-btn:active::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Floating animations */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* .cake-card:hover .cake-image {
    animation: floatUpDown 3s ease-in-out infinite;
} */

.feature:hover .feature-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Date input styling */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .categories {
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-filter {
        justify-content: space-between;
    }
    
    #priceRange {
        width: 100%;
        max-width: 200px;
    }
    
    .order-steps {
        font-size: 0.8rem;
    }
    
    .step {
        min-width: 70px;
        padding: 0.3rem 0.5rem;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .next-step-btn, .prev-step-btn, .send-order-btn, .back-to-cart-btn {
        width: 100%;
        text-align: center;
    }
    
    .order-modal {
        margin: 5% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .categories {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
    }
    
    .portfolio-filter {
        width: 100%;
        text-align: center;
    }
}

/* ========== ЛЮКС МИНИМАЛИЗМ ========== */

/* 1. Элитная цветовая палитра */
:root {
    /* Основные цвета люкс брендов */
    --onyx: #0A0A0A;           /* Глубокий чёрный */
    --stone: #2C2C2C;          /* Каменный серый */
    --taupe: #8A7F78;          /* Тауп - благородный серо-коричневый */
    --linen: #FAF0E6;          /* Льняной белый */
    --ivory: #FFFFF0;          /* Слоновая кость */
    --clay: #8F7E6F;           /* Терракота */
    --sage: #9CAF88;           /* Шалфейный зелёный */
    --slate: #708090;          /* Сланцевый синий */
    
    /* Переопределяем основные цвета */
    --primary-color: var(--onyx);
    --secondary-color: var(--taupe);
    --accent-color: var(--clay);
    --background: var(--ivory);
    --text-primary: var(--stone);
    --white: var(--linen);
    --gray-light: #F5F5F5;
    --gray-border: #E0E0E0;
}

/* 2. Премиальная типографика */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: -0.2px;
    line-height: 1.8;
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Cormorant', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* 3. Минималистичный герой */
.hero {
    padding: 150px 20px 100px;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--onyx);
    line-height: 1.2;
    max-width: 600px;
    position: relative;
    margin-bottom: 2rem;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 1px;
    background: var(--taupe);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--taupe);
    font-weight: 300;
    max-width: 400px;
    line-height: 1.8;
}

/* 4. Карточки в стиле люкс-брендинга */
.cake-card {
     background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center; /* У вас уже есть */
    display: flex;
    flex-direction: column;
    align-items: center; /* ← Добавьте это */
    width: 100%; /* Убедитесь, что карточка занимает всю ширину */
    max-width: 350px;

}

/* .cake-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
} */

.cake-image {
    height: 280px;
    border-radius: 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

.cake-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.02) 100%);
}

.cake-card-content {
    padding: 2rem;
    background: var(--white);
}

.cake-name {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--onyx);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.cake-description {
    color: var(--taupe);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.cake-price {
    color: var(--stone);
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Cormorant', serif;
    position: relative;
    display: inline-block;
}

.cake-price::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--taupe);
}

/* 5. Сдержанные кнопки */
.cta-button, .customize-btn, .add-to-cart-btn, .checkout-btn, .send-order-btn {
    background: transparent;
    color: var(--onyx);
    border: 1px solid var(--onyx);
    border-radius: 0;
    padding: 1rem 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none;
}

.cta-button:hover, .customize-btn:hover, .add-to-cart-btn:hover, .checkout-btn:hover, .send-order-btn:hover {
    background: var(--onyx);
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.cta-button::after, .customize-btn::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover::after, .customize-btn:hover::after {
    transform: translateX(5px);
}

/* 6. Навигация в стиле минимализма */
.header {
    background: var(--white);
    backdrop-filter: none;
    border-bottom: 1px solid var(--gray-border);
    padding: 2rem 0;
}

.nav-links a {
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--taupe);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--onyx);
    background: transparent;
}

.nav-links a::after {
    height: 1px;
    background: var(--onyx);
}

/* 7. Модальные окна - чистый минимализм */
.modal-content {
    background: var(--white);
    border-radius: 0;
    border: 1px solid var(--gray-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.close {
    font-size: 1.5rem;
    color: var(--taupe);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

/* 8. Заголовки секций */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--onyx);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--taupe);
}

/* 9. Форма заказа - чистая типографика */
.order-form {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--gray-border);
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--taupe);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    border: none;
    border-bottom: 1px solid var(--gray-border);
    border-radius: 0;
    padding: 0.75rem 0;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-bottom-color: var(--onyx);
    box-shadow: none;
    outline: none;
}

/* 10. Индикатор шагов */
.order-steps::before {
    background: var(--gray-border);
    height: 1px;
}

.step {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 0;
    padding: 0.5rem 1rem;
    min-width: 80px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--taupe);
}

.step.active {
    background: var(--onyx);
    color: var(--white);
    border-color: var(--onyx);
    transform: none;
}

/* 11. Корзина - чистый дизайн */
.cart-item {
    border: none;
    border-bottom: 1px solid var(--gray-border);
    border-radius: 0;
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.cart-item:hover {
    border-bottom-color: var(--onyx);
    transform: none;
    box-shadow: none;
}

.cart-item-info h4 {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--onyx);
}

.cart-item-price {
    color: var(--stone);
    font-weight: 400;
}

.remove-item-btn {
    color: var(--taupe);
    opacity: 0.5;
}

.remove-item-btn:hover {
    color: var(--onyx);
    opacity: 1;
    background: transparent;
}

/* 12. Сумма заказа */
.total-price, .cart-total, .order-total {
    background: var(--white);
    border: 1px solid var(--gray-border);
    color: var(--onyx);
    font-weight: 400;
    font-family: 'Cormorant', serif;
    font-size: 1.25rem;
    padding: 1.5rem;
    border-radius: 0;
    text-align: center;
}

.total-price::before, .cart-total::before, .order-total::before {
    display: none;
}

/* 13. Футер в стиле минимализма */
.footer {
    background: var(--onyx);
    color: var(--taupe);
    padding: 4rem 0 2rem;
}

.footer::before {
    display: none;
}

.footer-section h4 {
    color: var(--white);
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-section h4::after {
    display: none;
}

.footer-section p {
    color: var(--taupe);
    font-weight: 300;
    line-height: 1.8;
}

.social-links a {
    color: var(--taupe);
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--white);
    transform: none;
}

/* 14. Фильтры - минималистичные */
.filters-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 3rem;
}

.category-btn {
    background: transparent;
    border: 1px solid var(--gray-border);
    border-radius: 0;
    color: var(--taupe);
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: transparent;
    color: var(--onyx);
    border-color: var(--onyx);
    transform: none;
}

/* 15. Плавный скролл */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* 16. Анимации минимализма */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .cake-card, .feature {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
} */

/* 17. Состояния загрузки */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-border);
    border-top-color: var(--onyx);
    border-radius: 50%;
}

/* 18. Индикаторы статуса */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.new {
    color: var(--clay);
    border-color: var(--clay);
}

.status-badge.popular {
    color: var(--sage);
    border-color: var(--sage);
}

/* 19. Цитаты и отзывы */
.blockquote {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--onyx);
    border-left: 2px solid var(--taupe);
    padding-left: 2rem;
    margin: 3rem 0;
    font-weight: 300;
}

.blockquote-author {
    color: var(--taupe);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* 20. Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cake-card-content {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* 21. Минималистичные иконки */
.icon-minimal {
    stroke-width: 1.5;
    color: var(--taupe);
}

/* 22. Сетка портфолио */
.portfolio-grid {
    gap: 2px;
}

.portfolio-item {
    border-radius: 0;
    aspect-ratio: 4/3;
    box-shadow: none;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-item img {
    transition: transform 0.8s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* 23. Скрытые детали */
.details-toggle {
    color: var(--taupe);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px dotted var(--gray-border);
    display: inline-block;
    padding-bottom: 2px;
}

.details-toggle:hover {
    color: var(--onyx);
    border-bottom-color: var(--onyx);
}

/* 24. Минималистичная полоса прокрутки */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--taupe);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone);
}

/* 25. Эффект параллакса */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

/* 26. Текстурные фоны */
.texture-bg {
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 27. Ховер эффекты */
.hover-line {
    position: relative;
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-line:hover::after {
    width: 100%;
}

/* 28. Отступы и пробелы */
.spacing-xs { margin: 0.5rem 0; }
.spacing-sm { margin: 1rem 0; }
.spacing-md { margin: 2rem 0; }
.spacing-lg { margin: 3rem 0; }
.spacing-xl { margin: 4rem 0; }

/* 29. Выравнивание текста */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 30. Утилитарные классы */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }

.border-light { border-color: var(--gray-border); }
.border-dark { border-color: var(--stone); }

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Добавьте в ваш styles.css: */

/* Стили для изображений тортов */
.cake-image {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--gray-light), var(--gray-border));
}



.cake-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .cake-card:hover .cake-image img {
    transform: scale(1.05);
} */

.cake-emoji-fallback {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Для логотипа в шапке */
.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Или если хотите использовать вашу иконку как логотип */
.logo-icon-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.cake-card * {
    text-align: center !important;
}

/* Исправляем центрирование карточек */
.cakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center; /* ← Это центрирует карточки в сетке */
    align-items: start; /* ← Выравнивание по верхнему краю */
}

/* Исправляем карточку */
.cake-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 320px;
    height: 100%;
}

/* Фиксируем высоту изображения */
.cake-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0; /* Не позволяет сжиматься */
}

/* Делаем карточку растягиваемой */
.cake-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

/* Фиксируем кнопку внизу карточки */
.cake-card-content .customize-btn {
    margin-top: auto;
    margin-bottom: 0;
}

/* Центрируем все элементы внутри карточки */
.cake-card * {
    text-align: center !important;
}

/* Исправляем эмодзи */
.cake-emoji-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* В конце вашего CSS добавьте: */

/* Исправление для контейнера hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Исправление для навигации */
.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Для всех секций добавить правильные отступы */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Убедиться, что тело сайта правильно центрировано */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Исправление для hero-visual */
.hero-visual {
    display: flex;
    justify-content: flex-start; /* вместо center */
    padding-left: 50px;
}

/* Или если хотите центрировать hero-visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* Исправление для floating-cake */
.floating-cake {
    width: 350px; /* уменьшить размер */
    height: 350px;
}


/* Новый класс для карточек */
.cake-card-fixed {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.cake-card-fixed .cake-image-fixed {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gray-light);
}

.cake-card-fixed .cake-image-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Исправленная сетка карточек */
.cakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    align-items: start;
}

/* Универсальный стиль для карточек тортов */
.cake-card, 
.cake-card-fixed {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 320px;
    height: 100%;
    margin: 0 auto;
}

/* Стили для изображения в карточке */
.cake-image,
.cake-image-fixed {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cake-image img,
.cake-image-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Содержимое карточки */
.cake-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

/* Стили для текста в карточке */
.cake-name {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--onyx);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.cake-description {
    color: var(--taupe);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.cake-price {
    color: var(--stone);
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Cormorant', serif;
    margin-bottom: 1.5rem;
}

/* Кнопка в карточке */
.cake-card-content .customize-btn {
    background: transparent;
    color: var(--onyx);
    border: 1px solid var(--onyx);
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: auto;
    width: 100%;
    max-width: 250px;
    transition: all 0.3s ease;
}

.cake-card-content .customize-btn:hover {
    background: var(--onyx);
    color: var(--white);
}

.cake-card-content .customize-btn::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cake-card-content .customize-btn:hover::after {
    transform: translateX(5px);
}

/* Эмодзи-заглушка */
.cake-emoji-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Убираем старые конфликтующие стили */
.cake-image::after {
    display: none;
}

/* Центрируем все элементы карточки */
.cake-card *,
.cake-card-fixed * {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Принудительно поднимаем контент шага 3 */
.form-step[data-step="3"] .order-form {
    padding-top: 0.5rem;
}

/* Уменьшаем отступы между элементами в шаге 3 */
.form-step[data-step="3"] .form-group {
    margin-bottom: 1rem;
}

/* Уменьшаем отступ от верхней части модалки */
.order-steps {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Делаем скролл более компактным */
.order-items {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* Уменьшаем высоту превью заказа */
.order-summary {
    background: var(--gray-light);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 0.5rem 0 1.5rem 0;
}

.order-summary h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* ========== Фон страницы, герой с фото, акценты ========== */

body {
    background-color: #fff9f6;
    background-image:
        radial-gradient(ellipse 900px 520px at 92% 0%, rgba(232, 180, 184, 0.38), transparent 55%),
        radial-gradient(ellipse 720px 480px at 0% 100%, rgba(210, 180, 140, 0.28), transparent 50%),
        radial-gradient(ellipse 60% 45% at 48% 40%, rgba(255, 255, 255, 0.65), transparent 70%),
        linear-gradient(168deg, #fffdfb 0%, #fdf6f0 38%, #faf0e8 72%, #f4e8de 100%);
    background-attachment: fixed;
}

.header {
    background: rgba(255, 253, 250, 0.82);
    border-bottom: 1px solid rgba(224, 208, 198, 0.45);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cakes-section {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 24%, transparent 100%);
}

.portfolio-section {
    background: linear-gradient(180deg, rgba(250, 245, 240, 0.92) 0%, rgba(255, 251, 248, 0.5) 100%);
}

.about-section {
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 240, 230, 0.5), transparent 70%);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 88px;
    max-width: none;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(115deg, rgba(255, 251, 248, 0.97) 0%, rgba(255, 251, 248, 0.88) 38%, rgba(255, 245, 238, 0.55) 62%, rgba(250, 235, 225, 0.35) 100%),
        url("https://images.unsplash.com/photo-1558636508-e0db3814bd1d?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
    transform: scale(1.02);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.hero-content {
    flex: 1 1 340px;
    max-width: 560px;
    padding: 2rem 2.25rem;
    background: rgba(255, 253, 250, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 24px rgba(44, 44, 44, 0.06),
        0 24px 64px rgba(138, 127, 120, 0.08);
}

.hero-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.cta-button--ghost {
    background: transparent;
    color: var(--onyx);
    border: 1px solid rgba(10, 10, 10, 0.35);
    box-shadow: none;
}

.cta-button--ghost:hover {
    background: rgba(10, 10, 10, 0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-visual {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hero-cake-showcase {
    position: relative;
    width: min(100%, 400px);
    margin: 0;
    aspect-ratio: 1;
    border-radius: 58% 42% 48% 52% / 48% 52% 48% 52%;
    overflow: hidden;
    box-shadow:
        0 28px 56px rgba(44, 44, 44, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.hero-cake-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cake-card {
    background: rgba(255, 253, 250, 0.95);
    border: 1px solid rgba(224, 208, 198, 0.45);
    box-shadow:
        0 4px 20px rgba(44, 44, 44, 0.05),
        0 12px 40px rgba(138, 127, 120, 0.06);
}

.cake-card:hover {
    box-shadow:
        0 12px 32px rgba(44, 44, 44, 0.08),
        0 24px 48px rgba(138, 127, 120, 0.1);
}

.portfolio-item {
    border: 1px solid rgba(224, 208, 198, 0.4);
    background: rgba(255, 253, 250, 0.9);
}

.footer {
    background: linear-gradient(180deg, rgba(26, 22, 20, 0.97) 0%, #141210 100%);
    color: rgba(255, 251, 248, 0.88);
}

.footer .footer-section h4 {
    color: #fff;
}

.footer a {
    color: rgba(255, 251, 248, 0.85);
}

@media (max-width: 768px) {
    .hero-inner {
        padding: 0 18px;
    }

    .hero-content {
        padding: 1.5rem 1.35rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 7vw, 3.25rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .cta-button,
    .hero-actions .cta-button--ghost {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cake-showcase {
        animation: none;
    }
}

/* ========== Расширенный контент: навигация, секции, отзывы, FAQ, CTA ========== */

a.logo {
    text-decoration: none;
    cursor: pointer;
}

.nav .cart-icon {
    position: relative;
    z-index: 1003;
}

.nav .logo {
    position: relative;
    z-index: 1003;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 253, 250, 0.9);
    border: 1px solid rgba(224, 208, 198, 0.5);
    cursor: pointer;
    z-index: 1003;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--onyx);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        margin: 0;
        padding: 5rem 1.5rem 2rem;
        background: rgba(255, 253, 250, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.nav-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 1.15rem;
    }

    body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe);
    text-align: center;
    margin-bottom: 0.65rem;
}

.section-lead {
    max-width: 640px;
    margin: -1.5rem auto 2.5rem;
    text-align: left;
    color: var(--taupe);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 300;
}

.section-lead--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title--left {
    text-align: left;
}

.container--narrow {
    max-width: 720px;
}

/* Stats */
.stats-section {
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(224, 208, 198, 0.5);
    border-bottom: 1px solid rgba(224, 208, 198, 0.35);
    background: rgba(255, 255, 255, 0.45);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
}

.stat-value {
    display: block;
    font-family: 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--onyx);
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--taupe);
    font-weight: 400;
    line-height: 1.45;
    max-width: 200px;
    margin: 0 auto;
    display: inline-block;
}

.stats-note {
    font-size: 0.75rem;
    color: var(--taupe);
    opacity: 0.85;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 900px) {
    .stats-section {
        padding: 2rem 0 1.25rem;
    }

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

    .stat-card {
        padding: 0.85rem 0.55rem;
    }

    .stat-value {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 1.35rem 0 0.9rem;
    }

    .stats-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 0.55rem;
    }

    .stat-card {
        padding: 0.65rem 0.35rem;
    }

    .stat-value {
        font-size: clamp(1.45rem, 8.3vw, 1.9rem);
        line-height: 1.05;
    }

    .stat-label {
        font-size: 0.72rem;
        line-height: 1.28;
        max-width: 140px;
    }

    .stats-note {
        margin-top: 0.7rem;
        font-size: 0.69rem;
    }
}

/* Occasions */
.occasions-section {
    padding: 100px 0;
    position: relative;
}

.occasions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 0.5rem;
}

.occasion-card {
    background: rgba(255, 253, 250, 0.95);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(224, 208, 198, 0.45);
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.occasion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(44, 44, 44, 0.1);
}

.occasion-card__visual {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.occasion-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.occasion-card:hover .occasion-card__visual img {
    transform: scale(1.05);
}

.occasion-card h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--onyx);
    padding: 1.25rem 1.25rem 0.35rem;
    margin: 0;
}

.occasion-card p {
    padding: 0 1.25rem 1.5rem;
    margin: 0;
    color: var(--taupe);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 300;
}

@media (max-width: 992px) {
    .occasions-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Process */
.process-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 245, 240, 0.4) 100%);
}

.process-section .section-lead--center {
    max-width: none;
    white-space: nowrap;
}

.process-timeline {
    list-style: none;
    margin: 2.5rem auto 0;
    max-width: 800px;
    padding: 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1.85rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--taupe), rgba(138, 127, 120, 0.2));
}

.process-step {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 2.25rem;
    align-items: start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step__num {
    font-family: 'Cormorant', serif;
    font-size: 1.35rem;
    color: var(--onyx);
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: 1px solid rgba(224, 208, 198, 0.8);
    background: rgba(255, 253, 250, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.process-step__body h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--onyx);
    margin: 0 0 0.5rem;
}

.process-step__body p {
    margin: 0;
    color: var(--taupe);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.98rem;
}

@media (max-width: 600px) {
    .process-timeline::before {
        left: 1.25rem;
    }

    .process-step {
        grid-template-columns: 3rem 1fr;
        gap: 1rem;
    }

    .process-step__num {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .process-section .section-lead--center {
        white-space: normal;
    }
}

/* Features grid 6 */
.features-grid--six {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .features-grid--six {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .features-grid--six {
        grid-template-columns: 1fr;
    }
}

/* Reviews */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(250, 240, 232, 0.35) 0%, transparent 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.review-card {
    margin: 0;
    padding: 1.75rem;
    background: rgba(255, 253, 250, 0.92);
    border: 1px solid rgba(224, 208, 198, 0.45);
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(44, 44, 44, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.review-stars {
    color: #c4a574;
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin: 0;
    order: 0;
}

.review-card p {
    flex: 1;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--stone);
    font-weight: 300;
    font-style: italic;
    order: 1;
}

.review-card footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    justify-content: space-between;
    order: 3;
    margin-top: 0.9rem;
}

.review-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--onyx);
}

.review-author {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.review-head {
    order: 0;
    margin-bottom: 0.35rem;
}

.review-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: #f6ede6;
    border: 1px solid rgba(175, 138, 112, 0.35);
}

.review-author cite {
    font-size: 1.08rem;
    font-weight: 600;
}

.review-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--taupe);
    border: 1px solid rgba(138, 127, 120, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Story */
.story-section {
    padding: 100px 0;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.story-visual {
    position: relative;
    max-width: 430px;
    width: 100%;
    justify-self: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(44, 44, 44, 0.12);
}

.story-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.story-visual__badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 253, 250, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--onyx);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.story-content .section-eyebrow,
.story-content .section-title--left {
    text-align: left;
}

.story-content .section-title--left {
    margin-bottom: 1.25rem;
}

.story-content {
    max-width: 620px;
}

.story-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.story-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    color: var(--taupe);
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.03rem;
}

.story-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clay);
    opacity: 0.85;
}

.story-cta {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--onyx);
    border: 1px solid var(--onyx);
    padding: 0.9rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.story-cta:hover {
    background: var(--onyx);
    color: var(--linen);
}

@media (max-width: 900px) {
    .story-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-content .section-eyebrow {
        text-align: center;
    }

    .story-visual {
        order: 0;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .story-content {
        order: -1;
    }

    .story-cta {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }
}

/* FAQ */
.faq-section {
    padding: 100px 0 90px;
}

.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(224, 208, 198, 0.65);
    padding: 0;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 0;
    font-family: 'Cormorant', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--onyx);
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--taupe);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item__body {
    padding: 0 0 1.25rem;
}

.faq-item__body p {
    margin: 0;
    color: var(--taupe);
    line-height: 1.75;
    font-weight: 300;
    font-size: 0.95rem;
}

/* Promo CTA */
.promo-cta {
    position: relative;
    padding: 4.5rem 0;
    overflow: hidden;
}

.promo-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(31, 26, 24, 0.96) 0%, rgba(47, 39, 35, 0.93) 52%, rgba(62, 50, 44, 0.9) 100%);
    z-index: 0;
}

.promo-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.promo-cta__text {
    flex: 1 1 320px;
    max-width: 560px;
}

.promo-cta__title {
    font-family: 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.promo-cta__text p {
    margin: 0;
    color: rgba(255, 251, 248, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 300;
}

.promo-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.promo-cta__actions .cta-button {
    background: rgba(243, 242, 240, 0.897);
    color: var(--onyx);
    border: 1px solid rgba(60, 50, 45, 0.32);
    box-shadow: none;
}

.promo-cta__actions .cta-button:hover {
    background: rgba(31, 26, 24, 0.92);
    color: var(--linen);
    border-color: rgba(31, 26, 24, 0.92);
    box-shadow: 0 10px 24px rgba(31, 26, 24, 0.16);
}

.promo-cta__link {
    color: rgba(255, 251, 248, 0.9);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.promo-cta__link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .promo-cta {
        padding: 2.8rem 0;
    }

    .promo-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.9rem;
    }

    .promo-cta__text {
        flex: 0 1 auto;
        max-width: none;
    }

    .promo-cta__actions {
        width: 100%;
        margin-top: 0.2rem;
    }

    .promo-cta__actions .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ========== Каталог: свернуть после 6 карточек ========== */
.cakes-catalog {
    margin-top: 0.5rem;
}

.cakes-catalog-actions {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.catalog-expand-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--onyx);
    background: rgba(255, 253, 250, 0.95);
    color: var(--onyx);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.06);
    margin-top: 2rem;
}

.catalog-expand-btn:hover {
    background: var(--onyx);
    color: var(--linen);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(44, 44, 44, 0.12);
}

.catalog-expand-btn:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

.cakes-more-region {
    overflow: hidden;
    transition:
        max-height 0.55s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.45s ease,
        margin-top 0.45s ease;
}

.cakes-more-region--hidden {
    display: none;
}

.cakes-more-region.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.cakes-more-region.is-expanded {
    max-height: 8000px;
    opacity: 1;
    margin-top: 2rem;
    pointer-events: auto;
}

.cakes-grid--more {
    margin-top: 0;
}

/* ========== Модалка конфигуратора (фото из админки, цены) ========== */
.modal--customizer {
    background-color: rgba(26, 22, 20, 0.45);
    backdrop-filter: blur(8px);
}

.modal-content--customizer {
    max-width: 1080px;
    width: 94%;
    padding: 2.25rem 2rem 2rem;
    border-radius: 24px;
    background: linear-gradient(165deg, #fffefb 0%, #faf6f0 100%);
    border: 1px solid rgba(224, 208, 198, 0.55);
    box-shadow: 0 28px 80px rgba(44, 44, 44, 0.15);
}

.modal-content--customizer .close {
    top: 1.1rem;
    right: 1.1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    border-radius: 50%;
    background: rgba(255, 253, 250, 0.9);
    border: 1px solid rgba(224, 208, 198, 0.6);
    color: var(--onyx);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-content--customizer .close:hover {
    background: var(--onyx);
    color: var(--linen);
    transform: rotate(90deg);
}

.customizer-header {
    padding-right: 3rem;
    margin-bottom: 1.25rem;
}

.customizer-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe);
    margin: 0 0 0.4rem;
}

.modal-content--customizer .customizer-header h3 {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 500;
    color: var(--onyx);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.customizer-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: var(--stone);
    font-weight: 500;
    line-height: 1.45;
    max-width: 42rem;
    font-family: 'Inter', sans-serif;
}

.modal--customizer .customizer {
    grid-template-columns: minmax(340px, 1.28fr) minmax(280px, 0.85fr);
    gap: 2rem 3rem;
    align-items: start;
    margin-top: 0.75rem;
}

/* Колонка: фото сверху, текст под ним (не в ряд — переопределяем базовый flex у .cake-preview) */
.cake-preview.cake-preview--modal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
    background: transparent;
    padding: 0;
    overflow: visible;
    border-radius: 0;
}

.cake-preview--modal .cake-preview-frame {
    font-size: inherit;
    display: block;
    flex-shrink: 0;
}

.cake-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: clamp(320px, 52vh, 520px);
    max-height: min(82vh, 640px);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, #f5ebe3, #e8ddd4);
    box-shadow:
        0 24px 56px rgba(44, 44, 44, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* Перебиваем .cake-preview div { display:flex } — иначе подпись и текст в одну строку */
.cake-preview.cake-preview--modal .cake-preview-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    height: auto;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(224, 208, 198, 0.75);
    font-size: inherit;
}

.cake-preview-text-label {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
    line-height: 1.35;
    width: 100%;
}

.cake-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cake-preview-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.5rem, 10vw, 5rem);
    background: linear-gradient(145deg, rgba(255, 182, 193, 0.25), rgba(200, 180, 255, 0.2));
}

.cake-preview-caption {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 500;
    color: var(--stone);
    line-height: 1.65;
    letter-spacing: -0.01em;
    max-width: 100%;
    width: 100%;
}

.modal--customizer .option-group h4 {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--onyx);
    margin: 0 0 0.5rem;
}

.option-hint {
    font-size: 0.8rem;
    color: var(--taupe);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    font-weight: 400;
}

.modal--customizer .size-option {
    border-color: rgba(224, 208, 198, 0.85);
    background: rgba(255, 253, 250, 0.65);
}

.modal--customizer .size-option:hover {
    border-color: var(--onyx);
}

.modal--customizer .size-option input:checked + .size-option-label {
    color: var(--onyx);
    font-weight: 600;
}

.total-price--modal {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.95);
    border: 1px solid rgba(224, 208, 198, 0.55);
}

.total-price-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 0.35rem;
}

.total-price-value {
    font-family: 'Cormorant', serif;
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--onyx);
    line-height: 1.1;
}

.total-price-currency {
    font-size: 1.35rem;
    margin-left: 0.15em;
    font-weight: 500;
}

.modal-content--customizer .add-to-cart-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 12px;
    background: var(--onyx);
    color: var(--linen);
    border: none;
}

.modal-content--customizer .add-to-cart-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modal--customizer .customizer {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .cake-preview-frame {
        min-height: 260px;
        max-height: min(48vh, 400px);
        aspect-ratio: 4 / 3;
    }

    .cake-preview.cake-preview--modal .cake-preview-text {
        gap: 0.9rem;
        margin-top: 1.1rem;
        padding-top: 1rem;
    }

    .cake-preview-caption {
        font-size: 1.05rem;
    }

    .modal-content--customizer {
        margin: 5% auto;
        padding: 1.5rem 1.15rem;
        max-height: 92vh;
    }
}

/* Оформление заказа: подпись и поле (телефон и др.) — всегда разные строки, удобно на телефоне */
.order-modal .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.order-modal .form-step[data-step="1"] .form-group {
    margin-bottom: 0.95rem;
}

.order-modal .form-step[data-step="1"] .form-group:last-child {
    margin-bottom: 0;
}

.order-modal .form-step[data-step="1"] .form-group label {
    margin-bottom: 0.25rem;
}

.order-modal .form-group label {
    display: block;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.4;
}

.order-modal .form-group input,
.order-modal .form-group select,
.order-modal .form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
}

.delivery-details .form-group {
    margin-bottom: 0.6rem;
}

.delivery-details .form-group:last-child {
    margin-bottom: 0;
}

.order-modal .required-field::after {
    content: "";
}

.order-modal .form-group.is-required-error label::after {
    content: " *";
    color: #c85a55;
    font-weight: 600;
}

.order-modal .form-group.is-required-error input,
.order-modal .form-group.is-required-error select,
.order-modal .form-group.is-required-error textarea {
    border-color: rgba(200, 90, 85, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(200, 90, 85, 0.12) !important;
}

/* Order modal: styled date/time controls */
.order-modal #deliveryDate,
.order-modal #deliveryTime {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(161, 146, 137, 0.44);
    background-color: rgba(255, 253, 250, 0.96);
    color: var(--onyx);
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 0.82rem 2.75rem 0.82rem 0.95rem;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.045);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.order-modal #deliveryDate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23897a72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='16' rx='2.5'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 9.5h17'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 18px 18px;
}

.order-modal #deliveryTime {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23897a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 15px 15px;
    cursor: pointer;
}

.order-modal #deliveryDate:focus,
.order-modal #deliveryTime:focus {
    outline: none;
    border-color: rgba(143, 126, 111, 0.72);
    box-shadow:
        0 0 0 3px rgba(143, 126, 111, 0.13),
        0 10px 22px rgba(44, 44, 44, 0.06);
    background-color: #fffdfb;
}

.order-modal #deliveryDate::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 768px) {
    .order-modal .form-group {
        gap: 0.65rem;
    }

    .order-modal .form-step[data-step="1"] .form-group {
        margin-bottom: 1.05rem;
    }

    .order-modal .form-group label {
        margin-bottom: 0.1rem;
    }

    .order-modal .form-group input,
    .order-modal .form-group select {
        min-height: 48px;
    }

    .order-modal .form-group textarea {
        min-height: 96px;
    }
}

/* ========== Hero refresh: larger image + glass effect ========== */
.hero {
    min-height: calc(100svh - 20px);
    padding-top: clamp(138px, 14vh, 210px);
    padding-bottom: clamp(72px, 8vh, 130px);
}

.hero-bg-layer {
    background:
        radial-gradient(1200px 520px at 76% 16%, rgba(245, 222, 198, 0.2), transparent 70%),
        radial-gradient(900px 420px at 22% 84%, rgba(242, 211, 185, 0.16), transparent 72%),
        linear-gradient(180deg, #fffdfb 0%, #fcf4ec 60%, #f6ebe0 100%);
}

.hero-inner {
    width: min(94vw, 1520px);
    max-width: none;
    gap: clamp(2rem, 3.2vw, 4rem);
}

.hero-content {
    max-width: clamp(430px, 35vw, 620px);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 16px 40px rgba(63, 47, 40, 0.12);
    position: relative;
    z-index: 8;
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.08;
    margin-bottom: 1.35rem;
}

.hero-subtitle {
    color: #695f5a;
    max-width: 48ch;
}

.hero-visual {
    position: relative;
    flex: 1 1 clamp(430px, 36vw, 660px);
    min-height: clamp(470px, 58vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    margin-left: clamp(14px, 1.4vw, 30px);
}

.hero-cake-showcase {
    position: relative;
    z-index: 1;
    width: min(100%, clamp(740px, 58vw, 1220px));
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    animation: none;
    overflow: visible;
    margin-top: 26px;
}

.hero-cake-showcase::after {
    display: none;
}

.hero-cake-showcase img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(80vh, 900px);
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(2.16);
    transform-origin: center;
    filter:
        drop-shadow(0 30px 40px rgba(83, 56, 39, 0.15))
        drop-shadow(0 10px 16px rgba(98, 67, 50, 0.08))
        saturate(1.03);
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: min(68%, 620px);
    height: min(18%, 96px);
    left: 62%;
    bottom: -4%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at center, rgba(124, 80, 53, 0.28) 0%, rgba(124, 80, 53, 0.14) 45%, rgba(124, 80, 53, 0) 80%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.hero-glass-card {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 24px rgba(70, 52, 46, 0.14);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.hero-glass-card__title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #514744;
    font-weight: 700;
    line-height: 1.3;
}

.hero-glass-card__text {
    font-size: 0.84rem;
    color: #645956;
    line-height: 1.3;
    font-weight: 500;
}

.hero-glass-card--top {
    top: 10%;
    left: -2%;
    max-width: 220px;
}

.hero-glass-card--bottom {
    right: 2%;
    bottom: -1.5%;
    max-width: 210px;
}

@keyframes heroDrift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-11px);
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        min-height: 470px;
        margin-left: 0;
    }

    .hero-cake-showcase {
        width: min(100%, 680px);
    }

    .hero-cake-showcase img {
        transform: scale(1.07);
    }

    .hero-glass-card--top {
        left: 6%;
    }

    .hero-glass-card--bottom {
        right: 4%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 64px;
    }

    .hero-visual {
        width: 100%;
        min-height: 430px;
    }

    .hero-cake-showcase {
        width: min(100%, 430px);
        border-radius: 22px;
    }

    .hero-glass-card {
        max-width: 200px;
    }
}

@media (max-width: 560px) {
    .hero-visual {
        min-height: 380px;
    }

    .hero-cake-showcase {
        width: min(100%, 335px);
        aspect-ratio: 1;
        border-radius: 18px;
    }

    .hero-glass-card {
        position: static;
        margin-top: 0.7rem;
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 1200px) and (max-width: 1720px) {
    .hero {
        min-height: calc(100svh - 10px);
    }

    .hero-content {
        margin-top: clamp(16px, 2vh, 34px);
    }
}

@media (min-width: 1721px) {
    .hero {
        padding-top: clamp(152px, 13vh, 225px);
        padding-bottom: clamp(90px, 10vh, 160px);
    }

    .hero-inner {
        width: min(92vw, 1760px);
        gap: clamp(3rem, 4vw, 5rem);
    }

    .hero-content {
        max-width: 650px;
        padding: 2.3rem 2.5rem;
    }

    .hero-title {
        font-size: clamp(3.3rem, 3.1vw, 5.2rem);
    }

    .hero-subtitle {
        font-size: 1.14rem;
    }

    .hero-visual {
        flex-basis: 760px;
        min-height: 800px;
    }

    .hero-cake-showcase {
        width: min(100%, 1260px);
    }

    .hero-cake-showcase img {
        transform: scale(2.1);
    }

    .hero-glass-card--top {
        top: 7%;
        left: -4%;
    }

    .hero-glass-card--bottom {
        right: -3%;
        bottom: 8%;
    }
}

/* 21" 1920x1080 and similar: keep hero fully visible */
@media (min-width: 1366px) and (max-width: 2100px) and (max-height: 1100px) {
    .hero {
        min-height: 100svh;
        padding-top: clamp(112px, 11vh, 140px);
        padding-bottom: clamp(42px, 5vh, 70px);
    }

    .hero-inner {
        width: min(95vw, 1460px);
        gap: clamp(1.6rem, 2.2vw, 2.8rem);
    }

    .hero-content {
        max-width: 530px;
        padding: 1.6rem 1.85rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 3.3vw, 4rem);
        margin-bottom: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1.02rem;
        line-height: 1.62;
    }

    .hero-visual {
        min-height: 0;
    }

    .hero-cake-showcase {
        width: min(100%, 1120px);
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        margin-top: 34px;
    }

    .hero-cake-showcase img {
        transform: scale(1.9);
    }

    .hero-glass-card--top {
        top: -15%;
        left: -1%;
    }

    .hero-glass-card--bottom {
        right: 2%;
        bottom: -8%;
    }
}

/* ========== Hero buttons + mobile text-only hero ========== */
.hero-actions .cta-button {
    background: rgba(31, 26, 24, 0.92);
    color: var(--linen);
    border: 1px solid rgba(31, 26, 24, 0.92);
    box-shadow: none;
}

.hero-actions .cta-button:hover {
    background: #181312;
    color: var(--linen);
    border-color: #181312;
    box-shadow: 0 10px 24px rgba(31, 26, 24, 0.16);
}

.hero-actions .cta-button--ghost {
    background: rgba(255, 255, 255, 0.32);
    color: var(--onyx);
    border: 1px solid rgba(60, 50, 45, 0.32);
    box-shadow: none;
}

.hero-actions .cta-button--ghost:hover {
    background: rgba(31, 26, 24, 0.92);
    color: var(--linen);
    border-color: rgba(31, 26, 24, 0.92);
    box-shadow: 0 10px 24px rgba(31, 26, 24, 0.16);
}

.hero-actions .cta-button::after,
.hero-actions .cta-button--ghost::after {
    content: none;
}

@media (max-width: 768px) {
    .hero-inner {
        justify-content: center;
        width: min(94vw, 640px);
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }
}

/* ========== Mobile header/cart positioning tweaks ========== */
@media (max-width: 768px) {
    .nav {
        align-items: center;
    }

    /* Burger sits at the right side in header */
    .nav-toggle {
        margin-left: auto;
        margin-right: 0;
    }

    /* Move cart to floating bottom-right position */
    .nav .cart-icon {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 1200;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(255, 253, 250, 0.95);
        border: 1px solid rgba(224, 208, 198, 0.85);
        box-shadow: 0 10px 24px rgba(34, 24, 20, 0.16);
        font-size: 1.35rem;
    }

    .nav .cart-count {
        top: -4px;
        right: -3px;
    }

    /* Lower the hero card so it does not stick to top line */
    .hero {
        padding-top: 132px;
    }

    .hero-content {
        margin-top: 10px;
    }
}

/* ========== Mobile catalog controls ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.category-select-mobile-wrap {
    display: none;
    width: 100%;
}

.category-select-mobile {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(161, 146, 137, 0.4);
    background: rgba(255, 253, 250, 0.9);
    color: var(--onyx);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.05);
}

.category-select-mobile:focus {
    outline: 2px solid rgba(143, 126, 111, 0.45);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .filters-container {
        gap: 0.9rem;
    }

    .categories {
        display: none;
    }

    .category-select-mobile-wrap {
        display: block;
    }

    .cakes-more-region {
        transition:
            max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1),
            opacity 0.35s ease,
            margin-top 0.35s ease;
    }
}

/* ========== Mobile portfolio: dropdown + horizontal slider ========== */
.portfolio-select-mobile-wrap {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
}

.portfolio-category-select-mobile {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(161, 146, 137, 0.4);
    background: rgba(255, 253, 250, 0.9);
    color: var(--onyx);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.05);
}

.portfolio-category-select-mobile:focus {
    outline: 2px solid rgba(143, 126, 111, 0.45);
    outline-offset: 2px;
}

.portfolio-item--animate-in {
    animation: portfolioCardIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-slider-dots {
    display: none;
}

@keyframes portfolioCardIn {
    from {
        opacity: 0;
        transform: translateX(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 768px) {
    .portfolio-filters {
        display: none;
    }

    .portfolio-select-mobile-wrap {
        display: block;
    }

    .portfolio-grid {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0.35rem 0.1rem 0.2rem;
        margin-top: 1rem;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .portfolio-grid::after {
        content: '';
        flex: 0 0 2px;
    }

    .portfolio-item {
        flex: 0 0 86%;
        max-width: 86%;
        min-width: 260px;
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(44, 44, 44, 0.1);
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.14) 72%);
    }

    .portfolio-overlay h4 {
        font-size: 1rem;
    }

    .portfolio-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.45rem;
        margin-top: 0.65rem;
        min-height: 16px;
    }

    .portfolio-slider-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(138, 127, 120, 0.35);
        cursor: pointer;
        transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
        opacity: 0.9;
    }

    .portfolio-slider-dot.is-active {
        transform: scale(1.35);
        background: rgba(111, 89, 75, 0.95);
    }
}

/* ========== Mobile section spacing compaction ========== */
/* Desktop/Tablet: меньше пустот между секциями */
.cakes-section,
.occasions-section,
.portfolio-section,
.process-section,
.about-section,
.reviews-section,
.story-section,
.faq-section {
    padding-top: 78px;
    padding-bottom: 78px;
}

@media (max-width: 768px) {
    .cakes-section,
    .occasions-section,
    .portfolio-section,
    .process-section,
    .about-section,
    .reviews-section,
    .story-section,
    .faq-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .stats-section {
        padding-bottom: 0.8rem;
    }

    .section-title {
        margin-bottom: 1.35rem;
    }

    .section-lead {
        margin: 0 auto 1.35rem;
        line-height: 1.6;
    }

    .cakes-catalog-actions {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .cakes-section,
    .occasions-section,
    .portfolio-section,
    .process-section,
    .about-section,
    .reviews-section,
    .story-section,
    .faq-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-title {
        margin-bottom: 1.1rem;
    }

    .section-lead {
        margin-bottom: 1.1rem;
    }
}

/* ========== Custom confirm modal ========== */
.modal--confirm {
    background-color: rgba(18, 14, 12, 0.52);
    backdrop-filter: blur(6px);
}

.confirm-modal {
    max-width: 460px;
    border-radius: 18px;
    border: 1px solid rgba(214, 187, 167, 0.45);
    background: linear-gradient(165deg, #fffdfb 0%, #f9f1ea 100%);
    box-shadow: 0 20px 50px rgba(38, 29, 24, 0.22);
    padding: 1.5rem 1.4rem 1.25rem;
}

.confirm-modal h3 {
    margin: 0 0 0.45rem;
    font-family: 'Cormorant', serif;
    font-size: 1.7rem;
    color: #2b2523;
    font-weight: 600;
}

.confirm-modal p {
    margin: 0 0 1.1rem;
    color: #6f625b;
    font-size: 1rem;
    line-height: 1.55;
}

.confirm-modal .close-confirm {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: #9b8f88;
}

.confirm-modal .close-confirm:hover {
    color: #2b2523;
    background: transparent;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.confirm-btn {
    font-family: 'Inter', sans-serif;
    min-width: 120px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 0.92rem;
    font-weight: 600;
}

.confirm-btn--ghost {
    background: rgba(255, 255, 255, 0.82);
    color: #4e4541;
    border-color: rgba(176, 150, 133, 0.42);
}

.confirm-btn--ghost:hover {
    background: #fff;
    transform: translateY(-1px);
}

.confirm-btn--danger {
    background: rgba(43, 34, 30, 0.94);
    color: #fff9f5;
}

.confirm-btn--danger:hover {
    background: #1f1917;
    transform: translateY(-1px);
}

/* ========== About section contrast/readability ========== */
.about-section .section-lead {
    color: #6f6560;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.78;
}

.about-section .feature {
    background: linear-gradient(180deg, rgba(255, 254, 252, 0.96) 0%, rgba(255, 250, 246, 0.9) 100%);
    border: 1px solid rgba(219, 198, 184, 0.45);
    box-shadow: 0 10px 28px rgba(88, 62, 48, 0.06);
}

.about-section .feature h3 {
    color: #2f2a28;
    font-size: 1.38rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-section .feature p {
    color: #6b5f59;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
}

.about-section .feature-icon {
    transform: scale(1.08);
}
