

.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-top: 12px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  height: 60px;
  padding: 0 30px;
  background: rgba(251, 246, 243, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 127px;
  height: 28px;
}

.header__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  font-size: var(--font-size-body-sm);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
}

.header__nav-link:hover {
  color: var(--color-secondary);
}

.header__nav-link--active {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-secondary);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
}

.header__cta:hover {
  background: var(--color-secondary);
  color: #fff;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.header__toggle[aria-expanded='true'] .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__toggle[aria-expanded='true'] .header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.header__toggle[aria-expanded='true'] .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__mobile-nav {
  display: none;
  margin-top: 8px;
  padding: 16px;
  background: rgba(251, 246, 243, 0.98);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08);
}

.header__mobile-nav.is-open {
  display: block;
}

.header__mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.header__mobile-nav .header__nav-link {
  width: 100%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
}

.footer {
  margin-top: 18px;
  background: var(--color-primary);
}

.footer__inner {
  max-width: 1426px;
  margin: 0 auto;
  padding: 10px 30px 23px;
}

.footer__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 71px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.footer__logo {
  display: flex;
  flex-shrink: 0;
  width: 127px;
  height: 28px;
}

.footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__nav-list {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  transform: translateX(-50%);
}

.footer__nav-link {
  display: inline-flex;
  padding: 6px 14px;
  color: var(--color-text-primary);
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
}

.footer__nav-link:hover {
  color: var(--color-secondary);
}

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

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 50%;
  transition: var(--transition-base);
}

.footer__social-link:hover {
  background: rgba(233, 30, 99, 0.2);
}

.footer__social-link img {
  display: block;
  width: 18px;
  height: 18px;
}

.footer__bottom {
  position: relative;
  margin-top: 24px;
  min-height: 162px;
}

.footer__info {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 330px;
  font-size: var(--font-size-caption);
  line-height: 1.36;
  color: rgba(43, 75, 61, 0.75);
}

.footer__info-title {
  margin-bottom: 11px;
  font-weight: var(--font-weight-bold);
}

.footer__info-link {
  width: fit-content;
  color: rgba(43, 75, 61, 0.75);
  text-decoration: underline;
  transition: var(--transition-base);
}

.footer__info-link:first-of-type {
  margin-top: 15px;
}

.footer__info-link:hover {
  color: var(--color-secondary);
}

.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__stores {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__copy {
  margin-top: calc(74px * var(--rhythm-scale));
  font-size: var(--font-size-caption);
  color: rgba(43, 75, 61, 0.45);
  text-align: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 186px;
  height: 52px;
  padding: 0 24px;
  background: #e91e63;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
}

.store-btn img {
  display: block;
  width: 20px;
  height: 20px;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

@media (max-width: 1100px) {
  .header__inner {
    justify-content: space-between;
  }
  .header__nav,
  .header__cta {
    display: none;
  }
  .header__toggle {
    display: flex;
  }
}

@media (max-width: 900px) {

  .footer__inner {
    padding: 16px 18px 24px;
  }
  .footer__top {
    flex-direction: column;
    gap: 18px;
    height: auto;
    padding-bottom: 18px;
  }
  .footer__nav-list {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }
  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    min-height: 0;
    margin-top: 18px;
  }
  .footer__info {
    position: static;
    width: auto;
    align-items: center;
    text-align: center;
  }
  .footer__info-link {
    width: auto;
  }
  .footer__copy {
    margin-top: 16px;
  }

  .app-download__band {
    padding: 34px 24px;
  }
}

@media (max-width: 767px) {
  .header {
    top: 8px;
    margin-top: 8px;
  }
  .header__inner {
    padding: 0 18px;
  }

  .footer__stores {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .store-btn {
    width: 100%;
    max-width: 320px;
  }
  .subscribe__band {
    padding: 40px 18px;
  }
}

@media (max-width: 560px) {
  .subscribe__form {
    flex-direction: column;
  }
  .subscribe__btn {
    width: 100%;
  }
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(229, 48, 122, 0.35);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

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

.scroll-top:hover {
  background: #c02a58;
  transform: translateY(-3px);
}

.app-download {
  margin-top: 21px;
}

.app-download__band {
  padding: 40px 64px;
  background: var(--color-orange);
  border-radius: var(--radius-card);
  text-align: center;
}

.app-download__title {
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
}

.app-download__text {
  max-width: 540px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-body-lg);
  line-height: 1.1;
}

.app-download__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.store-btn--ghost {
  background: rgba(255, 255, 255, 0.15);
}

.subscribe {
  margin-top: calc(37px * var(--rhythm-scale));
  max-width: none;
}

.subscribe__band {
  width: 100%;
  padding: 56px 32px;
  background: var(--color-green-med);
  border-radius: var(--radius-block);
  text-align: center;
}

.subscribe__title {
  color: #fff;
  font-size: clamp(28px, 3.2vw, 45px);
  line-height: 1.1;
  text-transform: uppercase;
}

.subscribe__text {
  max-width: 460px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-body-lg);
  line-height: 1.3;
}

.subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 530px;
  margin: 28px auto 0;
}

.subscribe__input {
  flex: 1 1 auto;
  height: 60px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}

.subscribe__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
}

.subscribe__btn {
  flex-shrink: 0;
  height: 60px;
  padding: 0 36px;
  background: var(--color-orange);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: var(--transition-base);
}

.subscribe__btn:hover {
  filter: brightness(1.05);
}

.subscribe__msg {
  flex-basis: 100%;
  order: 10;
  max-width: 460px;
  margin: 4px auto 0;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-align: center;
  animation: fz-sub-msg-in 0.3s ease both;
}

.subscribe__msg::before {
  margin-right: 8px;
  font-weight: 700;
}

.subscribe__msg--ok {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.subscribe__msg--ok::before {
  content: "✓";
  color: #fff;
}

.subscribe__msg--err {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe2e2;
}

.subscribe__msg--err::before {
  content: "!";
}

@keyframes fz-sub-msg-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .subscribe__msg {
    animation: none;
  }
}
