/* ========== BMM Pay — Smart QR Payments (Final Responsive Version) ========== */
:root {
  --bg: #F7F7F7;
  --ink: #111;
  --muted: #6b7280;
  --card: #fff;
  --ring: #e5e7eb;
  --accent: #FF00B8;
}

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  z-index: 1;
}

/* ===== Layout ===== */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 64px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--ring);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
}

.brand {
  height: auto;
  width: 150px;
}

@media (max-width: 767px) {
  .brand {
    height: auto;
    width: 100px;
  }
}

.brand-badge {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-name {
  font-weight: 600;
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(28px, 6vw, 45px);
  line-height: 1.2;
  margin: 0 0 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 8px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.tag em {
  background: #E6F4EA;
  color: #137333;
  font-style: normal;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
}

/* HERO visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.pink-blob {
  position: absolute;
  inset: -16px;
  border-radius: 28px;
  background: var(--accent);
  z-index: 0;
  filter: saturate(115%);
}

.phone-mock {
  position: relative;
  z-index: 1;
  display: block;
  width: min(360px, 90%);
  border: 6px solid #000;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  background-image: url("../img/restaurant.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin: 32px 16px 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  backdrop-filter: blur(4px);
  padding: 20px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    margin: 40px 32px 0;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    margin: 64px 40px 0;
  }
}

.card {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(120%) blur(2px);
  border-radius: 24px;
  border: 1px solid var(--ring);
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== TWO-COLUMN & DUO BLOCKS ===== */
.block-grid,
.duo-grid {
  display: grid;
  gap: 40px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .block-grid,
  .duo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.block-grid.reverse {
  direction: rtl;
}
.block-grid.reverse .block-text {
  direction: ltr;
}
.block-text {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* всё выровнено по левому краю */
  text-align: left;
  z-index: 1;
}

.block-text h2 {
  margin: 12px 0 16px;
  color: #111;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
}

.block-text p,
.block-text li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* адаптивный отступ */
@media (max-width: 767px) {
  .block-text {
    padding: 24px;
  }
}

/* ===== ICON inside block-text ===== */
.block-text .icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ring);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.block-text .icon svg,
.block-text .icon img {
  width: 24px;
  height: 24px;
  color: var(--ink);
  object-fit: contain;
}

.block-visual,
.duo-item {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

/* accent background */
.block-visual .accent {
  width: 100%;
  height: 100%;
  filter: brightness(1.05) saturate(120%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: var(--accent);
  z-index: 0;
}

/* Equal image sizing */
.block-image,
.duo-image {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 531px;
  object-fit: cover;
  border-radius: 24px;
}

/* Adaptive resizing */
@media (max-width: 1024px) {
  .block-image,
  .duo-image {
    max-height: 460px;
  }
}

@media (max-width: 767px) {
  .block-grid,
  .duo-grid {
    grid-template-columns: 1fr;
  }
  .block-image,
  .duo-image {
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }
}

/* ===== PANEL ===== */
.panel {
  position: relative;
  min-height: 250px;
  z-index: 2;
  margin-top: -30px;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-1 {
  margin-top: -49px;
}

.panel h3 {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

/* ===== LIST (custom check icons) ===== */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.5;
  font-size: 15px;
}

.list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: no-repeat center/contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect width='20' height='20' rx='6' fill='%23FF00CF'/%3E%3Cpath d='M14.5 6.5L8.5 12.5L5.5 9.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  margin-top: 2px;
}

/* ===== CHIPS ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chips span {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
}

.chips-image {
  display: block;
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 767px) {
  .chips-image {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .chips-image {
    max-width: 65px;
  }
}

@media (max-width: 360px) {
  .chips-image {
    max-width: 50px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--ring);
  padding: 24px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* ===== FOOTER EXTENDED ===== */
.footer {
  display: flex;
  align-items: center;
}

.footer-left .brand {
  gap: 12px;
}

.footer-left .company-details p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-columns {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
}

/* Переопределение: заголовки и контакты должны быть тёмными (как в макете) */
.footer-column h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--ink); /* использовать основной тёмный цвет */
  font-weight: 700;
}

.footer-column p {
  margin: 6px 0 0 0;
  color: var(--ink);
  font-size: 15px;
}

.footer-column a {
  /* Ссылки в колонках футера — тёмные и подчёркнуты при ховере */
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* развернуть колонку влево (чтобы располагалась рядом с лого) */
.footer-columns { justify-content: flex-end; }

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 8px 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  padding: 12px 14px;
  border-radius: 12px;
}

.charity-card {
  background: #fff1ee;
  border-radius: 12px;
  padding: 14px;
  max-width: 340px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.charity-card h5 {
  margin: 0 0 8px 0;
}
/* Более жесткое переопределение для футера: ссылки и текст должны быть чёрными */
.site-footer .footer-column p,
.site-footer .footer-column a {
  color: var(--ink) !important;
}
.site-footer .footer-column a {
  text-decoration: none;
  font-weight: 700;
}
.site-footer .footer-column a:visited { color: var(--ink) !important; }
.site-footer .footer-column a:hover { text-decoration: underline; }

/* Дополнительные правила для mailto/ссылок во всех состояниях (Safari/Chrome могут использовать -webkit-text-fill-color) */
.site-footer .footer-column a[href^="mailto"],
.site-footer .footer-column a[href^="mailto"]:link,
.site-footer .footer-column a[href^="mailto"]:visited,
.site-footer .footer-column a[href^="mailto"]:hover,
.site-footer .footer-column a[href^="mailto"]:active {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  text-decoration: none !important;
}

/* Крайняя мера: специфичные правила для класса footer-mail */
.site-footer .footer-mail,
.site-footer .footer-mail:link,
.site-footer .footer-mail:visited,
.site-footer .footer-mail:hover,
.site-footer .footer-mail:active {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-decoration: none !important;
  text-decoration-color: #111 !important;
}

/* Принудительный черный цвет для текста внутри ссылок mail */
.site-footer .mail-text,
.site-footer .mail-text:visited {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}
