/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #102a43;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #0785d1;
    --primary-dark: #056aa8;

    --dark: #102a43;
    --dark-2: #173b57;

    --text: #526575;
    --light-text: #7b8a97;

    --white: #ffffff;
    --light: #f5f8fa;
    --border: #e3e9ee;

    --container: 1350px;

    --radius: 8px;
    --transition: 0.25s ease;
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(100% - 80px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.section-header--center {
    display: block;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__subtitle {
    display: block;
    margin-bottom: 10px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-header h2 {
    margin-bottom: 15px;

    color: var(--dark);

    font-size: 42px;
    line-height: 1.15;
}

.section-header p {
    max-width: 650px;

    color: var(--text);
    font-size: 17px;
}

.section-header__link {
    flex-shrink: 0;

    color: var(--primary);
    font-weight: 700;

    transition: var(--transition);
}

.section-header__link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 0 28px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--white);
    background: var(--primary);
}

.button--primary:hover {
    background: var(--primary-dark);
}

.button--outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
}

.button--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;
    z-index: 1000;

    height: 78px;

    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-shrink: 0;
}

.logo__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;

    /*color: var(--white);
    background: var(--dark);

    border-radius: 50%;

    font-size: 24px;*/
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__text strong {
    color: var(--dark);

    font-size: 19px;
    line-height: 1.1;
}

.logo__text span {
    margin-top: 4px;

    color: var(--light-text);

    font-size: 10px;
}


/* Navigation */

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;

    height: 100%;
}

.navigation__link {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;

    color: var(--dark);

    font-size: 14px;
    font-weight: 500;

    transition: var(--transition);
}

.navigation__link:hover {
    color: var(--primary);
}

.navigation__link.active {
    color: var(--primary);
}

.navigation__link.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: var(--primary);
}


/* Header button */

.header__button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 178px;
    height: 44px;

    padding: 0 24px;

    color: var(--white);
    background: var(--primary);

    border-radius: 25px;

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
}

.header__button:hover {
    background: var(--primary-dark);
}


/* Mobile button */

.mobile-menu-button {
    display: none;

    border: 0;
    background: none;

    color: var(--dark);

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;

    position: absolute;
    z-index: 999;

    top: 78px;
    left: 0;
    right: 0;

    padding: 20px;

    background: var(--white);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
    display: block;

    padding: 13px 5px;

    color: var(--dark);

    border-bottom: 1px solid var(--border);

    font-size: 15px;
}

.mobile-menu__button {
    margin-top: 15px;

    text-align: center;

    color: var(--white) !important;
    background: var(--primary);

    border-radius: 25px;
}

.mobile-menu.active {
    display: block;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;

    background-image: url("../биоветсайт/images/banner.webp");
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 24, 39, 0.75) 0%,
            rgba(5, 24, 39, 0.55) 42%,
            rgba(5, 24, 39, 0.10) 100%
        );
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__text {
    max-width: 650px;
}

.hero__subtitle {
    display: block;

    margin-bottom: 18px;

    color: #8ed5ff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    margin-bottom: 24px;

    color: var(--white);

    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 700;
}

.hero p {
    max-width: 590px;

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 18px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* =========================================================
   ADVANTAGES
========================================================= */

.advantages {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.advantage {
    display: flex;
    gap: 18px;

    min-height: 145px;

    padding: 38px 30px;

    border-right: 1px solid var(--border);
}

.advantage:first-child {
    padding-left: 0;
}

.advantage:last-child {
    border-right: 0;
}

.advantage__icon {
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    font-size: 27px;
}

.advantage h3 {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 16px;
}

.advantage p {
    color: var(--text);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products {
    background: var(--light);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 40px rgba(16, 42, 67, 0.10);
}

.product-card__image {
    height: 220px;

    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 25px;
}

.product-card h3 {
    margin-bottom: 10px;

    color: var(--dark);

    font-size: 20px;
}

.product-card p {
    min-height: 70px;

    margin-bottom: 20px;

    color: var(--text);

    font-size: 14px;
}

.product-card__link {
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;

    align-items: center;
}

.about__image {
    overflow:  hidden;

    border-radius: 8px;
}

.about__image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.about__content h2 {
    margin-bottom: 25px;

    color: var(--dark);

    font-size: 44px;
    line-height: 1.15;
}

.about__content > p {
    margin-bottom: 15px;

    color: var(--text);

    font-size: 16px;
}

.about__stats {
    display: flex;

    margin: 35px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    flex: 1;

    padding: 22px 15px;

    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;

    margin-bottom: 3px;

    color: var(--primary);

    font-size: 32px;
}

.stat span {
    color: var(--text);

    font-size: 13px;
}


/* =========================================================
   PRODUCTION
========================================================= */

.production {
    background: var(--light);
}

.production__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.production-card {
    overflow: hidden;

    background: var(--white);

    border-radius: var(--radius);
}

.production-card img {
    height: 280px;

    object-fit: cover;
}

.production-card h3 {
    padding: 22px 25px;

    color: var(--dark);

    font-size: 19px;
}


/* =========================================================
   CERTIFICATES
========================================================= */

.certificates {
    background: var(--white);
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.certificate {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition: var(--transition);
}

.certificate:hover {
    border-color: var(--primary);

    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

.certificate__icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eaf6fd;

    border-radius: 8px;

    font-size: 23px;
}

.certificate span {
    color: var(--dark);

    font-size: 15px;
    font-weight: 600;
}


/* =========================================================
   NEWS
========================================================= */

.news {
    background: var(--light);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    overflow: hidden;

    background: var(--white);

    border-radius: var(--radius);

    border: 1px solid var(--border);
}

.news-card > img {
    height: 230px;

    object-fit: cover;
}

.news-card__content {
    padding: 25px;
}

.news-card time {
    color: var(--primary);

    font-size: 13px;
}

.news-card h3 {
    margin: 10px 0 18px;

    color: var(--dark);

    font-size: 20px;
    line-height: 1.3;
}

.news-card a {
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   REQUEST CTA
========================================================= */

.request {
    position: relative;

    padding: 70px 0;

    background:
        linear-gradient(
            100deg,
            #0b304b,
            #126b9d
        );
}

.request__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.request .section-header__subtitle {
    color: #83d1ff;
}

.request h2 {
    margin-bottom: 10px;

    color: var(--white);

    font-size: 40px;
}

.request p {
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   CONTACTS
========================================================= */

.contacts {
    background: var(--white);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contacts__info h2 {
    margin-bottom: 40px;

    color: var(--dark);

    font-size: 42px;
}

.contact-item {
    display: flex;
    flex-direction: column;

    margin-bottom: 25px;
}

.contact-item strong {
    margin-bottom: 5px;

    color: var(--dark);

    font-size: 14px;
}

.contact-item a,
.contact-item address {
    color: var(--text);

    font-size: 17px;

    font-style: normal;
}

.contact-item a:hover {
    color: var(--primary);
}


/* =========================================================
   FORM
========================================================= */

.request-form {
    padding: 40px;

    background: var(--light);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 14px 16px;

    color: var(--dark);
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 6px;

    outline: none;

    transition: var(--transition);
}

.form-group input,
.form-group select {
    height: 50px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(7, 133, 209, 0.10);
}

.request-form .button {
    border: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    color: rgba(255, 255, 255, 0.7);

    background: #0b2438;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;

    padding-top: 70px;
    padding-bottom: 60px;
}

.logo--footer .logo__text strong {
    color: var(--white);
}

.logo--footer .logo__text span {
    color: rgba(255, 255, 255, 0.5);
}

.footer__company p {
    max-width: 300px;

    margin-top: 20px;

    font-size: 14px;
    line-height: 1.7;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__column h3 {
    margin-bottom: 12px;

    color: var(--white);

    font-size: 16px;
}

.footer__column a,
.footer__column span {
    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    transition: var(--transition);
}

.footer__column a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom .container {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__bottom p,
.footer__bottom a {
    font-size: 13px;
}

.footer__bottom a:hover {
    color: var(--white);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .container {
        width: min(100% - 50px, var(--container));
    }

    .navigation {
        gap: 16px;
    }

    .navigation__link {
        font-size: 12px;
    }

    .header__button {
        min-width: 150px;
        padding: 0 15px;

        font-size: 12px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage {
        border-bottom: 1px solid var(--border);
    }

    .advantage:nth-child(2) {
        border-right: 0;
    }

    .advantage:nth-child(3),
    .advantage:nth-child(4) {
        border-bottom: 0;
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card__image {
        height: 250px;
    }

    .about__grid {
        gap: 40px;
    }

    .about__image img {
        height: 450px;
    }

    .production__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .production-card:last-child {
        grid-column: 1 / -1;
    }

    .certificates__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card:last-child {
        grid-column: 1 / -1;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 70px 0;
    }


    /* Header */

    .header {
        height: 70px;
    }

    .navigation,
    .header__button {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu {
        top: 70px;
    }


    /* Logo */

    .logo__icon {
        width: 80px;
        height: 80px;

        font-size: 21px;
    }

    .logo__text strong {
        font-size: 16px;
    }

    .logo__text span {
        font-size: 8px;
    }


    /* Hero */

    .hero {
        min-height: 620px;

        background-position: 65% center;
    }

    .hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 24, 39, 0.94),
                rgba(5, 24, 39, 0.70)
            );
    }

    .hero__text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .button {
        width: 100%;
    }


    /* Advantages */

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .advantage,
    .advantage:first-child {
        min-height: auto;

        padding: 25px 0;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .advantage:last-child {
        border-bottom: 0;
    }


    /* Section heading */

    .section-header {
        display: block;

        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .section-header__link {
        display: inline-block;

        margin-top: 15px;
    }


    /* Products */

    .products__grid {
        grid-template-columns: 1fr;
    }

    .product-card__image {
        height: 230px;
    }


    /* About */

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image img {
        height: 320px;
    }

    .about__content h2 {
        font-size: 34px;
    }

    .about__stats {
        flex-direction: column;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .stat:last-child {
        border-bottom: 0;
    }


    /* Production */

    .production__grid {
        grid-template-columns: 1fr;
    }

    .production-card:last-child {
        grid-column: auto;
    }


    /* Certificates */

    .certificates__grid {
        grid-template-columns: 1fr;
    }


    /* News */

    .news__grid {
        grid-template-columns: 1fr;
    }

    .news-card:last-child {
        grid-column: auto;
    }


    /* CTA */

    .request {
        padding: 55px 0;
    }

    .request__inner {
        display: block;
    }

    .request h2 {
        font-size: 34px;
    }

    .request .button {
        margin-top: 25px;
    }


    /* Contacts */

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contacts__info h2 {
        font-size: 34px;
    }

    .request-form {
        padding: 25px;
    }


    /* Footer */

    .footer__top {
        grid-template-columns: 1fr;
        gap: 35px;

        padding-top: 50px;
        padding-bottom: 45px;
    }

    .footer__bottom .container {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        padding-top: 20px;
        padding-bottom: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width: min(100% - 24px, var(--container));
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 15px;
    }

    .button {
        min-height: 48px;

        padding: 0 20px;

        font-size: 14px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .product-card__content {
        padding: 20px;
    }

    .product-card__image {
        height: 210px;
    }

    .about__content h2 {
        font-size: 30px;
    }

    .about__image img {
        height: 260px;
    }

    .request-form {
        padding: 20px;
    }
}