@charset "UTF-8";

/* ==========================================================================
   Niacom — дизайн-система карточных страниц (шаблон buton.html)
   Белый фон + красный акцент «лепесток»
   ========================================================================== */

/* ===== Общие стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.75;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Наследование типографики для legacy-тегов <font>
   (цвет намеренно сохраняется — красные предупреждения это контент) */
font {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ===== Шапка ===== */
header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo img {
    height: 55px;
    width: auto;
}
.contacts {
    text-align: right;
    font-size: 15px;
}
.contacts a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 700;
}
.contacts a:hover {
    text-decoration: underline;
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    padding: 15px 0 5px;
    font-size: 0.9rem;
    color: #6d6d6d;
}
.breadcrumbs a {
    color: #d32f2f;
    text-decoration: none;
}

/* ===== Главный блок товара ===== */
.product-main {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 30px;
    margin: 15px 0 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.product-gallery {
    flex: 1 1 40%;
    text-align: center;
}
.product-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.product-info {
    flex: 1 1 55%;
}
.product-info h1 {
    font-size: 2rem;
    color: #1f1f1f;
    margin-bottom: 15px;
}
.product-info h2 {
    font-size: 1.6rem;
    color: #1f1f1f;
    margin-bottom: 15px;
}
.product-info h1 a,
.product-info h2 a {
    color: inherit;
    text-decoration: none;
}
.product-info h1 a:hover,
.product-info h2 a:hover {
    color: #d32f2f;
}
.product-info .price-block {
    background: #fdeeee;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}
.product-info .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d32f2f;
}
.product-info .old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #999999;
    margin-left: 15px;
}
.product-info .btn-order {
    display: inline-block;
    background: #d32f2f;
    color: #fff !important;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.25s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}
.product-info .btn-order:hover {
    background: #a92424;
}
.product-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.product-info ul li {
    margin-bottom: 10px;
    padding-left: 28px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23d32f2f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') left center no-repeat;
    background-size: 20px;
}

/* ===== Секции ===== */
section {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 35px 30px;
    margin: 25px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
section h2 {
    font-size: 1.7rem;
    color: #1f1f1f;
    margin-bottom: 20px;
    border-left: 5px solid #d32f2f;
    padding-left: 15px;
}
section h3 {
    color: #d32f2f;
    margin: 1em 0 0.5em;
}
section p {
    margin-bottom: 1em;
}
section a {
    color: #d32f2f;
    text-decoration: none;
}
section a:hover {
    text-decoration: underline;
}
section img {
    max-width: 100%;
    height: auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-item {
    background: #faf8f6;
    border: 1px solid #ececec;
    padding: 18px 20px;
    border-radius: 10px;
}
.feature-item h3 {
    color: #d32f2f;
    margin-bottom: 5px;
}

/* ===== Таблица ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ececec;
}
.table-label {
    font-weight: 700;
    width: 40%;
    background: #faf8f6;
}

/* ===== Отзывы ===== */
.review {
    background: #faf8f6;
    border: 1px solid #ececec;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.review .author {
    font-weight: 700;
    margin-top: 5px;
}
.review .stars {
    color: #d32f2f;
    font-size: 1.2rem;
}

/* ===== Форма ===== */
.order-form {
    background: #fdeeee;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
}
.order-form input {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    margin: 8px 5px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 1rem;
}
.order-form .btn-submit {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}
.order-form .btn-submit:hover {
    background: #a92424;
}

/* ===== Футер ===== */
footer {
    background: #1f1f1f;
    color: #d8d8d8;
    padding: 30px 0;
    margin-top: 30px;
    border-radius: 12px 12px 0 0;
}
footer a {
    color: #f0a3a3;
    text-decoration: none;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .contacts {
        text-align: center;
        margin-top: 8px;
    }
    .product-main {
        flex-direction: column;
    }
    .product-info h1 {
        font-size: 1.6rem;
    }
    .product-info .price {
        font-size: 1.8rem;
    }
    .btn-order {
        width: 100%;
        text-align: center;
    }
    .order-form input {
        max-width: 100%;
    }
    table td {
        display: block;
        width: 100% !important;
    }
    .table-label {
        background: #ececec;
    }
}
