/*
Theme Name: InvestServis Custom
Theme URI: https://investservis.pl
Author: InvestServis Team
Author URI: https://investservis.pl
Description: Modern custom theme for InvestServis with beautiful header and responsive design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: investservis-custom
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   GENERAL STYLES
   ======================================== */

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

:root {
    --primary-blue: #0066CC;
    --dark-blue: #003D82;
    --primary-red: #E30613;
    --dark-red: #B30510;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

body.menu-open {
    overflow: hidden;
}

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

/* ========================================
   MODERN HEADER (LIKE FRUTLINE)
   ======================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top bar */
.header-top {
    background: var(--light-gray);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-gray);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
}

.header-contact a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: var(--primary-blue);
}

.header-lang {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border-gray);
    background: var(--white);
}

.lang-switcher:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.lang-switcher.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.lang-divider {
    color: var(--border-gray);
    font-weight: 300;
}

/* Main header */
.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    display: none;
}

.site-tagline {
    font-size: 13px;
    color: var(--text-gray);
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border-gray);
}

/* Header Contact Button */
.header-contact-btn {
    margin-left: 20px;
}

.contact-btn-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 42, 31, 0.4) !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.contact-btn-header:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(192, 57, 43, 0.5) !important;
}

.contact-btn-header:active {
    transform: translateY(0);
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */

.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Категории товаров с Mega Menu */
.header-categories {
    background: var(--primary-blue); /* Back to original blue color */
    padding: 0;
    position: relative;
}

.categories-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 0;
}

.categories-list > li {
    position: relative;
}

.categories-list > li > a {
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    display: block;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-list > li > a:hover,
.categories-list > li:hover > a {
    background: var(--dark-blue); /* Back to original hover effect */
}

/* Mega Menu */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-content {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.megamenu-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.megamenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.megamenu-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.megamenu-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.megamenu-item span:last-child {
    flex: 1;
}

.mobile-menu-header {
    display: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 102, 204, 0.1);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */

.site-main {
    padding: 0;
    min-height: 60vh;
}

/* Героический баннер */
.hero-section {
    background: var(--white);
    padding: 30px 0;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

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

.hero-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-pretitle {
    font-size: 28px; /* Same size as hero-title */
    font-weight: 700; /* Bold text */
    color: var(--text-dark); /* Black text */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 28px; /* Same size as hero-pretitle */
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark); /* Black text */
}

.hero-subtitle {
    font-size: 16px; /* Paragraph text - smaller */
    margin-bottom: 15px;
    color: var(--text-gray); /* Gray text */
    line-height: 1.8;
    font-weight: 600; /* Bold text */
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Темный градиент overlay поверх картинки */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 495px;
    max-height: 495px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 2;
    padding: 0;
}

.hero-text-overlay .hero-pretitle {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0px;
    text-transform: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

.hero-text-overlay .hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: 0px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-text-overlay .hero-subtitle {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    max-width: 550px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
}

/* ========================================
   ПОСТЫ И СТАТЬИ
   ======================================== */

/* Products Slider - Full Width Carousel */
.products-slider-section {
    background: var(--light-gray);
    padding: 60px 0;
    overflow: hidden;
}

.products-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.products-slider-carousel {
    overflow: hidden;
    width: 100%;
}

.products-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.slider-nav:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.product-card {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    width: 280px;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--primary-red);
}

.product-image {
    width: 100%;
    height: 220px;
    background: var(--light-gray);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    transition: transform 0.3s !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.product-info {
    padding: 15px; /* Smaller padding */
}

.product-name {
    font-size: 12px; /* Smaller font size */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: left; /* Left align text */
    line-height: 1.3;
}

.product-category {
    font-size: 11px; /* Smaller font size */
    color: var(--text-gray);
    margin-bottom: 10px;
    text-align: left; /* Left align text */
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-old {
    font-size: 16px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.product-btn {
    width: 100%;
    padding: 10px !important; /* Smaller padding */
    background: #2e4152 !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 11px !important; /* Smaller font size */
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-align: center !important; /* Center button text */
}

.product-btn:hover {
    background: #3d5367 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(46, 65, 82, 0.3) !important;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.post-thumbnail-link {
    display: block;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-blue);
}

.post-meta {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--dark-red);
}

/* ========================================
   ПОДВАЛ
   ======================================== */

.site-footer {
    background: #f8f9fa !important; /* Light gray background */
    color: #333;
    padding: 80px 0 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.parallax-bg-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    z-index: -1;
}

.footer-content-wrapper {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-widget h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #333;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 3px solid #007cba;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Company Info Styles */
.footer-company-info {
    background: #ffffff !important;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    flex: 0 0 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-company-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.footer-company-info h3 {
    color: #333 !important; /* Dark text */
    margin-bottom: 20px;
}

.company-details p {
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.company-details strong {
    color: #333;
    font-weight: 700;
}

/* Contact Info Styles */
.footer-contacts {
    background: #ffffff !important;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    flex: 0 0 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-contacts:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.footer-contacts h3 {
    color: #333 !important; /* Dark text */
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-info strong {
    color: #333;
    font-weight: 700;
}

.contact-info a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Map Styles */
.footer-map {
    background: #ffffff !important;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    flex: 0 0 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.footer-map h3 {
    color: #333 !important; /* Dark text */
    margin-bottom: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border-radius: 15px;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   ADDITIONAL FOOTER SECTION
   ======================================== */

.additional-footer {
    background: #2c3e50;
    padding: 80px 0 0 0;
    margin-top: 0;
    color: #ffffff;
}

.additional-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

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

.footer-bottom-content p {
    color: #ecf0f1;
    font-size: 14px;
    margin: 0;
}

.footer-bottom .privacy-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom .privacy-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.footer-block {
    flex: 1;
    text-align: left;
}

.footer-block h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
}

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

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #3498db;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    color: #ecf0f1;
    font-size: 15px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-item span a {
    color: #3498db;
    text-decoration: none;
}

.contact-item span a:hover {
    color: #5dade2;
}

.service-item {
    margin-bottom: 12px;
}

.service-item span {
    color: #ecf0f1;
    font-size: 15px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.map-container-small {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container-small iframe {
    border-radius: 12px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .additional-footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-block h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ========================================
   СЕКЦИЯ "ПОЧЕМУ МЫ" - СТАРЫЕ СТИЛИ УДАЛЕНЫ
   Новые стили подключены через отдельные CSS файлы
   ======================================== */

/* Секция с фоновой картинкой */
.background-image-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
}

.background-image-container {
    width: 100%;
    position: relative;
}

.background-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-text-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Адаптив для секции "Почему мы" - ВСЕГДА В ОДИН РЯД */
@media (max-width: 768px) {
    .benefits-grid {
        gap: 15px;
        margin-top: 40px;
        padding: 0 15px;
    }
    
    .benefit-card {
        padding: 20px 10px;
    }
    
    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .benefit-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .benefit-card p {
        font-size: 12px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .benefit-card {
        padding: 15px 8px;
    }
    
    .benefit-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .benefit-card h3 {
        font-size: 13px;
    }
    
    .benefit-card p {
        font-size: 11px;
    }
}

.footer-company-info {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-dark);
}

.footer-company-info h3 {
    color: var(--primary-blue);
}

.footer-company-info p {
    color: var(--text-gray);
}

/* ========================================
   АДАПТИВНЫЙ ДИЗАЙН
   ======================================== */

@media (max-width: 992px) {
    .site-tagline {
        display: none;
    }

    .header-categories {
        display: none;
    }

    .header-content {
        position: relative;
    }

    /* МЕНЮ СЛЕВА ВЫПОЛЗАЕТ - СТИЛЬНО 2025! */
    .main-navigation {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        right: auto !important;
        width: 85% !important;
        max-width: 340px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15) !important;
        z-index: 99999 !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        backdrop-filter: blur(10px) !important;
    }

    /* ШАПКА МЕНЮ - СТИЛЬНАЯ 2025! */
    .mobile-menu-header {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
        padding: 25px 20px !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 10 !important;
    }

    .mobile-menu-logo {
        flex: 1;
    }

    .mobile-menu-logo img {
        height: 35px;
        width: auto;
    }

    .mobile-menu-close {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-menu-close span {
        color: var(--white);
        font-size: 24px;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }

    .main-navigation .primary-menu {
        padding: 10px 0;
    }

    /* МЕНЮ ОТКРЫТО - СЛЕВА */
    .main-navigation.toggled {
        display: block !important;
        left: 0 !important;
        right: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border-gray);
    }

    .main-navigation a {
        padding: 18px 25px;
        display: flex;
        align-items: center;
        font-size: 16px;
        color: var(--text-dark);
        transition: all 0.3s ease;
        border-bottom: none;
        position: relative;
    }

    .main-navigation a::before {
        content: '›';
        font-size: 24px;
        margin-right: 10px;
        color: var(--primary-blue);
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .main-navigation a::after {
        display: none;
    }

    /* HOVER ЭФФЕКТ - СОВРЕМЕННЫЙ! */
    .main-navigation a:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
        color: #0066cc !important;
        padding-left: 30px !important;
        transform: translateX(5px) !important;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15) !important;
    }

    .main-navigation a:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    /* КНОПКА БУРГЕРА - КОМПАКТНАЯ И ВИДИМАЯ! */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        background: #0066cc !important;
        border: none !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        box-shadow: 0 3px 12px rgba(0, 102, 204, 0.5) !important;
        z-index: 10000 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
    }

    .menu-toggle:hover {
        background: #0052a3 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 16px rgba(0, 102, 204, 0.6) !important;
    }

    .menu-toggle span {
        display: block !important;
        width: 28px !important;
        height: 3px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }

    /* Анимация кнопки при открытии */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    .header-contact-btn {
        margin-left: auto;
        margin-right: 10px;
    }

    .contact-btn-header {
        padding: 10px 20px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
        min-width: auto !important;
        white-space: nowrap;
    }

    /* Overlay для закрытия меню */
    .main-navigation.toggled::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        z-index: -1 !important;
        display: block !important;
        animation: fadeIn 0.3s ease !important;
    }

    /* Блокируем скролл когда меню открыто */
    body.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }

    /* Mega Menu скрыто на планшетах/мобильных */
    .megamenu {
        position: static;
        width: 100%;
        min-width: auto;
    }

    .megamenu-content {
        flex-direction: column;
        padding: 15px;
    }

}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
    }

    .header-top {
        padding: 5px 0;
    }

    .header-contact {
        font-size: 11px;
    }

    .header-lang {
        gap: 5px;
    }

    .lang-switcher {
        padding: 5px 8px;
        font-size: 12px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .site-branding img {
        height: 35px;
    }

    .header-contact-btn {
        margin-left: auto;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .contact-btn-header {
        padding: 8px 16px !important;
        font-size: 11px !important;
        border-radius: 18px !important;
        min-width: auto !important;
    }

    .main-navigation {
        width: 260px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-wrapper::after {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }

    /* ДЕВУШКА С ДУШЕМ - ВИДНА ЦЕЛИКОМ! */
    .hero-image {
        height: 420px !important;
        max-height: 420px !important;
        object-position: 35% 35% !important;
        object-fit: cover !important;
        transform: scale(1.1) translateX(-30px) !important;
    }

    .hero-text-overlay {
        position: absolute;
        bottom: 30px;
        left: 20px;
        right: 20px;
        top: auto;
        transform: none;
        max-width: none;
        padding: 0;
    }

    .hero-text-overlay .hero-pretitle {
        font-size: 22px;
        letter-spacing: 0px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .hero-text-overlay .hero-title {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-text-overlay .hero-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 400px) {
    .header-top {
        font-size: 10px;
    }

    .header-contact {
        font-size: 10px;
    }

    .lang-switcher {
        padding: 4px 6px;
        font-size: 11px;
    }

    .site-branding img {
        height: 30px;
    }

    .contact-btn-header {
        padding: 6px 12px !important;
        font-size: 10px !important;
        border-radius: 15px !important;
    }

    .menu-toggle {
        width: 35px;
        height: 35px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
        margin: 4px auto;
    }

    .main-navigation {
        width: 240px;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* Секция "Наши бренды" */
.brands-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.brands-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.brands-carousel {
    position: relative;
    width: 100vw;
    overflow: hidden;
    margin-top: 40px;
    margin-left: calc(-50vw + 50%);
}

.brands-track {
    display: flex;
    gap: 0;
    align-items: center;
    width: 200vw;
    padding: 0;
    justify-content: space-between;
    animation: scroll 20s linear infinite;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    width: calc(100vw / 8);
    opacity: 1;
    transition: all 0.3s ease;
}

.brand-item:hover {
    opacity: 0.7;
    transform: scale(1.3);
}

.brand-item img {
    max-height: 120px;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(100%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-company-info,
    .footer-contacts,
    .footer-map {
        padding: 20px;
    }
    
    .map-container iframe {
        height: 180px;
    }
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: scale(1.05);
}

.contact-form {
    padding: 20px 24px 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-group input[readonly] {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.2);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: stretch;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-red) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

/* Крутой эффект отправки 2025 */
.btn-submit.sending {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: sendingPulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-submit.sending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sendingShine 2s ease-in-out infinite;
}

.btn-submit.sending::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    animation: sendingCheck 0.5s ease-in-out;
}

@keyframes sendingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.6);
    }
}

@keyframes sendingShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes sendingCheck {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.btn-submit:disabled {
    background: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message in modal */
.success-message-modal {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInScale 0.5s ease;
}

.success-message-modal .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 50px;
    line-height: 80px;
    margin: 0 auto 24px;
    animation: bounceIn 0.6s ease;
}

.success-message-modal h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
}

.success-message-modal p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 16px;
        max-width: none;
        border-radius: 20px;
    }
    
    .modal-header,
    .contact-form {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 14px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 16px 20px;
        border-radius: 14px;
        font-size: 15px;
        min-height: 52px;
    }
}

/* Параллакс футер */
.parallax-footer {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.parallax-bg-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--dark-blue) 25%, 
        var(--primary-red) 50%, 
        var(--dark-red) 75%, 
        var(--primary-blue) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.footer-content-wrapper {
    position: relative;
    z-index: 2;
    color: white;
}

.footer-content-wrapper h3 {
    color: white;
}

.footer-content-wrapper a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-content-wrapper a:hover {
    color: white;
}

.footer-content-wrapper p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Адаптивность для брендов */
@media (max-width: 768px) {
    .brands-section {
        padding: 60px 0;
    }
    
    .brand-item {
        min-width: 180px;
        height: 135px;
    }
    
    .brand-item:hover {
        transform: scale(1.2);
    }
    
    .brand-item img {
        max-height: 90px;
        max-width: 180px;
    }
    
    .brands-track {
        gap: 8px;
    }
}

/* ========================================
   TESSERACT BUTTON ANIMATION
   ======================================== */

.button-card {
    display: inline-block;
    margin: 10px 0;
}

/* General button styles */
.btn {
    position: relative;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    outline: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.btn-tesseract {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #6a11cb;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.btn-tesseract::before, 
.btn-tesseract::after {
    content: '';
    position: absolute;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 2px solid #2575fc;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-tesseract::before {
    top: -5px;
    left: -5px;
    border-radius: 8px;
}

.btn-tesseract::after {
    bottom: -5px;
    right: -5px;
    border-radius: 8px;
}

.btn-tesseract:hover::before {
    top: 5px;
    left: 5px;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-tesseract:hover::after {
    bottom: 5px;
    right: 5px;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.btn-tesseract:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.4);
    border-color: #8b5cf6;
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 150px;
    }
}

/* ========================================
   SVG ANIMATED BUTTON STYLES
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");

.btn-submit-svg {
    flex: 1;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    min-height: 56px;
    height: 56px;
    position: relative;
    overflow: visible;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-submit-svg svg {
    width: 100%;
    height: 56px;
    display: block;
    min-width: 100%;
}

.btn-submit-svg .hidden {
    visibility: hidden;
}

.btn-submit-svg #base {
    cursor: pointer;
}

.btn-submit-svg:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-submit-svg:focus {
    outline: none;
}

/* Mobile adjustments for SVG button */
@media (max-width: 768px) {
    .btn-submit-svg {
        min-height: 52px;
        height: 52px;
    }

    .btn-submit-svg svg {
        height: 52px;
        min-width: 100%;
    }
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ffffff;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #3498db;
}

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

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #ecf0f1;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.cookie-accept {
    background: #27ae60;
    color: #ffffff;
}

.cookie-accept:hover {
    background: #229954;
    transform: translateY(-1px);
}

.cookie-decline {
    background: #e74c3c;
    color: #ffffff;
}

.cookie-decline:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.cookie-policy {
    background: #3498db;
    color: #ffffff;
}

.cookie-policy:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
}

/* ========================================
   WOOCOMMERCE PRODUCT PAGE CUSTOMIZATION
   ======================================== */

/* Product page spacing */
.single-product .site-main {
    padding-top: 20px !important;
}

.single-product .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Breadcrumb styling */
.woocommerce-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #666;
    background: none;
    border: none;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce-breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.woocommerce-breadcrumb a:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-1px);
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 6px;
    color: #999;
    font-size: 12px;
}

.woocommerce-breadcrumb .delimiter::before {
    content: "›";
    font-weight: bold;
}

/* Category page improvements */
.woocommerce-page .woocommerce-products-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.woocommerce-page .woocommerce-products-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.woocommerce-page .woocommerce-products-header .woocommerce-products-header__description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hide WooCommerce default elements */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: none !important;
}

/* Improve product grid - Modern 2025 style */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(44, 62, 80, 0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    padding: 12px 16px 8px 16px !important;
    line-height: 1.3 !important;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none !important;
    display: block;
}

/* Ensure product card images are always visible */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce .products .product .woocommerce-loop-product__link img,
.archive .woocommerce ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.02) !important;
}

/* Hide price and add to cart */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title + * {
    display: none !important;
}

/* Add custom button - Modern style */
.woocommerce ul.products li.product .woocommerce-loop-product__link::after {
    content: 'ZAPYTAJ O CENĘ';
    display: block;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 8px 16px;
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.5px;
}

/* Hide button for related products */
.related-products .woocommerce ul.products li.product .woocommerce-loop-product__link::after {
    display: none !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__link::after {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-1px);
}

/* Add subtle hover effect to entire card */
.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.02), rgba(52, 73, 94, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.woocommerce ul.products li.product:hover::before {
    opacity: 1;
}

/* Responsive - Modern 2025 */
@media (max-width: 768px) {
    .woocommerce-page .woocommerce-products-header h1 {
        font-size: 2rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 15px !important;
        padding: 0 10px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link img {
        height: 140px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        padding: 10px 12px 6px 12px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link::after {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 12px !important;
        padding: 0 5px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link img {
        height: 120px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        padding: 8px 10px 4px 10px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link::after {
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 24px !important;
    }
}

/* Modern Product Page Styles - 2025 Design */
.single-product .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Hide upper product images and summary - keep only lower content */
/* Only apply to single product pages, not product cards or our custom template */
.single-product:not(.custom-single-product) .woocommerce div.product div.images {
    display: none !important;
}

.single-product:not(.custom-single-product) .woocommerce div.product div.summary {
    display: none !important;
}

/* Hide Price and Add to Cart */
.woocommerce div.product form.cart,
.woocommerce div.product .price,
.woocommerce div.product .woocommerce-product-rating {
    display: none !important;
}

/* Product Description - Two Column Layout: Left Image, Right Description */
.woocommerce div.product .woocommerce-tabs {
    clear: both !important;
    margin-top: 0 !important;
    background: white !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

/* Left Column - Images */
.woocommerce div.product .woocommerce-tabs .panel:first-child {
    order: 1 !important;
}

.woocommerce div.product .woocommerce-tabs .panel:first-child img {
    max-height: 400px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Right Column - Description */
.woocommerce div.product .woocommerce-tabs .panel:last-child {
    order: 2 !important;
}

.woocommerce div.product .woocommerce-tabs .panel:last-child h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #e74c3c !important;
}

.woocommerce div.product .woocommerce-tabs .panel:last-child p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 25px !important;
}

.woocommerce div.product .woocommerce-tabs .tabs {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e9ecef !important;
}

.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel table {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

.woocommerce div.product .woocommerce-tabs .panel table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.woocommerce div.product .woocommerce-tabs .panel th,
.woocommerce div.product .woocommerce-tabs .panel td {
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid #e9ecef !important;
}

.woocommerce div.product .woocommerce-tabs .panel th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Add Ask Price Button to Description */
.woocommerce div.product .woocommerce-tabs .panel::after {
    content: 'ZAPYTAJ O CENĘ';
    display: block;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.woocommerce div.product .woocommerce-tabs .panel:hover::after {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Related Products */
.woocommerce .related {
    clear: both !important;
    margin-top: 40px !important;
}

.woocommerce .related h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

.woocommerce .related ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce .related ul.products li.product {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.woocommerce .related ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.woocommerce .related ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

.woocommerce .related ul.products li.product .woocommerce-loop-product__title {
    padding: 15px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel:first-child img {
        max-height: 300px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel:last-child h2 {
        font-size: 1.5rem !important;
    }
    
    .woocommerce .related ul.products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce div.product .woocommerce-tabs {
        padding: 15px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel:first-child img {
        max-height: 250px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel:last-child h2 {
        font-size: 1.3rem !important;
    }
}

/* Remove add to cart button area spacing */
.woocommerce div.product form.cart {
    display: none !important;
}

.woocommerce div.product .product_meta {
    margin-top: 20px;
}

/* Clean product page layout */
.woocommerce div.product {
    margin-top: 0;
    padding-top: 0;
}

.woocommerce div.product .summary {
    margin-bottom: 0;
}

/* Hide quantity selector and related elements */
.woocommerce div.product form.cart div.quantity,
.woocommerce .quantity,
.single_add_to_cart_button {
    display: none !important;
}

/* Product gallery improvements */
.woocommerce div.product div.images {
    margin-bottom: 30px;
}

/* Clean spacing for category pages - hide result count and sorting */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: none !important;
}

/* Remove cart/checkout notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: none !important;
}

/* Hide empty post-thumbnail divs on product pages */
.single-product .post-thumbnail:empty,
.woocommerce .post-thumbnail:empty {
    display: none !important;
}

/* Hide comments section completely */
#comments,
.comments-area,
#respond {
    display: none !important;
}

/* Contact Price Button - replaces price */
.contact-price-btn,
button.contact-price-btn,
.woocommerce .contact-price-btn,
.woocommerce div.product .contact-price-btn,
.woocommerce ul.products li.product .contact-price-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    line-height: normal !important;
    width: auto !important;
    height: auto !important;
}

.contact-price-btn:hover,
button.contact-price-btn:hover,
.woocommerce .contact-price-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
    color: white !important;
}

.contact-price-btn:active,
button.contact-price-btn:active,
.woocommerce .contact-price-btn:active {
    transform: translateY(0) !important;
}

/* Hide original price display */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.price {
    display: none !important;
}

