/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 10px;
    border: 3px solid #1e3c72;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.logo-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease-out;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: block;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1e3c72;
    padding: 3rem 0;
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(30, 60, 114, 0.03) 35px, rgba(30, 60, 114, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(42, 82, 152, 0.03) 35px, rgba(42, 82, 152, 0.03) 70px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero-overlay {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 6.21rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    word-spacing: -8px !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-align: center;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.495rem;
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: none;
    display: inline;
}

.hero-content p:last-of-type {
    font-size: 1.3225rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 2.5rem;
    text-shadow: none;
    display: block;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1e3c72;
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 60, 114, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #f8f9fa;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 1.5em;
    line-height: 1;
    font-weight: bold;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
    background: #1e3c72;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #2a5298;
    transform: translateY(-1px);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* History Section */
.history {
    padding: 5rem 0;
    background-color: white;
}

.history h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.history-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 100%;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: transform 0.3s;
}

.history-image img:hover {
    transform: scale(1.05);
}

.history-content h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.company-details {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.history-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #444;
}

.history-features {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.history-feature-item {
    margin-bottom: 1.5rem;
}

.history-feature-item:last-child {
    margin-bottom: 0;
}

.history-feature-item h4 {
    color: #1e3c72;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.history-feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #555;
}

.history-footer {
    font-style: italic;
    color: #1e3c72;
    font-weight: 500;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1e3c72;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(30, 60, 114, 0.03) 35px, rgba(30, 60, 114, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(42, 82, 152, 0.03) 35px, rgba(42, 82, 152, 0.03) 70px);
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: none;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #495057;
    font-weight: 400;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background-color: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.map-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.map-address {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

.map-address h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-address p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #333;
}

.map-address p strong {
    color: #1e3c72;
    font-size: 1.2rem;
}

.contact-phones {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.contact-phones p {
    margin-bottom: 0.5rem;
}

.contact-phones a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-phones a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.contact-item a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.map-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.2);
    border: 3px solid #e0e0e0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Catalog Info Section */
.catalog-info {
    padding: 1rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-header {
    text-align: center;
    margin-bottom: 1rem;
}

.info-header h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin: 0;
}

.info-steps-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.info-step-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 0.75rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-step-item:hover {
    border-color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
}

.step-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.2);
}

.info-step-item h4 {
    color: #1e3c72;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.info-step-item p {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

.step-arrow {
    font-size: 2rem;
    color: #1e3c72;
    font-weight: bold;
    opacity: 0.3;
    flex-shrink: 0;
}

/* About Page */
.about-content {
    padding: 4rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.advantages-list {
    list-style: none;
    padding-left: 0;
}

.advantages-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.advantages-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mission {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid #1e3c72;
}

.mission h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h4 {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Catalog */
.catalog {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.catalog-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1e3c72;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-gallery {
    position: relative;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    background: rgba(30, 60, 114, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 10;
}

.gallery-btn:hover {
    background: rgba(30, 60, 114, 1);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
    transform: translateY(-50%) !important;
}

.gallery-btn-prev {
    left: 10px;
}

.gallery-btn-next {
    right: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Product Sliders */
.product-sliders {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.slider-group {
    margin-bottom: 1rem;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e3c72;
    font-size: 0.9rem;
}

.slider-group label span {
    font-weight: bold;
    color: #2a5298;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #2a5298;
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.slider-group input[type="range"]::-moz-range-thumb:hover {
    background: #2a5298;
}

/* Size Select Dropdown */
.size-select,
.filler-select,
.fabric-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #1e3c72;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.size-select:hover,
.filler-select:hover,
.fabric-select:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
}

.size-select:focus,
.filler-select:focus,
.fabric-select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Custom Size Inputs */
.custom-size-inputs {
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border: 2px dashed #1e3c72;
    border-radius: 8px;
}

.custom-size-fields {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-size-fields input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #1e3c72;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.custom-size-fields input[type="number"]:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.custom-size-fields input[type="number"]::placeholder {
    color: #999;
}

.size-separator {
    font-size: 20px;
    font-weight: bold;
    color: #1e3c72;
    flex-shrink: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
}

/* Contacts Page */
.contacts-content {
    padding: 4rem 0;
    background-color: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #1e3c72;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: #2a5298;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.map-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.map-section h3 {
    color: #1e3c72;
    text-align: center;
    margin-bottom: 2rem;
}

.map-placeholder {
    background: white;
    padding: 4rem;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #ddd;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 3rem 0;
        height: 100vh;
        min-height: 450px;
        width: 100%;
    }
    
    .hero::after {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
        transform: translateY(-17%);
    }
    
    .hero-content h2 {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    header .container {
        flex-direction: row;
        padding: 0 15px;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        padding: 80px 0 20px;
        z-index: 1000;
        transition: right 0.2s ease-in;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    nav.active {
        right: 0;
        transition: right 0.3s ease-out;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav a {
        padding: 1.2rem 2rem;
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    nav a:hover,
    nav a.active {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Grid layouts mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Catalog info mobile */
    .info-card {
        padding: 1.5rem;
    }
    
    .info-header h3 {
        font-size: 1.5rem;
    }
    
    .info-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-step {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .history-image img {
        min-height: 250px;
    }
    
    .map-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Product cards touch-friendly */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-btn-prev {
        left: 5px;
    }
    
    .gallery-btn-next {
        right: 5px;
    }
    
    /* Forms mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 0.8rem;
    }
    
    /* Table responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Page headers */
    .page-header h2 {
        font-size: 2rem;
    }
    
    /* Contact items */
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1.3rem;
    }
}

/* Price Page Styles */
.price-intro {
    padding: 4rem 0;
    background-color: white;
}

.price-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.price-intro-content h3 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.price-intro-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.price-contact-info {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: left;
}

.price-contact-info p {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.price-contact-info p:last-child {
    margin-bottom: 0;
}

.price-gallery {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-slide-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-90deg);
}

.gallery-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.gallery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.gallery-btn:active {
    transform: scale(0.95);
}

.gallery-btn span {
    line-height: 1;
    margin-top: -2px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: #bbb;
}

.indicator.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    width: 14px;
    height: 14px;
}

.gallery-counter {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.download-btn-container {
    text-align: center;
    margin: 1.5rem 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn span {
    font-size: 1.3rem;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    z-index: 10001;
}

.modal-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.5);
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev-btn {
    left: 30px;
}

.modal-next-btn {
    right: 30px;
}

.modal-nav-btn span {
    line-height: 1;
    margin-top: -2px;
}

@media (max-width: 768px) {
    .price-intro-content h3 {
        font-size: 2rem;
    }
    
    .price-contact-info {
        padding: 1rem 1.5rem;
    }
    
    .gallery-container {
        gap: 0.5rem;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-slide-container {
        max-width: 100%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
    
    .image-modal-content {
        max-width: 98%;
        max-height: 90vh;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .modal-prev-btn {
        left: 10px;
    }
    
    .modal-next-btn {
        right: 10px;
    }
    
    .info-steps-horizontal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-step-item {
        max-width: 100%;
    }
    
    .step-arrow {
        font-size: 2rem;
        transform: rotate(90deg);
    }
}
