/* ==============================
   Scroll progress
   ============================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: calc(var(--z-header) + 1);
  background: rgba(221, 229, 225, 0.45);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0d5c4a 0%, #1a9a7d 100%);
  box-shadow: 0 0 12px rgba(26, 154, 125, 0.45);
  transition: width 0.08s linear;
  will-change: width;
}

/* ==============================
   Site header
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(221, 229, 225, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

/* ==============================
   Logo
   ============================== */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-logo__img {
  height: 36px;
  width: auto;
}

/* ==============================
   Desktop navigation
   ============================== */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__link {
  position: relative;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  text-decoration: none;
}

.nav__link.is-active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: 600;
}

/* ==============================
   Header actions (right side)
   ============================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-actions__phone svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.header-actions__phone:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.header-actions__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-actions__mail svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.header-actions__mail:hover {
  color: var(--color-accent);
  border-color: rgba(13, 92, 74, 0.35);
  background: var(--color-accent-soft);
}

/* ==============================
   Feedback modal
   ============================== */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.feedback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.72);
  backdrop-filter: blur(6px);
}

.feedback-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  z-index: 1;
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 24px 80px rgba(13, 92, 74, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}

.feedback-modal.is-open .feedback-modal__dialog {
  transform: translateY(0) scale(1);
}

.feedback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feedback-modal__close:hover {
  color: var(--color-accent);
  border-color: rgba(13, 92, 74, 0.3);
  background: var(--color-accent-soft);
}

.feedback-modal__head {
  padding-right: 36px;
  margin-bottom: 22px;
}

.feedback-modal__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-text);
}

.feedback-modal__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.feedback-modal__form .form__submit {
  margin-top: 4px;
}

.feedback-modal__success {
  margin-top: 0;
}

/* ==============================
   Buy button (glossy)
   ============================== */
.buy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, #0d5c4a, #159470, #1bb88d);
  background-size: 200% 200%;
  box-shadow: 0 4px 16px rgba(13, 92, 74, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  animation: buy-gradient 4s ease-in-out infinite;
  white-space: nowrap;
}

.buy-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 92, 74, 0.45);
}

.buy-btn:active {
  transform: translateY(0);
}

.buy-btn--full {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.buy-btn--nav {
  padding: 6px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(13, 92, 74, 0.3);
}

.buy-btn--outline {
  background: transparent;
  background-size: auto;
  animation: none;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}

.buy-btn--outline:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  box-shadow: none;
}

.buy-btn--outline .buy-btn__shine {
  display: none;
}

@keyframes buy-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.buy-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  pointer-events: none;
  animation: buy-shine 4s ease-in-out infinite;
}

.buy-btn:hover .buy-btn__shine {
  animation-duration: 1.5s;
}

@keyframes buy-shine {
  0% { background-position: 150% 0; }
  50% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}

.buy-btn__text {
  position: relative;
  z-index: 1;
}

/* ==============================
   Hamburger
   ============================== */
.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-accent-soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================
   Mobile overlay + drawer
   ============================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__logo {
  height: 28px;
  width: auto;
}

.mobile-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-drawer__close:hover {
  background: var(--color-border);
}

.mobile-drawer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-drawer__link:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  text-decoration: none;
}

.mobile-drawer__link.is-active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: 600;
}

.mobile-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-drawer__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-drawer__phone svg {
  color: var(--color-accent);
}

.mobile-drawer__phone:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ==============================
   Body lock
   ============================== */
body.is-menu-open {
  overflow: hidden;
}

/* ==============================
   Responsive
   ============================== */

/* Tablet & below: hide desktop nav, show burger */
@media (max-width: 1023px) {
  .nav {
    display: none;
  }

  .header-actions__phone span {
    display: none;
  }

  .header-actions__mail-text {
    display: none;
  }

  .header-actions__mail {
    padding: 8px;
    gap: 0;
  }

  .header-actions__mail svg {
    width: 20px;
    height: 20px;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-h: 68px;
  }

  .site-logo__img {
    height: 28px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions__phone {
    gap: 0;
  }

  .header-actions__phone svg {
    width: 20px;
    height: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar {
    transition: none;
  }
}
