* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: #173d1d;
  background: #f8f4ec;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .96);
  border-bottom: 1px solid rgba(47,109,41,.12);
  box-shadow: 0 6px 24px rgba(28,42,20,.07);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: #e56f00;
  font: 700 27px/1 Georgia, 'Times New Roman', serif;
}

.brand-copy strong span {
  color: #174e22;
}

.brand-copy small {
  color: #39633c;
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #315532;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.top-nav a:hover {
  color: #fff;
  background: #2f6d29;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  background: #fffaf3;
  box-shadow: 0 18px 70px rgba(28,42,20,.08);
}

.hero {
  min-height: 430px;
  padding: 72px 70px;
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 55px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 20%, rgba(241,151,42,.16), transparent 27%),
    radial-gradient(circle at 4% 92%, rgba(74,132,59,.13), transparent 30%),
    linear-gradient(135deg, #fffdf8, #fff6e8);
  border-bottom: 1px solid rgba(214,106,0,.14);
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #d76c00;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.sanatorium-content h2,
.help-cta strong {
  font-family: Georgia, 'Times New Roman', serif;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: #194f23;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.03;
  font-weight: 700;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #4d5e4c;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  min-height: 48px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e87400, #ff9b12);
  box-shadow: 0 10px 22px rgba(186,91,0,.20);
}

.btn-secondary {
  color: #285d2a;
  background: #fff;
  border: 1px solid rgba(47,109,41,.20);
}

.hero-photo {
  min-height: 320px;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #eef4e9;
  border: 1px solid rgba(47,109,41,.13);
  box-shadow: 0 16px 38px rgba(28,42,20,.10);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.channel-strip {
  padding: 24px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(100deg, #eef6e8, #fff5e5);
  border-top: 3px solid #2f6d29;
  border-bottom: 3px solid #e57900;
}

.channel-strip > div:first-child {
  display: grid;
  gap: 5px;
}

.channel-strip strong {
  color: #214f21;
  font-size: 16px;
}

.channel-strip span {
  color: #647162;
  font-size: 13px;
}

.channel-links {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.channel {
  min-width: 112px;
  padding: 11px 17px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.telegram {
  background: linear-gradient(135deg,#247ca1,#55a9c8);
}

.max {
  background: linear-gradient(135deg,#6555ad,#9271ce);
}

.sanatorium-list {
  padding: 62px 58px 24px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #214f21;
  font-size: 34px;
  line-height: 1.15;
}

.section-heading p {
  margin: 13px auto 0;
  color: #647162;
  font-size: 15px;
  line-height: 1.55;
}

.sanatorium-card {
  margin: 0 0 40px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 34px;
  align-items: center;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(47,109,41,.10);
  box-shadow: 0 14px 38px rgba(28,42,20,.08);
}

.sanatorium-card.reverse .photo-grid {
  order: 2;
}

.sanatorium-card.reverse .sanatorium-content {
  order: 1;
}

.photo-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-grid.one-photo {
  grid-template-columns: 1fr;
}

.photo-grid img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.photo-grid:not(.one-photo) img {
  height: 430px;
}

.photo-grid:not(.one-photo) img:first-child {
  border-radius: 18px 4px 4px 18px;
}

.photo-grid:not(.one-photo) img:last-child {
  border-radius: 4px 18px 18px 4px;
}

.sanatorium-content {
  position: relative;
  padding: 12px 12px 12px 2px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 10px;
  color: #e57900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.sanatorium-content h2 {
  margin: 0;
  color: #174e22;
  font-size: 34px;
  line-height: 1.1;
}

.card-intro {
  margin: 15px 0 16px;
  color: #4e5f4d;
  font-size: 16px;
  line-height: 1.55;
}

.feature-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: #2f4f33;
  font-size: 14px;
  line-height: 1.45;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #e57900;
  font-weight: 900;
}

.medical-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #5c655a;
  background: #f6f6ef;
  border-left: 3px solid #2f6d29;
  border-radius: 0 12px 12px 0;
  font-size: 12px;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #d66b00;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  color: #174e22;
}

.help-section {
  padding: 60px 58px 66px;
  background:
    radial-gradient(circle at 10% 100%, rgba(72,128,56,.10), transparent 30%),
    linear-gradient(180deg, #fbf8ef, #f5f1e6);
  border-top: 1px solid rgba(47,109,41,.10);
}

.section-heading.compact {
  margin-bottom: 30px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.help-grid > div {
  min-height: 126px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(47,109,41,.10);
}

.help-grid strong {
  color: #e57900;
  font: 700 30px/1 Georgia, 'Times New Roman', serif;
}

.help-grid span {
  color: #3f5741;
  font-size: 14px;
  line-height: 1.5;
}

.help-cta {
  margin-top: 24px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1f5928, #3f7c39);
}

.help-cta > div {
  display: grid;
  gap: 5px;
}

.help-cta strong {
  font-size: 23px;
}

.help-cta span {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 36px 34px;
  display: grid;
  grid-template-columns: 1fr 1.35fr .7fr;
  gap: 28px;
  align-items: center;
  color: #173d1d;
  background: #fffaf1;
  border-top: 1px solid rgba(214,106,0,.18);
  box-shadow: 0 20px 60px rgba(28,42,20,.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand > div {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  color: #174e22;
  font: 700 22px/1 Georgia, 'Times New Roman', serif;
}

.footer-brand span {
  font-size: 14px;
}

.footer-contact {
  font-size: 18px;
}

.footer-links {
  font-size: 16px;
}

.footer-brand span {
  color: #6a7767;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
  color: #3d513f;
  line-height: 1.5;
}

.footer-contact > span {
  font-size: 18px;
  font-weight: 600;
}

.footer-contact a {
  color: #174e22;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d66b00;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    padding: 54px 42px;
    grid-template-columns: 1fr .7fr;
    gap: 30px;
  }

  .sanatorium-list,
  .help-section {
    padding-inline: 34px;
  }

  .sanatorium-card {
    grid-template-columns: 1fr;
  }

  .sanatorium-card.reverse .photo-grid,
  .sanatorium-card.reverse .sanatorium-content {
    order: initial;
  }

  .photo-grid img,
  .photo-grid:not(.one-photo) img {
    height: 340px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-contact,
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 18px;
  }

  body {
    background: #fffaf3;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    width: 100%;
    padding: 12px 16px;
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .top-nav a {
    text-align: center;
    border: 1px solid rgba(47,109,41,.12);
    background: #fff;
  }

  main,
  .footer {
    width: 100%;
    box-shadow: none;
  }

  .hero {
    min-height: 0;
    padding: 42px 20px 36px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-photo {
    min-height: 230px;
  }

  .hero-photo img {
    min-height: 230px;
  }

  .channel-strip {
    padding: 24px 18px;
    display: grid;
    text-align: center;
  }

  .channel-links {
    justify-content: center;
  }

  .sanatorium-list {
    padding: 42px 14px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .sanatorium-card {
    margin-bottom: 24px;
    padding: 12px;
    gap: 20px;
    border-radius: 20px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img,
  .photo-grid:not(.one-photo) img {
    height: 240px;
    border-radius: 14px !important;
  }

  .photo-grid:not(.one-photo) img:last-child {
    display: none;
  }

  .sanatorium-content {
    padding: 6px 8px 12px;
  }

  .sanatorium-content h2 {
    font-size: 29px;
  }

  .card-intro {
    font-size: 15px;
  }

  .help-section {
    padding: 42px 16px 48px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-grid > div {
    min-height: 0;
  }

  .help-cta {
    display: grid;
    text-align: center;
  }

  .help-cta .btn {
    width: 100%;
  }

  .footer {
    margin: 0;
    padding: 30px 18px 36px;
  }

  .footer-contact {
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: 18px;
  }

  .footer-contact > span {
    font-size: 18px;
    text-align: center;
  }

  .footer-contact a {
    font-size: 22px;
  }

  .footer-links {
    font-size: 17px;
    gap: 16px;
  }
}
