:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #1f2433;
  --muted: #444a5e;
  --green: #4c8f2b;
  --green-dark: #3e7a23;
  --line: #dedede;
  --shadow: 0 8px 24px rgba(22, 36, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}

.card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(22, 36, 58, 0.05);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  align-items: start;
}

.hero-top-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  padding-top: 34px;
  padding-bottom: 0;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--green);
  font-weight: 700;
}

.quote-block {
  margin-top: 10px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 12px;
}

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

.quote-block p + p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ebebeb;
}

.quote-block b {
  color: var(--green-dark);
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hero-image {
  width: 100%;
  max-width: 190px;
  height: 300px;
  max-height: 300px;
  object-fit: contain;
}

.cta-section {
  margin-top: 10px;
  padding: 12px 14px;
}

h2 {
  margin: 0;
  font-size: 32px;
  color: var(--green);
  line-height: 1.1;
}

.cta-text {
  margin: 8px 0 12px;
  font-size: 15px;
  color: #262d40;
  line-height: 1.35;
}

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

.btn {
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.btn-telegram {
  background: #2fa5e6;
}

.btn-max {
  background: linear-gradient(90deg, #7e4df4 0%, #2fa5e6 100%);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.about {
  margin-top: 10px;
  padding: 10px 14px;
}

.cta-section,
.about,
.footer,
.privacy-content {
  content-visibility: auto;
  contain-intrinsic-size: 1px 300px;
}

.about p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #30364a;
}

.about p + p {
  margin-top: 10px;
}

.about b {
  color: var(--green-dark);
}

.footer {
  margin: 8px 14px 14px;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.footer p {
  margin: 0;
  color: #61677b;
  font-size: 11px;
}

.footer p + p {
  margin-top: 4px;
}

.footer a {
  color: #61677b;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(760px, calc(100vw - 20px));
  background: #f5f8f2;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(62, 122, 35, 0.16);
  border: 1px solid #d8e7cf;
  padding: 14px 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie-close {
  order: 3;
  border: 0;
  background: transparent;
  color: #5b714a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.cookie-text {
  order: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #304227;
  max-width: none;
  flex: 1;
}

.cookie-text a {
  color: #3e7a23;
  text-decoration: underline;
}

.cookie-btn {
  order: 2;
  margin-top: 0;
  height: 36px;
  min-width: 116px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(90deg, #67ad39 0%, #4c8f2b 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
}

.cookie-hidden {
  display: none;
}

.privacy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 12px 30px;
}

.privacy-header {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(22, 36, 58, 0.05);
  padding: 14px;
}

.privacy-header h1 {
  font-size: 28px;
  line-height: 1.2;
}

.privacy-content {
  margin-top: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(22, 36, 58, 0.05);
  padding: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #2e3342;
}

.privacy-content h2 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: #1f2433;
}

.privacy-content p,
.privacy-content li {
  margin: 8px 0;
}

.privacy-content ul {
  padding-left: 20px;
}

.privacy-back {
  display: inline-flex;
  margin-top: 16px;
  color: #2b56d9;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .page {
    max-width: 900px;
    padding: 16px 14px 10px;
  }

  .hero {
    grid-template-columns: 1fr 230px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .cookie-modal {
    width: calc(100vw - 20px);
    left: 10px;
    transform: none;
    bottom: 10px;
    border-radius: 10px;
    padding: 12px;
    gap: 10px;
  }

  .cookie-close {
    font-size: 18px;
  }

  .cookie-text {
    font-size: 12px;
  }

  .cookie-btn {
    height: 34px;
    min-width: 104px;
    border-radius: 8px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 13px;
  }

  .quote-block p,
  .cta-text,
  .about p {
    font-size: 14px;
  }

  h2 {
    font-size: 25px;
  }

  .btn {
    font-size: 13px;
    padding: 0 10px;
  }

  .cookie-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-btn {
    font-size: 13px;
  }
}

@media (max-width: 740px) {
  .page {
    padding: 12px 10px 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .hero-content {
    padding-top: 32px;
  }

  .hero-image {
    max-width: 170px;
    height: 230px;
    max-height: 230px;
  }

  .cta-section,
  .about {
    padding: 10px 12px;
  }

  .cta-buttons {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 42px;
    font-size: 13px;
  }

  .btn-content {
    gap: 7px;
  }

  .btn-icon {
    width: 16px;
    height: 16px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 23px;
  }

  .cookie-modal {
    left: 8px;
    right: 8px;
    bottom: 10px;
    width: auto;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "text close"
      "btn btn";
    gap: 8px;
  }

  .cookie-close {
    font-size: 20px;
    grid-area: close;
    justify-self: end;
  }

  .cookie-text {
    font-size: 13px;
    max-width: 100%;
    padding-right: 0;
    grid-area: text;
  }

  .cookie-btn {
    margin-top: 10px;
    height: 36px;
    min-width: 96px;
    border-radius: 10px;
    font-size: 14px;
    grid-area: btn;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-top-icon {
    width: 30px;
    height: 20px;
  }

  .hero-content {
    padding-top: 28px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 12px;
  }

  .quote-block p,
  .cta-text,
  .about p {
    font-size: 13px;
    line-height: 1.4;
  }

  h2 {
    font-size: 20px;
  }

  .btn {
    min-height: 40px;
    font-size: 12px;
    padding: 0 8px;
  }

  .btn-content {
    gap: 6px;
  }

  .btn-icon {
    width: 15px;
    height: 15px;
  }

  .footer p {
    font-size: 10px;
  }

  .cookie-text {
    font-size: 11px;
    line-height: 1.4;
  }

  .cookie-btn {
    height: 34px;
    min-width: 88px;
    font-size: 13px;
    border-radius: 9px;
  }

  .privacy-header h1 {
    font-size: 20px;
  }

  .privacy-content {
    font-size: 14px;
    line-height: 1.5;
  }

  .privacy-content h2 {
    font-size: 17px;
  }
}
