/* ==========================================================================
   FONTS & VARIABLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

:root {
  --font-family: "Ubuntu Sans", sans-serif;
  --second-family: "Inter", sans-serif;
  --third-family: "Playfair Display", sans-serif;
  --numbers-family: 'Forum', serif;
}


/* ==========================================================================
   RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #fff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(40, 40, 40, 0.9) !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    border-color: #dadada !important;
    transition: background-color 9999s ease-in-out 0s;
}


/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */

.container {
    max-width: 1318px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.data-aos {
    width: 100%;
    height: 100%;
}

.data-aos-1 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(26, 87, 61, 0.08);
    padding: 16px 0;
    z-index: 200;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__logo span {
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 24px;
    color: #282828;
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    color: rgba(40, 40, 40, 0.7);
    transition: .2s ease-in;
    white-space: nowrap;
}

.navbar__link:hover {
    color: #1a573d;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #1a573d;
    border: 1px solid #1a573d;
    color: #fff;
    transition: .3s ease-in;
    white-space: nowrap;
}

.navbar__whatsapp:hover {
    background: #fff;
    color: #1a573d;
}

.navbar__whatsapp span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 110%;
}

.navbar__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(26, 87, 61, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    color: #1a573d;
    transition: .3s ease-in;
    white-space: nowrap;
}

.navbar__phone:hover {
    background: rgba(26, 87, 61, 0.45);
    color: #fff;
}

.navbar__phone span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 110%;
}

/* Бургер-кнопка (скрыта на десктопе, включается в медиа-блоке 991px) */
.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    z-index: 200;
    position: relative;
    flex-shrink: 0;
}

.navbar__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a573d;
    border-radius: 2px;
    transition: .3s ease-in-out;
}

.navbar__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__burger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100dvh;
    background: #fff;
    padding: 100px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right .35s ease-in-out;
    z-index: 150;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu__link {
    display: block;
    padding: 14px 0;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    color: #282828;
    border-bottom: 1px solid rgba(26, 87, 61, 0.08);
    transition: .2s ease-in;
}

.mobile-menu__link:hover {
    color: #1a573d;
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto; /* прижимает кнопки к низу меню, даже если ссылок мало */
    padding-top: 24px; /* минимальный отступ от списка, если места впритык */
}

.mobile-menu__actions .navbar__whatsapp,
.mobile-menu__actions .navbar__phone {
    justify-content: center;
    padding: 12px 16px;
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease-in-out;
    z-index: 140;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #252525;
}

.footer__nav {
    padding: 40px 0 50px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    row-gap: 32px;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__logo a img {
    width: 57px;
    height: 64px;
}

.footer__logo a span {
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 32px;
    color: #fff;
}

.footer__logo p {
    max-width: 337px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 149%;
    color: rgba(255, 255, 255, 0.65);
}

.footer__navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Колонка "Навигация" — скрывается начиная с 991px, см. медиа-блок ниже.
   Обращаемся по классу footer__navbar--nav (добавлен в footer.html),
   а не по nth-of-type — так проще найти и не сломать при правках вёрстки. */


.footer__navbar h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c6a65e;
}

.footer__navbar--list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer__navbar--list.another {
    gap: 16px;
}

.footer__navbar--list.another li {
    display: flex;
    align-items: start;
    gap: 12px;
}

.footer__navbar--list.another li img {
    padding-top: 2px;
}

.footer__navbar--list.another.second li {
    align-items: center;
}

.footer__navbar--list.another .footer__navbar--img {
    border: 1px solid rgba(198, 166, 94, 0.2);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    background: rgba(198, 166, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer__navbar--list.another .footer__navbar--img img {
    padding-top: 0;
}

.footer__navbar--link {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.65);
    transition: .2s ease-in;
}

.footer__navbar--link-p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer__navbar--link-p span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.4);
}

.footer__navbar--link:hover {
    color: #fff;
}

.footer__policy {
    padding: 24px 0px;
    border-top: 1px solid rgba(198, 166, 94, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__policy--link {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.5);
}

.footer__policy--desc {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}


/* ==========================================================================
   МОДАЛКА ЗАПИСИ НА КОНСУЛЬТАЦИЮ (.consult-modal)
   ========================================================================== */

.consult-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consult-modal.active {
    display: flex;
}

.consult-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consult-modal.active .consult-modal__overlay {
    opacity: 1;
}

.consult-modal__window {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.consult-modal.active .consult-modal__window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.consult-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7f4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(40, 40, 40, 0.6);
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.consult-modal__close:hover {
    background: #ede8de;
    color: #1a573d;
    transform: rotate(90deg);
}

/* Блок специалиста (появляется, если консультацию открыли с карточки специалиста) */
.consult-modal__specialist {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f7f4ee;
    border-radius: 14px;
}

.consult-modal__specialist-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.consult-modal__specialist-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.consult-modal__specialist-name {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    color: #1a573d;
}

.consult-modal__specialist-info span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    color: #c6a65e;
}

/* Заголовок и подзаголовок модалки */
.consult-modal__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 24px;
}

.consult-modal__text h2 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 130%;
    color: #000;
}

.consult-modal__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 155%;
    color: rgba(40, 40, 40, 0.6);
}


/* ==========================================================================
   ФОРМЫ — общие для .consult-modal__form и .cta__form
   ========================================================================== */

.consult-modal__form,
.cta__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.consult-modal__field,
.cta__form--field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consult-modal__form input,
.cta__form--field input {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(18, 61, 43, 0.12);
    border-radius: 14px;
    padding: 15px 18px;
    background: #f7f4ee;
    outline: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    color: rgba(40, 40, 40, 0.9);
    transition: border-color 0.2s ease;
}

.consult-modal__form input:focus,
.cta__form--field input:focus {
    border-color: #1a573d;
}

.consult-modal__form input::placeholder,
.cta__form--field input::placeholder {
    color: rgba(40, 40, 40, 0.45);
}

.consult-modal__error,
.cta__form--error {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    color: #c0392b;
}

.cta__form--error-general {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    color: #c0392b;
}

.consult-modal__btn,
.cta__form--btn {
    margin-top: 4px;
    width: 100%;
    border-radius: 14px;
    padding: 15px 20px;
    background: #1a573d;
    border: 1px solid #1a573d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.consult-modal__btn:hover,
.cta__form--btn:hover {
    background: #12402d;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 87, 61, 0.25);
}

.consult-modal__policy,
.cta__form--policy {
    text-align: center;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 11px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.4);
}

.consult-modal__policy a,
.cta__form--policy a {
    color: rgba(40, 40, 40, 0.55);
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}


/* ==========================================================================
   АДАПТИВ
   Единая точка правды для всех медиа-запросов страницы.
   Порядок: 1200 → 991 → 768 → 576 → 420 (от большого к малому)
   ========================================================================== */

/* -------------------- 1200px: сужаем экшены хедера -------------------- */
@media (max-width: 1225px) {
    .navbar {
        gap: 20px;
    }

    .navbar__actions {
        gap: 8px;
    }

    /* Оставляем только иконки в кнопках WhatsApp/Телефон, убираем текст */
    .navbar__whatsapp span,
    .navbar__phone span {
        display: none;
    }

    .navbar__whatsapp,
    .navbar__phone {
        padding: 8px;
    }
}


/* -------------------- 991px: переключение на бургер-меню -------------------- */
@media (max-width: 991px) {
    /* Хедер → бургер */
    .navbar__list,
    .navbar__actions {
        display: none;
    }

    .navbar__burger {
        display: flex;
    }

    .navbar {
        gap: 20px;
    }

    .navbar__whatsapp span,
    .navbar__phone span {
        display: block;
    }

    /* Футер: убираем колонку "Навигация" — она дублирует бургер-меню */
    .footer__navbar--nav {
        display: none;
    }
}


/* -------------------- 768px: планшет, футер в 2 колонки -------------------- */
@media (max-width: 768px) {
    .footer__nav {
        column-gap: 24px;
        row-gap: 28px;
    }

    .footer__logo {
        width: 100%;
    }

    .footer__logo p {
        max-width: 420px;
    }

    .footer__navbar {
        flex: 1 1 auto;
        min-width: 160px;
    }

    /* Модалка консультации — чуть уже и компактнее для планшета */
    .consult-modal__window {
        max-width: 400px;
        padding: 48px 32px 32px;
    }

    .consult-modal__text {
        padding-right: 0;
    }
}


/* -------------------- 576px: мобильные -------------------- */
@media (max-width: 575px) {
    /* Хедер */
    .header {
        padding: 12px 0;
    }

    .navbar {
        gap: 12px;
    }

    .navbar__logo img {
        width: 45px;
    }

    .navbar__logo span {
        font-size: 18px;
    }

    .navbar__burger {
        width: 28px;
        height: 28px;
    }

    .navbar__burger span {
        width: 24px;
    }

    /* Мобильное меню */
    .mobile-menu {
        max-width: 100%;
        padding: 80px 16px 24px;
        gap: 28px;
    }

    .mobile-menu__link {
        font-size: 15px;
        padding: 12px 0;
    }

    .mobile-menu__actions .navbar__whatsapp span,
    .mobile-menu__actions .navbar__phone span {
        font-size: 12px;
    }

    /* Футер — полный вертикальный стек */
    .footer__nav {
        flex-direction: column;
        gap: 32px;
        padding: 32px 0 40px;
    }

    .footer__logo a img {
        width: 44px;
        height: 50px;
    }

    .footer__logo a span {
        font-size: 24px;
    }

    .footer__logo p {
        max-width: 100%;
        font-size: 14px;
    }

    .footer__navbar h2 {
        font-size: 13px;
    }

    .footer__navbar--link,
    .footer__navbar--link-p,
    .footer__navbar--link-p span {
        font-size: 13px;
    }

    .footer__policy {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0;
    }

    .footer__policy--desc {
        text-align: left;
    }

    .footer__policy--link,
    .footer__policy--desc {
        font-size: 11px;
    }

    /* Модалка консультации — почти на весь экран */
    .consult-modal__window {
        max-width: 100%;
        padding: 28px 24px;
        border-radius: 16px;
    }

    .consult-modal__text h2 {
        font-size: 20px;
    }

    .consult-modal__specialist {
        padding: 12px;
        gap: 10px;
    }

    .consult-modal__specialist-img {
        width: 44px;
        height: 44px;
    }
}


/* -------------------- 420px: узкие экраны (iPhone SE и похожие) -------------------- */
@media (max-width: 420px) {
    .consult-modal__window {
        padding: 24px 20px;
    }

    .consult-modal__text h2 {
        font-size: 18px;
    }

    .footer__logo a span {
        font-size: 20px;
    }

    .mobile-menu {
        padding: 72px 14px 20px;
    }

    .consult-modal__form input,
    .cta__form--field input,
    .consult-modal__btn,
    .cta__form--btn {
        padding: 13px 16px;
        font-size: 13.5px;
    }
}



/* ==========================================================================
   ПЛАВАЮЩИЕ КНОПКИ — WhatsApp + "Наверх"
   Логика: WhatsApp всегда виден снизу. После скролла — WhatsApp плавно
   уезжает выше, а на его место (нижний угол) выезжает кнопка "Наверх".
   ========================================================================== */

.hero__socials {
    position: fixed;
    right: 24px;
    bottom: 24px; /* базовая позиция — нижний угол */
    z-index: 100;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__socials.is-shifted {
    bottom: 92px; /* 24 (низ) + 56 (высота кнопки) + 12 (зазор) — уступает место */
}

.hero__social--link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__social--link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

.hero__social--link img {
    width: 44px;
    height: 44px;
}

.scroll-top {
    border: none;
    position: fixed;
    right: 24px;
    bottom: 24px; /* занимает тот же нижний угол, что WhatsApp в базовом состоянии */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 215; /* чуть ниже WhatsApp, чтобы в момент нахлёста WhatsApp был поверх */
    box-shadow: 0 6px 20px rgba(26, 87, 61, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #c6a65e;
    box-shadow: 0 10px 26px rgba(198, 166, 94, 0.4);
}

@media (max-width: 575px) {
    .hero__socials {
        right: 16px;
        bottom: 16px;
    }

    .hero__socials.is-shifted {
        bottom: 76px; /* 16 + 48 + 12 */
    }

    .hero__social--link {
        width: 50px;
        height: 50px;
    }

    .hero__social--link img {
        width: 40px;
        height: 40px;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}




/* ==========================================================================
   ТОСТ — единое уведомление об успешной отправке для всех AJAX-форм сайта
   ========================================================================== */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(16px);
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 14px;
    background: #1a573d;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    max-width: calc(100vw - 32px);
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast svg {
    flex-shrink: 0;
    color: #c6a65e;
}

.toast span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
}

@media (max-width: 575px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        transform: translateY(16px);
        max-width: none;
    }

    .toast.is-visible {
        transform: translateY(0);
    }
}




/* ==========================================================
   Universal autofill background fix
   Убирает синюю/жёлтую заливку браузера на автозаполненных полях
   Подключать первым/последним в общем CSS-файле проекта
   ========================================================== */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    transition: background-color 600000s 0s, color 600000s 0s !important;
    -webkit-text-fill-color: currentColor !important;
    caret-color: currentColor !important;
}

input:autofill,
textarea:autofill,
select:autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: currentColor !important;
}

.dark-input:-webkit-autofill,
.dark-input:autofill {
    box-shadow: 0 0 0 1000px #1a1a1a inset !important;
}