/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TYPOGRAPHY */
h1, .h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.25;
}

h3, .h3 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
}

h5, .h5 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #A02128;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #7a191f;
    transform: translateY(-2px);
}

/* HEADER */
.s-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo-img {
    height: 44px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s;
}

.header__nav a:hover {
    color: #A02128;
}

.header__conts {
    display: flex;
    gap: 24px;
}

.header__cont {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.header__cont svg {
    width: 20px;
    height: 20px;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger figure {
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    position: relative;
}

.burger figure::before,
.burger figure::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    left: 0;
    transition: 0.3s;
}

.burger figure::before { top: -8px; }
.burger figure::after { bottom: -8px; }

/* MOBILE PANEL */
.mob-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    padding: 80px 24px 32px;
    transition: left 0.3s;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mob-panel.open {
    left: 0;
}

.mob-panel .header__nav {
    flex-direction: column;
    gap: 20px;
}

.mob-panel .header__conts {
    flex-direction: column;
    margin-top: 32px;
}

/* HERO SECTION */
.s-home-intro {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px;
    margin-top: 76px;
}

.s-home-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

.s-home-intro__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.home-intro {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 60px;
    color: #fff;
}

.home-intro__logo {
    margin-bottom: 32px;
    height: 60px;
    width: auto;
}

.home-intro__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.home-intro__title strong {
    color: #A02128;
}

/* HOME ABOUT SECTION */
.s-home-about {
    padding: 80px 0;
    position: relative;
}

.s-home-about__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: -1;
}

.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.home-about__left {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.home-about__block {
    background: rgba(255,255,255,0.9);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.title-border {
    border-left: 4px solid #A02128;
    padding-left: 20px;
    margin-bottom: 16px;
}

.title-gradient {
    background: linear-gradient(135deg, #A02128 0%, #c9363f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.home-about-card {
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.home-about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.home-about-card__img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 16px;
}

/* TRIGGERS SECTION */
.s-home-triggers {
    background: #0a0a0a;
    color: #fff;
    padding: 80px 0;
}

.home-triggers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.home-trigger {
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .home-trigger--red,
    .home-trigger--black,
    .home-trigger--white {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }
    
    .home-trigger__title {
        grid-column: span 2;
    }
}

.home-trigger--red {
    background: #A02128;
}

.home-trigger--black {
    background: #1a1a1a;
}

.home-trigger--white {
    background: #fff;
    color: #1a1a1a;
}

.home-trigger__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.home-trigger__title img {
    width: 60px;
    height: 60px;
}

.home-trigger__img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.home-trigger__content {
    column-count: 1;
    font-size: 16px;
    line-height: 1.5;
}

.home-trigger__content p {
    margin-bottom: 16px;
}

.home-trigger .h2 {
    font-size: 32px;
}

/* FACTORY SECTION */
.s-home-factory {
    padding: 80px 0;
}

.home-factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.home-factory__intro {
    grid-column: span 1;
}

.home-factory {
    text-align: center;
}

.home-factory figure {
    font-size: 48px;
    font-weight: 700;
    color: #A02128;
    margin-bottom: 16px;
}

/* LAB SECTION */
.s-home-lab {
    background: #f5f5f5;
    padding: 80px 0;
}

.home-lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.home-lab__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.home-lab__photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.list-round li {
    list-style: none;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.list-round li::before {
    content: '●';
    color: #A02128;
    position: absolute;
    left: 0;
}

/* ORDER SECTION */
.s-order {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 80px 0;
}

.s-order__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.s-order .container {
    position: relative;
    z-index: 1;
}

.order-wrapper {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    padding: 48px;
}

.order {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.order__left {
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 48px;
}

.order__logo {
    margin-bottom: 32px;
    height: 50px;
    width: auto;
}

.order__cont {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 24px;
}

.order__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order__form input,
.order__form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
}

.order__form input::placeholder,
.order__form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.order__form__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.style-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
}

.style-checkbox input {
    width: auto;
}

/* FOOTER */
.s-footer {
    background: #0a0a0a;
    color: #fff;
    padding: 48px 0;
}

.footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a {
    color: #ccc;
    text-decoration: none;
}

.footer__conts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__cont {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ccc;
}

/* ===== СТИЛИ ДЛЯ КАТАЛОГА ===== */

/* Хлебные крошки */
.breadcrumbs {
    padding: 16px 0;
    background: #f5f5f5;
    margin-top: 76px;
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs__list a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs__list a:hover {
    color: #A02128;
}

/* Первая секция каталога */
.s-first-sec {
    padding-top: 120px;
    margin-top: 76px;
}

.section-head__title {
    font-size: 40px;
    margin-bottom: 40px;
}

/* Сетка карточек каталога */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.section-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #1a1a1a;
    display: block;
}

.section-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-item__head {
    padding: 24px 24px 16px;
}

.section-item__title {
    font-size: 24px;
    margin-bottom: 12px;
}

.section-item__descr {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.section-item__stage {
    padding: 0 24px 24px;
}

.section-item__img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.section-item__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.section-item:hover .section-item__img {
    transform: scale(1.02);
}

.section-item__soon-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #A02128;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== АДАПТАЦИЯ ===== */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .home-factory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-about {
        grid-template-columns: 1fr;
    }
    
    .home-triggers {
        grid-template-columns: 1fr;
    }
    
    .footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .header__nav,
    .header__conts {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .home-intro {
        padding-left: 20px;
        text-align: center;
    }
    
    .home-intro__title {
        font-size: 32px;
    }
    
    .home-trigger {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }
    
    .home-trigger__title {
        flex-direction: column;
        text-align: center;
    }
    
    .home-trigger .h2 {
        font-size: 28px;
    }
    
    .home-lab-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .home-lab__photos {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .order-wrapper {
        padding: 24px;
    }
    
    .order {
        grid-template-columns: 1fr;
    }
    
    .order__left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    .order__form__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__conts {
        align-items: center;
    }
    
    .home-factory-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .home-factory__intro {
        text-align: center;
    }
    
    .home-about-cards {
        grid-template-columns: 1fr;
    }
    
    .s-home-about,
    .s-home-triggers,
    .s-home-factory,
    .s-home-lab,
    .s-order,
    .s-footer {
        padding: 40px 0;
    }
    
    /* Адаптация каталога */
    .section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-item__head {
        padding: 20px;
    }
    
    .section-item__title {
        font-size: 20px;
    }
    
    .section-head__title {
        font-size: 28px;
        padding-left: 16px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .home-intro__title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .h2, .h1 {
        font-size: 24px;
    }
    
    .home-trigger .h2 {
        font-size: 24px;
    }
    
    .container,
    .container-wide {
        padding: 0 16px;
    }
    
    .order-wrapper {
        padding: 16px;
    }
    
    .order__form input,
    .order__form textarea {
        padding: 10px 12px;
    }
    
    .home-factory figure {
        font-size: 36px;
    }
    
    /* Каталог */
    .section-grid {
        gap: 16px;
    }
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.s-product-detail {
    padding: 120px 0 60px;
    margin-top: 76px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail__image {
    position: sticky;
    top: 100px;
}

.product-detail__image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-detail__title {
    font-size: 36px;
    margin-bottom: 8px;
}

.product-detail__title b {
    color: #A02128;
}

.product-detail__code {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-detail__descr {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.product-detail__descr p {
    margin-bottom: 12px;
}

.product-detail__chars {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.product-detail__chars h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid #A02128;
}

.chars-table {
    width: 100%;
    border-collapse: collapse;
}

.chars-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e9e9e9;
}

.chars-table td:first-child {
    font-weight: 600;
    width: 45%;
    color: #1a1a1a;
}

.chars-table td:last-child {
    color: #555;
}

.product-detail__price {
    font-size: 24px;
    font-weight: 700;
    color: #A02128;
}

/* Примечания в характеристиках */
.product-detail__chars .chars-note {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9e9e9;
}

@media (max-width: 768px) {
    .s-product-detail {
        padding: 100px 0 40px;
    }
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-detail__image {
        position: static;
    }
    .product-detail__title {
        font-size: 28px;
    }
    .chars-table td:first-child {
        width: 50%;
    }
}