:root {
    --primary: #1a5f7a;
    --primary-dark: #0d3b4f;
    --secondary: #ff9f1c;
    --secondary-dark: #e88a00;
    --gray: #f5f5f5;
    --gray-dark: #e2e8f0;
    --text: #0f172a;
    --text-light: #475569;
    --dark-bg: #1a2a3a;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8fafc;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- HEADER ---------- */
.header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.contact-tel a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.contact-tel a i {
    font-size: 1.6rem;
    color: #2c7da0;
}

.contact-tel a:hover {
    color: var(--primary-dark);
}

/* ---------- HERO СЕКЦИЯ С ИЗОБРАЖЕНИЕМ ЗА ТЕКСТОМ ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Затемнение поверх изображения, но ПОД текстом */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 0.9s ease-out;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: var(--text);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--text);
}

/* ---------- СЕТКИ ---------- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin: 3rem 0;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- КАРТОЧКИ ТОВАРОВ ---------- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card-img {
    flex: 1;
    min-width: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-card-img img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.02);
}

.product-card-body {
    flex: 1.5;
    padding: 2rem;
}

.product-card-body h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.product-card-body ul {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
}

.product-card-body li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-body li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ---------- САЙДБАР ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    transition: all 0.25s;
    border-left: 5px solid var(--secondary);
}

.info-block h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.info-block h3 i {
    color: var(--secondary);
}

/* ---------- ПАРТНЕРЫ ---------- */
.partners {
    text-align: center;
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* ---------- АНИМАЦИИ ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---------- ЗАГОЛОВОК СТРАНИЦЫ ---------- */
.page-header {
    text-align: center;
    margin: 2rem 0 3rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.page-header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 3px;
}

/* ---------- КАТАЛОГ ---------- */
.catalog-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.product-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-item-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .product-item-inner {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
}

/* ---------- ИНФОРМАЦИОННЫЙ БЛОК ---------- */
.info-text-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    line-height: 1.8;
}

/* ---------- ГАЛЕРЕЯ РАБОТ ---------- */
.works-gallery {
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 0.8rem;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    .gallery-item img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- ФОРМА ЗАПРОСА ---------- */
.request-form-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d1c28 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.request-form-section .section-title {
    color: var(--white);
    text-align: center;
}

.request-form-section .section-title::after {
    background: var(--secondary);
}

.form-description {
    text-align: center;
    color: #ccc;
    margin-bottom: 2rem;
}

.request-form-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-form-section input,
.request-form-section textarea,
.request-form-section select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #4a5568;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: all 0.3s ease;
}

.request-form-section input:focus,
.request-form-section textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.request-form-section textarea {
    min-height: 100px;
    resize: vertical;
}

.request-form-section label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.request-form-section button {
    background: var(--secondary);
    color: var(--text);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-form-section button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- КОНТАКТЫ ---------- */
.contacts-two-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .contacts-two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.contacts-card,
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
}

.contacts-card h3,
.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.contacts-photo {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contacts-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.contacts-address,
.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 36px;
    color: var(--primary);
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.contact-text strong {
    color: var(--dark-bg);
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--secondary);
}

/* ---------- О КОМПАНИИ ---------- */
.about-company {
    margin: 3rem 0;
}

.about-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-photo {
    width: 200px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.signature {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .about-card {
        padding: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-photo {
        width: 150px;
    }
}

/* ---------- ПРОДУКТ ПРЕМИУМ ---------- */
.product-premium {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-premium-inner {
    padding: 28px;
}

.product-premium-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 32px;
}

@media (max-width: 992px) {
    .product-premium-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---------- ДЕТАЛЬНАЯ СТРАНИЦА ТОВАРА ---------- */
.product-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--dark-bg);
    margin: 1rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-detail-gallery {
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    padding: 20px;
}

.main-image {
    text-align: center;
    margin-bottom: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnails a {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnails a:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-detail-info {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d1c28 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white);
    align-self: start;
    position: sticky;
    top: 100px;
}

.price-block {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.price-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.price-note {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-order,
.btn-pdf,
.btn-print {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-order {
    background: var(--secondary);
    color: var(--text);
}

.btn-order:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-pdf,
.btn-print {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-pdf:hover,
.btn-print:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.product-description {
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 30px 0;
    line-height: 1.7;
    color: #444;
}

/* ---------- ХАРАКТЕРИСТИКИ ---------- */
.specs-section {
    margin: 40px 0;
}

.specs-grid-full {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.spec-row:nth-child(even) {
    background: #f8f9fa;
}

.spec-name {
    font-weight: 600;
    color: var(--primary);
}

.spec-value {
    color: #333;
}

@media (max-width: 600px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .spec-name {
        border-bottom: 1px dashed #ddd;
        padding-bottom: 4px;
    }
}

/* ---------- ДОКУМЕНТАЦИЯ ---------- */
.docs-section {
    margin: 40px 0;
}

.docs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f0f4f8;
    border-radius: 40px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s;
}

.doc-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---------- ГАБАРИТЫ ---------- */
.dimensions-section {
    margin: 40px 0;
    text-align: center;
}

.dimensions-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ---------- КОМПЛЕКТАЦИЯ ---------- */
.complect-section,
.options-section {
    margin: 40px 0;
}

.complect-list ul,
.options-list ul {
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    padding: 24px 24px 24px 48px;
    list-style: square;
}

.complect-list li,
.options-list li {
    margin: 12px 0;
    line-height: 1.5;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    .contact-tel a {
        font-size: 1.2rem;
    }
    .hero {
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .product-card {
        flex-direction: column;
    }
    .product-card-body {
        padding: 1.5rem;
    }
    .product-card-body h2 {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .product-detail-info {
        position: static;
    }
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    .docs-links {
        flex-direction: column;
    }
    .doc-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .info-block {
        padding: 1.2rem;
    }
    .info-block h3 {
        font-size: 1.2rem;
    }
    .complect-list ul,
    .options-list ul {
        padding: 16px 16px 16px 32px;
    }
}

/* ---------- LIGHTBOX КАСТОМНЫЕ СТИЛИ ---------- */
.lb-data .lb-caption {
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.7;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}