:root {
  --beige: #e7e4d5;
  --orange: #ef8c66;
  --dark: #211d1a;
  --text: #2a2621;
  --muted: #6b6459;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  background: var(--beige);
}

.header__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.header__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__kicker {
  font-size: 0.9rem;
  color: var(--muted);
}

.header__name {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Support section */
.support {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 16px;
  background: var(--orange);
  color: #1c130c;
  padding: 28px 16px 24px;
  overflow: hidden;
}


.support__heading {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0;
}

.support__tbank-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fefefe;
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  /* padding: 12px 16px; */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support__tbank-btn:hover,
.support__tbank-btn:focus-visible {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.support__tbank-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.support__tbank-text {
  padding: 12px 0px;
}

.support__tbank-logo {
  /* height: 22px; */
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.support__sbp {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

@media (max-width: 499px) {
  .support__tbank-btn {
    flex-direction: column;
    gap: 4px;
  }

  .support__tbank-text {
    padding: 12px 0 0;
  }
}

.support__label {
  font-weight: 600;
  margin-bottom: 6px;
}

.support__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.support__phone a {
  text-decoration: none;
}

.copy-btn {
  border: none;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(0, 0, 0, 0.22);
}

.support__bank {
  font-weight: 600;
  margin-bottom: 0;
}

.support__thanks {
  font-size: 1.15rem;
  font-weight: 700;
  max-width: 65%;
}

.support__text {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.support__image {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 34vw;
  max-height: 85%;
  object-fit: contain;
  margin: 0;
}

@media (min-width: 630px) {
  .support {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    padding: 32px 24px;
  }

  .support__heading {
    grid-column: 1;
    grid-row: 1;
  }

  .support__text {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .support__image {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    max-width: 220px;
    max-height: none;
  }

  .support__heading,
  .support__thanks {
    max-width: none;
  }

  .support__phone {
    font-size: 1.25rem;
  }
}

/* VK follow */
.vk-follow {
  padding: 16px;
}

.vk-follow__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark);
  color: #fefefe;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vk-follow__link:hover,
.vk-follow__link:focus-visible {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.vk-follow__link:active {
  transform: translateY(0);
  box-shadow: none;
}

.vk-follow__icon {
  flex-shrink: 0;
}

/* Section titles */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  padding: 28px 16px 18px;
}

/* Events */
.events {
  padding: 0 16px 8px;
  margin: 0 auto;
  max-width: 640px;
  background: linear-gradient(to bottom, #fff 0%, #fff 60%, var(--orange) 100%);
}

.events__image {
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 12px;
}

.event-card {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e0d5;
}

.event-card:last-child {
  border-bottom: none;
}

.event-card__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.event-card__body {
  min-width: 0;
}

.event-card__date {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-card__place a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-card__time {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Schedule */
.schedule {
  padding: 8px 16px 32px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--beige);
}

.schedule__title {
  padding-top: 8px;
}

.schedule__title span {
  font-weight: 800;
}

.schedule__list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.schedule__list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e0d5;
  font-size: 0.98rem;
}

.schedule__list li:last-child {
  border-bottom: none;
}

.schedule__date {
  font-weight: 700;
}

.schedule__list a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Decorative illustration */
.hero-decor {
  width: 100%;
  height: auto;
  background: var(--beige);
}

/* Footer */
.footer {
  background: var(--dark);
  color: #efe9dd;
  padding: 28px 16px 32px;
  text-align: center;
}

.footer__group {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer__contacts {
  color: #a89e8d;
  margin-bottom: 6px;
}

.footer p {
  margin-bottom: 4px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Larger screens: constrain overall width for readability */
@media (min-width: 768px) {
  body {
    background: var(--beige);
  }

  .header,
  .support,
  .vk-follow,
  .events,
  .schedule,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header__inner,
  .support,
  .vk-follow,
  .events,
  .schedule {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  body {
    background: #f4f1ea;
  }

  .header,
  .support,
  .vk-follow,
  .hero-decor,
  .footer {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-decor {
    border-radius: 12px;
  }
}