/* Основные стили */
:root {
    --primary-color: #4a6fa5;
    --primary-dark: #375a8e;
    --secondary-color: #f5a623;
    --secondary-dark: #e59011;
    --text-color: #333;
    --light-text: #666;
    --lightest-text: #999;
    --light-bg: #f8f9fa;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-padding: 20px;
    --section-spacing: 80px;
    --element-spacing: 20px;
    --input-height: 48px;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

main {
    flex-grow: 1;
}

section {
    padding: 50px 0;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h3:hover {
    color: var(--primary-color);
    transition: var(--transition);
}

p {
    margin-bottom: 20px;
}

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

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

ul, ol {
    margin: 0 0 20px 20px;
}

blockquote {
    padding: 20px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
}

/* Шапка сайта */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--container-padding);
}

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

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--border-radius);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero секция */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

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

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

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

.feature-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.stat {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

/* О продуктах */
.about-products {
    padding: 80px 0;
}

.about-products h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-products p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.quality-info,
.technology-info,
.company-history {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Калькулятор */
.calculator {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.calculator h2 {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    height: var(--input-height);
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

#calculate-btn {
    width: 100%;
}

.calculator-result {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.calculator-result h3 {
    margin-bottom: 20px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
    font-weight: bold;
}

.calculation-note {
    font-size: 14px;
    color: var(--lightest-text);
    margin-top: 20px;
    text-align: center;
}

/* Типовые кейсы */
.typical-cases {
    padding: 80px 0;
}

.typical-cases h2 {
    text-align: center;
    margin-bottom: 40px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

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

tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* Продукты */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.25rem;
}

.product-card p {
    padding: 0 20px;
    color: var(--light-text);
    margin-bottom: 15px;
    height: 80px;
    overflow: hidden;
}

.price {
    padding: 0 20px 15px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.product-actions {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    background-color: var(--light-bg);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    margin: 0;
}

.accordion-header:hover {
    background-color: rgba(74, 111, 165, 0.1);
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: normal;
}

.accordion-item.active .accordion-header::after {
    content: "−";
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

/* Итог */
.summary {
    background-color: var(--light-bg);
    padding: 50px 0;
}

.summary h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

/* Футер */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column address p {
    margin-bottom: 5px;
}

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

.footer-column address a:hover {
    color: white;
}

.subscribe-form {
    display: flex;
    margin-bottom: 20px;
}

.subscribe-form input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.subscribe-form button {
    height: 40px;
    padding: 0 15px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--secondary-dark);
}

.social-links {
    display: flex;
    gap: 10px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

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

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

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

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

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

.btn-add-cart,
.btn-details {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-details {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.btn-details:hover {
    background-color: var(--border-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cookie согласие */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

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

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-cookie-accept,
.btn-cookie-customize,
.btn-cookie-reject {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

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

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

.btn-cookie-customize {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-cookie-reject {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.btn-cookie-reject:hover {
    background-color: var(--border-color);
}

.cookie-policy-link {
    font-size: 14px;
}

/* Уведомление о добавлении в корзину */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateX(200%);
    transition: transform 0.3s ease;
}

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

/* Страница продукта */
.product-details {
    padding: 50px 0;
}

.product-navigation {
    margin-bottom: 30px;
    color: var(--light-text);
}

.product-navigation a {
    color: var(--light-text);
}

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

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

.product-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

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

.product-description h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.product-description ul {
    margin-bottom: 15px;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity label {
    margin-right: 15px;
    font-weight: 500;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.quantity input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

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

.product-meta {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.product-meta p {
    margin-bottom: 5px;
}

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

.product-share p {
    margin: 0;
    font-weight: 500;
}

.product-tabs {
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

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

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
}

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

.features-table {
    width: 100%;
    margin-bottom: 20px;
}

.features-table th {
    width: 30%;
    background-color: var(--light-bg);
    color: var(--text-color);
    font-weight: 500;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rating-average {
    text-align: center;
    min-width: 150px;
}

.rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.stars {
    font-size: 1.25rem;
    color: var(--warning-color);
    margin-bottom: 5px;
}

.reviews-count {
    font-size: 0.9rem;
    color: var(--light-text);
}

.rating-details {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-level {
    width: 80px;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--warning-color);
}

.rating-percentage {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--light-text);
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.review-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.review-pagination a:hover,
.review-pagination a.active {
    background-color: var(--primary-color);
    color: white;
}

.related-products h3 {
    margin-bottom: 30px;
}

/* Страница О нас */
.about-hero {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.about-hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-story {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-mission {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-content h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.mission-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.team-section {
    padding: 80px 0;
}

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

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

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

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

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

.team-member h3 {
    padding: 20px 20px 5px;
    margin: 0;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 10px;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
}

.team-member .social-links {
    padding: 0 20px 20px;
}

.team-member .social-links a {
    width: 32px;
    height: 32px;
    background-color: var(--light-bg);
    color: var(--text-color);
}

.achievements-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

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

.achievement-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 15px;
}

.partners-section {
    padding: 80px 0;
}

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

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 30px;
}

.partner-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.partner-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.partner-item svg {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.testimonials-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

.testimonial-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

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

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0 0 5px;
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.prev-testimonial,
.next-testimonial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Страница Контакты */
.contact-hero {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    color: white;
    margin-bottom: 20px;
}

.contact-hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    padding: 80px 0;
}

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

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

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

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

.contact-form-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin-bottom: 10px;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
    width: auto;
    height: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.map-section {
    padding: 80px 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
}

.form-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-content svg {
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-content h3 {
    margin-bottom: 15px;
}

.success-content p {
    margin-bottom: 30px;
}

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

.cart-section h1 {
    text-align: center;
    margin-bottom: 40px;
}

.cart-loading,
.order-loading {
    text-align: center;
    padding: 40px;
}

.loading-icon {
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-cart-message {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

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

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

.empty-cart-message p {
    margin-bottom: 30px;
}

.recommended-products h3 {
    text-align: center;
    margin: 50px 0 30px;
}

.cart-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-weight: 500;
    text-align: left;
    padding: 15px;
    background-color: var(--light-bg);
}

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

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

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    margin-right: 15px;
    object-fit: cover;
}

.cart-product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 120px;
}

.cart-quantity button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--light-text);
}

.cart-quantity input {
    width: 40px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--danger-color);
}

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

.cart-summary {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 400px;
    margin-left: auto;
}

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

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

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

.checkout-action {
    margin-top: 30px;
}

.cart-benefits {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    margin-right: 20px;
}

.benefit-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

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

.checkout-section h1 {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-text {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
}

.progress-step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 3px;
    background-color: var(--light-bg);
    max-width: 100px;
    transition: var(--transition);
}

.progress-line.active {
    background-color: var(--primary-color);
}

.checkout-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-gap: 40px;
}

.checkout-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

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

.checkout-form-container h3 {
    margin: 30px 0 20px;
}

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

.field-hint {
    font-size: 0.8rem;
    color: var(--lightest-text);
    margin-top: 5px;
}

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

.checkout-summary {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 30px;
}

.order-items {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
}

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

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    margin-right: 15px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 0.9rem;
    color: var(--light-text);
}

.order-item-quantity {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

.order-totals {
    margin-bottom: 30px;
}

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

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

.order-secure {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 30px;
}

.secure-icon {
    margin-right: 15px;
    color: var(--primary-color);
}

.order-secure p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

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

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

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

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

.success-message {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 40px;
}

.next-steps {
    margin: 40px 0;
}

.next-steps h2 {
    margin-bottom: 30px;
}

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

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.step-item h3 {
    margin-bottom: 10px;
}

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

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .product-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .about-image img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .products-grid,
    .mission-grid,
    .team-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-progress {
        flex-wrap: wrap;
    }
    
    .success-content {
        padding: 30px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    nav.open {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero,
    .about-hero,
    .contact-hero {
        padding: 50px 0;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-actions button,
    .cart-actions a {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

/* Светлая и темная тема */
@media (prefers-color-scheme: dark) {
    /* Стили для темной темы будут добавлены позже */
}
