@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/manrope-0.ttf) format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/manrope-1.ttf) format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/manrope-2.ttf) format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/manrope-3.ttf) format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/manrope-4.ttf) format('truetype');
}

:root {
    --green: #ff0000;
    --dark: #2b2b2b;
    --lime: #ff4d4d;
    --ink: #242424;
    --muted: #737373;
    --line: #e5e5e5;
    --pale: #f5f5f5
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

a {
    color: inherit;
    text-decoration: none
}

button {
    cursor: pointer
}

button,
a {
    transition: background .25s, color .25s, transform .3s, box-shadow .3s
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #d77c14;
    outline-offset: 4px
}

button {
    border: 0
}

p {
    color: var(--muted)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(2.5rem, 4.25vw, 5.1rem);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -.045em;
    margin-bottom: 26px
}

h2 {
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.17;
    letter-spacing: -.04em;
    font-weight: 600;
    margin-bottom: 25px
}

h3 {
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 600
}

em {
    font-style: normal;
    color: var(--lime)
}

.topline {
    padding: 10px 4%;
    display: flex;
    justify-content: space-between;
    background: var(--pale);
    font-size: .75rem;
    color: #707070
}

.topline a {
    margin-left: 35px
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 24px 4%;
    border-bottom: 1px solid var(--line)
}

.logo {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -.075em;
    line-height: 1
}

.logo span {
    color: var(--green)
}

.logo small {
    font-size: .55rem;
    display: block;
    letter-spacing: .13em;
    margin-top: 9px
}

nav {
    display: flex;
    gap: 28px;
    margin: auto;
    font-size: .88rem;
    font-weight: 600
}

nav a:hover,
.text-link:hover {
    color: #ff0000
}

.phone {
    font-size: 1.1rem;
    font-weight: 800
}

.phone small {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    font-weight: 400
}

.menu {
    display: none
}

.hero {
    min-height: 610px;
    height: calc(100vh - 235px);
    max-height: 850px;
    color: white;
    position: relative;
    overflow: hidden;
    background: #303030
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 24, 24, .94), rgba(24, 24, 24, .7) 45%, rgba(24, 24, 24, .1)), url('../img/hero.jpg') center/cover;
    transition: opacity .6s
}

.hero-content {
    position: relative;
    padding: 65px 4% 100px;
    max-width: 1000px;
    transition: opacity .3s, transform .3s
}

.hero-content.changing {
    opacity: 0;
    transform: translateY(12px)
}

.eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    display: block;
    margin-bottom: 24px
}

.hero p {
    color: #e1e1e1;
    font-size: 1rem
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 33px
}

.btn {
    background: var(--green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 17px 24px;
    border-radius: 3px;
    font-size: .88rem;
    font-weight: 600
}

.btn:hover {
    background: #990000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #2b2b2b25
}

.text-link {
    font-size: .88rem;
    font-weight: 600
}

.hero-bottom {
    position: absolute;
    bottom: 27px;
    left: 4%;
    right: 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .7rem;
    letter-spacing: .12em
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 20px
}

.slider-controls button {
    border: 1px solid #ffffff50;
    background: transparent;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px
}

.slider-controls button:hover {
    background: #ffffff25
}

.image-credit {
    position: absolute;
    right: 4%;
    bottom: 5px;
    font-size: .65rem;
    color: #d6d6d6
}

.stats {
    margin: 0 4%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    padding: 32px 0
}

.stats>div {
    padding: 0 30px;
    border-right: 1px solid var(--line)
}

.stats>div:first-child {
    padding-left: 0
}

.stats>div:last-child {
    border: 0
}

.stats strong {
    font-size: 2.4rem;
    line-height: 1.3;
    letter-spacing: -.05em
}

.stats strong span {
    font-size: 1.4rem;
    color: var(--green)
}

.stats p {
    font-size: .8rem;
    margin: 7px 0 0
}

.section {
    padding: 85px 4%
}

.green {
    color: var(--green)
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.category {
    /*padding: 28px;*/
    background: var(--pale);
    min-height: 260px;
    position: relative;
    border: 1px solid transparent
}

.category:hover {
    border-color: var(--green);
    transform: translateY(-6px);
    background: #fff0f0
}

.index {
    color: var(--green);
    font-size: .8rem
}

.category h3 {
    margin-top: 36px;
    margin-bottom: 12px
}

.category p {
    font-size: .84rem;
    max-width: 210px
}

.round-arrow {
    position: absolute;
    right: 20px;
    bottom: 15px;
    font-size: 1.5rem
}

.contact {
    background: var(--dark);
    color: #fff;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center
}

.contact p {
    color: #cccccc
}

.contact .eyebrow {
    color: var(--lime)
}

.light {
    background: var(--lime);
    color: var(--dark)
}

.big-phone {
    font-size: clamp(1.6rem, 2.4vw, 3rem);
    font-weight: 600
}

.contact>div:last-child {
    border-left: 1px solid #ffffff30;
    padding-left: 65px
}

.contact>div:last-child>a:last-of-type {
    font-size: 1.5rem
}

footer {
    padding: 35px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font-size: .75rem;
    background: #343434;
    color: #fff;
}

footer p {
    margin: 0
}

dialog {
    border: 0;
    border-radius: 8px;
    padding: 40px;
    max-width: 560px;
    width: calc(100% - 32px);
    max-height: 90vh;
    box-shadow: 0 30px 120px #0005
}

dialog::backdrop {
    background: #232323bf;
    backdrop-filter: blur(6px)
}

dialog h2 {
    font-size: 2rem
}

.close {
    float: right;
    background: none;
    font-size: 2rem
}

label {
    display: grid;
    gap: 8px;
    font-size: .85rem;
    margin-bottom: 18px
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #dadada;
    background: white;
    border-radius: 3px;
    min-width: 0
}

textarea {
    min-height: 100px;
    resize: vertical
}

.check {
    display: flex;
    align-items: flex-start
}

.check input {
    width: 18px;
    margin-top: 5px
}

.form-status {
    font-size: .8rem;
    margin-top: 16px
}

.skip {
    position: fixed;
    left: 10px;
    top: -90px;
    background: white;
    z-index: 99;
    padding: 10px
}

.skip:focus {
    top: 10px
}

@media(min-width:1800px) {

    .section,
    header,
    .topline {
        padding-left: max(4%, calc((100vw - 1800px)/2));
        padding-right: max(4%, calc((100vw - 1800px)/2))
    }
}

@media(max-width:1050px) {
    nav {
        gap: 15px;
        font-size: .78rem
    }

    header {
        gap: 20px
    }

    .phone {
        display: none
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:700px) {
    .topline {
        font-size: .65rem
    }

    .topline>span:last-child {
        display: none
    }

    header {
        padding: 18px 5%;
        justify-content: space-between
    }

    .logo {
        font-size: 2rem
    }

    .menu {
        display: block;
        background: var(--pale);
        padding: 6px 12px;
        font-size: 1.5rem
    }

    nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 25px;
        background: white;
        box-shadow: 0 15px 20px #0002;
        font-size: 1rem
    }

    nav.open {
        display: grid
    }

    .hero {
        height: auto;
        min-height: 610px
    }

    .hero-content {
        padding: 50px 5% 110px
    }

    .hero h1 {
        font-size: clamp(2.1rem, 8vw, 3rem)
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px
    }

    .hero-bottom>span {
        max-width: 120px;
        font-size: .6rem
    }

    .slider-controls {
        gap: 10px
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 30px 0
    }

    .stats>div {
        padding: 0 !important;
        border: 0
    }

    .stats strong {
        font-size: 2rem
    }

    .section {
        padding: 55px 5%
    }

    .section-heading {
        display: block
    }

    .category-grid {
        gap: 12px
    }

    .category {
        padding: 20px;
        min-height: 250px
    }

    .category h3 {
        font-size: 1.15rem
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .contact>div:last-child {
        border-left: 0;
        border-top: 1px solid #fff3;
        padding: 25px 0 0
    }

    footer {
        flex-wrap: wrap;
        padding: 30px 5%
    }

    dialog {
        padding: 24px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}

.production-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    color: white;
    gap: 65px;
    align-items: center
}

.production-band p {
    color: #d0d0d0;
    max-width: 550px
}

.production-band figure {
    margin: 0;
    position: relative
}

.production-band img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 3px
}

.production-band figcaption {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: .7rem;
    background: #242424a0;
    padding: 5px 10px
}

.mini-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    font-size: 1.5rem
}

.mini-stats small {
    font-size: .8rem;
    color: #c6c6c6
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px
}

.service-grid article {
    border-top: 1px solid var(--line);
    padding-top: 25px
}

.service-grid h3 {
    margin-top: 25px
}

.service-grid p {
    font-size: .9rem
}

.text-button {
    background: none;
    color: var(--green);
    padding: 8px 0;
    font-weight: 700;
    text-align: left;
    font-size: .85rem
}

.text-button:hover {
    color: #ff0000;
    transform: translateX(3px)
}

.finance-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #f5f5f5;}

.finance-band p {
    max-width: 600px
}

.finance-number {
    border-left: 1px solid #e4cccc;
    padding-left: 15%;
    align-self: center;
    color: var(--green)
}

.finance-number>span {
    font-size: .75rem;
    letter-spacing: .07em
}

.finance-number strong {
    display: block;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.07em;
    margin: 25px 0
}

.finance-number small {
    display: block;
    font-size: 1.3rem;
    letter-spacing: 0
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px
}

.benefits>div {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 25px
}

.benefits span {
    color: var(--green);
    font-size: .8rem
}

.benefits h3 {
    font-size: 1.15rem;
    max-width: 230px
}

.pale {
    background: var(--pale)
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px
}

.projects article {
    border-top: 1px solid #d9c5c5;
    padding: 30px 0
}

.projects p {
    font-size: .9rem
}

.brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px
}

.brands a {
    background: var(--dark);
    padding: 45px;
    color: white
}

.brands a:nth-child(2) {
    background: #eeeeee;
    color: var(--dark)
}

.brands a:hover {
    transform: translateY(-5px)
}

.brands strong {
    font-size: 3.8rem;
    letter-spacing: -.065em;
    font-weight: 800
}

.brands p {
    color: inherit;
    opacity: .8
}

.brands span {
    font-size: .85rem
}

.article-card {
    padding: 30px;
    background: white;
    display: block
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px #24242410
}

.article-num {
    display: block;
    font-size: 3rem;
    color: #d8d8d8;
    margin-bottom: 35px
}

.article-card h3 {
    min-height: 90px
}

.faq {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px
}

details {
    border-bottom: 1px solid var(--line)
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 23px 35px 23px 0;
    position: relative;
    font-weight: 600
}

summary:after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.3rem;
    color: var(--green)
}

details[open] summary:after {
    content: '−'
}

details p {
    font-size: .9rem;
    max-width: 640px
}

.page-intro {
    background: var(--pale);
    padding-top: 32px;
    padding-bottom: 55px
}

.breadcrumb {
    font-size: .75rem;
    color: var(--muted);
    display: block;
    margin-bottom: 50px
}

.page-intro h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem)
}

.page-intro>p {
    max-width: 750px;
    margin-bottom: 0
}

.catalog-section {
    padding-top: 40px
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    gap: 20px;
    align-items: center
}

.catalog-note,
.caption {
    font-size: .8rem
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.product {
    border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
    overflow: hidden
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px #24242410
}

.product-visual {
    background: var(--pale);
    height: 240px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden
}

.product-visual img {
    width: 80%;
    height: 85%;
    object-fit: contain;
    mix-blend-mode: multiply
}

.product-code {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: .7rem;
    color: var(--muted)
}

.type-name {
    font-size: clamp(1rem, 2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    color: #afafaf
}

.product-body {
    padding: 25px
}

.product-body .eyebrow {
    font-size: .65rem;
    margin-bottom: 14px
}

.product-body p {
    font-size: .85rem;
    min-height: 45px
}

.product-body .btn {
    width: 100%;
    margin-top: 15px
}

dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: .8rem
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    text-align: right
}

.factory-hero {
    position: relative
}

.factory-hero img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover
}

.factory-hero>span {
    position: absolute;
    left: 4%;
    bottom: 30px;
    color: white;
    background: #2b2b2bdd;
    padding: 15px 25px
}

.factory-hero small {
    display: block;
    opacity: .65;
    font-size: .7rem
}

.process-list article {
    display: grid;
    grid-template-columns: .3fr 1.2fr 1.5fr;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding: 35px 0
}

.process-list article>span {
    font-size: 2rem;
    color: var(--green)
}

.process-list p {
    margin: 0
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px
}

.calculator>div:first-child {
    max-width: 600px
}

.calc-result {
    background: var(--dark);
    color: white;
    padding: 45px;
    align-self: start
}

.calc-result>strong {
    display: block;
    font-size: clamp(2rem, 3.5vw, 4rem);
    letter-spacing: -.05em;
    margin: 25px 0
}

.calc-result p,
.calc-result dt {
    color: #d0d0d0
}

.calc-result p {
    font-size: .8rem
}

.calc-result dl {
    border-top: 1px solid #ffffff30;
    border-bottom: 1px solid #ffffff30;
    padding: 25px 0;
    font-size: .9rem
}

.reading {
    max-width: 1000px
}

.reading h2 {
    font-size: 1.8rem;
    margin-top: 45px
}

.reading h2:first-child {
    margin-top: 0
}

.sitemap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.sitemap a {
    padding: 20px;
    background: var(--pale)
}

input[type=range] {
    accent-color: var(--green)
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

[hidden] {
    display: none !important
}

@media(max-width:1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .production-band {
        gap: 30px
    }

    .catalog-toolbar {
        grid-template-columns: 1fr 1fr
    }

    .calculator {
        gap: 30px
    }

    .calc-result {
        padding: 30px
    }

    .projects {
        gap: 20px
    }
}

@media(max-width:700px) {

    .production-band,
    .finance-band,
    .faq,
    .split,
    .calculator {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .production-band img {
        height: 280px
    }

    .finance-number {
        padding: 20px 0 0;
        border-left: 0;
        border-top: 1px solid #e4cccc
    }

    .projects {
        grid-template-columns: 1fr
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }

    .benefits h3 {
        font-size: 1rem
    }

    .brands {
        grid-template-columns: 1fr
    }

    .brands a {
        padding: 30px
    }

    .service-grid {
        gap: 20px
    }

    .service-grid h3 {
        font-size: 1.2rem
    }

    .catalog-toolbar {
        grid-template-columns: 1fr
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .process-list article {
        grid-template-columns: 40px 1fr;
        gap: 18px
    }

    .process-list p {
        grid-column: 2
    }

    .factory-hero img {
        height: 300px
    }

    .sitemap {
        grid-template-columns: 1fr
    }

    .article-card h3 {
        min-height: 0
    }

    .page-intro {
        padding-top: 25px
    }

    .breadcrumb {
        margin-bottom: 30px
    }

    .calc-result {
        padding: 24px
    }
}

@media(prefers-reduced-motion:reduce) {
    .reveal {
        opacity: 1;
        transform: none
    }
}

.utility {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 12px 4%;
    border-bottom: 1px solid var(--line)
}

.site-search {
    position: relative;
    flex: 1;
    max-width: 620px;
    margin-right: auto
}

.site-search input {
    font-size: .8rem;
    border: 0;
    background: var(--pale);
    padding: 12px 16px
}

.compact {
    padding: 12px 18px;
    font-size: .8rem
}

#search-results {
    position: absolute;
    z-index: 12;
    top: 100%;
    background: white;
    box-shadow: 0 15px 30px #0002;
    width: 100%;
    padding: 12px
}

#search-results a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    font-size: .85rem
}

#search-results a:hover {
    background: var(--pale)
}

#search-results p {
    padding: 10px;
    margin: 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

@media(max-width:700px) {
    .utility {
        padding: 10px 5%;
        gap: 12px;
        flex-wrap: wrap
    }

    .utility .site-search {
        flex-basis: 100%;
        max-width: 100%
    }

    .utility .text-button {
        font-size: .7rem;
        flex: 1
    }

    .utility .btn {
        font-size: .7rem;
        flex: 1;
        gap: 10px
    }

    .hero-content {
        padding-top: 35px
    }

    .hero {
        min-height: 590px
    }
}


/* === Категории оборудования (материалы) === */
.material-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.material-card {
  display: block;
  background: var(--pale);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color .25s, transform .3s, background .25s, box-shadow .3s;
}

.material-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  background: #fff0f0;
  box-shadow: 0 12px 28px #24242412;
}

.material-visual {
  aspect-ratio: 1 / 1;
  background: #f2e6e6;
  overflow: hidden;
  position: relative;
}

.material-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.material-card:hover .material-visual img {
  transform: scale(1.06);
}

.material-body {
  padding: 22px 20px 24px;
}

.material-body .index {
  color: var(--green);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 10px;
}

.material-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.material-body p {
  font-size: .84rem;
  margin: 0;
  max-width: 100%;
  line-height: 1.45;
}

/* Адаптив */
@media (max-width: 1200px) {
  .material-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .material-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .material-body {
    padding: 18px 16px 20px;
  }
  .material-body h3 {
    font-size: 1.15rem;
  }
}


/* ===== Категории в стиле макета "Создано для больших задач" ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:15px;
  align-items: end;          /* картинки выравниваются по низу */
}

.category {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  transition: transform .3s;
}

.category:hover {
  transform: translateY(-6px);
}

/* Картинка оборудования (стоит НАД карточкой) */
.category-visual {
  height: 220px;             /* можно подкрутить */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 18px;
  padding: 0 10px;
    mix-blend-mode: multiply;
}

.category-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.category:hover .category-visual img {
  transform: scale(1.04);
}

/* Светлая карточка с текстом */
.category-body {
  background: var(--pale);
  border: 1px solid transparent;
  padding: 24px 22px 28px;
  position: relative;
  min-height: 160px;
  transition: border-color .25s, background .25s, box-shadow .3s;
}

.category:hover .category-body {
  border-color: var(--green);
  background: #fff0f0;
  box-shadow: 0 12px 28px #24242412;
}

.category-body .index {
  display: block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .03em;
}

.category-body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}

.category-body p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  max-width: 200px;
}

.category-body .round-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 1.35rem;
  color: var(--green);
  transition: transform .25s;
}

.category:hover .round-arrow {
  transform: translateX(4px);
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .category-visual {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .category-visual {
    height: 180px;
  }
  .category-body {
    min-height: auto;
    padding: 20px 18px 24px;
  }
}


/* ===== Сервисные блоки с квадратными картинками ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  display: flex;
  flex-direction: column;
}

/* Квадратное изображение — вынесено за article */
.service-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--pale);
  margin-bottom: 0;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.service-item:hover .service-visual img {
  transform: scale(1.05);
}

/* Сам текстовый блок */
.service-grid article {
  border-top: none;                 /* убираем старую линию */
  padding: 25px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-grid article .index {
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.service-grid article h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.service-grid article p {
  font-size: .9rem;
  margin: 0 0 20px;
  flex: 1;
}

.service-grid .text-button {
  margin-top: auto;
  align-self: flex-start;
}

/* Hover-эффект на весь item */
.service-item:hover article {
  /* можно добавить лёгкий сдвиг текста при желании */
}

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* ARBQ logo sizing */
.logo img { display: block; width: 190px; height: auto; }

/* Standard site container: fluid gutters, centered content up to 1800px. */
.container {
    --container-content-max: 1800px;
    --container-gutter: max(16px, 4vw);
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--container-content-max) + var(--container-gutter) + var(--container-gutter));
    min-width: 0;
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}

@media (max-width: 700px) {
    .container {
        --container-gutter: max(16px, 5vw);
    }
}
