/* styles.css – общие стили для всех страниц */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefcf8;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --accent: #ff6a00;
    --accent-dark: #e55c00;
    --accent-light: #fff0e0;
    --dark: #0f172a;
    --darker: #020617;
    --card: #ffffff;
    --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 45px -12px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #ff6a00 0%, #ff9a4a 100%);
    --gradient-dark: linear-gradient(135deg, #0a0f1f 0%, #141b2b 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    gap: 8px;
    border: none;
    cursor: pointer;
    background: var(--gradient);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(255,106,0,0.4);
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef2ff;
    z-index: 1000;
    height: 80px;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}
.burger span {
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
@media (max-width: 992px) {
    .burger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100% - 80px);
        background: white;
        flex-direction: column;
        padding: 40px 30px;
        gap: 25px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 8px 0;
    }
}

/* footer */
footer {
    background: #0a0f1f;
    color: #94a3b8;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
}

/* модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 28px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

/* cookie */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1100;
    transform: translateY(100%);
    transition: 0.4s;
    border-top: 3px solid var(--accent);
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* каталог */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-info {
    padding: 20px;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
}

/* страница товара */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.product-image img {
    width: 100%;
    border-radius: 28px;
}

.options-panel {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

select, input[type="number"], input[type="range"] {
    width: 100%;
    padding: 12px 18px;
    border-radius: 60px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
}

.price-result {
    background: var(--gradient);
    color: white;
    padding: 20px;
    border-radius: 28px;
    text-align: center;
    margin: 20px 0;
}

.price-total {
    font-size: 2rem;
    font-weight: 900;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
}

/* хлебные крошки */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #64748b;
}
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

/* toast-уведомления */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 500;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}