/* Основные переменные и сброс стилей */
:root {
    --primary-color: #27ae60;
    --primary-dark: #219653;
    --secondary-color: #2d9cdb;
    --secondary-dark: #2a80b9;
    --accent-color: #f2c94c;
    --text-color: #333333;
    --text-light: #4f4f4f;
    --text-lighter: #828282;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #f2f2f2;
    --border-color: #e0e0e0;
    --success-color: #6fcf97;
    --error-color: #eb5757;
    --warning-color: #f2994a;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Темная тема */
.dark-theme {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --accent-color: #f1c40f;
    --text-color: #f2f2f2;
    --text-light: #e0e0e0;
    --text-lighter: #bdbdbd;
    --bg-color: #1a1a1a;
    --bg-light: #2c2c2c;
    --bg-dark: #141414;
    --border-color: #333333;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

.btn.secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: var(--bg-dark);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Шапка */
header {
    background-color: var(--bg-color);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: var(--radius-sm);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

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

.theme-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-light);
}

/* Герой-секция */
.hero {
    background-color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Секция с цитатой из будущего */
.future-quote {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.future-quote h2 {
    color: white;
    margin-bottom: 2rem;
}

.future-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-style: italic;
    position: relative;
}

.future-quote blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -40px;
    top: -20px;
    opacity: 0.5;
}

.future-quote blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    opacity: 0.8;
}

/* Секция с товарами */
.products-section {
    padding: 80px 0;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.product-card a {
    color: var(--text-color);
    display: block;
    padding: 20px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card .description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.product-actions button {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* Секция с преимуществами */
.benefits {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.benefit-card svg {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
}

/* Футер */
footer {
    background-color: var(--bg-dark);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-lighter);
}

address {
    font-style: normal;
    color: var(--text-light);
}

address p {
    margin-bottom: 10px;
}

address a {
    color: var(--text-light);
}

address a:hover {
    color: var(--primary-color);
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.cookie-more {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease;
    z-index: 9999;
}

.notification.show {
    transform: translateX(0);
}

/* Страница товара */
.product-detail {
    padding: 80px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
}

.product-meta {
    margin-bottom: 30px;
}

.product-meta p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.product-meta span {
    font-weight: 700;
    color: var(--text-color);
}

.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions-detail .btn {
    flex: 1;
}

.product-features {
    margin-top: 50px;
}

.product-features h2 {
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Страница корзины */
.cart-section {
    padding: 80px 0;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-empty svg {
    color: var(--text-lighter);
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin-bottom: 15px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-lighter);
    font-weight: 500;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-product-info h3 {
    margin-bottom: 5px;
}

.cart-product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.cart-quantity button:hover {
    background-color: var(--bg-dark);
}

.cart-quantity input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--error-color);
    transition: var(--transition);
}

.cart-remove:hover {
    color: color-mix(in srgb, var(--error-color) 80%, black);
}

.cart-summary {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
}

.cart-summary h2 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Страница оформления заказа */
.checkout-section {
    padding: 80px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.form-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Страница успешного заказа */
.success-section {
    padding: 100px 0;
    text-align: center;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 30px;
}

.success-section h1 {
    margin-bottom: 20px;
}

.success-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.order-details {
    background-color: var(--bg-light);
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: left;
}

.order-details h2 {
    margin-bottom: 20px;
}

.order-info {
    margin-bottom: 20px;
}

.order-info p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.order-info p span:first-child {
    color: var(--text-lighter);
}

/* Страница о нас */
.about-section {
    padding: 80px 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    margin-bottom: 20px;
}

.about-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

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

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-light);
}

.team-member p:last-child {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Страница контактов */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h3 {
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
}

.contact-form h2 {
    margin-bottom: 30px;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }
    
    .product-layout,
    .checkout-layout,
    .contact-layout,
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 540px;
        --header-height: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 576px) {
    :root {
        --container-width: 100%;
    }
    
    .logo span {
        display: none;
    }
    
    nav ul li {
        margin-left: 10px;
    }
    
    nav ul li a {
        padding: 6px;
    }
    
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) {
        display: none;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
}
