/* =========================
   БАЗОВЫЕ НАСТРОЙКИ
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1d2530;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   ШАПКА
========================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #156b45;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

nav a:hover {
    color: #168457;
}


/* =========================
   ГЛАВНЫЙ ЭКРАН
========================= */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            120deg,
            #0d3f2d 0%,
            #146c48 55%,
            #1b8b5e 100%
        );
    color: #ffffff;
}

.hero .container {
    max-width: 1180px;
}

.hero p:first-child {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero h1 + p {
    max-width: 650px;
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
}

.hero a {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 8px;
    font-weight: 700;
    margin-right: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.hero a:first-of-type {
    background: #ffffff;
    color: #155e40;
}

.hero a:first-of-type:hover {
    transform: translateY(-2px);
}

.hero a:last-of-type {
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
}

.hero a:last-of-type:hover {
    background: rgba(255,255,255,0.1);
}


/* =========================
   ОБЩИЕ СЕКЦИИ
========================= */

section {
    padding: 90px 0;
}

section h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 45px;
}

section h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

section p {
    color: #626b76;
}


/* =========================
   КАТАЛОГ
========================= */

#catalog {
    background: #ffffff;
}

#catalog .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

#catalog h2 {
    grid-column: 1 / -1;
}

#catalog .container > div {
    padding: 32px;
    min-height: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition: 0.25s;
}

#catalog .container > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    border-color: #cfd7d3;
}

#catalog h3 {
    color: #174f39;
}


/* =========================
   УСЛУГИ
========================= */

#services {
    background: #f5f7f6;
}

#services .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#services h2 {
    grid-column: 1 / -1;
}

#services .container > div {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    min-height: 210px;
    border: 1px solid #e6ebe8;
}

#services h3 {
    color: #176f4a;
}


/* =========================
   О КОМПАНИИ
========================= */

#about {
    background: #ffffff;
}

#about .container {
    max-width: 1180px;
    display: block;
    text-align: left;
}

#about h2 {
    margin-bottom: 30px;
    color: #173e30;
}

#about p {
    margin: 0 0 22px;
    padding: 0;
    font-size: 18px;
    line-height: 1.75;
    color: #626b76;
}

#about p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    #about h2 {
        margin-bottom: 24px;
    }

    #about p {
        font-size: 16px;
        margin-bottom: 18px;
    }
}


/* =========================
   ФОРМА ЗАЯВКИ
========================= */

#request {
    background: #123f30;
    color: #ffffff;
}

#request .container {
    max-width: 850px;
}

#request h2 {
    margin-bottom: 16px;
}

#request > .container > p {
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    margin-bottom: 35px;
}

form {
    background: #ffffff;
    color: #1d2530;
    padding: 34px;
    border-radius: 16px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #d7dde0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
}

input:focus,
textarea:focus {
    border-color: #168457;
    box-shadow: 0 0 0 3px rgba(22,132,87,0.12);
}

textarea {
    resize: vertical;
}

button {
    border: none;
    background: #168457;
    color: #ffffff;
    padding: 15px 26px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

button:hover {
    background: #116d47;
    transform: translateY(-1px);
}


/* =========================
   КОНТАКТЫ
========================= */

#contacts {
    background: #f5f7f6;
}

#contacts .container {
    max-width: 900px;
}

#contacts h2 {
    margin-bottom: 25px;
}

#contacts p {
    font-size: 18px;
    margin-bottom: 8px;
}


/* =========================
   ПОДВАЛ
========================= */

footer {
    background: #0b2d22;
    color: rgba(255,255,255,0.75);
    padding: 30px 0;
}

footer p {
    text-align: center;
}


/* =========================
   ПЛАНШЕТ
========================= */

@media (max-width: 900px) {

    .header .container {
        flex-direction: column;
        justify-content: center;
        padding: 15px 0;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 22px;
    }

    .hero {
        min-height: 520px;
    }

    #services .container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   ТЕЛЕФОН
========================= */

@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    section {
        padding: 65px 0;
    }

    .logo {
        font-size: 25px;
    }

    nav {
        font-size: 14px;
    }

    .hero {
        min-height: 560px;
        text-align: left;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero h1 + p {
        font-size: 17px;
    }

    .hero a {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    #catalog .container,
    #services .container {
        grid-template-columns: 1fr;
    }

    #catalog h2,
    #services h2 {
        grid-column: auto;
    }

    form {
        padding: 24px 20px;
    }
}
/* =========================
   КАТАЛОГ МОЛОЧНОГО ОБОРУДОВАНИЯ
========================= */

.catalog-hero {
    background: #123f30;
    color: #ffffff;
    padding: 90px 0;
}

.catalog-hero__label {
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.catalog-hero h1 {
    max-width: 850px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.catalog-hero p {
    max-width: 700px;
    font-size: 19px;
    color: rgba(255,255,255,0.8);
}

.product-section {
    background: #f5f7f6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e4e9e6;
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-card__image {
    height: 230px;
    background: #e9eeeb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c8781;
    font-weight: 600;
}

.product-card__content {
    padding: 25px;
}

.product-card h2 {
    font-size: 23px;
    margin-bottom: 12px;
}

.product-card p {
    margin-bottom: 20px;
}

.product-card a,
.product-card__link {
    color: #168457;
    font-weight: 700;
}

.milk-request {
    background: #ffffff;
    text-align: center;
}

.milk-request h2 {
    margin-bottom: 15px;
}

.milk-request p {
    margin-bottom: 30px;
}

.milk-request a {
    display: inline-block;
    background: #168457;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
}


@media (max-width: 900px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-hero {
        padding: 70px 0;
    }

    .catalog-hero h1 {
        font-size: 40px;
    }

}
/* =========================
   СТРАНИЦА ТОВАРА
========================= */

.product-page {
    padding: 80px 0;
    background: #ffffff;
}

.product-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-image-placeholder {
    min-height: 500px;
    border-radius: 16px;
    background: #edf1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #77817c;
    padding: 30px;
}

.product-page__category {
    color: #168457;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-page h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    margin-bottom: 22px;
}

.product-page__intro {
    font-size: 20px;
    margin-bottom: 25px;
}

.product-status {
    display: inline-block;
    background: #edf7f2;
    color: #168457;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 35px;
}

.product-page__info h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.specifications {
    border-top: 1px solid #e2e7e4;
    margin-bottom: 35px;
}

.specifications div {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e7e4;
}

.specifications span {
    color: #6c746f;
}

.specifications strong {
    text-align: right;
}

.product-order-button {
    display: inline-block;
    background: #168457;
    color: #ffffff;
    padding: 16px 25px;
    border-radius: 8px;
    font-weight: 700;
}

.product-order-button:hover {
    background: #116d47;
}


.product-description {
    background: #f5f7f6;
}

.product-description .container {
    max-width: 900px;
}

.product-description h2 {
    margin-bottom: 25px;
}

.product-description p {
    font-size: 18px;
    margin-bottom: 18px;
}


.product-consultation {
    text-align: center;
    background: #123f30;
    color: #ffffff;
}

.product-consultation h2 {
    margin-bottom: 15px;
}

.product-consultation p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.product-consultation a {
    display: inline-block;
    background: #ffffff;
    color: #123f30;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
}


#about .container > p:last-child:nth-child(even) {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {

    .product-page__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-image-placeholder {
        min-height: 350px;
    }

}


@media (max-width: 550px) {

    .specifications div {
        display: block;
    }

    .specifications strong {
        display: block;
        text-align: left;
        margin-top: 5px;
    }

}
.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: contain;
    background: #f5f7f6;
}
/* =========================
   УЛУЧШЕНИЕ ГЛАВНОГО ЭКРАНА
========================= */

.hero p:first-child {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 1020px;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 26px;
    text-wrap: balance;
}

.hero h1 + p {
    max-width: 760px;
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 34px;
}


/* ПЛАНШЕТ */

@media (max-width: 900px) {

    .hero h1 {
        max-width: 850px;
        font-size: 48px;
    }

}


/* ТЕЛЕФОН */

@media (max-width: 650px) {

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero h1 + p {
        font-size: 17px;
    }

}
/* ТРИ КАРТОЧКИ УСЛУГ */

#services .container {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    #services .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    #services .container {
        grid-template-columns: 1fr;
    }
}