/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

/* Навигация */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a {
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero секция */
.hero {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 2;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.hero-scroll-indicator svg {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero-scroll-indicator:hover svg {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Секции */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Преимущества */
.advantages {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

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

.advantages-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.advantages-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.advantage-card:hover::before {
    transform: scaleY(1);
}

.advantage-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Портфолио превью */
.portfolio-preview {
    padding: 5rem 0;
    background: var(--bg-white);
}

.portfolio-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item-preview {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.portfolio-item-preview:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item-preview a {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* О продукте / Материалы */
.about-product {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.image-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Процесс работы */
.process {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
}

/* CTA */
.cta {
    padding: 1.5rem 0 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="footer-grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-location,
.footer-delivery {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.social-link span {
    font-size: 0.95rem;
}

.social-vk:hover {
    color: #0077FF;
    border-color: #0077FF;
}

.social-telegram:hover {
    color: #0088cc;
    border-color: #0088cc;
}

.social-whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Заголовок страницы */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.b2b-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    padding: 5rem 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.page-header p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 300;
    margin: 0;
}

.header-decoration {
    width: 100px;
    height: 4px;
    background: white;
    margin: 2rem auto 0;
    border-radius: 2px;
    position: relative;
}

.header-decoration::before,
.header-decoration::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.header-decoration::before {
    left: -20px;
}

.header-decoration::after {
    right: -20px;
}

/* Калькулятор */
.calculator-section {
    padding: 2rem 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-preview-result {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.color-selector {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.color-option {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-swatch {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-label {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-align: center;
    width: 100%;
    display: block;
}

.color-option input[type="radio"]:checked + .color-swatch {
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-option input[type="radio"]:checked ~ .color-label {
    color: var(--primary-color);
    font-weight: 600;
}


.facade-preview {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.facade-preview h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.preview-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

.axis-label {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 10;
}

.axis-label-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.axis-arrow {
    position: absolute;
    z-index: 5;
}

.axis-arrow-horizontal {
    top: 20px;
    left: 60px;
    right: 60px;
    height: 20px;
}

.axis-arrow-vertical {
    left: 20px;
    top: 60px;
    bottom: 60px;
    width: 20px;
}

.facade-frame {
    width: 300px;
    height: 400px;
    max-width: 100%;
    aspect-ratio: 3/4;
    border: 8px solid #C0C0C0;
    border-radius: 4px;
    position: relative;
    background: #f0f0f0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.facade-glass {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.facade-glass.clear {
    background: rgba(240, 248, 255, 0.15);
    backdrop-filter: blur(0.5px);
    box-shadow: inset 0 0 20px rgba(173, 216, 230, 0.2);
}

.facade-glass.matte {
    background: rgba(245, 245, 250, 0.85);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 15px rgba(200, 200, 200, 0.3);
}

.facade-glass.tinted {
    background: rgba(101, 67, 33, 0.35);
    box-shadow: inset 0 0 20px rgba(101, 67, 33, 0.2);
}

.facade-glass.bronze {
    background: rgba(184, 115, 51, 0.45);
    box-shadow: inset 0 0 20px rgba(184, 115, 51, 0.25);
}

.facade-glass.mirror {
    background: linear-gradient(135deg, rgba(220, 220, 220, 0.85), rgba(180, 180, 180, 0.7), rgba(200, 200, 200, 0.75));
    box-shadow: inset 0 0 30px rgba(150, 150, 150, 0.3);
}

.facade-glass.patterned {
    background: 
        repeating-linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.15) 8px, rgba(0,0,0,0.08) 8px, rgba(0,0,0,0.08) 16px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.facade-handle {
    position: absolute;
    transition: all 0.3s;
}

.facade-handle.handle-overlay {
    width: 60px;
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.facade-handle.handle-edge {
    width: 8px;
    height: 60px;
    background: #4a5568;
    border-radius: 4px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.facade-handle.handle-integrated {
    width: 50px;
    height: 4px;
    background: rgba(74, 85, 104, 0.6);
    border-radius: 2px;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: 1px solid rgba(74, 85, 104, 0.4);
}

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

.preview-size {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.preview-dimensions {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.price-breakdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breakdown-item.breakdown-total {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.breakdown-item.breakdown-discount {
    color: #10b981;
}

.breakdown-item.breakdown-urgent {
    color: #ef4444;
}

/* Список заказа */
.order-list-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.order-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.order-list-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.order-total {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.order-total-price {
    color: var(--primary-color);
    font-size: 2rem;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    align-items: center;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: var(--shadow);
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.order-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    min-width: 120px;
}

.order-item-actions {
    display: flex;
    gap: 0.5rem;
}

.order-item-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.btn-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-icon-edit:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-icon-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
}

.notification::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.order-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.order-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.calculator-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.calculator-form h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* Стили для select с кастомной стрелкой */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.calculator-result {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.result-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-light);
}

.result-details {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.calculator-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.calculator-info h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.calculator-info ul {
    list-style: none;
}

.calculator-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.calculator-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.order-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.order-summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: 0.25rem;
}

.order-summary-total {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    text-align: right;
    color: var(--text-dark);
}

/* Материалы */
.materials-section {
    padding: 4rem 0;
    position: relative;
}

.materials-section.bg-light {
    background: var(--bg-section);
    margin: 5rem 0 0 0;
    padding: 6rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bg-light {
    background: var(--bg-light) !important;
}

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

.material-card,
.profile-card {
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Фасадные профили */
.facade-profiles-title {
    font-weight: 700;
}

.facade-profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.facade-profile-card {
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.facade-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facade-profile-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.facade-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facade-profile-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    border: none;
    border-radius: 0;
    min-height: auto;
    padding: 0;
}

.facade-profile-info {
    padding: 1.5rem;
}

.facade-profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.facade-profile-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.facade-profile-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Типы стекла - карусель */
.glass-types-section {
    padding: 6rem 0;
    background: var(--bg-section);
    margin: 0 0 5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.glass-types-title {
    font-weight: 700;
}

.glass-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-carousel {
    overflow: hidden;
    margin: 0 3rem;
    position: relative;
}

.glass-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    will-change: transform;
}

.glass-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.glass-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.glass-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glass-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    border: none;
    border-radius: 0;
    min-height: auto;
    padding: 0;
}

.glass-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.material-card:hover,
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.material-image,
.profile-image {
    height: 200px;
    overflow: hidden;
}

.material-image .image-placeholder,
.profile-image .image-placeholder {
    height: 100%;
    min-height: auto;
    border: none;
    border-radius: 0;
}

.material-card h3,
.profile-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.material-card p,
.profile-card p {
    padding: 0 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.material-specs {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
}

.material-specs li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.color-item {
    text-align: center;
}

.color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
}

.color-item h4 {
    margin-bottom: 0.5rem;
}

.color-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.option-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.option-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.option-card ul {
    list-style: none;
}

.option-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.option-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Портфолио */
.portfolio-filters {
    padding: 3rem 0 2rem;
    background: var(--bg-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-gallery {
    padding: 4rem 0;
}

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

.gallery-item {
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    display: flex;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: auto;
    border: none;
    border-radius: 0;
    object-fit: cover;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.gallery-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.gallery-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.modal-image-info {
    margin-top: 1rem;
    text-align: center;
}

/* B2B */
.b2b-motto {
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.b2b-motto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="motto-grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23motto-grid)"/></svg>');
    opacity: 0.3;
}

.motto-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.motto-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.b2b-intro {
    padding: 4rem 0;
    background: var(--bg-white);
}

.b2b-goals {
    padding: 4rem 0;
    background: var(--bg-light);
}

.b2b-content-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.goals-card {
    background: var(--bg-white);
}

.b2b-text-content {
    max-width: 100%;
}

.b2b-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.b2b-intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.partner-item {
    background: var(--bg-light);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.partner-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.goals-offer {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.goals-offer h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.offer-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.offer-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.offer-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.offer-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.offer-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.why-choose-us {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: 0.75rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.why-choose-us h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.why-choose-us p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.b2b-form-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.b2b-advantages {
    padding: 4rem 0;
}

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

.b2b-advantage-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.b2b-advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.b2b-advantage-card .advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.b2b-conditions {
    padding: 4rem 0;
}

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

.condition-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.condition-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.condition-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.condition-card p {
    color: var(--text-light);
}

.b2b-target {
    padding: 4rem 0;
}

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

.target-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.target-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.target-item h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.target-item p {
    color: var(--text-light);
}

.b2b-form-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.b2b-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}


.form-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.form-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-benefits {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.form-benefits h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.form-benefits ul {
    list-style: none;
}

.form-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.form-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.b2b-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.b2b-contacts {
    padding: 4rem 0;
}

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

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Анимации появления секций */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

.advantage-card,
.portfolio-item-preview,
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.advantage-card:nth-child(1) { animation-delay: 0.1s; }
.advantage-card:nth-child(2) { animation-delay: 0.2s; }
.advantage-card:nth-child(3) { animation-delay: 0.3s; }
.advantage-card:nth-child(4) { animation-delay: 0.4s; }
.advantage-card:nth-child(5) { animation-delay: 0.5s; }
.advantage-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 768px) {
    .advantages-title {
        font-size: 2rem;
    }

    .advantages-subtitle {
        font-size: 1.1rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantage-card {
        padding: 2rem;
    }

    .advantage-number {
        font-size: 2.5rem;
    }

    .advantage-card h3 {
        font-size: 1.25rem;
    }

    .facade-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .facade-profile-image {
        height: 200px;
    }

    .glass-carousel {
        margin: 0 2.5rem;
    }

    .glass-carousel-track {
        gap: 1rem;
    }

    .glass-card {
        min-width: calc(50% - 0.5rem);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    .portfolio-grid-preview {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .b2b-content,
    .b2b-content-card {
        padding: 2rem 1.5rem;
    }

    .calculator-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .b2b-text-content h2 {
        font-size: 2rem;
    }

    .b2b-intro-text {
        font-size: 1rem;
    }

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

    .offer-item {
        flex-direction: column;
        text-align: center;
    }

    .offer-icon {
        margin: 0 auto;
    }

    .why-choose-us {
        padding: 2rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .b2b-header {
        padding: 3rem 0;
    }

    .b2b-motto {
        padding: 1.5rem 0;
    }

    .motto-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .header-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

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

    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-form {
        order: 1;
    }

    .calculator-preview-result {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .facade-preview {
        order: 1;
    }

    .calculator-result {
        position: static;
        order: 2;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .b2b-advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }


    .facade-frame {
        width: 250px;
        height: 333px;
    }

    .preview-wrapper {
        padding: 30px 40px;
    }

    .axis-label {
        font-size: 0.75rem;
    }

    .axis-label-left {
        left: -10px;
    }

    .axis-arrow-horizontal {
        top: 15px;
        left: 40px;
        right: 40px;
    }

    .axis-arrow-vertical {
        left: 15px;
        top: 40px;
        bottom: 40px;
    }

    .order-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-item-price {
        text-align: left;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    /* Оптимизация форм для мобильных */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 0.875rem 1rem;
        min-height: 44px; /* Минимальный размер для touch */
    }

    /* Специальные стили для select на мобильных */
    .form-group select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 2.5rem;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .form-group select:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-group select:active {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* Улучшение кнопок для touch */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation; /* Убирает задержку на touch */
    }

    /* Оптимизация hero для мобильных */
    .hero {
        padding: 3rem 0;
    }

    .hero-image {
        margin-top: 1.5rem;
    }

    /* Улучшение навигации */
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Оптимизация карточек */
    .advantage-card,
    .facade-profile-card {
        padding: 1.5rem;
    }

    /* Улучшение модальных окон */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Оптимизация калькулятора */
    .calculator-form {
        padding: 1.5rem;
    }

    .calculator-result {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Уменьшение цветовых кружков на мобильных */
    .color-selector {
        gap: 1.2rem; /* Уменьшен с 1.5rem */
        flex-wrap: wrap;
        justify-content: center;
    }

    .color-swatch {
        width: 22px; /* Оптимальный размер для мобильных */
        height: 22px; /* Оптимальный размер для мобильных */
        border-width: 2px;
    }

    .color-label {
        font-size: 0.75rem; /* Немного уменьшен с 0.8rem */
    }

    .color-option {
        gap: 0.35rem;
    }

    .color-option input[type="radio"]:checked + .color-swatch {
        transform: scale(1.12);
    }

    /* Улучшение галереи */
    .glass-card {
        min-width: calc(100% - 1rem);
    }

    /* Оптимизация отступов */
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* Медиа-запрос для очень маленьких экранов (320-480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .advantage-card h3 {
        font-size: 1.1rem;
    }

    .advantage-card p {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .b2b-text-content h2 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 2rem 0;
    }

    .hero {
        padding: 2rem 0;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-link {
        min-width: 100%;
    }

    /* Улучшение калькулятора для маленьких экранов */
    .facade-frame {
        width: 200px;
        height: 267px;
    }

    .preview-wrapper {
        padding: 20px 30px;
    }

    .axis-label {
        font-size: 0.7rem;
    }

    .order-item {
        padding: 1rem;
    }

    .order-item-details {
        font-size: 0.9rem;
    }

    /* Дополнительное уменьшение цветовых кружков на очень маленьких экранах */
    .color-selector {
        gap: 1rem;
    }

    .color-swatch {
        width: 20px;
        height: 20px;
    }

    .color-label {
        font-size: 0.7rem;
    }

    /* Оптимизация модальных окон */
    .modal-content {
        margin: 0.5rem;
        padding: 1.25rem;
        max-height: calc(100vh - 1rem);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    /* Улучшение карточек профилей */
    .facade-profile-image {
        height: 180px;
    }

    /* Оптимизация карусели */
    .glass-carousel {
        margin: 0 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: -5px;
    }

    .carousel-next {
        right: -5px;
    }
}

/* Медиа-запрос для landscape ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-wrapper {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-image {
        aspect-ratio: 16 / 9;
    }
}

/* Оптимизация для планшетов (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-wrapper {
        gap: 3rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facade-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .glass-card {
        min-width: calc(33.333% - 1rem);
    }
}

/* Улучшение производительности на мобильных */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent; /* Убирает подсветку при клике на мобильных */
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Оптимизация анимаций для мобильных */
    @media (prefers-reduced-motion: no-preference) {
        .hero-scroll-indicator {
            animation: bounce 2s infinite;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

