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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #ddf1fb;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #ddf1fb;
  font-family: Arial, sans-serif;
}

.poster-page {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #ddf1fb;
}

.poster {
  position: relative;
  width: min(calc(100% - 32px), 430px);
  margin: 0 auto;
  overflow: hidden;
  background: #ddf1fb;
  border-radius: 22px;
}

.poster__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.poster__button {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 28px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.poster__button span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.poster__button--help {
  left: 11.6%;
  top: 81.9%;
  width: 79.2%;
  height: 7.1%;
}

.poster__button--ozon {
  left: 11.8%;
  top: 88.4%;
  width: 78.8%;
  height: 7%;
}

.poster__button:focus-visible {
  outline: 3px solid #ffde59;
  outline-offset: 3px;
}

.donate-panel,
.social-panel {
  width: min(calc(100% - 32px), 430px);
  margin: 18px auto 0;
  padding: 20px;
  color: #0f3a60;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.12);
}

.donate-panel h2,
.social-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.donate-panel p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.35;
}

.donate-panel .donate-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  color: #0f3a60;
  text-align: left;
}

.donate-panel .donate-row--title {
  margin-top: 0;
  font-size: 18px;
}

.donate-panel .donate-row--thanks {
  margin-bottom: 0;
}

.donate-icon {
  display: block;
  width: 34px;
  text-align: center;
}

.phone-number {
  color: #0f3a60;
  text-decoration: none;
}

.shelter-phone {
  width: min(calc(100% - 32px), 430px);
  margin: 12px auto 0;
}

.shelter-phone a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 18px;
  color: #0f3a60;
  text-decoration: none;
  background: #fff9c7;
  border: 1px solid rgba(15, 58, 96, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 58, 96, 0.1);
  -webkit-tap-highlight-color: transparent;
}

.shelter-phone span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.shelter-phone strong {
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

.shelter-phone a:focus-visible {
  outline: 3px solid #ffde59;
  outline-offset: 3px;
}

.social-panel {
  margin-bottom: 18px;
}

.social-panel h2 {
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 12px;
  color: #0f3a60;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 58, 96, 0.16);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 58, 96, 0.08);
}

.social-grid img,
.social-grid__site-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.social-grid img {
  object-fit: contain;
}

.social-grid__site-icon {
  display: grid;
  place-items: center;
  font-size: 26px;
}

.faq-panel {
  width: min(calc(100% - 32px), 430px);
  margin: 0 auto 28px;
  padding: 8px 0;
  color: #0f3a60;
  background: rgba(191, 220, 239, 0.72);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.1);
}

.faq-panel details {
  border-bottom: 1px solid rgba(15, 58, 96, 0.14);
}

.faq-panel details:last-child {
  border-bottom: 0;
}

.faq-panel summary {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 18px;
  color: #0f3a60;
  font-size: 22px;
  line-height: 1.18;
  cursor: pointer;
  list-style: none;
}

.faq-panel summary::-webkit-details-marker {
  display: none;
}

.faq-panel summary::before {
  content: "+";
  display: block;
  color: #0f3a60;
  font-size: 42px;
  font-weight: 300;
  line-height: 0.78;
  text-align: center;
}

.faq-panel details[open] summary::before {
  content: "−";
}

.faq-panel p,
.faq-answer {
  margin: -4px 18px 18px;
  color: #0f3a60;
  font-size: 16px;
  line-height: 1.42;
  text-align: left;
}

.faq-answer p {
  margin: 0 0 12px;
}

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

.faq-answer ul {
  margin: 0;
  padding-left: 18px;
}

.faq-answer li {
  margin: 0 0 12px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.org-requisites {
  width: min(calc(100% - 32px), 430px);
  margin: 18px auto 28px;
  padding: 20px;
  color: #0f3a60;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.12);
}

.org-requisites h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.qr-carousel {
  display: flex;
  gap: 14px;
  margin: 0 -20px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.qr-carousel::-webkit-scrollbar {
  height: 6px;
}

.qr-carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 58, 96, 0.25);
  border-radius: 999px;
}

.qr-card {
  flex: 0 0 86%;
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 58, 96, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 58, 96, 0.08);
  scroll-snap-align: center;
}

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

.org-requisites p {
  margin: 12px 0 0;
  color: #0f3a60;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.final-note {
  width: min(calc(100% - 32px), 430px);
  margin: 18px auto 34px;
  padding: 22px 20px;
  color: #0f3a60;
  background: #fff9c7;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.12);
}

.final-note p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.final-note p + p {
  margin-top: 16px;
}

.market-page {
  width: min(calc(100% - 32px), 1280px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #0f3a60;
}

.market-top-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: #0f3a60;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 58, 96, 0.14);
}

.market-top-back span[aria-hidden="true"] {
  font-size: 22px;
  line-height: 0.8;
}

.market-card {
  margin: 0 0 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.12);
}

.market-card--main {
  background: #fff9c7;
}

.market-card h1,
.market-card h2 {
  margin: 0 0 12px;
  color: #0f3a60;
  line-height: 1.15;
}

.market-card h1 {
  font-size: 28px;
}

.market-card h2 {
  font-size: 24px;
}

.market-card p {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.35;
}

.ozon-products {
  margin-top: 18px;
}

.ozon-products h3 {
  margin: 0 0 12px;
  color: #0f3a60;
  font-size: 22px;
  line-height: 1.15;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 58, 96, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 58, 96, 0.08);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #f8fbff;
  border-radius: 14px;
}

.product-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-card__image-link:hover img {
  transform: scale(1.02);
}

.product-card__image-link:focus-visible {
  outline: 3px solid #ffde59;
  outline-offset: 3px;
}

.product-card__image-link img {
  transition: transform 0.18s ease;
}

.product-card h4 {
  margin: 0;
  color: #0f3a60;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.product-card a:not(.product-card__image-link) {
  display: block;
  padding: 13px 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  background: #0f3a60;
  border-radius: 14px;
}

.market-back {
  display: block;
  padding: 16px 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #0f3a60;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 58, 96, 0.14);
}

@media (max-width: 360px) {
  .shelter-phone a {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .faq-panel summary {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 16px 14px;
    font-size: 20px;
  }

  .faq-panel summary::before {
    font-size: 38px;
  }

  .faq-panel p,
  .faq-answer {
    margin-right: 14px;
    margin-left: 14px;
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .market-page {
    width: min(calc(100% - 16px), 1280px);
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 10px;
    border-radius: 16px;
  }

  .product-card h4 {
    min-height: 38px;
    font-size: 14px;
  }

  .product-card a:not(.product-card__image-link) {
    padding: 12px 10px;
    font-size: 15px;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .product-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
