:root {
  --cream: #f7efdf;
  --cream-2: #fff8ea;
  --cream-3: #f0dfc2;
  --ink: #071b44;
  --muted: #41506a;
  --orange: #df5b0b;
  --orange-dark: #b84908;
  --blue: #061a43;
  --line: rgba(7, 27, 68, 0.16);
  --shadow: 0 18px 42px rgba(7, 27, 68, 0.18);
  --soft-shadow: 0 10px 24px rgba(7, 27, 68, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--blue);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  background: var(--blue);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 248, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 234, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 74%);
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 10px 10px 22px;
}

.hero {
  overflow: hidden;
  padding: 6px 10px;
  border: 2px solid rgba(247, 239, 223, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(247, 239, 223, 0.96));
  box-shadow: var(--shadow);
}

.hero picture {
  display: block;
  text-align: center;
}

.hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.intro {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(223, 91, 11, 0.13), transparent 42%),
    var(--cream-2);
  box-shadow: var(--soft-shadow);
}

.intro p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.34;
  text-align: justify;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro__lines,
.intro__invite {
  color: var(--blue) !important;
  font-weight: 800;
  text-align: center !important;
}

@media (min-width: 561px) {
  .hero__image {
    max-height: 150px;
  }
}

@media (max-width: 560px) {
  .hero__image {
    width: min(100%, 330px);
    max-height: 128px;
  }
}

.schedule,
.placeholder-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.96), rgba(247, 239, 223, 0.94)),
    var(--cream-2);
  box-shadow: var(--soft-shadow);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(100%, 460px);
  margin: 0 auto 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(223, 91, 11, 0.13);
  color: var(--orange-dark);
  font-size: clamp(15px, 4.8vw, 30px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.section-kicker img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.meeting-link {
  box-shadow: 0 8px 18px rgba(223, 91, 11, 0.12);
}

.schedule h1,
.page-title {
  margin: 0;
  color: var(--blue);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.schedule-page #schedule-title {
  color: var(--blue);
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1;
  text-align: center;
  text-transform: none;
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.schedule-item {
  padding: 10px 10px 11px;
  border-left: 6px solid var(--orange);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.schedule-item h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.schedule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.28;
  text-align: justify;
}

.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.social-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.social-link img {
  width: clamp(54px, 15vw, 70px);
  height: clamp(54px, 15vw, 70px);
  object-fit: contain;
  box-shadow: var(--soft-shadow);
}

.social-link small {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.tradition {
  margin-top: 12px;
  padding: 4px 2px 0;
  color: rgba(255, 248, 234, 0.78);
}

.tradition h2 {
  margin: 0 0 6px;
  color: rgba(255, 248, 234, 0.78);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.donation-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  min-width: 0;
}

.pay-logo {
  display: inline-grid;
  min-width: 34px;
  min-height: 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 248, 234, 0.18);
  font-size: 8px;
  font-weight: 900;
  flex: 0 0 auto;
}

.pay-logo--paypal {
  color: #0d67c8;
  font-style: italic;
}

.pay-logo--sber {
  color: #09a841;
}

.donation-link {
  min-width: 0;
  color: rgba(255, 248, 234, 0.86);
  font-size: 13px;
  line-height: 1.22;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.donation-name {
  color: rgba(255, 248, 234, 0.72);
  font-size: 13px;
  line-height: 1.22;
  white-space: nowrap;
}

.donation-note {
  margin: 6px 0 0;
  color: rgba(255, 248, 234, 0.72);
  font-size: 13px;
  line-height: 1.25;
  text-align: justify;
}

.thanks-line {
  margin: 6px 0 0;
  color: rgba(255, 248, 234, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.menu {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid rgba(247, 239, 223, 0.2);
}

.menu-button,
.back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(7, 27, 68, 0.18);
  border-radius: 16px;
  color: var(--blue);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(223, 91, 11, 0.2), transparent 38%),
    var(--cream-2);
  box-shadow: var(--soft-shadow);
}

.menu-button img {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.menu-button strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.22;
  text-align: justify;
}

.page-shell {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 12px 10px 24px;
}

.page-header {
  display: grid;
  gap: 12px;
}

.page-title {
  color: var(--cream-2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.mini-logo {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(7, 27, 68, 0.2);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.placeholder-card {
  text-align: center;
}

.placeholder-card img {
  width: 86px;
  height: 86px;
}

.placeholder-card p {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.28;
  text-align: justify;
}

.announcement-card {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
  box-shadow: var(--soft-shadow);
}

.announcement-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.content-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(223, 91, 11, 0.13), transparent 42%),
    var(--cream-2);
  box-shadow: var(--soft-shadow);
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7, 27, 68, 0.12);
}

.service-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-item h2 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.12;
}

.service-item p,
.service-item li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.32;
  text-align: justify;
}

.service-item p {
  margin: 5px 0;
}

.service-item ol {
  margin: 8px 0 0;
  padding-left: 24px;
}

.service-item li {
  margin-bottom: 8px;
}

.service-item a {
  color: #8c55d7;
  overflow-wrap: anywhere;
}

.service-note {
  margin-top: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(223, 91, 11, 0.11);
}

.service-note p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.32;
  text-align: justify;
}

.service-note a {
  color: #8c55d7;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.back-link {
  justify-content: center;
  min-height: 56px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 380px) {
  .app-shell,
  .page-shell {
    padding-inline: 8px;
  }

  .menu-button {
    gap: 10px;
  }

  .menu-button strong {
    font-size: 22px;
  }

  .donation-row--sber {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
