/* ==========================================================================
   STYLE.CSS: ДИЗАЙН-СИСТЕМА БРУТАЛИЗМ & БАУХАУС ДЛЯ «ПРЕССПЛАСТ»
   ========================================================================== */

/* 1. ПЕРЕМЕННЫЕ И ШРИФТЫ */
:root {
    --bg-concrete: #dfdfdf;      /* цвет сырого бетона */
    --bg-light: #f5f5f5;         /* светло-серый для контраста */
    --bg-white: #ffffff;
    --text-color: #000000;
    --text-secondary: #555555;
    
    --accent-orange: #ff5500;    /* сигнальный оранжевый */
    --accent-orange-hover: #ff3300;
    
    --border-width: 2px;
    --border-color: #000000;
    --border-solid: var(--border-width) solid var(--border-color);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --shadow-flat: 4px 4px 0px 0px #000000;
    --shadow-flat-large: 8px 8px 0px 0px #000000;
    --shadow-flat-accent: 4px 4px 0px 0px var(--accent-orange);
}

/* 2. СБРОС СТИЛЕЙ И БАЗА */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-concrete);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    padding-bottom: 0;
}

/* Фоновая координатная сетка */
.coordinate-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Ссылки */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Вспомогательные элементы */
.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: var(--border-solid);
    border-radius: 0;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
}

.btn-accent {
    background-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: var(--shadow-flat);
}

.btn-accent:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000000;
}

.btn-accent:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: var(--shadow-flat);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000000;
}

.btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.2rem 2.2rem;
    border-width: 3px;
    box-shadow: var(--shadow-flat);
}

.btn-large:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px 0px #000000;
}

/* 3. HEADER (ШАПКА) */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-white);
    display: grid;
    grid-template-columns: auto 1fr auto;
    border-bottom: 3px solid var(--border-color);
    height: 70px;
    align-items: center;
}

.header-logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-right: var(--border-solid);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--accent-orange);
    color: #ffffff;
    padding: 0.1rem 0.4rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.header-nav {
    display: flex;
    height: 100%;
}

.nav-link {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-right: var(--border-solid);
    transition: background-color 0.1s ease;
}

.nav-link:hover {
    background-color: var(--bg-concrete);
    color: var(--accent-orange);
}

.header-contact {
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 1rem;
}

.phone-link {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 1.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-header {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0px 0px #000000;
}

.btn-header:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px 0px #000000;
}

/* 4. HERO SECTION */
.hero-section {
    border-bottom: 3px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-info-cell {
    padding: 4rem 3rem;
    background-color: var(--bg-light);
    border-right: 3px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-metadata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--border-solid);
    padding-top: 1.5rem;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.meta-val {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Правая ячейка Hero (Изображение ТПА) */
.hero-visual-cell {
    display: flex;
    flex-direction: column;
    background-color: #000000;
}

.image-wrapper {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    min-height: 400px;
    border-bottom: var(--border-solid);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) brightness(0.9);
    display: block;
    transition: filter 0.3s ease;
}

.image-wrapper:hover .hero-img {
    filter: grayscale(0) contrast(1) brightness(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Сверхнасыщенная сетка над фото */
    background: 
        linear-gradient(to right, rgba(255,85,0,0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,85,0,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 0;
}

.visual-decor {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #ffffff;
    background-color: #000000;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ffffff;
}

.decor-status {
    color: var(--accent-orange);
    font-weight: 700;
}

.tech-spec-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-white);
    height: 70px;
}

.spec-bar-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
}

.spec-bar-item:first-child {
    border-right: var(--border-solid);
}

.spec-lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.spec-val {
    font-weight: 700;
    font-size: 1.1rem;
}

/* 5. ОБЩИЕ СТИЛИ СЕКЦИЙ */
.section {
    padding: 5rem 3rem;
    border-bottom: 3px solid var(--border-color);
}

.section-header {
    margin-bottom: 3.5rem;
    border-bottom: var(--border-solid);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
}

.title-num {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    margin-right: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 6. ADVANTAGES SECTION */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: var(--border-solid);
    background-color: var(--border-color); /* чтобы зазоры были черными линиями */
    gap: var(--border-width);
}

.advantage-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    position: relative;
    transition: background-color 0.15s ease;
}

.advantage-card:hover {
    background-color: var(--bg-light);
}

.card-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

/* 7. MATERIALS SECTION */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: var(--border-solid);
    background-color: var(--bg-white);
}

.materials-list-cell {
    border-right: var(--border-solid);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.tech-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    border-bottom: var(--border-solid);
    background-color: var(--bg-concrete);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
}

.materials-list {
    flex-grow: 1;
}

.material-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    padding: 1.2rem 1.5rem;
    border-bottom: var(--border-solid);
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.1s ease;
}

.material-item:last-child {
    border-bottom: none;
}

.material-item:hover {
    background-color: var(--bg-light);
}

.material-item.active {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.m-code {
    font-family: var(--font-mono);
}

.m-class {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.material-item.active .m-class {
    color: #f5f5f5;
}

.materials-note {
    padding: 1.5rem;
    border-top: var(--border-solid);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: var(--bg-light);
}

/* Детали материалов */
.materials-detail-cell {
    padding: 3rem;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.detail-header {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.material-details {
    animation: fadeIn 0.2s steps(4);
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    background-color: #000000;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
}

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

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.detail-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table td {
    padding: 0.8rem 0;
}

.detail-table td:first-child {
    font-weight: 700;
    color: var(--text-color);
    width: 180px;
}

.detail-table td:last-child {
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

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

/* 8. PROCESS SECTION */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: var(--border-solid);
    background-color: var(--border-color);
    gap: var(--border-width);
}

.process-step {
    background-color: var(--bg-white);
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.step-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.step-index {
    color: var(--accent-orange);
}

.step-body {
    flex-grow: 1;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    font-family: var(--font-mono);
}

.step-arrow.finish {
    color: var(--accent-orange);
}

.process-step:hover {
    background-color: var(--bg-light);
}

.process-step:hover .step-title {
    color: var(--accent-orange);
}

/* 9. CALCULATOR SECTION */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: var(--border-solid);
    background-color: var(--bg-white);
}

.calc-configurator-cell {
    padding: 3rem;
    border-right: var(--border-solid);
    background-color: var(--bg-light);
}

.cell-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Группы форм */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    border: var(--border-solid);
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: var(--bg-white);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-flat-accent);
}

/* Селект */
select.form-control {
    cursor: pointer;
    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 d='M6 8L2 4h8L6 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.2rem) center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 3rem;
}

/* Текстовые поля */
.text-input {
    background-color: var(--bg-white);
    transition: box-shadow 0.1s ease;
}

.textarea-control {
    min-height: 120px;
    resize: vertical;
}

/* Слайдер тиража */
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-value {
    font-family: var(--font-mono);
    font-weight: 700;
    background-color: #000000;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
}

.slider-control {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #000000;
    outline: none;
    border: none;
    border-radius: 0;
    margin: 1rem 0;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-orange);
    border: 2px solid #000000;
    cursor: pointer;
    border-radius: 0;
}

.slider-control::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-orange);
    border: 2px solid #000000;
    cursor: pointer;
    border-radius: 0;
}

.slider-bounds {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Радиокнопки */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-white);
    border: var(--border-solid);
}

.radio-container:hover input ~ .radio-custom {
    background-color: var(--bg-light);
}

.radio-container input:checked ~ .radio-custom {
    background-color: var(--accent-orange);
}

.radio-container input:checked ~ .radio-custom::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #ffffff;
}

/* Блок результатов калькулятора */
.calc-results-block {
    margin-top: 3rem;
    border-top: 2px dashed var(--border-color);
    padding-top: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.res-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.res-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

#price-total {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.calc-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    line-height: 1.4;
}

/* Форма заказа */
.calc-form-cell {
    padding: 3rem;
    background-color: var(--bg-white);
}

.cta-form {
    display: flex;
    flex-direction: column;
}

/* Загрузка файлов */
.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: var(--border-solid);
    background-color: var(--bg-light);
    height: 50px;
    cursor: pointer;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-btn {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    border-right: var(--border-solid);
}

.file-upload-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.file-name-display {
    padding: 0 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.btn-submit {
    margin-top: 1.5rem;
    border-width: 3px;
}

.form-consent {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.3;
}

/* 10. CONTACTS & MAP SECTION */
.contacts-section {
    padding: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contacts-info-cell {
    padding: 4rem 3rem;
    border-right: 3px solid var(--border-color);
    background-color: var(--bg-light);
}

.contacts-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.c-val {
    font-size: 1.05rem;
    font-weight: 700;
}

.mail-link {
    color: var(--accent-orange);
}

.mail-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.factory-invite {
    border-top: 2px dashed var(--border-color);
    padding-top: 2rem;
}

.invite-header {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
}

.factory-invite p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Карта */
.contacts-map-cell {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-concrete);
}

.map-wrapper {
    flex-grow: 1;
    min-height: 450px;
    position: relative;
    border-bottom: none;
    /* Бруталистический монохромный фильтр для карты */
    filter: grayscale(1) invert(0.9) contrast(1.3) brightness(0.9);
    transition: filter 0.3s ease;
}

.map-wrapper:hover {
    /* При наведении делаем карту слегка цветной */
    filter: grayscale(0.6) invert(0) contrast(1.1) brightness(1);
}

/* 11. FOOTER (ПОДВАЛ) */
.footer {
    background-color: #000000;
    color: #ffffff;
    border-top: 3px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    height: 120px;
    align-items: center;
}

.footer-logo-cell {
    border-right: 1px solid #333333;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #888888;
}

.footer-legal-cell {
    border-right: 1px solid #333333;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: #888888;
    gap: 0.25rem;
}

.footer-barcode-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.barcode {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 2px;
}

.bar {
    background-color: #ffffff;
    height: 100%;
}

.bar-1 { width: 1px; }
.bar-2 { width: 3px; }
.bar-3 { width: 5px; }
.bar-4 { width: 8px; }

.barcode-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #888888;
    margin-top: 0.5rem;
}

/* 12. POPUP SUCCESS MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s steps(4);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-white);
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-flat-large);
    width: 90%;
    max-width: 550px;
    padding: 0;
    border-radius: 0;
    transform: scale(0.95);
    transition: transform 0.15s steps(4);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 3px solid var(--border-color);
    background-color: var(--bg-concrete);
}

.modal-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-orange);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.modal-close-btn:hover {
    color: var(--accent-orange);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.modal-tech-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background-color: var(--bg-light);
    border: var(--border-solid);
    padding: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

#request-id {
    font-weight: 700;
    color: var(--accent-orange);
}

#modal-ok-btn {
    width: 100%;
}


/* ==========================================================================
   13. АДАПТИВНАЯ ВЕРСТКА (RESPONSIVE)
   ========================================================================== */

/* Большие планшеты и ноутбуки */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--border-width);
    }
    .process-step {
        min-height: 320px;
    }
    .process-step:nth-child(4) .step-arrow,
    .process-step:nth-child(5) .step-arrow {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Планшеты (Portrait) */
@media (max-width: 992px) {
    .header {
        grid-template-columns: 1fr auto;
        height: auto;
        padding: 0.5rem 0;
    }
    .header-logo {
        border-right: none;
        padding: 0.5rem 1.5rem;
    }
    .header-nav {
        display: none; /* скрываем меню, превращаем в мобильное или просто убираем для простоты, т.к. лендинг короткий */
    }
    .header-contact {
        padding-right: 1.5rem;
    }
    .phone-link {
        font-size: 1rem;
        margin-right: 1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-info-cell {
        border-right: none;
        border-bottom: 3px solid var(--border-color);
        padding: 3rem 1.5rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .advantage-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    .materials-list-cell {
        border-right: none;
        border-bottom: var(--border-solid);
    }
    .materials-detail-cell {
        padding: 2rem 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    .process-step {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .step-arrow {
        position: static;
        margin-top: 1rem;
        display: inline-block;
        transform: rotate(90deg);
        width: fit-content;
    }
    .step-arrow.finish {
        transform: none;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .calc-configurator-cell {
        border-right: none;
        border-bottom: var(--border-solid);
        padding: 2rem 1.5rem;
    }
    .calc-form-cell {
        padding: 2rem 1.5rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .contacts-info-cell {
        border-right: none;
        border-bottom: 3px solid var(--border-color);
        padding: 3rem 1.5rem;
    }
    .contacts-title {
        font-size: 2.2rem;
    }
    .map-wrapper {
        min-height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        height: auto;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .footer-logo-cell {
        border-right: none;
        padding: 0;
    }
    .footer-legal-cell {
        border-right: none;
        padding: 0;
    }
    .footer-barcode-cell {
        padding: 0;
    }
}

/* Мобильные телефоны */
@media (max-width: 576px) {
    .section {
        padding: 3rem 1rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    
    .header-contact {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
        padding-right: 1rem;
    }
    .phone-link {
        margin-right: 0;
        font-size: 0.9rem;
    }
    .btn-header {
        display: none; /* скрываем кнопку на очень маленьких экранах, чтобы не забивать шапку */
    }
    .header-logo {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-metadata {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-table-header {
        grid-template-columns: 60px 1fr 100px;
        padding: 0.75rem 1rem;
    }
    .material-item {
        grid-template-columns: 60px 1fr 100px;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    .detail-desc {
        font-size: 0.95rem;
    }
    .detail-table td:first-child {
        width: 120px;
    }
    
    .res-value {
        font-size: 1.2rem;
    }
    #price-total {
        font-size: 1.5rem;
    }
}
