/*
Theme Name: DWM
Author: YA-V4
Description: dwm theme
Version:  1.0
*/

/* =========================================================
   Design tokens — Fruit River Group

   Джерело: панель палітри на дизайн-борді (Figma canvas 2012:2803,
   свотчі 2012:3489-3496 + градієнт 2012:3507).
   УВАГА: сторінка "Style Guide" (2034:218) відстала від дизайну —
   там інші значення (#568A35, #D84322, #F8F8F2...). Не брати звідти.
   ========================================================= */
:root {
    --white: #FDFDFE;
    --grey: #83868B;
    --dark: #0A2C2A;
    /* основний текст */
    --darkest: #07201E;
    --green: #379218;
    --green-dark: #0F4418;
    --red: #CE0C15;
    --teal: #23A5BF;
    /* застосований в елементах і в градієнті */
    --teal-bright: #21B8D6;
    /* свотч палітри */

    --brand-gradient: linear-gradient(266.27deg,
            #0C3533 0.79%,
            #23A5BF 36.96%,
            #0DAB7E 51.97%,
            #379218 67.94%,
            #0F4418 99.89%);

    --radius-pill: 24px;
    --radius-card: 24px;

    /* Bootstrap читає свій шрифт із цієї змінної — задаємо її, щоб тема
       не залежала від порядку підключення файлів. */
    --bs-font-sans-serif: 'Ruda', 'Trebuchet MS', system-ui, sans-serif;
    --bs-body-font-family: 'Ruda', 'Trebuchet MS', system-ui, sans-serif;
}


body {
    font-family: 'Ruda', 'Trebuchet MS', system-ui, sans-serif;
    color: var(--dark) !important;
}

/* Заголовки у новому дизайні — зелені за замовчуванням.
   Червоні/бірюзові/білі винятки задані класами нижче. */
h1,
h2,
h3 {
    color: var(--green);
}

h1 {
    font-weight: 900 !important;
    font-size: 53px !important;
    line-height: 1.25em !important;
}

h2 {
    font-weight: 900 !important;
    font-size: 36px !important;
    line-height: 1.25em !important;
}

h3 {
    font-weight: 800 !important;
    font-size: 24px !important;
    line-height: 1.25em !important;
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
}

/* small зі Style Guide — раніше в темі його не було взагалі */
small,
.small {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5em;
}

@media only screen and (max-width: 990px) {
    h1 {
        font-weight: 900 !important;
        font-size: 32px !important;
        line-height: 1.25em !important;
    }

    h2 {
        font-weight: 900 !important;
        font-size: 28px !important;
        line-height: 1.25em !important;
    }

    h3 {
        font-weight: 800 !important;
        font-size: 20px !important;
        line-height: 1.25em !important;
    }

    p {
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5em;
    }

    small,
    .small {
        font-weight: 400;
        font-size: 14px;
        line-height: 1.5em;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    flex-direction: column;
    justify-content: flex-start;
}

.mobile-menu-header {
    padding: 24px;
    background-image: var(--brand-gradient);
}

.mob-search {
    margin: 40px 24px;
}

.mobile-menu-bkg {
    /* Мобільного макета в Figma немає — переведено на нову палітру: біле полотно,
       темно-зелені пункти меню, градієнтна шапка згори */
    background-color: var(--white);
    flex: 1;
}

@media screen and (max-width: 990px) {
    .header {
        padding: 24px !important;
    }
}

.header {
    padding: 10px 7.6%;
    background-image: var(--brand-gradient);
    row-gap: 16px;
}

.navbar button {
    padding: 0;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
    /* removes focus outline */
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-icon,
.btn,
.close-btn {
    border-radius: 16px;
    padding: 12px;
    background-color: var(--red);
    border: none;
}

.w-fit {
    width: fit-content !important;
}

.nav-menu {
    gap: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu a {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

@media screen and (min-width: 990px) {
    .nav-item a {
        color: var(--white) !important;
    }
}

.nav-item a {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: var(--green-dark);
}

.search {
    position: relative;
}

.search input {
    width: 100%;
    background-color: var(--white);
    padding: 14px 24px;
    font-weight: 400;
    font-size: 16px;
    border-radius: 24px;
    border: none;
}

.search input::placeholder {
    color: var(--grey);
}

.search svg {
    position: absolute;
    top: 18px;
    right: 24px;
}

.logo img {
    height: 67px;
}

.red-text {
    color: var(--red);
}

.hero {
    margin-top: 32px;
}

.hero-block {
    gap: 40px;
}

@media screen and (max-width: 992px) {
    .hero-img {
        border-radius: 0;
    }

    .feedback {
        padding: 24px !important;
        overflow: hidden;
    }

    .swiper-button-next img,
    .swiper-button-prev img {
        display: none;
    }

    .prod-post-prev,
    .prod-post-next {
        display: flex !important;
        position: absolute;
        top: 55%;
        z-index: 5;
    }
}

.hero-img {
    width: 100%;
}

@media only screen and (max-width: 990px) {
    .hero-text {
        padding: 24px !important;
    }
}

.hero-text {
    padding: 24px 110px 24px 0;
    gap: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Secondary button (біла, тонкий бордер) --- */
.cta-grey a {
    color: var(--dark);
    background-color: var(--white);
    border: solid 2px var(--dark);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    transition: color .2s ease, border-color .2s ease;
}

.cta-grey a:hover {
    color: var(--green);
    border-color: var(--green);
    background-color: var(--white);
}

/* --- Primary button (червона) --- */
.cta a,
.send button,
.footer-form input[type="submit"],
.footer-form-mob input[type="submit"] {
    font-weight: 700;
    font-size: 18px;
    color: var(--white) !important;
    text-decoration: none;
    padding: 16px 32px;
    background-color: var(--red);
    border-radius: var(--radius-pill);
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    border: solid 2px var(--red);
    transition: background-image .2s ease;
}

/* Ховер = той самий червоний + білий шар 20% (як у Figma) */
.cta a:hover,
.send button:hover,
.footer-form input[type="submit"]:hover,
.footer-form-mob input[type="submit"]:hover {
    background-color: var(--red);
    border-color: var(--red);
    background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2));
}

#know-more:hover {
    color: var(--green) !important;
    background-color: var(--white) !important;
    border: solid 2px var(--green);
    border-radius: var(--radius-pill);
}

@media only screen and (max-width: 990px) {}

.more {
    color: var(--teal);
    text-decoration: none;
    display: flex;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    align-items: center;
}

@media screen and (max-width: 990px) {}

@media screen and (max-width: 992px) {}

/* Відступи за макетом (Figma 2012:2915): 112px від попереднього блоку,
   16px заголовок→сабтайтл, 40px сабтайтл→картки */
.our-products {
    text-align: center;
    margin-top: 112px;
    margin-bottom: 120px;
}

.our-products h2 {
    margin-bottom: 16px;
}

/* Сабтайтл: 806 з 1221 контейнера = 2/3 ширини, по центру */
.our-products-text {
    color: var(--dark);
    text-align: center;
    max-width: 66.66%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

@media screen and (max-width: 990px) {
    .our-products {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .our-products-text {
        max-width: 100%;
    }
}

.product-card {
    max-height: 430px;
    background-color: var(--white);
    border: solid 2px var(--grey);
    padding: 32px !important;
    border-radius: var(--radius-card);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Ховер: бірюзове коло виїжджає знизу (Figma 2025:600) */
.card-blob {
    position: absolute;
    left: 50%;
    bottom: -486px;
    width: 486px;
    height: 486px;
    border-radius: 50%;
    background-color: var(--teal);
    opacity: .5;
    transform: translateX(-50%);
    transition: bottom .4s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover .card-blob {
    bottom: -244px;
}

.product-card>*:not(.card-blob) {
    position: relative;
    z-index: 1;
}

.product-card:hover .more {
    color: var(--white);
}

.product-card:hover .more svg path {
    stroke: var(--white);
}

.product-card img {
    max-width: 110px;
    min-height: 110px;
    border-radius: 20px;
}

.product-card p {
    font-size: 15px;
    overflow: hidden;
}


.feedback {
    margin-bottom: 120px;
}

.feedback-card {
    color: var(--dark);
    background-color: var(--white);
    border: solid 2px var(--grey);
    padding: 40px 32px !important;
    border-radius: var(--radius-card);
    text-align: left;
    gap: 24px;
    justify-content: space-between;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
}

.feedback-stars {
    gap: 12px;
}

.feedback-name {
    font-weight: 700;
    margin: 0;
    color: var(--green);
}

.faqs {
    margin: 0 auto 120px;

}

.faqs-accordion svg {
    height: 24px;
    width: 24px;
}

.faqs-accordion {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    color: var(--green);
    padding: 32px 0 0 0;
    display: flex;
    justify-content: space-between;
}

.faqs-accordion h3 {
    color: var(--green);
}

.panel p {
    color: var(--dark);
}

.panel {
    border-bottom: solid 2px var(--grey);
    padding-bottom: 16px;
    display: none;
}

.close {
    display: none;
}

.close .open {
    width: 24px;
}

.footer {
    position: relative;
}

.footer-info {
    background-image: var(--brand-gradient);
    padding: 64px 110px;
    gap: 32px;
}

.footer-text {
    color: var(--white);
}

.footer-copyright {
    padding: 16px 110px;
    background-color: var(--green);
    color: var(--white);
    row-gap: 16px;
    justify-content: space-between;
    font-size: 15px;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: var(--white);
}

.jump-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
}

@media screen and (max-width: 992px) {
    .footer-info {
        text-align: center;
    }
}


.footer-form {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 32px;
    padding: 36px 36px 0px;

    position: absolute;
    top: 80px;
    left: 60%;
}

.footer-form-mob {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 32px;
    padding: 48px;
    row-gap: 24px;
    /* якір для абсолютного .wpcf7-response-output */
    position: relative;
}

.footer-form-mob-bckg {
    padding: 24px;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer-form input,
.footer-form-mob input {
    width: 100%;
    background-color: var(--white);
    padding: 14px 24px;
    font-weight: 400;
    font-size: 16px;
    border-radius: 24px;
    border: solid 2px var(--grey);
}

#comment {
    height: 110px;
}

#comment::placeholder {
    position: absolute;
    left: 16px;
    top: 16px;
}

/* .custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #999980;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 25px;
    height: 25px;
    border: 2px solid var(--grey);
    border-radius: 8px;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked+.checkmark {
    background-color: var(--teal);
    border-color: var(--teal);
}

.custom-checkbox input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
} */
/* Hide default checkbox */
.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Wrapper label layout */
.custom-checkbox {
    display: flex;
    align-items: center;
}

/* Custom checkbox box */
.checkmark {
    width: 25px;
    height: 25px;
    border: 2px solid var(--grey);
    border-radius: 8px;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

/* When checkbox is checked, change background */
.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: var(--teal);
    border-color: var(--teal);
}

/* Show white checkmark */
.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Align checkbox text */
.checkbox-text {
    font-size: 16px;
    line-height: 25px;
}


/*about page styles*/
@media screen and (max-width: 992px) {
    .about-us {
        padding: 24px !important;
    }

    .about-company-text {
        padding: 24px !important;
    }

}

.about-us {
    text-align: center;
    padding: 80px 0;
}

.about-us img {
    width: 100%;
}

.hero-about {
    border-radius: 50px;
    max-height: 500px;
    overflow: hidden;
}

.features {
    padding-top: 40px;
    padding-left: 45px;
    padding-right: 45px;
}

.features-card img {
    padding-bottom: 16px;
    max-width: 80px;
}

.features-card p {
    max-width: 300px;
}

.about-company-text {
    padding-left: 110px;
}

.about-company-text ul {
    padding-left: 20px;
}

.about {
    margin-bottom: 80px;

}

.gallery img {
    border-radius: 32px;
}

#swiper-gallery {
    top: 60% !important;
}

/* Ensure arrows stay inside the container */
/* Navigation Arrows */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.prod-pagination {
    display: none;
}

@media screen and (max-width: 990px) {

    .truck-next,
    .truck-prev {
        display: none;
    }

    .prod-pagination {
        display: block !important;
        position: static;
    }

    #truck-swiper-pagination {
        position: static;
        margin: 16px 0 24px 0;
    }

    .products-head,
    .products,
    .services,
    .safe-transport,
    .safe-transport h2,
    .safe-transport h3,
    .safe-transport p {
        padding: 0 24px !important;
    }
}

.swiper-product {
    padding: 32px !important;
}

.prod-post-prev,
.prod-post-next {
    display: none;
}

.prod-post-next {
    right: 0;
}

.prod-post-prev {
    left: 0;
}

.truck-next,
.truck-prev {
    position: absolute !important;
    top: 38%;
    z-index: 10;
}

#truck-swiper-pagination {
    bottom: 16px !important;
}

.truck-next {
    right: var(--swiper-navigation-sides-offset, 0px);
}

.truck-prev {
    left: var(--swiper-navigation-sides-offset, 0px);
}

.swiper-button-feed {
    top: 60% !important;
}

.swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 0px) !important;
}

.swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 0px) !important;
}

/* Pagination */
.swiper-feed .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
}

.swiper-pagination-bullet {
    background-color: var(--grey) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--teal) !important;
}

.swiper-pagination {
    bottom: -48px !important;
}

/* products page styles*/


@media screen and (max-width: 992px) {
    .products-head p {
        padding: 0px !important;
        text-align: left;
    }
}

.products-head {
    margin-top: 80px;
    gap: 24px;
    margin-bottom: 50px;
    text-align: center;
}

.products {
    margin-bottom: 120px;
    gap: 24px;
}

.products-head p {
    padding: 0 100px;
}

.product h3 {
    margin-bottom: 16px;
}

.product {
    margin-bottom: 40px;
}

.product img {
    max-height: 320px;
    width: 100%;
    border-radius: 32px;
    margin-bottom: 24px;
}

.services {
    margin-bottom: 120px;
}

.truck-swiper {
    overflow: hidden;
}

.safe-transport {
    text-align: center;
    margin-bottom: 120px;
}

.safe-transport h2,
.safe-transport h3,
.safe-transport p {
    padding: 0 100px;
}

.cta-wrapper {
    max-width: 339px !important;
    margin-top: 100px !important;
}


/*contacts*/

.contacts {
    padding-top: 80px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.contact-item img {
    max-width: 32px;
}

.map iframe {
    border-radius: 32px;
}

/* =========================================================
   Редизайн 2026 — нові компоненти й уточнення
   ========================================================= */

.teal-text {
    color: var(--teal);
}

.green-text {
    color: var(--green);
}

.dark-text {
    color: var(--dark);
}

/* --- Хедер: ховер меню + перемикач мов (розмітка в header.php поки закоментована) --- */
.nav-item a:hover,
.nav-item a.is-active {
    color: var(--green-dark) !important;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    background-color: var(--white);
    border-radius: var(--radius-pill);
    list-style: none;
    margin: 0;
}

.lang-switch a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: var(--teal);
    text-decoration: none;
}

.lang-switch a.is-active {
    background-color: var(--teal);
    color: var(--white);
}

/* --- Відео-секція (YouTube, click-to-play) --- */
.video-section {
    margin-bottom: 120px;
}

.video-frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 1221 / 683;
    background-color: var(--dark);
    cursor: pointer;
}

.video-frame>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    padding: 0;
    border: none;
    background-color: transparent !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 4px 16px rgba(10, 44, 42, .35));
}

@media screen and (max-width: 990px) {
    .video-section {
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .video-frame {
        border-radius: 24px;
    }

    .video-play,
    .video-play svg {
        width: 56px;
        height: 56px;
    }
}

/* --- Група компаній (лого з Опцій) --- */
.group-companies {
    text-align: center;
    margin-bottom: 120px;
}

.companies-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.companies-row img {
    max-height: 280px;
    max-width: 280px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 990px) {
    .group-companies {
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .companies-row {
        gap: 32px;
    }

    .companies-row img {
        max-height: 80px;
        max-width: 140px;
    }
}

/* --- Форма у футері: заголовок + textarea + сабміт CF7 --- */
.footer-form h3,
.footer-form-mob h3 {
    color: var(--green);
}

.footer-form textarea,
.footer-form-mob textarea {
    width: 100%;
    background-color: var(--white);
    padding: 14px 24px;
    font-weight: 400;
    font-size: 16px;
    border-radius: var(--radius-pill);
    border: solid 2px var(--grey);
    height: 110px;
    resize: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder,
.footer-form-mob input::placeholder,
.footer-form-mob textarea::placeholder {
    color: var(--grey);
}

.footer-form input[type="submit"],
.footer-form-mob input[type="submit"] {
    background-color: var(--red);
    border: solid 2px var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    width: 100%;
    transition: background-image .2s ease;
}

.footer-form input[type="submit"]:hover,
.footer-form-mob input[type="submit"]:hover {
    background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2));
}

/* --- Контакти: підпис сірий/темний, значення бірюзове --- */
.contact-item p {
    color: var(--dark);
}

.contact-item h3 {
    color: var(--teal);
}

.contact-item a {
    color: var(--teal);
}

/* Винятки для h3 (див. коментар біля h1,h2,h3) */
.footer-text h3 {
    color: var(--white);
}

.features-card h3 {
    color: var(--green);
}

/* =========================================================
   Мобільне меню — нова палітра (макета в Figma немає)
   ========================================================= */
.mob-search input {
    border: solid 2px var(--grey);
}

.mobile-menu-bkg .nav-item a {
    color: var(--green-dark);
}

.mobile-menu-bkg .nav-item a:hover {
    color: var(--teal) !important;
}

/* =========================================================
   Contact Form 7 у футері
   ========================================================= */
.footer-form .wpcf7,
.footer-form-mob .wpcf7 {
    width: 100%;
}

/* CF7 обгортає кожне поле в <p> — прибираємо його відступи */
.footer-form .wpcf7-form p,
.footer-form-mob .wpcf7-form p {
    margin: 0;
}

.footer-form .form-row,
.footer-form-mob .form-row {
    margin-bottom: 24px;
}

.footer-form .form-row:last-of-type,
.footer-form-mob .form-row:last-of-type {
    margin-bottom: 0;
}

.footer-form .wpcf7-form-control-wrap,
.footer-form-mob .wpcf7-form-control-wrap {
    display: block;
    /* якір для абсолютної підказки помилки; не спираємось на стилі плагіна */
    position: relative;
}

/* Поля */
.footer-form .wpcf7-form-control.input,
.footer-form-mob .wpcf7-form-control.input {
    width: 100%;
    background-color: var(--white);
    color: var(--dark);
    padding: 14px 24px;
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    border-radius: var(--radius-pill);
    border: solid 2px var(--grey);
}

.footer-form textarea.input,
.footer-form-mob textarea.input {
    height: 110px;
    resize: none;
}

/* Якщо коментар лишається [text] — вирівнюємо плейсхолдер по верху */
.footer-form input#comment,
.footer-form-mob input#comment {
    height: 110px;
    padding-bottom: 68px;
}

/* Кастомний чекбокс: працює і з реальним input, і з розміткою .checkmark */
.footer-form .custom-checkbox,
.footer-form-mob .custom-checkbox,
.footer-form .wpcf7-acceptance label,
.footer-form-mob .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--grey);
    cursor: pointer;
    margin: 0;
}

.footer-form .custom-checkbox br,
.footer-form-mob .custom-checkbox br {
    display: none;
}

.footer-form input[type="checkbox"],
.footer-form-mob input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    margin: 0;
    border: 2px solid var(--grey);
    border-radius: 8px;
    background-color: var(--white);
    cursor: pointer;
    position: relative;
    transition: background-color .2s ease, border-color .2s ease;
}

.footer-form input[type="checkbox"]:checked,
.footer-form-mob input[type="checkbox"]:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.footer-form input[type="checkbox"]:checked::after,
.footer-form-mob input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 7px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Розмітка з окремим <span class="checkmark"> (стара) */
.custom-checkbox .checkmark {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border: 2px solid var(--grey);
    border-radius: 8px;
    display: inline-block;
    position: relative;
    margin: 0;
    transition: background-color .2s ease, border-color .2s ease;
}

.custom-checkbox:has(input[type="checkbox"]:checked) .checkmark {
    background-color: var(--teal);
    border-color: var(--teal);
}

.custom-checkbox:has(input[type="checkbox"]:checked) .checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 7px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Якщо є і реальний чекбокс, і .checkmark — реальний ховаємо */
.custom-checkbox:has(.checkmark) input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 25px;
    height: 25px;
    margin: 0;
}

.checkbox-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--grey);
}

/* CF7 ховає власний підпис списку — текст беремо зі своєї розмітки */
.footer-form .wpcf7-list-item,
.footer-form-mob .wpcf7-list-item {
    margin: 0;
}

/* Кнопка "Надіслати" */
.footer-form .wpcf7-submit,
.footer-form-mob .wpcf7-submit,
.footer-form .btn-submit,
.footer-form-mob .btn-submit {
    width: 100%;
    margin-top: 24px;
    padding: 16px 32px;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    background-color: var(--red);
    border: solid 2px var(--red);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-image .2s ease;
}

.footer-form .wpcf7-submit:hover,
.footer-form-mob .wpcf7-submit:hover,
.footer-form .btn-submit:hover,
.footer-form-mob .btn-submit:hover {
    background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2));
}

/* Валідація / відповіді */
.footer-form .wpcf7-not-valid,
.footer-form-mob .wpcf7-not-valid {
    border-color: var(--red) !important;
}

/* --- Помилки валідації НЕ повинні змінювати висоту картки ---
   CF7 6.x додає .wpcf7-not-valid-tip (display:block) під кожним полем
   і .wpcf7-response-output після полів. У потоці це розтягує форму, а вона
   позиціонована абсолютно над фото футера — і вилазила під копірайти.
   Тому обидва елементи виводимо з потоку. */

/* Підказка сідає у вже наявний 24px проміжок між полями */
.footer-form .wpcf7-not-valid-tip,
.footer-form-mob .wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 0;
    margin: 2px 0 0;
    color: var(--red);
    font-size: 12px;
    line-height: 1.4;
    /* одним рядком, щоб гарантовано не наїхати на наступне поле */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Чекбокс згоди: обгортка лежить у <label>, тому прив'язуємо до рядка */
.footer-form .form-checkbox,
.footer-form-mob .form-checkbox {
    position: relative;
}

.footer-form .form-checkbox .wpcf7-not-valid-tip,
.footer-form-mob .form-checkbox .wpcf7-not-valid-tip {
    top: calc(100% + 2px);
    left: 33px;
}

/* Загальне повідомлення — одним рядком у нижньому падінгу картки, без рамки.
   Картка від цього не росте, бо елемент виведений з потоку. */
.footer-form .wpcf7-response-output,
.footer-form-mob .wpcf7-response-output {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: -6px;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.4;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark);
    /* height: 32px; */
}

.footer-form-mob .wpcf7-response-output {
    left: 48px;
    right: 48px;
    bottom: 16px;
}

.footer-form form.sent .wpcf7-response-output,
.footer-form-mob form.sent .wpcf7-response-output {
    color: var(--green);
}

.footer-form form.invalid .wpcf7-response-output,
.footer-form form.failed .wpcf7-response-output,
.footer-form form.unaccepted .wpcf7-response-output,
.footer-form-mob form.invalid .wpcf7-response-output,
.footer-form-mob form.failed .wpcf7-response-output,
.footer-form-mob form.unaccepted .wpcf7-response-output {
    color: var(--red);
}

.wpcf7-spinner {
    background-color: var(--teal) !important;
}

/* =========================================================
   Співпраця (Про нас)
   ========================================================= */
.cooperation-text h3 {
    margin-bottom: 16px;
}

.cooperation-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Про нас — секції з Flexible Content
   Класи-аналоги старих #left / #right / #right-text (ті id були
   дубльовані в розмітці; на головній вони поки лишаються).
   ========================================================= */
.hero-img.img-left {
    border-radius: 0 50px 50px 0;
}

.hero-img.img-right {
    border-radius: 50px 0 0 50px;
}

.about-company-text.is-text-right {
    margin-right: 110px;
}

/* Раніше hero і "переваги" були одним блоком .about-us з padding 80px 0.
   Тепер це дві секції — розводимо падінги, щоб відступи не подвоїлись. */
.about-us--hero {
    padding-bottom: 0;
}

.about-us--features {
    padding-top: 0;
}

@media screen and (max-width: 992px) {
    .hero-img.img-left {
        padding-right: 24px;
        border-radius: 0;
    }

    .hero-img.img-right {
        padding-left: 24px;
        border-radius: 0;
    }

    .about-company-text.is-text-right {
        margin-right: 0 !important;
    }

    .about-us--hero {
        padding-bottom: 0 !important;
    }

    .about-us--features {
        padding-top: 0 !important;
    }
}

/* =========================================================
   Типографічні утиліти для візуального редактора
   Ці ж класи використовує TinyMCE (меню «Стилі»), тому те, що
   редактор показує, і те, що виводиться на фронті — одне й те саме.
   Розмір і насиченість розділені: розмір ставиться на абзац,
   насиченість — на виділені слова всередині.
   ========================================================= */
.fs-h1 {
    font-size: 53px;
    line-height: 1.25em;
}

.fs-h2 {
    font-size: 36px;
    line-height: 1.25em;
}

.fs-h3 {
    font-size: 24px;
    line-height: 1.25em;
}

.fs-p {
    font-size: 18px;
    line-height: 1.5em;
}

.fs-small {
    font-size: 15px;
    line-height: 1.5em;
}

@media only screen and (max-width: 990px) {
    .fs-h1 {
        font-size: 32px;
    }

    .fs-h2 {
        font-size: 28px;
    }

    .fs-h3 {
        font-size: 20px;
    }

    .fs-p {
        font-size: 16px;
    }

    .fs-small {
        font-size: 14px;
    }
}

.fw-regular {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-extrabold {
    font-weight: 800;
}

.fw-black {
    font-weight: 900;
}

/* =========================================================
   Секція «Текст + фото»: керований відступ (поле spacing)
   Базовий проміжок між блоками дає .about (margin-bottom: 80px);
   ці класи додають 80px там, де редактор попросив.
   Раніше на секції висів Bootstrap-клас p-0 (padding: 0 !important) —
   він би перебивав ці правила, тому в партіалі його прибрано.
   ========================================================= */
.text-media.is-space-top {
    padding-top: 80px;
}

.text-media.is-space-bottom {
    padding-bottom: 80px;
}

.text-media.is-space-both {
    padding-top: 80px;
    padding-bottom: 80px;
}