/* ==========================================================================
   ТІНМЕД — clean layout (база + хедер + футер)
   Спільний шар для всіх мігрованих сторінок. Ізольований від Tilda.
   ========================================================================== */

:root {
    --white:      #ffffff;
    --dark:       #3a433c;   /* темна смуга / мобільне меню */
    --brown:      #4c4441;   /* CTA-банер, темні секції */
    --green:      #79c333;   /* брендовий зелений (з логотипа) */
    --green-dark: #66a827;
    --accent:     #3a433c;   /* основні кнопки */
    --accent-2:   #2e352f;   /* hover кнопок */
    --text:       #2f2f2f;
    --text-strong:#000000;
    --muted:      #b9b3ae;
    --line:       #e6e6e6;
    --container:  1200px;
    --pad-x:      20px;
    --header-h:   100px;
    --font:       'Nunito Sans', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


.clean-body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.clean-body img { max-width: 100%; height: auto; display: block; }
.clean-body a { color: inherit; text-decoration: none; }
.clean-body h1, .clean-body h2, .clean-body h3, .clean-body p, .clean-body ul { margin: 0; }
.clean-body ul { list-style: none; padding: 0; }
.site-main { display: block; }

/* тонка темна смуга згори сторінки */
.site-topbar { height: 6px; background: var(--dark); }

/* ==========================================================================
   ХЕДЕР
   ========================================================================== */
.site-header { background: var(--white); position: relative; z-index: 100; }
.site-header__inner {
    max-width: var(--container);
    min-height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-header__logo img { width: auto; height: 70px; }

.site-nav__list { display: flex; align-items: center; gap: 30px; }
.site-nav__list a {
    font-size: 16px;
    font-weight: 400;
    color: #2a2a2a;
    transition: color .2s ease;
    white-space: nowrap;
}
.site-nav__list a:hover { color: var(--green); }

.site-header__right { display: flex; align-items: center; gap: 22px; }
.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
}
.site-header__phone .ico-phone { color: var(--brown); flex: none; }
.site-header__social { display: flex; align-items: center; gap: 12px; }
.site-header__social a { display: inline-flex; transition: opacity .2s ease; border-radius: 44px; overflow: hidden; }
.site-header__social a:hover { opacity: .8; }

.burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 8px;
    width: 40px; height: 40px; padding: 0;
    background: none; border: 0; cursor: pointer;
}
.burger span { display: block; width: 36px; height: 4px; background: var(--text-strong); transition: transform .25s ease, opacity .25s ease; }

/* ==========================================================================
   МОБІЛЬНЕ МЕНЮ (оверлей)
   ========================================================================== */
.mobile-menu { position: fixed; inset: 0; z-index: 200000; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }

.mobile-menu__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0; transition: opacity .3s ease;
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
    position: absolute; top: 0; right: 0; height: 100%;
    width: 66%; max-width: 300px;
	height: 100%;
    box-sizing: border-box;
    background: var(--dark);
    display: flex; flex-direction: column;
    padding: 68px 0 30px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.2);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }

.mobile-menu__close {
    position: absolute; top: 16px; right: 18px;
    width: 40px; height: 40px;
    background: none; border: 0; color: var(--white);
    font-size: 34px; line-height: 1; cursor: pointer;
}
.mobile-menu__list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 30px!important; }
.mobile-menu__list a { display: block; padding: 8px 0; color: var(--white); font-size: 22px; font-weight: 400; transition: color .2s ease; }
.mobile-menu__list a:hover { color: var(--green); }
.mobile-menu__social { display: flex; gap: 14px; margin-top: auto; padding: 0 30px; position: absolute;    bottom: 20px; }
.mobile-menu__social a { display: inline-flex; transition: opacity .2s ease; border-radius: 44px; overflow: hidden; }
.mobile-menu__social a:hover { opacity: .85; }


/* ==========================================================================
   ФУТЕР — 1. CTA-форма (CF7 + Tilda-розмітка)
   Ряд: .t-form__inputsbox → колонки .t-input-group + кнопка .t-form__submit
   ========================================================================== */
.footer-cta { background: var(--brown); color: var(--white); }
.footer-cta__inner { max-width: var(--container); margin: 0 auto; padding: 100px var(--pad-x); text-align: center; }
.footer-cta__title { font-size: 34px; font-weight: 700; }
.footer-cta__subtitle { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 17px; }

.footer-cta .wpcf7-form { margin-top: 42px; }
.footer-cta .wpcf7-form p { margin: 0; }        /* прибрати autop-відступи */

/* --- РЯД полів --- */
.footer-cta .t-form__inputsbox {
    display: flex; flex-wrap: nowrap;
    align-items: flex-end; justify-content: center;
    gap: 24px;
}
/* колонки-поля тягнуться і ділять ширину */
.footer-cta .t-input-group { flex: 1 1 300px; min-width: 0; max-width: 340px; }
.footer-cta .wpcf7-form-control-wrap { display: block; }
/* кнопка — по контенту, не тягнеться */
.footer-cta .t-form__submit { flex: 0 0 auto; }

/* --- текстові поля --- */
.footer-cta input[type="text"],
.footer-cta input[type="tel"],
.footer-cta input[type="email"] {
    width: 100%; box-sizing: border-box;
    padding: 12px 4px;
    background: transparent;
    border: 0; border-bottom: 1px solid rgba(255,255,255,.45);
    color: var(--white); font: inherit; font-size: 17px;
    outline: none;
    transition: border-color .2s ease;
}
.footer-cta input::placeholder { color: rgba(255,255,255,.6); }
.footer-cta input:focus { border-bottom-color: var(--white); }

/* --- кнопка --- */
.footer-cta .t-submit,
.footer-cta button[type="submit"] {
    padding: 16px 44px;
    background: var(--white); color: var(--text-strong);
    font: inherit; font-size: 17px; font-weight: 700;
    border: 0; cursor: pointer; white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.footer-cta .t-submit:hover,
.footer-cta button[type="submit"]:hover { background: var(--green); color: var(--white); }

/* --- підказка валідації під полем --- */
.footer-cta .wpcf7-not-valid-tip {
    display: block; margin-top: 6px;
    color: #ff9b9b; font-size: 13px; text-align: left;
}
.footer-cta input.wpcf7-not-valid { border-bottom-color: #ffb4b4; }

/* --- прибираємо порожні Tilda-error-контейнери (щоб не давали відступів) --- */
.footer-cta .t-input-error:empty { display: none; }
.footer-cta .t-form__errorbox-middle,
.footer-cta .t-form__errorbox-bottom { display: none; }

/* --- загальне повідомлення CF7: жовта плашка на всю ширину під формою --- */
.footer-cta .wpcf7-response-output {
    display: block;
    margin: 24px 0 0;
    padding: 14px 18px;
    border: 0; border-radius: 2px;
    background: #f5b800; color: #fff;
    font-size: 15px; text-align: center;
}

.footer-cta .wpcf7-spinner { display: block; margin: 12px auto 0; }
.footer-cta .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- мобільний: у стовпчик ---------- */
@media (max-width: 600px) {
    .footer-cta .t-form__inputsbox { flex-wrap: wrap; flex-direction: column; align-items: stretch; }
    .footer-cta .t-input-group { flex: 1 1 auto; max-width: none; }
    .footer-cta .t-submit,
    .footer-cta button[type="submit"] { width: 100%; }
}

/* ==========================================================================
   ФУТЕР — 2. Контактна інформація
   ========================================================================== */
.footer-contacts { background: var(--white); }
.footer-contacts__inner {
    max-width: var(--container); margin: 0 auto; padding: 80px var(--pad-x);
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.footer-contacts__title { font-size: 34px; font-weight: 700; color: var(--text-strong); text-transform: uppercase; letter-spacing: .01em; }
h3.footer-contacts__subtitle { margin-top: 42px; font-size: 19px; font-weight: 700; color: var(--text-strong); }
h3.footer-contacts__subtitle { margin: 36px 0 16px; }
.footer-contacts__row { margin-top: 16px; display: flex; align-items: flex-start; gap: 12px; font-size: 18px; color: var(--text); }
.footer-contacts__row svg { flex: none; margin-top: 3px; }
.footer-contacts__map iframe { display: block; width: 100%; height: 460px; }
/* ==========================================================================
   КНОПКА «НАГОРУ»
   ========================================================================== */
.scroll-top {
    position: fixed;
    right: 43px;
    bottom: 150px;
    width: 50px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brown, #79c333);
    color: var(--white, #fff);
    border: 0; border-radius: 50%;
    cursor: pointer;
	transition: .2s;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
    z-index: 999;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: scale(1.1);   transition: .2s; }
.scroll-top:focus-visible { outline: 3px solid rgba(121,195,51,.45); outline-offset: 2px; }

@media (max-width: 600px) {
    .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ==========================================================================
   ФУТЕР — 3. Нижня смуга
   ========================================================================== */
.footer-bottom { background: var(--white); border-top: 1px solid var(--line); }
.footer-bottom__inner {
    max-width: var(--container); margin: 0 auto; padding: 20px var(--pad-x) 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px;
}
.footer-bottom__logo img { height: 90px; width: auto; }
.footer-bottom__nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-bottom__nav a { font-size: 17px; color: var(--text); transition: color .2s ease; }
.footer-bottom__nav a:hover { color: var(--green); }
.footer-bottom__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom__contact { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--text); }
.footer-bottom__contact svg { color: var(--brown); flex: none; }
.footer-bottom__social { display: flex; gap: 12px; }
.footer-bottom__social a { display: inline-flex; transition: opacity .2s ease; border-radius: 44px; overflow: hidden; }
.footer-bottom__social a:hover { opacity: .8; }

.footer-bottom__copy {
    max-width: var(--container); margin: 0 auto; padding: 18px var(--pad-x) 34px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 15px; color: #8a8a8a;
}
.footer-bottom__copy-links { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom__copy-links a:hover { color: var(--green); }
.footer-bottom__copy-links i { font-style: normal; color: #cfcfcf; }

/* ==========================================================================
   Загальна кнопка
   ========================================================================== */
.btn-primary {
    display: inline-block; padding: 18px 40px;
    background: var(--accent); color: var(--white);
    font-size: 17px; font-weight: 600; text-align: center;
    transition: background .2s ease;
}
.btn-primary:hover { background: var(--green); }
		

.footer-legal-koala {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #000000;
}

.footer-legal-koala a {
  color: #000000;
  text-decoration: none;
}

.footer-legal-koala a:hover {
  text-decoration: underline;
}
.t890__arrow {
	display: none!important;
}
.footer-bottom__legal {
	display: flex;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    padding: 20px 0;
}
@media screen and (max-width: 1199px) {
  .footer-legal-koala {
    width: 520px;
  }
}

@media screen and (max-width: 959px) {
  .footer-legal-koala {
    font-size: 12px;
    gap: 14px;
  }
}

@media screen and (max-width: 639px) {
  .footer-legal-koala {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
	.footer-legal-koala {
		width: 100%;
  }
	.footer-bottom__legal {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
}

@media screen and (max-width: 479px) {
  .footer-legal-koala {
    font-size: 12px;
  }
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
    :root { --header-h: 74px; }
    .site-nav { display: none; }
    .site-header__social { display: none; }
    .burger { display: flex; }
    .site-header__logo img { height: 60px; }
    .footer-contacts__inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom__inner { flex-direction: column; text-align: center; }
    .footer-bottom__nav { flex-direction: column; align-items: center; gap: 16px; }
    .footer-bottom__contacts { align-items: center; }
    .footer-bottom__copy { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .site-header__phone span { font-size: 15px; }
    .footer-cta__inner { padding: 56px var(--pad-x); }
    .footer-cta__title { font-size: 26px; }
    .footer-cta__form { flex-direction: column; align-items: stretch; }
    .footer-cta__field { max-width: none; }
    .footer-cta__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .clean-body * { transition: none !important; animation: none !important; }
}
