/* =========================
   Design Tokens
   ========================= */
:root {
  /* Colors */
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #eaeaea;
  --accent: #2f6bff;
  --accent-ink: #ffffff;

  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  --fs-display: clamp(40px, 5vw, 72px);
  --fs-h1: clamp(34px, 4vw, 56px);
  --fs-h2: clamp(22px, 2.2vw, 32px);
  --fs-h3: clamp(18px, 1.6vw, 22px);
  --fs-body: 16px;
  --fs-small: 13px;
  --lh-tight: 1.05;
  --lh-normal: 1.45;
  --lh-loose: 1.7;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 34px;
  --s-8: 50px;
  --s-9: 67px;

  /* Radius */
  --r-1: 8px;
  --r-2: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

p {
  margin: 0 0 var(--s-4) 0;
}

ul {
  margin: 0;
  padding: 0 0 0 var(--s-5);
}

li + li {
  margin-top: var(--s-2);
}

/* =========================
   Typography
   ========================= */
.h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5) 0;
}

.h1-small {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5) 0;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4) 0;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--s-3) 0;
}

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

.small {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* =========================
   Layout
   ========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--s-8) 0;
}

.section-tight {
  padding: var(--s-6) 0;
}

.stack > * + * {
  margin-top: var(--s-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

/* =========================
   Components
   ========================= */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  position: relative;
}

.brand {
  font-weight: var(--fw-semibold);
  font-size: 18px;
  display: block;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--accent);
  text-decoration: none;
}

.brand-link-static {
  color: var(--text);
  cursor: default;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
}

.header-link-right {
  margin-left: auto;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  padding: 0;
  margin: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  line-height: 1;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle .burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle .burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-link {
  font-weight: var(--fw-medium);
  display: inline-block;
  line-height: 1.2;
  padding: 0;
  vertical-align: baseline;
}

.hero {
  padding: var(--s-9) 0 var(--s-8);
}

.hero-tight {
  padding-bottom: var(--s-4);
}

.hero-home {
  position: relative;
  overflow: visible;
}

.hero-home .hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero-home .hero-content {
  position: relative;
  z-index: 2;
  padding-right: var(--s-7);
}

.hero-dash {
  position: absolute;
  top: 125px;
  left: calc((100vw - var(--container)) / -2 - var(--gutter));
  width: max(0px, calc((100vw - var(--container)) / 2 - 16px));
  height: 9px;
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
}

.hero-home .hero-photo {
  position: relative;
  min-height: 620px;
  margin-left: 0;
  margin-bottom: -40px;
}

.hero-home .hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../Images/myphoto.png");
  background-size: auto 100%;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: var(--r-2);
}

.hero-meta {
  font-size: 18px;
  color: var(--muted);
}

.hero-home .hero-content .hero-meta + p {
  margin-top: var(--s-4);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-illustration {
  width: min(420px, 100%);
  margin-top: var(--s-5);
  border-radius: var(--r-2);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
  background: #fff;
  height: 100%;
}

.card-link {
  display: block;
}

.card-link:hover,
.card-link:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
}

.telegram-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-5);
  padding: calc(var(--s-6) * 0.7);
  background: #f5f9ff;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.card-soft {
  background: #f5f9ff;
}

.card-no-border {
  border: none;
}

.presentation-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}

.presentation-star {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.presentation-event {
  margin: 0;
  color: var(--text);
}

.presentation-title-link {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-decoration: none;
}

.presentation-title-link:hover,
.presentation-title-link:focus-visible {
  text-decoration: underline;
}

.presentation-year {
  margin-top: auto;
  color: var(--text);
}

.content-pill {
  background: var(--accent);
  border-radius: var(--r-2);
  padding: var(--s-4);
  margin-top: var(--s-6);
}

.content-pill-home {
  margin-top: var(--s-7) !important;
}

.content-pill-narrow {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-5);
}

.content-pill-link {
  display: block;
  color: var(--accent-ink);
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.content-pill-narrow .content-pill-link {
  display: inline-block;
}

a.content-pill-link:hover,
a.content-pill-link:focus-visible {
  text-decoration: underline;
}

.content-pill-link:not(a) {
  cursor: default;
}

.blog-card h3 {
  margin-bottom: var(--s-3);
}

.blog-card a {
  text-decoration: none;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  text-decoration: underline;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
}

.page-link:hover {
  background: #f0f0f0;
}

.page-link--active {
  background: #1a6ef5;
  color: #fff;
  pointer-events: none;
}

.page-link--active:hover {
  background: #1a6ef5;
}

.blog-hero {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--s-6);
  align-items: start;
}

.blog-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.blog-author-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--r-2);
  object-fit: cover;
}

.blog-author-name {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.blog-tags-vertical {
  flex-direction: column;
  align-items: flex-start;
}

.blog-tag-link {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--s-5);
  height: 44px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: transparent;
  font-weight: var(--fw-medium);
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.blog-tag-link:hover,
.blog-tag-link:focus-visible {
  border-color: var(--accent);
  text-decoration: none;
}

.blog-article {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  width: 100%;
}

.blog-article p + p,
.blog-article p + ul,
.blog-article ul + p,
.blog-article ul + ul {
  margin-top: var(--s-4);
}

.blog-article ul {
  padding-left: var(--s-6);
}

.article-cta-line {
  border: none;
  border-top: 1px solid #1a6ef5;
  margin: var(--s-7) 0 var(--s-5);
}

.article-cta {
  font-size: 1.05rem;
}

.blog-subdivider {
  margin: var(--s-9) 0 var(--s-7);
}

.blog-subdivider + .h2 {
  margin-top: var(--s-6);
}

.blog-card-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
}

.blog-card-primary a {
  color: var(--accent-ink);
}

.blog-card-secondary {
  background: #f5f9ff;
  border: none;
}

.blog-card-title {
  color: var(--accent);
}

.blog-card-primary .blog-card-title,
.blog-card-primary .blog-card-tag {
  color: var(--accent-ink);
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-doc .h2 {
  margin-top: var(--s-7);
}

.legal-doc .h2:first-of-type {
  margin-top: var(--s-6);
}

.blog-article-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--s-6);
}

@media (max-width: 860px) {
  .blog-article-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card-tag {
  margin: 0;
  font-size: inherit;
  color: var(--accent);
  text-decoration: none;
}

.blog-card-tag:hover,
.blog-card-tag:focus-visible {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .blog-hero {
    grid-template-columns: 1fr;
  }
}

.telegram-icon {
  width: 70px;
  height: 70px;
  justify-self: center;
}

.telegram-icon a {
  display: block;
  width: 70px;
  height: 70px;
  cursor: pointer;
}

.telegram-icon-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.telegram-title {
  text-align: left;
  margin: 0;
  white-space: nowrap;
}

.telegram-link {
  text-align: right;
}

.telegram-link-desktop {
  display: inline;
}

.telegram-link-mobile {
  display: none;
}


.brand-disclaimer {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--s-5);
  color: var(--accent-ink);
}

.brand-hero .brand-disclaimer {
  margin-top: var(--s-9);
}

.brand-disclaimer strong {
  color: var(--accent-ink);
}

.save-notice {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.save-notice.is-visible {
  opacity: 1;
}

.download-left {
  display: grid;
  grid-template-columns: 7fr 3fr;
  align-items: start;
  gap: var(--s-6);
}

.download-left.card {
  padding: var(--s-4);
}
.brand-table-note {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  opacity: 0.7;
}

.brand-table-stack.stack > * + * {
  margin-top: 0;
}

.brand-table-stack .save-notice {
  display: none;
}

.brand-table {
  margin-top: 0;
}
.section#brand-table {
  padding-top: var(--s-6);
}

.download-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.download-arrow {
  width: 42px;
  height: 42px;
  margin-top: var(--s-2);
}
.download-left-col,
.download-right-col {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.download-left-col p,
.download-right-col p {
  margin: 0;
}

.download-left-col p + p,
.download-right-col p + p {
  margin-top: var(--s-2);
}

.download-right-col {
  justify-self: end;
}

.download-right {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.download-left p,
.download-right p {
  margin: 0;
}

.download-left p + p,
.download-right p + p {
  margin-top: var(--s-2);
}

.brand-author-photo-small {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--r-2);
}

.brand-hero-side {
  padding-top: 0;
}

.brand-hero .brand-disclaimer {
  margin-top: 0;
}

@media (max-width: 860px) {
  .download-right {
    flex-direction: column;
  }
}

.brand-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--accent);
}

.brand-table th,
.brand-table td {
  border: 1px solid var(--line);
  padding: var(--s-4);
  vertical-align: top;
}

.brand-table tbody tr:last-child td {
  border-bottom: 1px solid var(--accent);
}

.brand-table thead th {
  border-top: none;
  font-size: var(--fs-body);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  font-weight: var(--fw-semibold);
}

.brand-table td:first-child {
  width: 14%;
  font-weight: var(--fw-semibold);
}

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

.brand-table td:not(:first-child) {
  font-size: 14px;
}

.brand-table td:last-child {
  width: 30%;
}

.brand-table td.brand-input {
  padding: var(--s-3);
}

.brand-input input,
.brand-input textarea {
  height: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
}

.brand-input textarea {
  min-height: 90px;
}

.brand-input input,
.brand-input textarea {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: var(--r-1);
  padding: 10px 12px;
  font: inherit;
}

.brand-input textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
}

.form-row input[type="email"] {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: var(--r-1);
  padding: 12px 14px;
  font: inherit;
}

.form-row .btn {
  white-space: nowrap;
}

.form-consent {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--muted);
}

.brand-hero {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

.brand-hero-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--s-6);
  align-items: start;
}

.brand-hero-row-download {
  grid-template-columns: 7fr;
}

.brand-hero-author {
  align-items: flex-start;
}


.tag-back-link {
  font-weight: var(--fw-medium);
  color: var(--accent);
}

.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-1);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  text-decoration: none;
  background: #265be0;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: var(--s-3);
}

.site-footer .list-clean li + li {
  margin-top: var(--s-2);
}

.divider {
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

.divider-accent {
  border-top: 1px solid var(--accent);
  margin: 0;
}

.section-divider {
  padding: var(--s-4) 0;
}

.section-divider.section-divider-tight {
  padding: var(--s-2) 0;
}

.mt-6 {
  margin-top: var(--s-6);
}

.mt-7 {
  margin-top: var(--s-7);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0;
  margin-top: var(--s-8);
}

.footer-title {
  margin-bottom: calc(var(--s-5) + 15px);
}

.footer-disclaimer {
  margin-top: var(--s-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.privacy-link {
  margin-top: var(--s-4);
}

.privacy-link a {
  color: var(--muted);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    position: absolute;
    right: 0;
    top: calc(100% + var(--s-3));
    margin: 0;
    padding: var(--s-4);
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 20;
  }

  .hero-home {
    overflow: hidden;
  }

  .hero-home .hero-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }

  .hero-home .hero-photo {
    position: relative;
    min-height: 0;
    height: auto;
    aspect-ratio: 2 / 3;
    margin-left: 0;
    margin-bottom: 0;
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }

  .hero-home .hero-photo::before {
    /* cover keeps aspect ratio (square hi-res photo vs 2:3 box); 100% 100% stretched the image */
    background-size: cover;
    background-position: center top;
    border-radius: 0;
  }

  .hero-home .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-dash {
    top: 90px;
    left: calc(var(--gutter) * -1);
    width: calc(100vw - var(--gutter) * 2);
    display: none;
  }

  body.nav-open .nav-list {
    display: flex;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-home .hero-photo {
    margin-left: 0;
    margin-bottom: 0;
    min-height: 420px;
  }

  .telegram-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .telegram-title {
    display: none;
  }

  .telegram-link {
    text-align: left;
  }

  .telegram-link-desktop {
    display: none;
  }

  .telegram-link-mobile {
    display: inline;
  }

  .telegram-link {
    word-break: break-word;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .brand-hero-top {
    grid-template-columns: 1fr;
  }

  .brand-author {
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .brand-author-photo {
    width: 120px;
    height: 120px;
  }

  .brand-table,
  .brand-table thead,
  .brand-table tbody,
  .brand-table th,
  .brand-table td,
  .brand-table tr {
    display: block;
  }

  .brand-table thead {
    display: none;
  }

  .brand-table td {
    border-top: none;
    padding: var(--s-3) 0;
  }

  .brand-table tr + tr {
    border-top: 1px solid var(--line);
    margin-top: var(--s-4);
    padding-top: var(--s-4);
  }

  .pricing-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--s-8) 0 var(--s-6);
  }

  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-illustration {
    margin-top: var(--s-4);
  }

  .hero-home .hero-photo {
    min-height: 320px;
  }

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

  .section {
    padding: var(--s-7) 0;
  }
}
