/* Базовые стили и нормализация */
:root {
    --primary-color: #2d54af;
    --primary-dark: #1e3c7d;
    --primary-light: #4269c4;
    --secondary-color: #5f7fb3;
    --accent-color: #ffc107;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #222;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

ul, ol {
    list-style: none;
}

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.tertiary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

/* Хедер */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

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

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

.cart-link svg {
    margin-right: 5px;
}

#cart-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Герой секция */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(35, 67, 134, 0.9) 0%, rgba(45, 84, 175, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .secondary-btn {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

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

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

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

/* Статистика */
.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-light);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-banner h3 {
    color: white;
    margin-bottom: 1.5rem;
}

/* О сервисах */
.about-service {
    padding: 5rem 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Слово редактора */
.editor-word {
    background-color: var(--bg-dark);
    padding: 4rem 0;
}

.editor-content {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.editor-signature {
    margin-top: 2rem;
    text-align: right;
    font-style: normal;
}

/* Продукты */
.products {
    padding: 5rem 0;
}

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

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

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: var(--text-dark);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    height: 4.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    flex: 1;
}

.view-details-btn {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    flex: 1;
    text-align: center;
}

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

/* Call to Action */
.call-to-action {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.cta-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2rem;
}

/* Контактная форма */
.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 84, 175, 0.2);
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-privacy input {
    width: auto;
    margin-top: 0.25rem;
}

/* Подвал */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.page-number {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 280px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 2rem;
}

.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs li:last-child {
    color: var(--text-light);
}

/* Страница товара */
.product-details {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-info-block h1 {
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-availability {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.available {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.product-short-description {
    margin-bottom: 2rem;
}

.product-price-block {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 1rem;
}

.product-quantity {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    background-color: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.quantity-selector input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-features svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.product-meta-info {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-weight: 500;
    min-width: 120px;
}

/* Табы на странице товара */
.product-tabs {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Таблица спецификаций */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.specs-table th, 
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--bg-dark);
    font-weight: 500;
}

.specs-table tr:last-child th, 
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background-color: rgba(45, 84, 175, 0.05);
}

/* Раздел "Слово редактора" на странице товара */
.product-page-section {
    padding: 3rem 0;
}

/* Рекомендуемые товары */
.related-products {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

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

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    height: 180px;
    overflow: hidden;
}

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

.related-product-card:hover img {
    transform: scale(1.05);
}

.related-product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-product-price {
    padding: 0 1rem 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* О нас страница */
.about-mission {
    padding: 5rem 0;
}

.about-mission-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-mission-text {
    padding-right: 2rem;
}

.about-mission-stats {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-mission-stats .stats-item {
    margin-bottom: 2rem;
}

.about-mission-stats .stats-item:last-child {
    margin-bottom: 0;
}

.about-history {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-year {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.our-values {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Команда */
.team-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.team-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    padding: 0 1.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    color: var(--text-light);
}

.team-social {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
}

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

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

/* Отзывы */
.testimonials {
    padding: 5rem 0;
}

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

.testimonial-item {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 1rem 2rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
    content: """;
    position: absolute;
    font-size: 3rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-content::before {
    left: -1rem;
    top: -1rem;
}

.testimonial-content::after {
    right: -1rem;
    bottom: -1.5rem;
    content: """;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info .author-name {
    font-weight: 600;
}

.author-info .author-position {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* CTA секция */
.cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-content .secondary-btn {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-content .secondary-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Контактная страница */
.contact-section {
    padding: 5rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info-block {
    padding-right: 2rem;
}

.contact-info {
    margin: 2rem 0;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.contact-info-content h3 {
    margin-bottom: 0.5rem;
}

.social-media-contact {
    margin-top: 2rem;
}

.social-media-contact h3 {
    margin-bottom: 1rem;
}

/* FAQ секция */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Корзина */
.cart-section {
    padding: 5rem 0;
}

.cart-empty {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.empty-cart-icon {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    padding: 1.5rem 0;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-details h3 {
    margin-bottom: 0.25rem;
}

.cart-product-details a {
    color: var(--text-dark);
}

.cart-product-details a:hover {
    color: var(--primary-color);
}

.cart-product-price {
    color: var(--text-dark);
}

.cart-quantity-selector {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.cart-quantity-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--bg-light);
    cursor: pointer;
}

.cart-quantity-selector input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 32px;
}

.cart-product-total {
    font-weight: 600;
    color: var(--primary-color);
}

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

.cart-actions {
    padding: 1.5rem 0;
    display: flex;
    justify-content: flex-end;
}

.cart-summary {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.cart-total-label {
    font-weight: 600;
}

.cart-total-value {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cart-checkout {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Оформление заказа */
.checkout-section {
    padding: 5rem 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.checkout-form-block, 
.checkout-summary-block {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.checkout-items {
    margin-bottom: 2rem;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-details {
    flex-grow: 1;
}

.checkout-item-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.checkout-item-price {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.checkout-totals {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.checkout-total-label {
    font-weight: 600;
}

.checkout-total-value {
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-security-info {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.checkout-security-info .security-icon {
    color: var(--success-color);
}

.checkout-security-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.checkout-contacts {
    margin-top: 2rem;
}

.checkout-contacts h3 {
    margin-bottom: 0.5rem;
}

.checkout-contacts p {
    margin-bottom: 1rem;
}

.checkout-contacts ul {
    list-style: none;
}

.checkout-contacts ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

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

.success-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin-bottom: 2rem;
    color: var(--success-color);
}

.success-message {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.success-next-steps {
    text-align: left;
    margin: 2rem 0;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.success-next-steps h2 {
    margin-bottom: 1rem;
}

.success-next-steps ol {
    list-style: decimal;
    margin-left: 1.5rem;
}

.success-next-steps li {
    margin-bottom: 0.5rem;
}

.success-contacts {
    text-align: left;
    margin: 2rem 0;
}

.success-contacts h2 {
    margin-bottom: 1rem;
}

.success-contacts .contact-info {
    margin: 1rem 0;
}

.success-buttons {
    margin-top: 2rem;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .about-mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-mission-text {
        padding-right: 0;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info-block {
        padding-right: 0;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 2rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-year {
        left: 0;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        text-align: left !important;
    }
    
    .cart-header, 
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 0.5fr;
    }
    
    .product-price {
        display: none;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        padding: 1rem;
        text-align: center;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul li {
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .cart-header, 
    .cart-item {
        grid-template-columns: 2fr 1fr 0.5fr;
    }
    
    .product-total {
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
}

/* Анимации и переходы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card, 
.product-card, 
.team-member, 
.value-card, 
.cta-content, 
.faq-item, 
.timeline-content {
    animation: fadeIn 0.5s ease-out;
}

/* Учебный план на странице курса */
.curriculum-module {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.curriculum-module:last-child {
    border-bottom: none;
}

.curriculum-module h3 {
    margin-bottom: 1rem;
}

.curriculum-topics {
    list-style: disc;
    padding-left: 1.5rem;
}

.curriculum-topics li {
    margin-bottom: 0.5rem;
}

.bonus-materials {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.bonus-materials h3 {
    margin-bottom: 1rem;
}

.bonus-materials ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Преподаватели на странице курса */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.instructor-image {
    height: 200px;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
}

.instructor-position {
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 1.5rem 1rem;
}

.instructor-bio {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-light);
}
