@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --white: #ffffff;
    --white-gray: #f8f8f8;
    --gray: #6e6e6e;
    --primary: #42d7cd;
    --secondary: #148373;
    --black: #161616;
    --font-size-base: 1rem;
    --font-size-base-tablet: 0.95rem;
    --font-size-base-mobile: 0.875rem;
    --h1: 4rem;
    --h2: 3rem;
    --h3: 1.5rem;
    --h4: 1.25rem;
    --h1-tablet: 2.2rem;
    --h2-tablet: 1.8rem;
    --h3-tablet: 1.4rem;
    --h4-tablet: 1.15rem;
    --h1-mobile: 2rem;
    --h2-mobile: 1.6rem;
    --h3-mobile: 1.3rem;
    --h4-mobile: 1.1rem;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

h1 { font-size: var(--h1); margin: 0; padding: 0; color: var(--black) }
h2 { font-size: var(--h2); margin: 0; padding: 0; color: var(--black); }
h3, .logo-title-text, .title-services, .main-hero-des { font-size: var(--h3); margin: 0; padding: 0; color: var(--black); }
h4, .modal-close { font-size: var(--h4); margin: 0; padding: 0; }
p, a, button, input, label { font-size: var(--font-size-base); }
p, a, button, input { margin: 0; padding: 0; }
label { font-family: "Roboto", sans-serif; margin: 0; padding: 0; }
a { text-decoration: none; margin: 0; padding: 0; }
ul { list-style-type: none; margin: 0; padding: 0; }

@media (max-width: 991px) {
    body { font-size: var(--font-size-base-tablet); }
    h1 { font-size: var(--h1-tablet); }
    h2 { font-size: var(--h2-tablet); }
    h3, .logo-title-text, .title-services, .main-hero-des { font-size: var(--h3-tablet); }
    h4, .modal-close { font-size: var(--h4-tablet); }
    p, a, button, input, label { font-size: var(--font-size-tablet); }
}

@media (max-width: 767px) {
    body { font-size: var(--font-size-base-mobile); }
    h1 { font-size: var(--h1-mobile); }
    h2 { font-size: var(--h2-mobile); }
    h3, .title-services { font-size: var(--h3-mobile); }
    h4, .modal-close, .main-hero-des, .logo-title-text { font-size: var(--h4-mobile); }
    p, a, button, input, label {font-size: var(--font-size-mobile); }
}

.row {
    --bs-gutter-x: 0rem;
    --bs-gutter-y: 0rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 { width: 8.3333%; }
.col-2 { width: 16.6667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333%; }
.col-8 { width: 66.6667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.3333%; }
.col-11 { width: 91.6667%; }
.col-12 { width: 100%; }

@media (max-width: 767.98px) {
    .col-mobile-1 { width: 8.3333%; }
    .col-mobile-2 { width: 16.6667%; }
    .col-mobile-3 { width: 25%; }
    .col-mobile-4 { width: 33.3333%; }
    .col-mobile-5 { width: 41.6667%; }
    .col-mobile-6 { width: 50%; }
    .col-mobile-7 { width: 58.3333%; }
    .col-mobile-8 { width: 66.6667%; }
    .col-mobile-9 { width: 75%; }
    .col-mobile-10 { width: 83.3333%; }
    .col-mobile-11 { width: 91.6667%; }
    .col-mobile-12 { width: 100%; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-tablet-1 { width: 8.3333%; }
    .col-tablet-2 { width: 16.6667%; }
    .col-tablet-3 { width: 25%; }
    .col-tablet-4 { width: 33.3333%; }
    .col-tablet-5 { width: 41.6667%; }
    .col-tablet-6 { width: 50%; }
    .col-tablet-7 { width: 58.3333%; }
    .col-tablet-8 { width: 66.6667%; }
    .col-tablet-9 { width: 75%; }
    .col-tablet-10 { width: 83.3333%; }
    .col-tablet-11 { width: 91.6667%; }
    .col-tablet-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-desktop-1 { width: 8.3333%; }
    .col-desktop-2 { width: 16.6667%; }
    .col-desktop-3 { width: 25%; }
    .col-desktop-4 { width: 33.3333%; }
    .col-desktop-5 { width: 41.6667%; }
    .col-desktop-6 { width: 50%; }
    .col-desktop-7 { width: 58.3333%; }
    .col-desktop-8 { width: 66.6667%; }
    .col-desktop-9 { width: 75%; }
    .col-desktop-10 { width: 83.3333%; }
    .col-desktop-11 { width: 91.6667%; }
    .col-desktop-12 { width: 100%; }
}

.g-3, .gx-3 { --bs-gutter-x: 1rem; }
.g-3, .gy-3 { --bs-gutter-y: 1rem; }

.g-5, .gx-5 { --bs-gutter-x: 3rem; }
.g-5, .gy-5 { --bs-gutter-y: 3rem; }

.page {
    display: block;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0rem 1rem;
}

.header {
    display: block;
    background-color: var(--white);
    padding: 0.5rem 1.25rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    display: flex;
    flex: 0 0 5.5rem;
}

.logo img {
    display: flex;
    max-width: 100%;
}

.logo-title {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.25rem;
}

.logo-title-text {
    font-weight: 600;
    line-height: 1;
}

.logo-title-description {
    font-weight: 400;
    line-height: 1;
}

.menu {
    display: flex;
}

.menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu ul li a {
    color: var(--black);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu ul li a:hover {
    border-bottom: 2px solid var(--black);
}

.nav-callback {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-end;
    align-content: flex-end;
    gap: 0.25rem;
}

@media (max-width: 767.98px) {
   .nav-callback {
      display: none;
    } 
}

.nav-phone {
    display: flex;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    line-height: 1;
    font-size: 1.5rem;
}

.nav-mail {
    display: flex;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    line-height: 1;
    font-size: 1.5rem;
}

.nav-content-text {
    line-height: 1;
    font-weight: 400;
}

.hero {
    display: flex;
    align-items: center;         /* Центр по вертикали */
    position: relative;
    width: 100%;
    min-height: 50rem;
    background-color: var(--black);
    z-index: 1;
    overflow: hidden;
}


.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/wp-content/themes/topdis.ru/img/hero-main.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
}

.main-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-hero h1 {
    color: var(--white);
    text-transform: uppercase;
}

.main-hero-des {
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.5;
}

.hero-btn {
    display: flex;
    background-color: var(--primary);
    padding: 1.25rem 2.5rem;
    border-radius: 100rem;
    color: var(--black);
    font-weight: 500;
}

.main {
    display: flex;
    flex-flow: column nowrap;
    gap: 5rem;
    margin: 5rem 0rem;
}

.whyme, .services, .price, .sertificate {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    gap: 5rem;
}

.whyme-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

.main-h2 {
    display: block;
    padding: 0.75rem 0rem;
}

.block {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.block p {
    line-height: 1.75;
}

.block-why {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 2rem;
    padding: 2rem 1.25rem;
}

.block-why p {
    line-height: 1.75;
    text-align: center;
}

.block-services {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.services-icon {
    font-size: 2rem;
    color: var(--primary);
}

.block-services p {
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

.block-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-services {
    color: var(--black);
    font-weight: 400;
}

.price-table {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.price-table ul {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.5rem;
}

.price-weight {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.product {
    display: flex;
}

.price {
    display: flex;
}

@media (max-width: 767.98px) {
    .header {
        padding: 0.5rem;
    }

    .logo {
        flex: 0 0 4rem;
    }

    .nav-phone {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 30rem;
    }

    .main-hero {
        gap: 2rem;
    }

    .hero-benefits {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .hero-benefits li::before {
        padding-right: 0.5rem;
    }

    .main {
        gap: 2rem;
        margin: 2rem 0rem;
    }

    .whyme, .services, .price, .sertificate {
        gap: 2rem;
    }

    .block {
        padding: 2rem 1.5rem;
    }

    .price-table ul {
        gap: 1rem;
    }
}

.footer {
    display: block;
    width: 100%;
    padding: 2rem 0rem;
    background-color: var(--primary);
}

.footer-company {
    display: flex;
    justify-content: space-between;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

.slider-track img {
    height: 303px;
    width: auto;
    flex-shrink: 0;
    border-radius: 1rem;
    object-fit: cover;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.srt {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 1rem;
}

.srt-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.footer-about {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    gap: 0.5rem;
    color: var(--secondary);
}

@media (max-width: 767.98px) {
    .footer-company {
        flex-flow: column nowrap;
        gap: 2rem;
    }

    .footer-about {
        align-items: flex-start;
        padding: 0rem 0.4rem;
    }
}

.yur {
    text-align: center;
    line-height: 1.75;
    margin-top: 4rem;
    font-weight: 300;
}

#splash {
    position: fixed;
    inset: 0;               
    background-color: var(--primary);      
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .6s ease;
}

#splash.fade-out { opacity: 0; pointer-events: none; }

.splash-inner {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5rem;
    text-align: center;
    color: var(--black);
}

.splash-inner img {
    max-width: 160px;
}

.no-scroll {
    overflow: hidden;
}

.mobile-app {
    display: none;
}

.map-section {
    padding: 40px 20px;
    text-align: center;
}

.map-container {
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.address-info {
    font-size: 18px;
    font-weight: bold;
}

/* Стиль для кликабельных заголовков */
.clickable-title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.clickable-title:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Модальные окна */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
}

/* Содержимое окна — сильно шире (горизонтально вытянутое) */
.modal-content {
    position: relative;
    background: white;
    margin: 30px auto;        /* чуть уменьшил отступ сверху/снизу */
    padding: 30px;
    width: 96%;               /* почти на всю ширину экрана */
    max-width: 1600px;        /* ← сильно увеличена максимальная ширина */
    max-height: 94vh;
    border-radius: 12px;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Галерея — фото по горизонтали (крупные) */
.photos.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 10px 0;
}

.photos.gallery img {
    max-width: 420px;         /* размер фото оставил как в прошлой версии */
    max-height: 320px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: transform 0.25s ease;
}

.photos.gallery img:hover {
    transform: scale(1.03);
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Стили для окна про клещей */
#kleshchi .price-info {
    margin-top: 30px;
    padding: 25px;
    background: #e6f3ff;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #b3d9ff;
}

#kleshchi .price-info p {
    margin: 10px 0;
    font-size: 17px;
}

#kleshchi .price-info strong {
    color: #2c5aa0;
    font-size: 21px;
}

.kleshchi-info {
    margin-top: 30px;
    padding: 25px;
    background: #f0f9f0;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #a8e6a8;
}
.kleshchi-info p {
    margin: 10px 0;
    font-size: 17px;
}

.kleshchi-info strong {
    color: #2c5aa0;
    font-size: 21px;
}

/* Стили для самой плашки (чтобы текст был кликабельным) */
#klesh-bar .klesh-text {
    cursor: pointer;
}

#klesh-bar .klesh-text:hover {
    text-decoration: underline;
}

.photos {
    display: flex;
    justify-content: center;     /* выравнивание по центру */
    align-items: center;
    gap: 20px;                   /* расстояние между фото */
    flex-wrap: wrap;             /* перенос на мобильных */
    margin: 30px 0;
    padding: 10px 0;
}

.photos img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Базовые стили для плашки */
.rospotreb-badge {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #42d7cd;
    border-radius: 12px;
    padding: 24px 32px;
    color: #333;
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.rospotreb-badge:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Контейнер с flexbox */
.badge-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Стили для логотипа */
.badge-logo {
    border: 2px solid #42d7cd;
    border-radius: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background-color: white;
    padding: 6px;
    transition: border-color 0.3s ease;
}

.rospotreb-badge:hover .badge-logo {
    border-color: #42d7cd;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    color: #1e6c3e;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* Стили для текстового контента */
.badge-content {
    flex: 1;
    min-width: 0; /* Для правильного переноса текста */
}

.badge-title {
    font-weight: 700;
    font-size: 22px;
    color: #42d7cd;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.badge-text {
    font-size: 18px;
    color: #2d2d2d;
    font-weight: 500;
    line-height: 1.4;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
    
    .photos img {
        max-height: 300px;
    }
}

.rusoil-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rusoil-address {
    font-size: 14px;
    line-height: 1.4;
}

.rusoil-address p {
    margin: 5px 0;
}

.rusoil-address strong {
    color: #333;
}

.rusoil-address a {
    color: #2c5aa0;
    text-decoration: none;
}

.rusoil-address a:hover {
    text-decoration: underline;
}

/* Еще более компактный вариант */
.compact-map {
    max-width: 300px;
    padding: 15px;
}

.compact-map .small-map {
    height: 150px;
}

.clickable-service {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #2c5aa0;
}

/* Эффект при нажатии */
.clickable-service:active {
    transform: translateY(-2px);
}

/* Добавляем иконку фото справа */
.clickable-service::after {
    content: "📷";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0.7;
}

.clickable-service:hover::after {
    opacity: 1;
}

/* ====================== ПЛАШКА КЛЕЩИ — крестик вправо + опущен на мобильных ====================== */
#klesh-bar {
    background: #d32f2f;
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    font-size: 17px;
    line-height: 1.45;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

#klesh-bar .klesh-text {
    flex: 1 1 auto;
}

#klesh-bar strong {
    color: #ffeb3b;
}

/* Крестик сдвинут вправо */
#klesh-close {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
    cursor: pointer;
    padding: 6px 12px;
    opacity: 0.95;
}

#klesh-close:hover {
    opacity: 1;
    color: #ffeb3b;
    transform: translateY(-50%) scale(1.15);
}

/* Отступ для контента */
body {
    padding-top: 62px;
}

/* ====================== АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ ====================== */
@media (max-width: 768px) {
    #klesh-bar {
        font-size: 15px;
        padding: 13px 16px;        /* чуть больше вертикальный отступ */
        gap: 10px;
    }
    
    #klesh-close {
        font-size: 28px;
        right: 20px;
        top: 55%;                  /* ← опустили крестик вниз на телефонах */
        transform: translateY(-45%);
    }
    
    body {
        padding-top: 58px;         /* увеличил отступ, чтобы не перекрывало */
    }
    
    #klesh-bar .klesh-text {
        flex: 1 1 100%;
        text-align: center;
    }

@media (max-width: 480px) {
    #klesh-bar {
        font-size: 14.5px;
        padding: 12px 14px;
    }
    
    #klesh-close {
        right: 20px;
        font-size: 27px;
        top: 58%;                  /* ещё немного ниже на маленьких экранах */
        transform: translateY(-42%);
    }
}

@media (max-width: 767.98px) {
    .mobile-app {
        position: fixed;
        z-index: 9998;
        bottom: 1rem;
        right: 1rem;
        display: flex;
        flex-flow: column nowrap;
        gap: 1.5rem;
    }

    .social {
        display: flex;
        border-radius: 1rem;
        padding: 1rem;
    }

    .telegram {
        background-color: #239fdb;
        color: var(--white);
        font-size: 1.75rem;
    }

    .whatsup {
        background-color: #25d366;
        color: var(--white);
        font-size: 2rem;
    }
	
	.email {
        background-color: #d44638;
        color: var(--white);
        font-size: 1.75rem;
    }

    .mobile {
        background-color: var(--black);
        color: var(--white);
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .rospotreb-badge {
        padding: 20px;
        width: 100%;
    }
    
    .badge-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .badge-logo {
        width: 70px;
        height: 70px;
    }
    
    .badge-title {
        font-size: 20px;
    }
    
    .badge-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .rospotreb-badge {
        padding: 16px;
    }
    
    .badge-title {
        font-size: 18px;
    }
    
    .badge-text {
        font-size: 15px;
    }
    
    .badge-logo {
        width: 60px;
        height: 60px;
    }
}
