:root {
  --bg: #FFF8E1;
  --surface: #FFFFFF;
  --text: #2B2A26;
  --muted: #6B6456;
  --accent: #FFC21A;
  --accent-text: #C98A00;
  --footer-bg: #2B2A26;
  --footer-text: #D6D0C2;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.header { background: var(--surface); border-bottom: 1px solid #F3E6BF; }
.header .container { display: flex; align-items: center; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.brand b { font-weight: 800; }
.brand span { color: var(--accent-text); }
.footer .brand span { color: var(--accent); }

.header-buy { margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 26px; border-radius: 22px; background: var(--accent); color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.header-buy:hover { background: #FFB400; }

main { flex: 1; }

/* hero */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 96px;
}
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.hero .lead { font-size: 26px; font-weight: 600; margin: 0 0 32px; }
.features { list-style: none; padding: 0; margin: 0 0 32px; }
.features li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 17px; color: var(--muted); }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9L22 9.6l-5.5 4.8L18.2 22 12 18.3 5.8 22l1.7-7.6L2 9.6l7.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9L22 9.6l-5.5 4.8L18.2 22 12 18.3 5.8 22l1.7-7.6L2 9.6l7.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 440px; height: auto; }

/* legal pages */
.doc .container { max-width: 860px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: 40px; line-height: 1.15; margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 16px; color: #3D3A33; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* payment page */
.header .container.header--split { gap: 48px; }
.tg-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.tg-link:hover { color: var(--text); }
.tg-link svg { width: 20px; height: 20px; }

.pay .container { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 80px; }
.pay-card { width: 100%; max-width: 640px; background: var(--surface); border-radius: 20px; padding: 40px 48px 48px; box-shadow: 0 8px 32px rgba(120, 90, 0, .08); }
.pay-card h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.01em; text-align: center; margin: 0 0 32px; }

.methods { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.method { position: relative; display: block; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 20px; border: 1px solid #DCD6C8; border-radius: 14px; font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.method:hover .method__row { border-color: #CDBF95; }
.method input:checked + .method__row { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.method input:focus-visible + .method__row { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.method__icons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.method__icons svg { display: block; height: 24px; width: auto; }
.method__note { display: none; align-items: center; gap: 6px; margin: 8px 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.method input:checked ~ .method__note { display: flex; }
.method__note svg { width: 14px; height: 14px; flex-shrink: 0; }


.promo { margin-top: 32px; }
.promo label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.promo__field { position: relative; }
.promo__field input { width: 100%; height: 52px; padding: 0 52px 0 16px; border: 1px solid #DCD6C8; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.promo__field input::placeholder { color: #9A9383; }
.promo__field input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.promo__field button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.promo__field button:hover { background: var(--bg); }

.agree { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 24px; font-size: 16px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-text); flex-shrink: 0; cursor: pointer; }
.agree a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.agree a:hover { text-decoration: underline; }

.pay-button { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 52px; padding: 0 32px; border: 0; border-radius: 26px; background: var(--accent); color: var(--text); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s, opacity .15s; }
.pay-button:hover { background: #FFB400; }
.pay-button:disabled { opacity: .45; cursor: not-allowed; }

.brand b, .tg-link { white-space: nowrap; }

@media (max-width: 600px) {
  .header .container.header--split { gap: 12px; justify-content: space-between; }
  .header--split .brand { gap: 8px; font-size: 17px; }
  .header--split .brand img { width: 32px; height: 32px; }
  .tg-link { font-size: 14px; gap: 6px; }
  .pay .container { padding-top: 16px; padding-bottom: 48px; }
  .pay-card { padding: 28px 20px 32px; border-radius: 16px; }
  .pay-card h1 { font-size: 26px; margin-bottom: 24px; }
  .method__row { padding: 10px 14px; font-size: 16px; }
  .pay-button { width: 100%; }
}

/* footer */
.footer { background: var(--footer-bg); color: var(--footer-text); font-size: 14px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 28px; border-bottom: 1px solid #45423A; flex-wrap: wrap; }
.footer .brand { color: #fff; font-size: 18px; }
.footer .brand img { width: 32px; height: 32px; }
.footer nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer nav a { color: #fff; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer__bottom { padding: 20px 0 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__company { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.footer__mail { color: #fff; text-decoration: none; }
.footer__mail:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .footer__bottom { flex-direction: column-reverse; }
  .footer__company { text-align: left; }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 20px; }
  .doc h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
