/* Тема «Відпочинок»: светлый премиальный курортный стиль — тёплый песок,
   шалфейная зелень, воздушные карточки, плавные анимации. */
:root {
  --rst-bg: #f6f4ee;
  --rst-bg-2: #eef4ec;
  --rst-ink: #223a2c;
  --rst-muted: #5c7565;
  --rst-green: #3f8a63;
  --rst-green-dark: #2f6c4c;
  --rst-sand: #d8c39a;
  --rst-line: rgba(63, 138, 99, 0.16);
}

body {
  background: var(--rst-bg);
  color: var(--rst-ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* Мягкие плавающие световые пятна — ощущение воздуха и воды */
body::before {
  content: "";
  position: fixed;
  inset: -25vh -25vw;
  z-index: -2;
  background:
    radial-gradient(34vw 34vw at 12% 18%, rgba(63, 138, 99, 0.22), transparent 65%),
    radial-gradient(30vw 30vw at 88% 12%, rgba(216, 195, 154, 0.35), transparent 65%),
    radial-gradient(36vw 36vw at 70% 85%, rgba(126, 190, 205, 0.22), transparent 65%),
    linear-gradient(180deg, var(--rst-bg), var(--rst-bg-2));
  animation: rstFloat 28s ease-in-out infinite alternate;
}

.bg-layer { opacity: 0.55; filter: saturate(1.05); }
.bg-layer::after {
  background:
    linear-gradient(180deg, rgba(246, 244, 238, 0.55), rgba(246, 244, 238, 0.9)),
    radial-gradient(120% 90% at 50% 0%, transparent, rgba(246, 244, 238, 0.5));
}

/* --- Header / Footer: матовое стекло --- */
.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.site-header {
  border-bottom: 1px solid var(--rst-line);
  box-shadow: 0 6px 24px rgba(34, 58, 44, 0.06);
  animation: rstDrop 0.75s cubic-bezier(.2,.7,.3,1) both;
}
.site-footer { border-top: 1px solid var(--rst-line); }

/* --- Калькулятор в теме Відпочинок --- */
.calculator-card {
  border: 1px solid var(--rst-line);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 50px rgba(34, 58, 44, 0.08);
  color: var(--rst-ink);
}
.calc-card-title { color: #1b3325; }
.calc-select, .calc-input-days {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--rst-line);
  color: var(--rst-ink);
}
.calc-select option { background: #ffffff; color: var(--rst-ink); }
.calc-badge { background: var(--rst-green); color: #ffffff; }
.calc-range { background: rgba(63, 138, 99, 0.2); }
.calc-result-box {
  background: rgba(63, 138, 99, 0.08);
  border: 1px solid var(--rst-line);
}
.calc-result-sum { color: var(--rst-green-dark); }

.site-header .logo {
  height: 46px;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.site-header .logo:hover { transform: translateY(-2px) rotate(-1.5deg); }

/* --- Титульный блок --- */
.brand { animation: rstRise 0.95s cubic-bezier(.2,.7,.3,1) 0.1s both; }
.site-title {
  color: #1b3325;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-title::first-letter { color: var(--rst-green); }
.brand::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rst-green), var(--rst-sand));
  animation: rstRule 1.1s cubic-bezier(.2,.7,.3,1) 0.45s both;
}
.site-description { color: var(--rst-muted); font-size: 1.05rem; }

/* --- Контент: воздушная карточка --- */
.content {
  padding: 1.6rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(34, 58, 44, 0.09), inset 0 1px 0 #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rstRise 1.05s cubic-bezier(.2,.7,.3,1) 0.25s both;
}
.content h1, .content h2, .content h3 { color: #1b3325; margin-top: 1.6em; }
.content h2 {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--rst-sand);
}
.content blockquote {
  margin: 1.4em 0;
  padding: 0.8rem 1.2rem;
  border-left: 3px solid var(--rst-green);
  border-radius: 0 14px 14px 0;
  background: rgba(63, 138, 99, 0.07);
  color: var(--rst-green-dark);
  font-style: italic;
}
.content ul li::marker { color: var(--rst-green); }
.content a {
  color: var(--rst-green-dark);
  text-decoration: none;
  background: linear-gradient(var(--rst-sand), var(--rst-sand)) 0 92% / 100% 2px no-repeat;
  transition: background-size 0.35s ease, color 0.3s ease;
}
.content a:hover { color: var(--rst-green); background-size: 100% 40%; }
.content img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(34, 58, 44, 0.14);
  transition: transform 0.55s cubic-bezier(.2,.7,.3,1), box-shadow 0.45s ease;
}
.content img:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 26px 54px rgba(34, 58, 44, 0.2); }

/* --- Кнопки контактов: капсулы с мягким подъёмом --- */
.contact-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--rst-green), #58a97d);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(47, 108, 76, 0.24);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, background 0.3s ease;
}
.contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(47, 108, 76, 0.3);
}
.contact-btn:hover::before { opacity: 1; }
.contact-btn:active { transform: translateY(-1px); }

.header-contacts .contact-btn {
  padding: 0.65rem 1.3rem;
  font-size: 0.92rem;
  background: #fff;
  color: var(--rst-green-dark);
  border-color: rgba(63, 138, 99, 0.28);
  box-shadow: 0 4px 14px rgba(34, 58, 44, 0.1);
}
.header-contacts .contact-btn:hover {
  background: #f0f9f3;
  border-color: var(--rst-green);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(47, 108, 76, 0.2);
}

.footer-contacts .contact-btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
}
.footer-contacts .contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(47, 108, 76, 0.35);
}

.bot-link .contact-btn {
  padding: 0.75rem 1.7rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #2f6c4c, #4f9d74);
  animation: rstBreath 4.2s ease-in-out infinite;
}

/* Вкладки rest */
.content-tab-btn {
  background: #ffffff;
  color: var(--rst-green-dark);
  border: 1px solid rgba(63, 138, 99, 0.25);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(34, 58, 44, 0.06);
}
.content-tab-btn:hover {
  background: #f0f9f3;
  border-color: var(--rst-green);
  box-shadow: 0 6px 18px rgba(47, 108, 76, 0.15);
}
.content-tab-btn.active {
  background: linear-gradient(135deg, #2f6c4c, #4f9d74);
  color: #ffffff;
  border-color: #2f6c4c;
  box-shadow: 0 6px 20px rgba(47, 108, 76, 0.3);
}

/* --- Переключатель языка --- */
.lang-switch a {
  color: var(--rst-muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-switch a:hover { color: var(--rst-green-dark); background: rgba(63, 138, 99, 0.1); }
.lang-switch a.active {
  color: #fff;
  background: var(--rst-green);
  text-decoration: none;
}


@keyframes rstFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -4%, 0) scale(1.1); }
}
@keyframes rstRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rstDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rstRule {
  from { width: 0; opacity: 0; }
  to   { width: 96px; opacity: 1; }
}
@keyframes rstBreath {
  0%, 100% { box-shadow: 0 8px 20px rgba(47, 108, 76, 0.24); transform: translateY(0); }
  50%      { box-shadow: 0 18px 34px rgba(47, 108, 76, 0.32); transform: translateY(-3px); }
}

@media (max-width: 560px) {
  .header-contacts .contact-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
  .footer-contacts .contact-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
  }
  .content-tab-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
  }
  .content {
    padding: 1.25rem 0.95rem;
    border-radius: 16px;
  }
}

@media (min-width: 720px) {
  .content { padding: 2.4rem 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .brand, .brand::after, .content, .site-header, .bot-link .contact-btn {
    animation: none !important;
  }
  .brand::after { width: 96px; opacity: 1; }
}
