:root {
  --color-bg: #071a12;
  --color-card: rgba(7, 26, 18, 0.94);
  --color-card-soft: rgba(7, 26, 18, 0.9);
  --color-accent: #ffb347;
  --color-accent-2: #ff7a3c;
  --color-text: #fdfdf7;
  --color-muted: #cfd5c8;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height-mobile: 65px;   /* подправьте при необходимости */
  --header-height-desktop: 85px;  /* подправьте при необходимости */
}

/* Сброс / базовые стили */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    font-weight: 400;
}


body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    /* linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8)), */
    url("/assets/tmpl/actions/mandarinim/img/bgbody.jpg"); /* сюда подставьте текстуру еловых веток */
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}



/* Фиксированный хедер */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 58, 42, 0.92);
  /* background: radial-gradient(circle at top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.header__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.header__logo img {
  display: block;
  max-width: 100%;
  height: 50px;
  padding: 3px 10px;
  border-radius: 50px;
  background: #ffffff;
}

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

/* Кнопки */
a.btn:hover{
    text-decoration:none;
    color:inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out,
    color 0.12s ease-out;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #3b240b;
}

.btn--secondary {
  background: #1AA07A;
  color: #ffffff;
  border: none;
  /* background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.4); */
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Основная сетка */

.page {
  padding: calc(var(--header-height-mobile) + 10px) 8px 40px;
}

.section {
  /* min-height: calc(100vh - var(--header-height-mobile)); */
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--auto {
  min-height: auto;
}

.section__inner {
  width: 100%;
  max-width: 1024px;
  margin: 20px auto;
  padding: 20px 16px;
   background: rgba(14, 68, 51, 0.85);
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
  /* border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-soft); */
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.section--gifts .section__inner,
.section--donate .section__inner {
  background: rgba(14, 68, 51, 0.85);
  /* background: var(--color-card-soft); */
}

.section__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.section__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section__content p a:link,
.section__content p  a:visited{
  color: var(--color-accent);
  text-decoration: none;
}

.section__content--narrow {
  max-width: 640px;
  margin: 0 auto;
}

.section__content--full {
  width: 100%;
}

.section__title {
  color: var(--color-text);
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section__subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  //color: var(--color-muted);
}

.section__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.section__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Сворачиваемый текст (Читать далее) */

.text-toggle {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px 12px;
}

.text-toggle[open] {
  background: rgba(0, 0, 0, 0.35);
}

.text-toggle__summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  position: relative;
}

.text-toggle__summary::-webkit-details-marker {
  display: none;
}

.text-toggle__summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

details[open] > .text-toggle__summary::after {
  content: "▴";
}

.text-toggle__body {
  margin-top: 8px;
  font-size: 0.95rem;
}

.text-toggle__body p {
  margin: 0 0 6px;
}

.form__frame{
  border: none;
  border-radius: 20px;
}

/* Сетка подарков — flexbox 4 элемента */
#gifts {
  scroll-margin-top: 280px; /* mobile */
}
.gifts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.gift-card {
  flex: 1 1 calc(50% - 12px);
  max-width: 220px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 10px 12px;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.12s ease-out;
}

.gift-card__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gift-card__label {
  font-size: 0.9rem;
  text-align: center;
}

.gift-card:hover,
.gift-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 179, 71, 0.7);
  background: rgba(0, 0, 0, 0.35);
}

/* Футер */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 39, 28, 0.95);
  /* background: rgba(0, 0, 0, 0.95); */
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer__logo img {
  max-height: 52px;
  width: auto;
  display: block;
  padding: 3px 10px;
  border-radius: 50px;
  background: #ffffff;
}

.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--color-accent);
}

/* Адаптив: планшет и десктоп */
@media (max-width: 768px) {
    /* Только мобильные */
    .header__logo{
        display: none;
    }
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  

  .page {
    padding: calc(var(--header-height-desktop) + 4px) 16px 50px;
  }

  /* .section {
    min-height: calc(100vh - var(--header-height-desktop));
  } */

  .section__inner {
    padding: 24px 24px 26px;
    /*flex-direction: row;*/
    align-items: center;
  }

  .section__image,
  .section__content {
    flex: 1 1 50%;
  }

  .section__inner:nth-child(even) .section__image {
    order: 1;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .gifts {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .gift-card {
    flex: 1 1 calc(20% - 12px);
    max-width: none;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .section__inner {
    padding: 28px 32px 32px;
    
  }
  

  .page {
    padding-top: calc(var(--header-height-desktop));
  }

  .section__title {
    font-size: 1.8rem;
  }
}
