:root {
    --block-width: 70%;
}

@font-face {
    font-family: 'Mont';
    src: url(/content/css/fonts/Mont-Regular.ttf) format('truetype');
}
body {
    font-family: 'Mont';
}
.block-left-margin {
    margin-left: 275px;
}
.block-margin {
    margin-bottom: 130px;
}
.ml-5 {
    margin-left: 3rem;
}
.lightbox {
    position: relative;
    transition: 1s all;
    border-radius: 15px;
}
.lightbox.open {
    top: 50%;
    left: 50%;
    transform: scale(2.5);
    position: fixed;
}
.border-custom {
    border: solid 1px white;
    border-radius: 50px;
    padding: 10px 15px;
    height: 55px;
}
img {
    width: 100%;
}
nav {
    gap: 2rem;
}
.navbar-brand {
    width: 140px;
}
.nav-link-custom {
    width: 200px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
.nav-link-custom img {
    width: 21px;
    height: 21px;
}
header {
    display: flex;
    align-items: center;
    z-index: 1;
    width: 100%;
}
.video-container {
    height: 100vh;
    position: absolute;
    top: -80px;
    width: 100%;
    border-radius: 35px;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    border-radius: 86px;
}

.video-text {
    color: white;
    position: relative;
    height: calc(100vh - 127px - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.video-text > .title {
    font-size: 69px;
    font-weight: 600;
}

.video-text .small-text img {
    width: 30px;
    margin-right: 1rem;
}
.video-text .small-text {
    font-size: 15px;
}

.achievments {
    display: flex;
}

.achievments .item {
    margin-right: 3rem;
    width: 300px;
}
.achievments .item .title {
    font-size: 30px;
    min-height: 6rem;
}

.achievments .item .text {
    font-size: 15px;
}
.certificate .title {
    font-size: 48px;
}

.certificate > div:first-child > div:first-child {
    width: 50%;
    margin-right: 10rem;
}

.offers .item {
    border: solid 1px #607989;
    border-radius: 16px;
    color: #607989;
    padding: 1.5rem 2rem;
    width: 290px;
    margin-right: 1rem;
}
.oil-types .title {
    font-size: 48px;
    margin-bottom: 2rem;
    line-height: 100%;
}
.oil-types .text {
    line-height: 100%;
}
.oil-types .hover-blocks {
    display: flex;
    gap: 1rem;
    margin-top: .5rem;
    height: 250px;
}

.hover-blocks .item {
    width: 375px;
    height: 205px;
    background: linear-gradient(45deg, #69AED0, #B6E1F3);
    color: white;
    font-size: 30px;
    border-radius: 16px;
    transition: .5s height;
    font-weight: 700;
    position: relative;
}
.hover-blocks .item::before {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #5ac1f020;
    border-radius: 16px;
}
.hover-blocks .item::after {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #21212120;
    border-radius: 16px;
}
.hover-blocks .item .text {
    position: absolute;
    left: 2rem;
    top: 2rem;
}
.hover-blocks .item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    position: absolute;
    opacity: 0;
    transition: .5s opacity;
}
.hover-blocks .item:hover {
    height: 250px;
}
.hover-blocks .item:hover video {
    opacity: 1;
}

.equipment {
    background: linear-gradient(270deg, #8DC2D9, #52A1C8);
    color: white;
    padding: 5rem 0;
    border-radius: 88px;
}

.equipment .title {
    font-size: 48px;
}

.equipment > div:first-child {
    margin: 0 275px;
}

.equipment .text {
    font-size: 15px;
    width: 600px;
    margin: 1rem auto;
}
.equipment-slider {
    margin-top: 2rem;
}
.equipment-slider div img {
    width: 400px;
    height: 528px;
    border-radius: 16px;
    object-fit: cover;
}

.equipment-slider .slick-prev::before, .equipment-slider .slick-next::before {
    content: unset;
}
.equipment-slider .slick-prev {
    right: 110px;
    top: -8%;
    left: unset;
}
.equipment-slider .slick-next {
    right: 50px;
    top: -8%;
}

.equipment-slider .slick-prev,.equipment-slider .slick-next {
    width: 51px;
    height: 35px;
    background: #C3E0EE61;
    border-radius: 16px;
}
.equipment-slider .slick-prev:hover,.equipment-slider .slick-next:hover {
    background: white;
}
.equipment-slider .slick-prev img,.equipment-slider .slick-next img {
    width: initial;
}

.pros .title {
    font-size: 48px;
    line-height: 100%;
}

.pros .text {
    font-size: 15px;
}

.pros .pros-icons {
    display: flex;
    gap: 10rem;
    margin-top: 7rem;
}

.pros-icons .item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    height: 210px;
}
.pros-icons .item img {
    height: 100%;
}

.clients-block {
    background-image: url('/content/img/clients-bg.png');
    height: 754px;
    background-position: center;
    position: relative;
}
.clients-slider {
    position: relative;
    width: 700px;
    overflow: hidden;
    /* края ленты плавно уходят в прозрачность, а не срезаются */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
}
/* Плавная CSS-лента логотипов (замена Slick-marquee) */
.cmarquee-track {
    display: inline-flex;
    width: max-content;
    align-items: center;
    animation: cmarquee 40s linear infinite;
    will-change: transform;
}
@keyframes cmarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.clients-slider .item {
    flex: none;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    margin: 0 1rem;
    padding: 0 1rem;
    border: solid 1px white;
    border-radius: 15px;;
}

.clients-block .small-text {
    font-size: 15px;
    margin-left: 120px;
}

.clients-block {
    color: white;
}

.clients-block > div {
    position: relative;
    top: 100px;
}

.clients-block .title {
    font-size: 48px;
    margin-bottom: 1rem;
}

.clients-block .text {
    font-size: 15px;
    margin-bottom: 2rem;
}

.clients-block .tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 10rem;
}

.clients-block .tabs .tab {
    background-color: #ffffff2e;
    padding: 1rem;
    border-radius: 16px;
}
.clients-block .tabs .tab.active {
    background-color: #DEE8EF61;
}

.clients-block .letters {
    display: flex;
    gap: 2rem;
}
.clients-block .letters .item img {
    width: 60%;
}
.clients-block .letters .item {
    width: 150px;
    height: 150px;
    background: #D8E0E585;
    text-align: center;
    align-content: center;
    border-radius: 12px;
}

.contacts {
    margin: 0 275px;
}
.contacts .title {
    font-size: 48px;
}

.contacts .left-side {
    width: 700px;
}
.contacts img {
    width: 180px;
    height: 130px;
}

.contacts .details {
    background: #DEE8EF61;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contacts svg.bg-teal {
    background: linear-gradient(270deg, #6AB6DB, #79C9EB);
    height: 38px;
    width: 38px;
    border-radius: 25px;
    padding: 0.5rem;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1100;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.animate-on-scroll {
    transform: translateY(100%);
    opacity: 0;
    transition: 1s;
    transition-property: transform,opacity;
    transition-delay: var(--delay, 0s);
}
.animate-on-scroll.is-visible {
    transform: unset;
    opacity: 1;
}
/* Lenis — плавный скролл (рекомендованный CSS) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Лёгкие появления по всему сайту (класс навешивается из main.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
}
/* Карточки продуктов: их собственный transition высоты (для ховера) перебивал reveal,
   из-за чего появление было резким. Объединяем переходы — плавно и чуть медленнее. */
.hover-blocks .item.reveal {
    transition: opacity .9s cubic-bezier(.2,.7,.2,1),
                transform .9s cubic-bezier(.2,.7,.2,1),
                height .5s ease;
}
.card-container {
    background: #e6e9ef;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
}

.card {
    max-width: 1000px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    padding: 32px 36px 40px;
    transition: 0.2s;
}

/* шапка с логотипом / названием */
.company-header {
    border-bottom: 2px solid #f0f2f7;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0b1c3a;
    line-height: 1.3;
}

.company-name small {
    font-weight: 400;
    font-size: 18px;
    color: #3d4e6b;
    margin-left: 8px;
}

.company-details-top {
    font-size: 15px;
    color: #1e2f4a;
    background: #f8faff;
    padding: 14px 18px;
    border-radius: 16px;
    margin-top: 14px;
    line-height: 1.6;
    border: 1px solid #e9edf4;
    word-break: break-word;
}

.company-details-top a {
    color: #0b1c3a;
    text-decoration: none;
    font-weight: 500;
}

.company-details-top a:hover {
    text-decoration: underline;
}

/* таблица */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.info-table tr {
    border-bottom: 1px solid #eef2f8;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.5;
}

.info-table td:first-child {
    font-weight: 600;
    color: #1f3a5f;
    background-color: #f9fbfe;
    width: 38%;
    letter-spacing: 0.2px;
}

.info-table td:last-child {
    background-color: #ffffff;
    color: #0a1c38;
    word-break: break-word;
}

/* акцент для ОКВЭД */
.okved-accent {
    display: inline-block;
    background: #eef4ff;
    padding: 2px 12px 2px 8px;
    border-radius: 30px;
    font-weight: 500;
    color: #0047ab;
}

/* footer */
.card-footer {
    margin-top: 28px;
    font-size: 14px;
    color: #4d627c;
    border-top: 1px solid #e6ecf5;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.card-footer span {
    background: #f2f6fd;
    padding: 5px 14px;
    border-radius: 40px;
    font-weight: 450;
}

/* адаптив */
@media (max-width: 700px) {
    .card {
        padding: 22px 16px 28px;
    }

    .company-name {
        font-size: 19px;
    }

    .info-table td {
        padding: 12px 12px;
        display: block;
        width: 100% !important;
    }

    .info-table tr {
        display: block;
        border-bottom: 2px solid #e2e8f2;
        padding: 6px 0;
    }

    .info-table td:first-child {
        background: transparent;
        font-weight: 700;
        padding-bottom: 2px;
        padding-top: 14px;
        color: #1f3a5f;
    }

    .info-table td:last-child {
        background: transparent;
        padding-top: 2px;
        padding-bottom: 12px;
    }

    .info-table {
        box-shadow: none;
        background: transparent;
    }

    .company-details-top {
        font-size: 14px;
        padding: 12px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* небольшая стилизация для печати */
@media print {
    body {
        background: white;
        padding: 0.3in;
    }
    .card {
        box-shadow: none;
        padding: 0;
        border: 1px solid #ccc;
    }
}

/* PDFS */
.container {
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

/* Кнопка открытия */
.open-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.4);
    transition: 0.3s;
    margin: 20px auto;
    display: block;
}
.open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(110, 142, 251, 0.5);
}

/* Панель просмотрщика (скрыта изначально) */
.viewer {
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили вкладок */
.tabs-pdf {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecf2;
    padding-bottom: 6px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7a8f;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.tab:hover {
    background: #f0f3f8;
    color: #2c3e50;
}

.tab.active {
    background: linear-gradient(45deg, #69AED0, #B6E1F3);
    color: white;
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

.tab:focus-visible {
    outline: 2px solid #6e8efb;
    outline-offset: 2px;
}

/* Индикатор загрузки внутри фрейма */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 10rem);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e9ecf2;
}

.loader {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    z-index: 5;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loader.hidden {
    opacity: 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e9ecf2;
    border-top-color: #6e8efb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    margin-top: 16px;
    color: #6b7a8f;
    font-size: 14px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
    .open-btn {
        width: 100%;
        text-align: center;
    }
    .tab {
        padding: 10px 18px;
        font-size: 14px;
        flex: 1 0 auto;
    }
    .tabs-pdf {
        gap: 6px;
    }
    .iframe-wrapper {
        height: 500px;
    }
}

/* Дополнительно: если нужно скрыть элементы навигации браузера в iframe — но это не всегда возможно */
/* Можно добавить подсказку о прокрутке */
.hint {
    margin-top: 10px;
    font-size: 13px;
    color: #8e9aaf;
    text-align: center;
}

/* =========================================================
   АДАПТИВ ГЛАВНОЙ СТРАНИЦЫ (добавлено, десктоп не меняется)
   Брейкпоинты: планшет ≤1199px, телефон ≤767px, узкий ≤480px
   ========================================================= */

/* ---- Мобильное бургер-меню (создаётся из main.js) ---- */
.mobile-burger{
    display: none;
    width: 44px;
    height: 44px;
    border: solid 1px rgba(255,255,255,.7);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex: none;
    padding: 0;
}
.mobile-burger span{
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.mobile-burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.mobile-burger.is-open span:nth-child(2){ opacity: 0; }
.mobile-burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #2a5f7a;
    padding: 84px 24px 32px;
    transform: translateY(-100%);
    transition: transform .35s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.mobile-menu a.apply{
    margin-top: 12px;
    border: solid 1px rgba(255,255,255,.7);
    border-radius: 50px;
    border-bottom: solid 1px rgba(255,255,255,.7);
    text-align: center;
}
.mobile-menu-close{
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
body.menu-open{ overflow: hidden; }

/* ===== ЭКРАНЫ ШИРЕ ДИЗАЙНА (>1920px) =====
   Фон блока «Наши клиенты» у верстальщика — цельная картинка 1920px (сотрудница + фон
   «запечены» вместе), поэтому на широком экране она либо тайлится, либо не заполняет
   ширину. Реконструируем блок как в Figma: синий фон — CSS-градиент (тянется на любую
   ширину), сотрудница — отдельная картинка справа. Совпадает с макетом на любой ширине. */
@media (min-width: 1921px){
    /* Фоны секций остаются во всю ширину, а контент центрируем в рамке 1920px:
       к штатным отступам (275/120px) добавляем «боковое поле» --gr = (100vw−1920)/2.
       Так на 4K всё сбалансировано по центру, размеры шрифтов/блоков не меняются. */
    :root{ --gr: calc((100vw - 1920px) / 2); }
    /* контейнеры получают левое поле (рамка+275) и правое поле (рамка) —
       ширина остаётся дизайнерской (1645px), а не растягивается до края экрана */
    .block-left-margin{ margin-left: calc(var(--gr) + 275px); margin-right: var(--gr); }
    .equipment > div:first-child{ margin-left: calc(var(--gr) + 275px); margin-right: calc(var(--gr) + 275px); }
    .contacts{ margin-left: calc(var(--gr) + 275px); margin-right: calc(var(--gr) + 275px); }
    .clients-block .small-text{ margin-left: calc(var(--gr) + 120px); }

    /* Блок «Наши клиенты»: фон-картинка 1920px «запечена» верстальщиком, на широком
       экране тайлится/не заполняет. Реконструируем как в Figma: синий фон — CSS-градиент
       на всю ширину, сотрудница — отдельным слоем справа. */
    .clients-block{
        background-image:
            url('/content/img/clients-scientist.png'),
            linear-gradient(-48.78deg, #8DC2D9 20.71%, #52A1C8 76.85%);
        background-repeat: no-repeat, no-repeat;
        background-position: right bottom, center;
        background-size: auto 686px, cover;
        border-radius: 88px;
    }
    /* водяной знак «GLOBAL RESEARCH» (в исходной картинке он запечён, здесь добавляем слоем) */
    .clients-block::before{
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(var(--gr) + 1000px);   /* правее текста/логотипов, в зоне сотрудницы */
        width: 1041px;
        background: url('/content/img/clients-watermark.png') no-repeat center / contain;
        opacity: 0.08;
        pointer-events: none;
        z-index: 0;
    }
    .clients-block > div{ z-index: 1; }
}

/* ===== НОУТБУКИ 1200–1464px (полное десктоп-меню, но фикс-дизайн 1920 не влезает) =====
   Строго этот диапазон: ≥1465px (в т.ч. монитор ≥1920) остаётся без изменений. */
@media (min-width: 1200px) and (max-width: 1464px){
    .block-left-margin{ margin-left: 120px; }
    .equipment > div:first-child{ margin: 0 120px; }
    .contacts{ margin: 0 120px; }
    .clients-block .small-text{ margin-left: 60px; }
    /* ужимаем внутренности навбара, чтобы вписался без горизонтального скролла */
    .navbar-nav.d-xl-flex{ gap: 1.75rem !important; padding: 0 1.75rem !important; }
    .navbar .nav-link-custom{ width: auto; padding: 12px 16px; }
    /* ряд услуг переносится, если не помещается */
    .offers > .d-flex.ml-5.mt-5{ flex-wrap: wrap; }
}

/* ================= ПЛАНШЕТ (≤1199px) ================= */
@media (max-width: 1199px){
    .block-left-margin{ margin-left: 60px; }
    .equipment > div:first-child{ margin: 0 60px; }
    .contacts{ margin: 0 60px; }

    /* бургер вместо спрятанного меню; в шапке только логотип + бургер */
    .mobile-burger{ display: flex; }
    header nav.navbar{ justify-content: space-between; gap: 16px; }
    header nav.navbar .nav-link-custom{ display: none !important; }

    .video-text > .title{ font-size: 48px; }
    .certificate .title,
    .oil-types .title,
    .equipment .title,
    .pros .title,
    .clients-block .title,
    .contacts .title{ font-size: 40px; }

    /* достижения — 2 в ряд */
    .achievments{ flex-wrap: wrap; gap: 24px; max-width: 640px; }
    .achievments .item{ width: 45%; margin-right: 0; }
    .achievments .item .title{ min-height: 0; margin-bottom: 8px; }

    /* услуги в столбец пошире */
    .certificate > div:first-child > div:first-child{ margin-right: 3rem; }

    /* услуги: подпись сверху, карточки в ряд с переносом */
    .offers{ flex-direction: column; }
    .offers > .d-flex.ml-5.mt-5{ margin-left: 0 !important; margin-top: 1.5rem !important; flex-wrap: wrap; }
    .offers .item{ width: auto; flex: 1 1 220px; }

    /* карточки продуктов — 2×2 */
    .oil-types .hover-blocks{ flex-wrap: wrap; height: auto; }
    .hover-blocks .item{ width: calc(50% - .5rem); }

    /* «почему выбирают нас» — 2×2 */
    .pros .pros-icons{ flex-wrap: wrap; gap: 3rem 4rem; margin-top: 3rem; justify-content: center; }
    .pros-icons .item{ width: 40%; }

    .equipment .text{ width: auto; }
    .equipment-slider div img{ width: 100%; height: 420px; }
    .contacts .left-side{ width: auto; }
}

/* ================= ТЕЛЕФОН (≤767px) ================= */
@media (max-width: 767px){
    html{ overflow-x: hidden; }

    .block-left-margin{ margin-left: 20px; margin-right: 20px; }
    .block-margin{ margin-bottom: 64px; }
    .equipment > div:first-child{ margin: 0 20px; }
    .contacts{ margin: 0 20px; }
    .ml-5{ margin-left: 0; }

    /* ---- Шапка ---- */
    header nav.navbar{ flex-wrap: nowrap; gap: 10px; padding: 12px 0; }
    .navbar-brand{ width: 92px; }

    /* ---- Hero ---- */
    .video-container{ height: 100vh; }
    .video-container video{ border-radius: 40px; }
    .video-text{ height: auto; min-height: calc(100vh - 160px); justify-content: center; gap: 28px; padding-bottom: 24px; }
    .video-text > .title{ font-size: 30px; line-height: 1.15; }
    .video-text .small-text{ font-size: 14px; }
    .video-text .small-text img{ width: 24px; margin-right: .6rem; }
    .achievments{ gap: 18px 16px; max-width: none; }
    .achievments .item{ width: calc(50% - 8px); }
    .achievments .item .title{ font-size: 20px; }
    .achievments .item .text{ font-size: 13px; }

    /* ---- Надёжность / услуги ---- */
    .certificate > div:first-child{ flex-direction: column; align-items: flex-start !important; }
    .certificate > div:first-child > div:first-child{ width: 100%; margin-right: 0; }
    .certificate img.lightbox{ width: 100% !important; max-width: 320px; margin-top: 18px; }
    .certificate .title,
    .oil-types .title,
    .equipment .title,
    .pros .title,
    .clients-block .title,
    .contacts .title{ font-size: 27px; }
    .offers{ flex-direction: column; }
    .offers > .d-flex.ml-5.mt-5{ flex-direction: column; margin-top: 1.25rem !important; margin-left: 0 !important; }
    .offers .item{ width: 100%; margin-right: 0; margin-bottom: 12px; }

    /* ---- Продукты (карточки-видео) ---- */
    .oil-types .hover-blocks{ flex-direction: column; height: auto; gap: 14px; }
    .hover-blocks .item{ width: 100%; height: 200px; font-size: 24px; }
    .hover-blocks .item:hover{ height: 200px; }
    .hover-blocks .item video{ opacity: 1; }       /* на тач-экранах показываем видео сразу */
    .hover-blocks .item .text{ top: auto; bottom: 1.5rem; left: 1.5rem; }

    /* ---- Оборудование ---- */
    .equipment{ border-radius: 44px; padding: 3.5rem 0; }
    .equipment .text{ width: auto; margin: 1rem 0; }
    .equipment-slider{ margin-top: 3.5rem; }
    .equipment-slider div img{ width: 100%; height: 340px; }
    .equipment-slider .slick-prev{ right: 66px; top: -46px; }
    .equipment-slider .slick-next{ right: 6px; top: -46px; }

    /* ---- Почему выбирают нас ---- */
    .pros .pros-icons{ gap: 2.5rem 1rem; margin-top: 2.5rem; }
    .pros-icons .item{ width: calc(50% - .5rem); height: auto; }
    .pros-icons .item img{ width: auto; height: 120px; }
    .pros .text{ line-height: 1.5; }

    /* ---- Клиенты ---- */
    .clients-block{ height: auto; padding: 56px 0 64px; background-size: cover; background-position: center; }
    .clients-block > div{ top: 0; }
    .clients-block .small-text{ margin-left: 20px; }
    .clients-slider{ width: 100%; }
    .clients-block .tabs{ margin-bottom: 2.5rem; flex-wrap: wrap; }
    .clients-block .letters{ gap: 1rem; }

    /* ---- Контакты ---- */
    .contacts > div{ flex-direction: column; align-items: flex-start !important; gap: 18px; }
    .contacts .d-flex.gap-5{ gap: 18px !important; flex-wrap: wrap; }
    .contacts .left-side{ width: 100%; }
    .contacts img{ width: 150px; height: auto; }
    .contacts .details{ padding: .8rem 1.4rem; }
}

/* ================= УЗКИЙ ТЕЛЕФОН (≤480px) ================= */
@media (max-width: 480px){
    .video-text > .title{ font-size: 26px; }
    .achievments .item .title{ font-size: 18px; }
    .certificate .title,
    .oil-types .title,
    .equipment .title,
    .pros .title,
    .clients-block .title,
    .contacts .title{ font-size: 24px; }
    .navbar-brand{ width: 84px; }
}