/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
}

/* Compact button for "Связаться с нами" */
.btn-compact {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ff6b35;
    color: white;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    max-height: 100px;
    white-space: nowrap;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-compact:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Header */
.header {
    background: #1a1a1a;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h1 {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 0;
}

/* Header logo image */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
}

.logo span {
    color: #ccc;
    font-size: 14px;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ff6b35;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Prevent phone number from breaking into multiple lines */
.header-contacts .phone span { white-space: nowrap; }

/* Slight breathing room for nav between logo and contacts */
.nav { margin: 0 12px; }

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.phone i {
    color: #ff6b35;
}

/* Privacy Policy Modal Styles */
.privacy-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.privacy-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

.privacy-text {
    padding: 20px;
}

.privacy-text h4 {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.privacy-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-text li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.privacy-text p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.privacy-text a {
    color: #ff6b35;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.privacy-text strong {
    color: #333;
}

/* Scrollbar styling for privacy modal */
.privacy-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.privacy-body::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

.privacy-body::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Map Section Styles */
.map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.map-canvas {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* Map Loading Spinner */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.map-loading p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Map Fallback */
.map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10;
}

.fallback-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.fallback-content i {
    font-size: 64px;
    color: #ff6b35;
    margin-bottom: 20px;
    display: block;
}

.fallback-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.fallback-content p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
}

.map-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.map-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.map-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Map Info Card */
.map-info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.info-header i {
    font-size: 32px;
    color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.info-content {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.info-item i {
    font-size: 20px;
    color: #ff6b35;
    margin-top: 2px;
    min-width: 20px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    color: #2c3e50;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.info-item a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.info-actions {
    text-align: center;
}

.info-actions .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .map-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .map-canvas {
        height: 400px;
    }
    
    .map-info-card {
        padding: 25px;
    }
    
    .info-header h3 {
        font-size: 1.5rem;
    }
    
    .map-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .map-buttons .btn-secondary {
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .map-canvas {
        height: 300px;
    }
    
    .fallback-content {
        padding: 30px 20px;
    }
    
    .fallback-content i {
        font-size: 48px;
    }
    
    .fallback-content h3 {
        font-size: 1.5rem;
    }
    
    .info-item {
        padding: 15px;
    }
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: #ccc;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    /* затемнённое фото станков с оверлеем и несколькими fallback-путями (расширения/регистры) */
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('Img/STANOK_FON.jpg'),
        url('Img/STANOK_FON.JPG'),
        url('Img/STANOK_FON.jpeg'),
        url('Img/STANOK_FON.JPEG'),
        url('Img/STANOK_FON.png'),
        url('Img/STANOK_FON.PNG'),
        url('img/STANOK_FON.jpg'),
        url('img/STANOK_FON.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
}

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

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Products Preview */
.products-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch; /* растягиваем карточки на одинаковую высоту в строке */
}

.product-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 360px; /* единая высота карточек, чтобы кнопки шли по одной линии */
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: #ff6b35;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.product-card p {
    margin-bottom: 1.5rem;
}

/* Pin the product card button to the bottom while keeping layout responsive */
.product-card .btn-secondary {
    margin-top: auto;
    align-self: center;
    display: inline-flex !important; /* надёжное центрирование текста */
    width: 200px !important;      /* единый стандарт ширины */
    min-width: 200px !important;
    max-width: 200px !important;
    height: 48px !important;      /* единая высота */
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 48px !important; /* для обратной совместимости */
    padding: 0 !important;        /* исключаем влияние внутренних отступов */
    margin-left: auto !important;  /* центрируем по горизонтали */
    margin-right: auto !important;
    box-sizing: border-box;
    background: #ff6b35 !important; /* оранжевый фон */
    color: #fff !important;         /* белый текст */
    border: none !important;        /* чистая заливка без рамки */
    border-radius: 8px !important; /* унифицированный радиус */
    font-size: 16px !important;
    font-weight: 600 !important;   /* единая насыщенность */
    text-align: center !important;
    align-items: center;            /* выравнивание по вертикали */
    justify-content: center;        /* выравнивание по горизонтали */
    transform: none !important;
    box-shadow: none !important;
}

.product-card .btn-secondary:hover {
    background: #e55a2b !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure identical buttons inside products preview cards */
.products-preview .product-card > a.btn-secondary {
    display: block !important;
    width: 200px !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #ff6b35 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    box-shadow: none !important;
    transform: none !important;
}

.products-preview .product-card > a.btn-secondary:hover {
    background: #e55a2b !important;
    transform: none !important;
    box-shadow: none !important;
}

.products-more {
    text-align: center;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Preview */
.contact-preview {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.contact-preview h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-preview p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.contact-item i {
    color: #ff6b35;
    font-size: 1.5rem;
}

/* Button in contact-preview section */
.contact-preview .btn-compact {
    display: inline-block;
    width: 140px !important;
    max-width: 140px !important;
    margin: 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Catalog Navigation */
.catalog-nav {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.catalog-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-link {
    padding: 12px 24px;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Catalog Sections */
.catalog-section {
    padding: 80px 0;
    background: white;
}

.catalog-section:nth-child(even) {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: stretch; /* растягиваем карточки на одинаковую высоту в строке */
}

.catalog-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 500px; /* единая высота карточек каталога */
}

.catalog-item:hover {
    transform: translateY(-10px);
}

.catalog-image img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* показываем весь товар без обрезки */
    background: #fff;     /* пустые поля заполняем белым */
    display: block;
}

.catalog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1; /* растягиваем контент */
}

.catalog-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.catalog-features span {
    background: #f0f2f5;
    color: #ff6b35;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.catalog-price {
    display: flex;
    justify-content: center; /* центрируем кнопку */
    align-items: center;
    margin-top: auto; /* прижимаем кнопку к низу карточки */
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b35;
}

/* About Company */
.about-company {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Advantages */
.advantages {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.advantages h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.advantages > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.advantage-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.advantage-icon i {
    font-size: 2rem;
    color: white;
}

.advantage-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Technologies */
.technologies {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.technologies h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.technologies > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.tech-category h3 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-stack span {
    background: #ff6b35;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #ff6b35;
}

/* Team */
.team {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.team h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.team > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h3 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.position {
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 1rem;
}

.description {
    color: #666;
    font-size: 0.9rem;
}

/* Careers */
.careers {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.careers h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.careers > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.career-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.career-item:hover {
    border-color: #ff6b35;
    transform: translateY(-5px);
}

.career-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.career-item p {
    margin-bottom: 1.5rem;
}

.career-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.career-requirements span {
    background: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* News */
.news {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.news h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.news > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.news-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.news-date {
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 1rem;
}

.news-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.news-item p {
    margin-bottom: 1.5rem;
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
    background: white;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-note {
    color: #ff6b35;
    font-size: 0.9rem;
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form > p {
    text-align: center;
    margin-bottom: 2rem;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Checkbox Group */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    position: relative;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.checkbox-label:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover .checkmark {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: #ff6b35;
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: checkboxFill 0.3s ease-in-out;
}

.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

@keyframes checkboxFill {
    0% {
        background-color: #fff;
        transform: scale(1);
        border-color: #ccc;
    }
    30% {
        transform: scale(1.05);
        border-color: #ff6b35;
    }
    60% {
        background-color: rgba(255, 107, 53, 0.3);
        transform: scale(1.1);
    }
    100% {
        background-color: #ff6b35;
        transform: scale(1);
        border-color: #ff6b35;
    }
}

.checkbox-label a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: #e55a2b;
}

.checkbox-label a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile optimizations for checkbox */
@media (max-width: 768px) {
    .checkbox-label {
        padding: 12px 8px;
        gap: 18px;
        font-size: 15px;
        line-height: 1.5;
    }
    
    .checkmark {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        border-width: 2px;
    }
    
    .checkmark:after {
        width: 7px;
        height: 12px;
        border-width: 0 3px 3px 0;
        top: 2px;
        left: 2px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .checkbox-label {
        padding: 15px 10px;
        gap: 20px;
        font-size: 16px;
    }
    
    .checkmark {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .checkmark:after {
        width: 8px;
        height: 13px;
        top: 2px;
        left: 3px;
    }
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.sidebar-section li:before {
    content: "✓";
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.step-number {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    margin: 0;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.phone-link:hover {
    color: #e55a2b;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.map-section h2 {
    color: #1a1a1a;
    margin-bottom: 2rem;
}

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

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 60px 20px;
    color: #666;
}

.map-placeholder i {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #ff6b35;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #e55a2b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 80px 0 40px;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-grid,
    .products-grid,
    .advantages-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .catalog-price {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row { flex-direction: column; }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .container { padding: 0 15px; }

    /* Compact section paddings on mobile */
    .products-preview,
    .about-preview,
    .advantages,
    .contact-preview,
    .contact-form-section,
    .about-company,
    .technologies,
    .team,
    .careers,
    .news,
    .map-section,
    .catalog-section { padding: 40px 0; }

    /* Cards and catalog compactness */
    .product-card { padding: 24px 20px; min-height: auto; }
    .catalog-item { min-height: initial; }
    .catalog-image img { height: 180px; object-fit: contain; background: #fff; }
    .catalog-content { padding: 20px; }
    .catalog-features { gap: 6px; margin: 12px 0; }
    .price { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    
    .hero-content h1 { font-size: 1.6rem; line-height: 1.2; }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    
    .hero-buttons { flex-direction: column; gap: 10px; }
    
    .product-card,
    .catalog-item,
    .advantage-item { padding: 16px; margin: 8px 0; }
    
    .tech-stack { flex-wrap: wrap; gap: 8px; }
    .tech-stack span { font-size: 12px; padding: 6px 12px; }
    
    .catalog-categories { flex-direction: column; gap: 10px; }
    .category-link { text-align: center; padding: 12px 20px; }
    
    .form-group input,
    .form-group textarea,
    .form-group select { font-size: 16px; padding: 12px 15px; }
    
    .header { padding: 10px 0; }
    .logo h1 { font-size: 1.5rem; }
    .logo span { font-size: 12px; }

    /* Extra compact paddings */
    .products-preview,
    .about-preview,
    .advantages,
    .contact-preview,
    .contact-form-section,
    .about-company,
    .technologies,
    .team,
    .careers,
    .news,
    .map-section,
    .catalog-section { padding: 28px 0; }
    .page-header { padding: 48px 0; }
} 

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ff6b35;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Навигация скрыта по умолчанию */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        display: none;
        border-top: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
    }

    /* Показ по клику на бургер */
    .nav.active { display: block; }

    .nav ul {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }

    .nav li { margin: 4px 0; }

    .nav a { padding: 10px 12px; border-radius: 8px; }
    .nav a:hover { background: rgba(255,255,255,.06); }

    .header-contacts { display: none; }

    .header-content { position: relative; }
}

/* Smooth animations and transitions */
.product-card,
.catalog-item,
.advantage-item,
.team-member,
.career-item {
    transition: all 0.3s ease;
}

.product-card:hover,
.catalog-item:hover,
.advantage-item:hover,
.team-member:hover,
.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Loading animation for images */
.catalog-image img,
.about-image img,
.member-photo img {
    transition: opacity 0.3s ease;
}

.catalog-image img:hover,
.about-image img:hover,
.member-photo img:hover {
    opacity: 0.9;
}

/* Button hover effects */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Form focus effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #e55a2b;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
} 

/* Text overflow prevention and readability improvements */
.product-card h3,
.catalog-item h3,
.advantage-item h3,
.team-member h3,
.career-item h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.product-card p,
.catalog-item p,
.advantage-item p,
.team-member .description,
.career-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    max-width: 100%;
}

.catalog-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.catalog-features span {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .product-card,
    .catalog-item,
    .advantage-item {
        padding: 20px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .catalog-features {
        justify-content: center;
    }
    
    .catalog-features span {
        font-size: 11px;
        padding: 5px 10px;
    }
} 

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 0 24px 24px 24px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Form Styles */
.call-order-form {
    padding: 0 24px 24px 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header,
    .call-order-form,
    .modal-body,
    .modal-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
    }
    
    /* Mobile checkbox adjustments in modal */
    .modal .checkbox-label {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Focus states for accessibility */
.checkbox-label input[type="checkbox"]:focus:not(:focus-visible) {
    outline: none;
}

.checkbox-label input[type="checkbox"]:focus-visible ~ .checkmark {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Error state for required checkbox */
.checkbox-label.error .checkmark {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.checkbox-label.error {
    color: #dc3545;

        font-size: 16px;
    }


/* MOBILE FORCE: Мобильная версия с максимальной специфичностью - v2.0 */
@media screen and (max-width: 768px) {
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Общие правила */
    .container .about-content,
    .about-preview .about-content,
    .about-company .about-content,
    section .about-content,
    main .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        grid-template-columns: none !important;
        align-items: stretch !important;
        text-align: left !important;
        max-width: 100% !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Картинка первая */
    .container .about-content .about-image,
    .about-preview .about-content .about-image,
    .about-company .about-content .about-image,
    section .about-content .about-image,
    main .about-content .about-image {
        order: 1 !important;
        margin-bottom: 30px !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Картинка стили */
    .container .about-content .about-image img,
    .about-preview .about-content .about-image img,
    .about-company .about-content .about-image img,
    section .about-content .about-image img,
    main .about-content .about-image img {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 16px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Текст второй */
    .container .about-content .about-text,
    .about-preview .about-content .about-text,
    .about-company .about-content .about-text,
    section .about-content .about-text,
    main .about-content .about-text {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
        padding: 0 15px !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Заголовок */
    .container .about-content .about-text h2,
    .about-preview .about-content .about-text h2,
    .about-company .about-content .about-text h2,
    section .about-content .about-text h2,
    main .about-content .about-text h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Параграфы */
    .container .about-content .about-text p,
    .about-preview .about-content .about-text p,
    .about-company .about-content .about-text p,
    section .about-content .about-text p,
    main .about-content .about-text p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        color: #444 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    
    /* МАКСИМАЛЬНО СПЕЦИФИЧНО: Кнопка */
    .container .about-content .about-text .btn-primary,
    .about-preview .about-content .about-text .btn-primary,
    .about-company .about-content .about-text .btn-primary,
    section .about-content .about-text .btn-primary,
    main .about-content .about-text .btn-primary {
        margin: 25px auto 0 auto !important;
        display: block !important;
        width: 200px !important;
        text-align: center !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .about-image img {
        height: 220px !important;
        border-radius: 12px !important;
    }
    
    .about-text {
        padding: 0 5px !important;
    }
    
    .about-text h2 {
        font-size: 1.6rem !important;
        margin-bottom: 16px !important;
    }
    
    .about-text p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    
    .about-text .btn-primary {
        width: 180px !important;
        margin: 20px auto 0 auto !important;
    }
}

/* Header refinements: responsive spacing and tagline behavior */
@media (max-width: 768px) {
    .logo span { display: none; }
    .nav ul { gap: 12px; }
}

/* Map Section Styles */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.map-container #map {
    border-radius: 16px;
}

.map-info {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.map-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
}

.map-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Map Styles */
@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .map-container #map {
        height: 350px !important;
    }
    
    .map-info {
        padding: 20px;
    }
    
    .map-info p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: 40px 0;
    }
    
    .map-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .map-container #map {
        height: 300px !important;
    }
    
    .map-info {
        padding: 15px;
    }
    
    .map-info p {
        font-size: 14px;
        margin: 8px 0;
    }
}

/* =========================================
   MOBILE OVERRIDES (Перенесено из about.html)
   ========================================= */

/* Принудительные стили для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Общие правила для контента "О компании" */
    .container .about-content,
    .about-preview .about-content,
    .about-company .about-content,
    section .about-content,
    main .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        text-align: left !important;
        max-width: 100% !important;
    }
    
    /* Картинка идет первой */
    .container .about-content .about-image,
    .about-preview .about-content .about-image,
    .about-company .about-content .about-image,
    section .about-content .about-image,
    main .about-content .about-image {
        order: 1 !important;
        margin-bottom: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Стили картинки */
    .container .about-content .about-image img,
    section .about-content .about-image img,
    main .about-content .about-image img {
        width: 100% !important;
        height: 280px !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Текст идет вторым */
    .container .about-content .about-text,
    section .about-content .about-text,
    main .about-content .about-text {
        order: 2 !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
    }
    
    /* Заголовки */
    .container .about-content .about-text h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    /* Параграфы */
    .container .about-content .about-text p {
        font-size: 1.05rem !important;
        text-align: justify !important;
    }
    
    /* Кнопки по центру */
    .container .about-content .about-text .btn-primary {
        margin: 25px auto 0 auto !important;
        display: block !important;
        width: 200px !important;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .about-image img {
        height: 220px !important;
    }
    .about-text h2 {
        font-size: 1.6rem !important;
    }
}

/* Блок телефона в шапке */
.phone {
  display: inline-flex;
  align-items: center;   /* вертикальное выравнивание */
  gap: 10px;             /* расстояние между иконкой и номером */
  line-height: 1;        /* убирает "провал" по базовой линии */
}

/* Иконка — тоже без лишней высоты строки */
.phone i {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Ссылка-номер */
.header-phone-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  color: #ff6b35;      
  font-weight: 600;
  white-space: nowrap;
}

.header-phone-link:hover {
  font-weight: 800;
  text-decoration: none;
}

.header-phone-link-index{ 
     display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  color: #ff6b35;      
  font-weight: 600;
  white-space: nowrap;
}
.header-phone-link-index:hover {
  font-weight: 800;
  text-decoration: none;
}


/* CSS VERSION: 2.0.6 - FORCED MOBILE UPDATE - 2025-10-06 */
