:root {
    --red: #d60b0b;
    --red-dark: #b00808;
    --ink: #141414;
    --muted: #6f6f6f;
    --line: #e6e6e6;
    --paper: #f5f5f5;
    --head: "Oswald", Arial, sans-serif;
    --body: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { font-family: var(--head); font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* recovery notice */
.enix-recovery-notice {
    position: relative;
    z-index: 20;
    background: #171717;
    border-bottom: 3px solid var(--red);
    color: #fff;
}
.enix-recovery-notice .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 50px;
    padding: 8px 0;
}
.enix-recovery-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 13px; }
.enix-recovery-text strong { color: #fff; font: 500 13px var(--head); letter-spacing: .02em; text-transform: uppercase; }
.enix-recovery-text span { color: #c9c9c9; }
.enix-recovery-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.enix-recovery-actions a { color: #fff; font: 500 14px var(--head); text-decoration: none; }
.enix-recovery-actions a:hover { color: #ff8b8b; }
.enix-recovery-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.enix-recovery-close:hover { border-color: var(--red); background: var(--red); }

/* top */
.enix-topbar {
    background: #111;
    color: #bdbdbd;
    font-size: 12px;
}
.enix-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 38px;
}
.enix-topbar a { color: #fff; text-decoration: none; }
.enix-topbar a:hover { color: #fff; text-decoration: underline; }
.enix-topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.enix-topbar-right { display: flex; gap: 18px; align-items: center; }
.enix-topbar .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ac569; }

/* header */
.enix-header { background: #fff; border-bottom: 1px solid var(--line); }
.enix-header-main {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 230px;
    align-items: center;
    gap: 26px;
    padding: 18px 0;
}
.enix-logo { display: inline-flex; align-items: center; }
.enix-logo img { width: 190px; display: block; }
.enix-search { display: flex; border: 2px solid var(--red); height: 46px; }
.enix-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    font: 14px var(--body);
    outline: none;
}
.enix-search button {
    width: 56px;
    border: 0;
    background: var(--red);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.enix-search button:hover { background: var(--red-dark); }
.enix-header-phone { text-align: right; line-height: 1.25; }
.enix-header-phone a {
    display: block;
    color: var(--ink);
    font: 600 1.25rem var(--head);
    text-decoration: none;
    white-space: nowrap;
}
.enix-header-phone span { color: var(--muted); font-size: 11px; }

/* nav */
.enix-nav { border-top: 1px solid var(--line); background: #fff; }
.enix-nav .container { display: flex; align-items: stretch; gap: 22px; }
.enix-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--red);
    color: #fff !important;
    font: 500 14px var(--head);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.enix-catalog-btn:hover { background: var(--red-dark); }
.enix-catalog-btn .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.enix-catalog-btn .bars i { display: block; width: 16px; height: 2px; background: #fff; }
.enix-menu { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.enix-menu a {
    display: block;
    padding: 13px 12px;
    font: 400 13px var(--head);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
}
.enix-menu a:hover { color: var(--red); }
.enix-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 12px; }
.enix-nav-actions a { text-decoration: none; white-space: nowrap; }
.enix-mobile-toggle { display: none; border: 0; background: transparent; font-size: 26px; cursor: pointer; }

/* hero */
.enix-hero {
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
}
.enix-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.91) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.25) 100%), url("assets/hero.jpg") center / cover no-repeat;
}
.enix-hero-inner { position: relative; z-index: 1; padding: 70px 0 64px; max-width: 720px; }
.enix-hero .kicker { color: #ff8b8b; font: 500 12px var(--head); letter-spacing: .16em; text-transform: uppercase; }
.enix-hero h1 { margin: 12px 0 14px; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.enix-hero p { max-width: 620px; margin: 0 0 26px; color: #d7d7d7; font-size: 16px; }
.enix-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 13px 24px;
    border: 2px solid var(--red);
    background: var(--red);
    color: #fff !important;
    font: 500 13px var(--head);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #111 !important; }

/* advantages */
.enix-advantages { background: var(--paper); padding: 26px 0; }
.enix-advantages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.enix-advantage { padding: 15px 18px; border-left: 3px solid var(--red); background: #fff; }
.enix-advantage strong { display: block; font: 500 15px var(--head); }
.enix-advantage span { color: var(--muted); font-size: 12px; }

/* sections */
.enix-section { padding: 46px 0; }
.enix-section--gray { background: var(--paper); }
.enix-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.enix-section-head h2 { margin: 0; font-size: 1.8rem; }
.enix-section-head a { color: var(--red); font-size: 13px; text-decoration: none; white-space: nowrap; }
.enix-section-head a:hover { text-decoration: underline; }

/* categories */
.enix-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.enix-cat-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 10px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.enix-cat-card:hover { border-color: var(--red); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.enix-cat-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    color: var(--red);
    font: 600 22px var(--head);
}
.enix-cat-card strong { font: 500 13px var(--head); line-height: 1.25; }
.enix-cat-card span { color: var(--muted); font-size: 11px; }

/* products */
.enix-products .products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; }
.enix-products .product,
.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: left;
    overflow: hidden;
    transition: box-shadow .15s;
}
.enix-products .product:hover,
.woocommerce ul.products li.product:hover { box-shadow: 0 8px 26px rgba(0,0,0,.08); }
.woocommerce ul.products li.product a img { margin: 0 !important; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 14px 6px !important;
    font: 500 14px var(--head) !important;
    line-height: 1.3;
}
.woocommerce ul.products li.product .price {
    margin: auto 14px 0 !important;
    padding: 0 0 10px;
    color: var(--ink) !important;
    font: 600 18px var(--head) !important;
}
.woocommerce ul.products li.product .price del { color: #999; font-size: .8em; }
.woocommerce ul.products li.product .button {
    margin: 0 14px !important;
    padding: 9px 12px !important;
    border: 1px solid var(--red);
    background: #fff !important;
    color: var(--red) !important;
    font: 500 11px var(--head) !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0 !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--red) !important; color: #fff !important; }
.woocommerce ul.products li.product .onsale {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    min-height: 0 !important;
    padding: 4px 8px !important;
    border-radius: 0 !important;
    background: var(--red) !important;
    color: #fff !important;
    font: 500 10px var(--head) !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}
.woocommerce ul.products li.product .star-rating { margin: 0 14px 8px !important; }

/* category page */
.enix-cat-head { padding: 30px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.enix-breadcrumb { margin-bottom: 14px !important; color: var(--muted) !important; font-size: 12px !important; }
.enix-breadcrumb a { color: var(--muted) !important; text-decoration: none; }
.enix-cat-head h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.enix-cat-head .cat-count { color: var(--muted); font-size: 13px; }
.enix-cat-head .term-description { max-width: 900px; margin-top: 14px; color: #444; }
.enix-subcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.enix-subcats a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font: 500 13px var(--head);
    text-decoration: none;
}
.enix-subcats a:hover { border-color: var(--red); color: var(--red); }
.woocommerce-products-header { display: none; }
.woocommerce-result-count { color: var(--muted); font-size: 12px; }
.woocommerce-ordering select { padding: 7px 10px; border: 1px solid var(--line); background: #fff; }
.enix-cat-layout { padding-bottom: 48px; }

/* single product */
.single-product .product { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin: 28px 0 44px; }
.single-product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.single-product .summary { width: 100% !important; float: none !important; }
.single-product .woocommerce-product-gallery__wrapper { border: 1px solid var(--line); }
.single-product .product_title { font-size: 2rem; margin-top: 0; }
.single-product .price { color: var(--red); font: 600 2rem var(--head); }
.single-product .single_add_to_cart_button { border-radius: 0; background: var(--red); font-family: var(--head); text-transform: uppercase; }
.single-product .woocommerce-tabs { clear: both; }
.single-product .related.products { margin-top: 36px; }

/* content */
.enix-page { padding: 28px 0 54px; }
.enix-page h1 { margin-top: 0; }
.enix-page .entry-content h2 { margin-top: 30px; }
.enix-page .entry-content table { width: 100%; border-collapse: collapse; }
.enix-page .entry-content th,
.enix-page .entry-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.enix-page .entry-content th { background: var(--paper); }
.enix-article { max-width: 900px; }
.enix-article h2 { margin-top: 30px; }
.enix-article table { width: 100%; border-collapse: collapse; }
.enix-article th, .enix-article td { padding: 8px 10px; border: 1px solid var(--line); }
.enix-article th { background: #111; color: #fff; }

/* contacts */
.enix-contact-hero { padding: 28px 30px; margin-bottom: 24px; background: #111; color: #fff; border-left: 6px solid var(--red); }
.enix-contact-hero .kicker { color: #ff8b8b; font: 500 12px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.enix-contact-hero p { color: #ccc; margin-bottom: 0; }
.enix-contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.enix-contact-chips a, .enix-contact-chips span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 12px; text-decoration: none; }
.enix-contact-chips a:hover { background: var(--red); border-color: var(--red); }
.enix-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.enix-office { padding: 20px; border: 1px solid var(--line); background: #fff; }
.enix-office h2 { margin: 0 0 10px; font-size: 1.25rem; }
.enix-office p { margin: 0 0 8px; }
.enix-muted { color: var(--muted); font-size: 12px; }
.enix-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.enix-feature { padding: 15px; border-top: 3px solid var(--red); background: var(--paper); }
.enix-feature strong { display: block; font: 500 15px var(--head); }
.enix-feature span { color: var(--muted); font-size: 12px; }
.enix-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.enix-list { margin: 0; padding: 0; list-style: none; }
.enix-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #eee; }
.enix-requisites { padding: 18px; background: var(--paper); font-size: 13px; }
.enix-requisites p { margin: 0 0 10px; }
.enix-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.enix-map { display: block; width: 100%; height: 300px; border: 0; background: var(--paper); }
.enix-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.enix-info-card { padding: 20px; border: 1px solid var(--line); background: #fff; }
.enix-info-card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.enix-info-card .enix-list li:last-child { border-bottom: 0; }

/* footer */
.enix-footer { background: #111; color: #bdbdbd; margin-top: 20px; }
.enix-footer a { color: #d6d6d6; text-decoration: none; }
.enix-footer a:hover { color: #fff; }
.enix-footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; gap: 28px; padding: 44px 0 34px; }
.enix-footer h3 { margin: 0 0 14px; color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.enix-footer p { margin: 0 0 8px; font-size: 13px; }
.enix-footer .enix-logo img { width: 170px; margin-bottom: 16px; }
.enix-footer-links, .enix-footer-cats { margin: 0; padding: 0; list-style: none; }
.enix-footer-links li, .enix-footer-cats li { margin-bottom: 7px; font-size: 13px; }
.enix-footer-bottom { border-top: 1px solid #2a2a2a; padding: 16px 0; color: #777; font-size: 11px; }
.enix-footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.enix-clients { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.enix-clients img { width: 74px; height: 38px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.enix-clients img:hover { filter: none; opacity: 1; }

/* woo misc */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--red) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--red) !important; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    border-radius: 0; background: var(--red); color: #fff; font-family: var(--head); text-transform: uppercase;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--red-dark); color: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 5px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 36px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 1100px) {
    .enix-header-main { grid-template-columns: 180px minmax(0, 1fr) 190px; gap: 16px; }
    .enix-logo img { width: 160px; }
    .enix-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .enix-menu a { padding: 12px 8px; font-size: 12px; }
}
@media (max-width: 900px) {
    .enix-topbar-left { display: none; }
    .enix-header-main { grid-template-columns: 1fr auto; }
    .enix-search { grid-column: 1 / -1; grid-row: 2; }
    .enix-header-phone { text-align: right; }
    .enix-nav .container { flex-wrap: wrap; }
    .enix-catalog-btn { padding: 11px 16px; }
    .enix-mobile-toggle { display: block; margin-left: auto; }
    .enix-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 10px; }
    .enix-menu.is-open { display: flex; }
    .enix-menu a { padding: 10px 4px; border-bottom: 1px solid #eee; }
    .enix-nav-actions { display: none; }
    .enix-advantages-grid, .enix-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .enix-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .enix-products .products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .enix-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .enix-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .single-product .product { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .container { width: min(100% - 22px, 1200px); }
    .enix-recovery-notice .container { align-items: flex-start; gap: 8px; padding: 9px 0; }
    .enix-recovery-text { flex-direction: column; gap: 2px; font-size: 11px; }
    .enix-recovery-text strong { font-size: 11px; }
    .enix-recovery-text span { font-size: 10px; }
    .enix-recovery-actions { gap: 8px; }
    .enix-recovery-actions a { font-size: 12px; }
    .enix-topbar-right { width: 100%; justify-content: space-between; }
    .enix-header-main { padding: 14px 0; }
    .enix-logo img { width: 145px; }
    .enix-header-phone a { font-size: 1rem; }
    .enix-hero-inner { padding: 46px 0 40px; }
    .enix-hero p { font-size: 14px; }
    .enix-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .enix-advantages-grid, .enix-feature-grid, .enix-offices, .enix-two-col, .enix-info-grid { grid-template-columns: 1fr; }
    .enix-section { padding: 32px 0; }
    .enix-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .enix-footer-main { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 24px; }
    .enix-products .products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12px !important; padding: 9px 9px 4px !important; }
    .woocommerce ul.products li.product .price { margin: auto 9px 0 !important; font-size: 14px !important; }
    .woocommerce ul.products li.product .button { margin: 0 9px !important; font-size: 10px !important; }
}
