/* ==========================================
   TES - Thermo Euro Service Stylesheet
   Version: 1.0
   Optimized for: Performance, SEO, Accessibility
   Last Updated: March 2025
   ========================================== */

/* ==========================================
   CSS VARIABLES & RESET
   ========================================== */
:root {
    --primary-red: #b91c1c;
    --primary-dark: #7f1d1d;
    --primary-light: #dc2626;
    --accent-orange: #fb923c;
    --accent-light: #fdba74;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #1a1a1a;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, ol, li, form, input, textarea, button, section, header, footer, nav, aside, main {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    margin-top: 80px;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(185, 28, 28, 0.97) 0%, 
        rgba(127, 29, 29, 0.95) 50%,
        rgba(220, 38, 38, 0.93) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(251, 146, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(251, 146, 60, 0.2);
    color: var(--accent-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 400;
}

.brands {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.5rem 0;
}

.brand-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

a.brand-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.feature-pill {
    background: rgba(251, 146, 60, 0.9);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

/* ==========================================
   BUTTONS
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-orange);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(251, 146, 60, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-red);
    padding: 0.9rem 2rem;
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.3);
}

/* ==========================================
   SECTION STYLING
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 6rem 2rem;
    background: var(--bg-light);
    max-width: 1280px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.warranty-badge {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(251, 146, 60, 0.05));
    color: var(--accent-orange);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.warranty-badge strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.warranty-badge small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-section {
    padding: 6rem 2rem;
}

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

.partners-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.partner-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
}

.partner-info-icon {
    /* переопределено ниже */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-card:hover .partner-info-icon {
    opacity: 1;
}

.partner-logo-placeholder {
    /* стили переопределены ниже */
}

.partner-logo-placeholder span {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(185, 28, 28, 0.1);
    transform: rotate(90deg);
}

.modal-close svg {
    color: var(--text-primary);
}

.modal-content {
    padding: 40px;
}

.modal-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.modal-logo {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: white;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.3);
}

.modal-brand-name {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-country {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-body {
    color: var(--text-primary);
}

.modal-specialty {
    margin-bottom: 25px;
    text-align: center;
}

.specialty-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.05));
    color: var(--accent-orange);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(251, 146, 60, 0.3);
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 700;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 1.2rem;
}

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

.modal-info-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    color: var(--primary-red);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-cta {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.05), rgba(251, 146, 60, 0.05));
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--primary-red);
}

.modal-cta p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-button {
    display: inline-block;
    padding: 12px 35px;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.4);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 6rem 2rem;
}

.about-content {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.stat-number {
    font-size: 3.5rem;
    color: var(--primary-red);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(251, 146, 60, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-section .section-header h2,
.contact-section .section-subtitle {
    color: white;
}

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

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-light);
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-numbers a {
    display: block;
    padding: 0.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: var(--accent-orange);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.4);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--text-primary);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer-logo p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .logo {
        height: 50px;
    }
    
    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .brands {
        gap: 0.8rem;
    }
    
    .brand-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .service-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .partner-card {
        padding: 0.85rem;
    }

    .partner-logo-placeholder {
        height: 80px;
    }

    /* На мобиле — contain чтобы логотипы не обрезались */
    .partner-logo-img {
        object-fit: contain;
        padding: 8px;
    }

    .partner-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .services,
    .partners-section,
    .about,
    .contact-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brand-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .feature-pill {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .partners-cta {
        padding: 2rem 1.5rem;
    }

    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .partner-card {
        padding: 0.7rem;
    }

    .partner-logo-placeholder {
        height: 64px;
    }

    .partner-logo-img {
        object-fit: contain;
        padding: 6px;
    }

    .partner-flag,
    .partner-spec {
        font-size: 0.65rem;
    }

    .partner-info-icon {
        font-size: 0.6rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
}

/* ==========================================
   PARTNER CARD — link reset + meta block
   ========================================== */
a.partner-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Override original absolute icon — make it a normal inline label */
.partner-info-icon {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    letter-spacing: 0.3px;
    text-align: center;
}

.partner-card:hover .partner-info-icon {
    opacity: 1;
}

.partner-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.partner-flag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.partner-spec {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ==========================================
   BRANDS SIDEBAR — desktop only
   ========================================== */
.brands-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 500;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px 0 0 16px;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 1rem 0 1rem 0.9rem;
    width: 140px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    pointer-events: none;
}

.brands-sidebar.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.sidebar-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.65rem;
    padding-right: 0.9rem;
}

.sidebar-brands {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.sidebar-brand-item {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border-left: 2px solid transparent;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.sidebar-brand-item:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-red);
    transform: translateX(-2px);
}

.sb-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.2s ease;
}

.sidebar-brand-item:hover .sb-name {
    color: var(--primary-red);
}

.sb-sub {
    font-size: 0.62rem;
    color: var(--text-light);
    line-height: 1;
    margin-top: 0.1rem;
}

@media (max-width: 1100px) {
    .brands-sidebar {
        display: none;
    }
}

/* ==========================================
   PHOTO BACKGROUNDS
   ==========================================
   Unsplash — свободная лицензия.
   Hero, Партнёры, О нас, Контакты.
   ========================================== */

/* HERO — газовый котёл крупным планом, красный overlay */
.hero-bg {
    background:
        linear-gradient(135deg,
            rgba(127, 29, 29, 0.91) 0%,
            rgba(185, 28, 28, 0.85) 55%,
            rgba(127, 29, 29, 0.93) 100%),
        url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=1600&q=80') center/cover no-repeat;
}

/* ПАРТНЁРЫ — трубы/система отопления, очень лёгкий overlay
   max-width убираем чтобы фон шёл на всю ширину */
.partners-section {
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.91),
            rgba(249, 250, 251, 0.93)),
        url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?w=1600&q=80') center/cover no-repeat fixed;
    max-width: 100%;
}

.partners-section .section-header,
.partners-section .partners-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* О НАС / СТАТИСТИКА — система отопления/котельная, тёмный overlay */
.about {
    background:
        linear-gradient(
            rgba(17, 24, 39, 0.80),
            rgba(17, 24, 39, 0.87)),
        url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?w=1600&q=80') center/cover no-repeat fixed;
    max-width: 100%;
    color: white;
}

.about .section-header,
.about .about-content,
.about .stats {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.about .section-header h2 {
    color: white;
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.70);
}

.about .about-content {
    color: rgba(255, 255, 255, 0.82);
}

.about .about-content a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(253, 186, 116, 0.4);
}

.about .about-content a:hover {
    border-bottom-color: var(--accent-light);
}

.about .stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.about .stat-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about .stat-number {
    color: var(--accent-light);
}

.about .stat-label {
    color: rgba(255, 255, 255, 0.65);
}

/* КОНТАКТЫ — тёплый интерьер, красный overlay */
.contact-section {
    background:
        linear-gradient(135deg,
            rgba(185, 28, 28, 0.93) 0%,
            rgba(127, 29, 29, 0.91) 100%),
        url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=1600&q=80') center/cover no-repeat fixed;
}

/* ==========================================
   PARTNER CARDS — логотипы брендов
   ========================================== */

.partner-logo-placeholder {
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    background: #f8f8f8;
    height: 110px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Логотип — заполняет всю карточку */
.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Fallback текст — скрыт если рядом есть img */
.partner-logo-img ~ .partner-logo-fallback {
    display: none;
}

.partner-logo-fallback {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
}

/* Красный overlay появляется при hover */
.partner-logo-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(185, 28, 28, 0.0);
    transition: background 0.35s ease;
    z-index: 2;
}

.partner-card:hover .partner-logo-placeholder::after {
    background: rgba(185, 28, 28, 0.08);
}

/* Логотип слегка вырастает при hover */
.partner-card:hover .partner-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(185, 28, 28, 0.2));
}

.partner-card:hover .partner-logo-fallback {
    letter-spacing: 2px;
}

/* ==========================================
   GUARANTEE SECTION
   ========================================== */
.guarantee-section {
    background: var(--bg-dark);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.guarantee-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,28,28,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.guarantee-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.guarantee-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1101px) {
    .guarantee-section {
        padding-right: calc(2rem + 155px);
    }
    .partners-section,
    .about,
    .services,
    .contact-section {
        padding-right: calc(2rem + 155px);
    }
}

.guarantee-section .section-header h2 { color: white; }
.guarantee-section .section-header h2::after { background: var(--accent-orange); }
.guarantee-section .section-subtitle { color: rgba(255,255,255,0.6); }

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.guarantee-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guarantee-card--main {
    background: rgba(185,28,28,0.15);
    border-color: rgba(185,28,28,0.35);
}

.guarantee-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
}

.guarantee-card--main:hover {
    background: rgba(185,28,28,0.22);
    border-color: rgba(185,28,28,0.5);
}

.gc-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

.gc-period {
    font-family: 'Bebas Neue', 'Arial Black', Impact, sans-serif;
    font-size: 2.4rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: var(--accent-light);
}

.guarantee-card--main .gc-period {
    color: #fff;
    font-size: 3rem;
}

.gc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
}

.guarantee-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.guarantee-footer span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

@media (max-width: 768px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .guarantee-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    .gc-period { font-size: 2rem; }
    .guarantee-card--main .gc-period { font-size: 2.5rem; }
    .guarantee-card { padding: 1.25rem 1.25rem; }
    .gc-title { font-size: 0.95rem; }
    .gc-desc { font-size: 0.85rem; }
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(185, 28, 28, 0.08);
    border-radius: 50px;
    padding: 3px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

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

.lang-btn:hover:not(.active) {
    background: rgba(185, 28, 28, 0.1);
    color: var(--primary-red);
}

/* ==========================================
   BURGER MENU — DIRECTIONS + LANGUAGE
   (visible only inside the mobile slide-down
   panel; hidden on desktop where the regular
   .lang-switcher pill is used instead)
   ========================================== */
.nav-divider,
.nav-directions-label,
.nav-directions-grid,
.nav-lang-mobile {
    display: none;
}

@media (max-width: 768px) {
    .lang-switcher {
        display: none;
    }

    .nav-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--border-color);
        margin: 0.25rem 0;
    }

    .nav-directions-label {
        display: block;
        width: 100%;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--text-light);
    }

    .nav-directions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem 1rem;
        width: 100%;
    }

    .nav-directions-grid a {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        letter-spacing: 0.3px;
    }

    .nav-directions-grid a:hover {
        color: var(--primary-red);
    }

    .nav-lang-mobile {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-lang-mobile .lang-btn {
        flex: 1;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.6rem;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }

    .nav-lang-mobile .lang-btn.active {
        background: var(--primary-red);
        color: white;
        border-color: var(--primary-red);
    }
}


        /* ── Regional contacts ── */
        .regions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        .region-item {
            background: var(--bg-light);
            border-left: 3px solid var(--primary-red);
            border-radius: 8px;
            padding: 0.6rem 0.8rem;
        }
        .region-name {
            display: block;
            font-weight: 700;
            font-size: 0.82rem;
            color: var(--text-primary);
            margin-bottom: 0.3rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .region-phones {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }
        .region-phones a {
            font-size: 0.82rem;
            color: var(--primary-red);
            text-decoration: none;
            font-weight: 600;
        }
        .region-phones a:hover { text-decoration: underline; }

/* ==========================================
   REGIONS SECTION
   ========================================== */
.regions-section {
    background: var(--bg-light);
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.regions-container {
    max-width: 1280px;
    margin: 0 auto;
}

.regions-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.rc {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-red);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rc:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rc-name {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.rc-phones {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rc-phones a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.2s;
}

.rc-phones a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .regions-section {
        padding: 3rem 1.5rem;
    }
    .regions-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .rc {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 480px) {
    .regions-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   COUNTRY CODE BADGE  (replaces flag emojis)
   ========================================== */
.cc-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 3px;
    padding: 1px 4px;
    vertical-align: middle;
    line-height: 1.4;
    margin-right: 2px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
