@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap");

:root {
  --bg: var(--color-bg, #f8fafc);
  --bg-alt: var(--color-bg-alt, #eef2f7);
  --surface: var(--color-surface, #ffffff);
  --primary: var(--color-primary, #e53945);
  --primary-soft: var(--color-primary-soft, #ffe8eb);
  --primary-strong: var(--color-primary-strong, #c92f3a);
  --text: var(--color-text, #1f2937);
  --text-muted: var(--color-text-muted, #6b7280);
  --border: var(--color-border, #e5e7eb);
  --shadow: var(--color-shadow-soft, rgba(15, 23, 42, 0.08));
}

body,
button,
input,
textarea {
  font-family: "Nunito", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
a:hover {
  color: var(--primary-strong);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  text-align: center;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow);
}
.button:active {
  transform: translateY(0);
}
.button--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button--primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}
.button--secondary {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary-strong);
}
.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.button--ghost:hover {
  background: var(--surface);
}
.button--xl {
  padding: 14px 22px;
  font-size: 1.05rem;
}

.link {
  text-decoration: underline;
}
.link--arrow {
  position: relative;
  padding-right: 18px;
  text-decoration: none;
}
.link--arrow::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  font-weight: 700;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 0;
}
.header__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.header__brand {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.header__nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.header__nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}
.header__nav-link:hover {
  background: var(--bg-alt);
}
.header__burger {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.header__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 56px 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero__title {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero__subtitle {
  color: var(--text-muted);
  margin: 0 0 18px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 8px;
}
.hero__support {
  color: var(--text-muted);
  margin-top: 10px;
}
.hero__figure {
  margin: 0;
}
.hero__image {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 28px var(--shadow);
}

/* Benefits */
.benefits {
  padding: 56px 0;
}
.benefits__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.benefits__list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.benefits__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px var(--shadow);
}
.benefits__item-title {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.benefits__item-desc {
  color: var(--text-muted);
  display: block;
}
.benefits__cta {
  margin-top: 10px;
}
.benefits__figure {
  margin: 0;
}
.benefits__image {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* Gallery */
.gallery {
  padding: 56px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 18px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery__item {
  overflow: hidden;
  border-radius: 12px;
}
.gallery__image {
  width: 100%;
  display: block;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.gallery__item:hover .gallery__image {
  transform: scale(1.04);
}

/* Tips */
.tips {
  padding: 56px 0;
}
.tips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tips__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 22px var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.tips__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow);
}
.tips__card-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.tips__list {
  margin: 0;
  padding-left: 18px;
}
.tips__tip {
  margin: 6px 0;
}

/* Story */
.story {
  padding: 56px 0;
}
.story--centered .container {
  text-align: center;
}
.story__content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
}
.story__content p {
  margin: 10px 0;
  color: var(--text);
}
.story__content p + p {
  color: var(--text-muted);
}

/* How to */
.howto {
  padding: 56px 0;
}
.howto__steps {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.howto__step {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.howto__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 34px;
}
.howto__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.howto__text {
  margin: 0;
  color: var(--text-muted);
}
.howto__cta {
  margin-top: 14px;
  text-align: center;
}

/* Community */
.community {
  padding: 56px 0;
}
.community__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.community__text {
  color: var(--text);
  margin: 8px 0 12px;
}
.community__points {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.community__links {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.community__figure {
  margin: 0;
}
.community__image {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 22px var(--shadow);
}

/* CTA */
.cta {
  padding: 56px 0;
}
.cta--stripe {
  background: linear-gradient(
    180deg,
    var(--primary-soft),
    rgba(255, 255, 255, 0)
  );
}
.cta__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 28px var(--shadow);
}
.cta__title {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.cta__subtitle {
  color: var(--text-muted);
  margin: 0;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--color-bg-alt, #0f172a);
  color: #e5e7eb;
  margin-top: 40px;
}
.footer__inner {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.footer__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.footer__brandline {
  margin-left: 8px;
  font-weight: 700;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__link {
  color: #e5e7eb;
  opacity: 0.9;
}
.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer__legal {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.footer__copy,
.footer__note {
  margin: 0;
}

/* About */
.about__intro,
.about__story,
.about__values,
.about__team,
.about__project,
.about__contact-info,
.about__regional {
  padding: 40px 0;
}
.about__title {
  font-size: 2rem;
  margin: 0 0 12px;
}
.about__subtitle {
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.about__values-list {
  margin: 0;
  padding-left: 18px;
}

/* Legal */
.legal {
  padding: 52px 0;
}
.legal__title {
  font-size: 2rem;
  margin: 0 0 16px;
}
.legal .container {
  max-width: 920px;
}
.legal__section {
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.legal__section-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.legal__text {
  margin: 6px 0;
  color: var(--text);
}
.legal__list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.legal__item {
  margin: 6px 0;
  color: var(--text-muted);
}

/* Contact */
.contact__intro,
.contact__support,
.contact__developer,
.contact__links,
.contact__regional {
  padding: 44px 0 16px;
}
.contact__list {
  margin: 8px 0;
  padding-left: 18px;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 16px var(--shadow);
}

/* Media */
@media (max-width: 1199px) {
  .hero__inner,
  .benefits__inner,
  .community__inner,
  .cta__inner {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tips__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .howto__steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .header__brand {
    font-size: 0.95rem;
  }
  .header__nav-list {
    gap: 6px;
  }
  .header__burger {
    display: inline-flex;
  }
  .hero,
  .benefits,
  .gallery,
  .tips,
  .story,
  .howto,
  .community,
  .cta,
  .legal {
    padding: 40px 0;
  }
  .hero__inner,
  .benefits__inner,
  .community__inner,
  .cta__inner {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tips__grid {
    grid-template-columns: 1fr;
  }
  .howto__steps {
    grid-template-columns: 1fr;
  }
  .cta__actions .button {
    width: 100%;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand {
    justify-content: center;
  }
}

/* Forms */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Cookie Consent */
.consent-box {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}
.consent-box--hidden {
  display: none;
}
.consent-box__content {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 36px var(--shadow);
  overflow: hidden;
}
.consent-box__header {
  padding: 14px 16px 0;
}
.consent-box__badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.consent-box__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.consent-box__info {
  margin: 6px 0;
  color: var(--text-muted);
}
.consent-box__privacy-link {
  text-decoration: underline;
}
.consent-box__categories {
  padding: 6px 16px 0;
}
.consent-box__category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.consent-box__category {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
}
.consent-box__category-info p {
  margin: 6px 0 0;
  color: var(--text-muted);
}
.consent-box__always-active {
  color: var(--text-muted);
  margin-left: 6px;
}
.consent-box__switch {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.consent-box__switch input {
  display: none;
}
.consent-box__switch-label {
  position: relative;
  width: 46px;
  height: 26px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.consent-box__switch-label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px var(--shadow);
}
.consent-box__switch input:checked + .consent-box__switch-label {
  background: var(--primary);
}
.consent-box__switch input:checked + .consent-box__switch-label::after {
  transform: translateX(20px);
}
.consent-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.consent-box__btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.consent-box__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow);
}
.consent-box__btn--accept {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.consent-box__btn--save {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary-strong);
}
.consent-box__btn--reject {
  background: var(--surface);
}

@media (max-width: 767px) {
  .consent-box {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .consent-box__category {
    grid-template-columns: 1fr;
  }
  .consent-box__actions {
    justify-content: stretch;
  }
  .consent-box__btn {
    flex: 1;
  }
}
