* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #191919;
}

/*  ШАПКА САЙТА  */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
        background: #fde101;
    border-bottom: 1px solid #e5e2dc;
}

.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
}

.header__brand {
    display: inline-flex;
    align-items: center;
}

.img__logo {
    display: block;
    width: 220px;
    max-width: 42vw;
    height: auto;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.menu__item {
    position: relative;
}

.menu__title {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 4px;
    color: #252122;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.menu__title:hover {
    background: #f4f1ea;
}

.menu__submenu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 270px;
    padding: 8px;
    border: 1px solid #e5e2dc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(37, 33, 34, 0.16);
    list-style: none;
}

.menu__item--has-submenu:hover .menu__submenu,
.menu__item--has-submenu:focus-within .menu__submenu {
    display: block;
}

.menu__submenu a {
    display: block;
    padding: 11px 12px;
    border-radius: 4px;
    color: #252122;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.menu__submenu a:hover,
.menu__submenu a:focus {
    background: #f4f1ea;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__phone {
    color: #252122;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 4px;
    background: #1c8f16;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

/* О НАС */

.aboutus {
    display: flex;
    justify-content: center;
}

/* КАТАЛОГ ТОВАРА */

.product__catalog {
    display: flex;
    justify-content: center;
    padding: 42px 20px 12px;
}

.title__catalog {
    max-width: 1180px;
    color: #111;
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px 18px;
    box-sizing: border-box;
}

.category-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 118px;
    padding: 22px;
    border: 1px solid #e5e2dc;
    border-radius: 8px;
    background: #fff;
    color: #252122;
    box-shadow: 0 10px 24px rgba(37, 33, 34, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    border-color: #d1c8b8;
    box-shadow: 0 16px 34px rgba(37, 33, 34, 0.14);
}

.category-link__title {
    color: #111;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.category-link__text {
    color: #5f6368;
    font-size: 16px;
    line-height: 1.45;
}

.content {
    display: flex;
    justify-content: space-around;
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    box-sizing: border-box;
}

.card-tovar,
.wrapper {
    height: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e5e2dc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(37, 33, 34, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d1c8b8;
    box-shadow: 0 16px 34px rgba(37, 33, 34, 0.14);
}

.card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 0px;
    background: #fff;
    box-sizing: border-box;
}

.card-title {
    margin: 16px 16px 0;
    min-height: 58px;
    font-size: 17px;
    line-height: 1.28;
    font-weight: 900;
    color: #111;
}

.card-sku {
    margin: 10px 16px 0;
    color: #6d6a64;
    font-size: 13px;
    line-height: 1.35;
}

.card-price {
    margin: auto 16px 0;
    padding-top: 16px;
    color: #111;
    font-size: 22px;
    font-weight: 900;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 16px;
    border-radius: 4px;
    background: #252122;
    color: #fff;
    font-weight: 700;
}

.card-link:hover {
    background: #3a3436;
}

.catalog-seo {
    max-width: 1140px;
    margin: 0 auto 56px;
    padding: 0 20px;
}
.catalog-seo ul {
	    padding: 0px 20px 20px 40px;
}
.catalog-seo li {

    padding-bottom: 5px;
	}

.catalog-seo h2 {
    margin-bottom: 16px;
    color: #111;
    font-size: 28px;
    line-height: 1.2;
}

.catalog-seo p {
    margin-bottom: 14px;
    color: #252122;
    font-size: 18px;
    line-height: 1.65;
}

.tovar__box {
    display: flex;
    justify-content: space-around;
    padding-top: 3rem;
}

.img__tovar {
    width: 350px;
}

.tovar__title {
    display: flex;
    justify-content: center;
}
.box {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.img-tovar {
    width: 550px;
}

/* SEO-шаблон сторінки товару */

.product-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.category-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.category-hero {
    max-width: 860px;
    margin-bottom: 10px;
}

.category-title {
    margin-bottom: 14px;
    color: #111;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
}

.category-intro {
    color: #252122;
    font-size: 18px;
    line-height: 1.6;
}

.category-page .catalog-grid {
    padding-right: 0;
    padding-left: 0;
}

.category-seo {
    padding-right: 0;
    padding-left: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #5f6368;
    font-size: 15px;
}

.breadcrumbs a {
    color: #252122;
    text-decoration: underline;
}

.contacts-breadcrumbs {
    max-width: 1180px;
    margin: 32px auto 12px;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
    gap: 40px;
    align-items: start;
}

.product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    align-items: start;
}

.product-gallery-main,
.product-gallery-thumb {
    display: block;
    width: 100%;
    cursor: zoom-in;
    background: transparent;
    border: 0;
    padding: 0;
}

.product-gallery-thumbs {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 2px;
}

.product-gallery-thumb {
    aspect-ratio: 1 / 1;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image {
    display: block;
    width: 100%;
    max-height: 620px;
    height: auto;
    border: 1px solid #d7d7d7;
    background: #fff;
    padding: 16px;
    object-fit: contain;
    box-sizing: border-box;
}

.product-image:first-child {
    grid-column: auto;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px dashed #b8b8b8;
    background: #f6f6f6;
    color: #5f6368;
    font-size: 18px;
    font-weight: 700;
}

.product-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-code {
    color: #5f6368;
    font-size: 16px;
    font-weight: 700;
}

.product-title {
    color: #111;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 900;
}

.product-intro {
    color: #252122;
    font-size: 18px;
    line-height: 1.55;
}

.product-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.product-price {
    width: 100%;
    color: #111;
    font-size: 30px;
    font-weight: 900;
}

.product-description-list {
	padding:20px;
}

.product-documents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.product-section-subtitle {
    margin: 16px 0 8px;
    color: #111;
    font-size: 19px;
    line-height: 1.25;
}

.product-document-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    background: #252122;
    color: #fff;
    font-weight: 700;
}

.product-document-link:hover {
    background: #3a3436;
}

.product-call,
.product-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.product-call {
    background: #252122;
}

.product-message {
    background: #1c8f16;
}

.product-details {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
    gap: 40px;
    margin-top: 44px;
}

.product-section h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.product-section p {
    margin-bottom: 12px;
    color: #252122;
    font-size: 17px;
    line-height: 1.55;
}

.product-specs {
    border-top: 1px solid #d7d7d7;
}

.product-specs div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #d7d7d7;
}

.product-specs dt {
    color: #5f6368;
    font-weight: 700;
}

.product-specs dd {
    color: #111;
}

body.gallery-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal--open {
    display: flex;
}

.gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.gallery-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1180px, 100%);
    height: min(760px, 100%);
}

.gallery-modal__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
}

.gallery-modal__close,
.gallery-modal__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-weight: 900;
}

.gallery-modal__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 30px;
}

.gallery-modal__nav {
    top: 50%;
    width: 48px;
    height: 64px;
    transform: translateY(-50%);
    font-size: 44px;
}

.gallery-modal__nav--prev {
    left: 12px;
}

.gallery-modal__nav--next {
    right: 12px;
}

.gallery-modal__count {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-weight: 700;
}

/*ФУТЕР*/

.footer {
    background-color: #252122;
    color: #fff;
}

.footer__container {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) 1fr 1fr 1fr;
    gap: 36px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer__brand,
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__logo {
    width: 210px;
    max-width: 100%;
    height: auto;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}

.footer__brand p {
    max-width: 420px;
    color: #d8d5d0;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

.footer__col h3 {
    font-size: 18px;
}

.footer__col a,
.footer__col span {
    color: #d8d5d0;
    line-height: 1.45;
}

.footer__col a:hover {
    color: #fff;
}

.social__media {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.img__media {
    display: block;
    width: 34px;
    height: 34px;
}

/*  Контакты  */

hr{
    width: 90%;
    border: 2px solid #252122;
    border-radius: 100%;
}

.messenger__box,
.contacts__box,
.mail__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.messenger{
    display: flex;
    justify-content: center;
    align-items: center;
}

.messengers {
    padding-top: 1rem;
}

.messenger > a{
    display: block;
    width: 190px;
    font-size: 22px;
    text-decoration: none;
    color: white;
    background-color: #1caa00;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.8);
    box-shadow: 0 0 5px black;
    font-family: "Cuprum", sans-serif;
    margin-left: 5px;
}

.link__social__media {
    padding: 0.5rem;
}

.number__link,
.mail__link {
    color: black;
    font-family: "Cuprum", sans-serif;
}

.number__contacts__box,
.mail__contacts__box {
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .header__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .header__actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .category-links {
        grid-template-columns: 1fr;
    }

    .product-hero,
    .product-details {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .product-gallery-thumbs {
        display: flex;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 4px;
    }

    .product-gallery-thumb {
        flex: 0 0 82px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-intro,
    .product-section p {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .header__inner {
        padding: 12px 14px;
    }

    .img__logo {
        width: 190px;
        max-width: 82vw;
    }

    .menu {
        width: 100%;
        justify-content: center;
        gap: 4px;
    }

    .menu__submenu {
        left: 50%;
        min-width: min(280px, 92vw);
        transform: translateX(-50%);
    }

    .menu__title {
        min-height: 36px;
        padding: 0 9px;
        font-size: 14px;
    }

    .header__phone,
    .header__cta {
        width: 100%;
        justify-content: center;
    }

    .content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .title__catalog {
        font-size: 26px;
    }

    .category-links {
        gap: 12px;
        padding: 8px 14px 12px;
    }

    .category-link {
        min-height: auto;
        padding: 18px;
    }

    .category-link__title {
        font-size: 20px;
    }

    .category-link__text {
        font-size: 15px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 14px 36px;
    }

    .card {
        border-radius: 6px;
    }

    .card-title {
        min-height: auto;
    }

    .catalog-seo {
        margin-bottom: 40px;
        padding: 0 14px;
    }

    .catalog-seo h2 {
        font-size: 23px;
    }

    .catalog-seo p {
        font-size: 16px;
    }

    .product-page {
        padding: 24px 14px 36px;
    }

    .category-page {
        padding: 24px 14px 36px;
    }

    .category-title {
        font-size: 26px;
    }

    .category-intro {
        font-size: 16px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 26px;
    }

    .product-call,
    .product-message {
        width: 100%;
    }

    .product-image {
        max-height: 420px;
        padding: 10px;
    }

    .gallery-modal {
        padding: 12px;
    }

    .gallery-modal__close {
        top: 8px;
        right: 8px;
    }

    .gallery-modal__nav {
        width: 40px;
        height: 56px;
        font-size: 36px;
    }

    .product-specs div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
