@font-face {
  font-family: "Tilda Sans";
  src: url("../assets/fonts/TildaSans-VF.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
}

:root {
  color-scheme: light;
  --color-bg: #f2f4f6;
  --color-text: #222631;
  --color-text-soft: #626b7c;
  --color-text-faint: #8b93a6;
  --color-line: rgba(210, 220, 239, 0.82);
  --color-primary: #3f5ae8;
  --color-primary-strong: #087bff;
  --color-accent: #2ed3ad;
  --font-sans: "Tilda Sans", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1180px;
  --transition-base: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

strong {
  font-weight: 650;
}

.page {
  overflow: clip;
}

.container {
  width: min(100% - 56px, var(--container-max));
  margin-inline: auto;
}

.c-surface {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(123, 143, 179, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.c-surface--floating {
  border-radius: 28px;
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 650;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), filter var(--transition-base);
}

.c-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.c-button--secondary {
  min-width: 166px;
  min-height: 48px;
  padding: 11px 28px;
  color: #fff;
  background: #0079fe;
  border-radius: 14px;
  font-size: 16px;
}

.c-button--primary {
  min-height: 56px;
  padding: 15px 28px;
  color: #fff;
  background: linear-gradient(135deg, #3f5ae8, #087bff);
  box-shadow: 0 18px 34px rgba(63, 90, 232, 0.22);
}

.c-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(224, 231, 245, 0.92);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(138, 156, 194, 0.07);
  color: var(--color-text-faint);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}

.c-pill--accent {
  color: var(--color-primary);
}

.c-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ed3ad, #4d7cff);
  box-shadow: 0 0 0 6px rgba(46, 211, 173, 0.12);
}

.hero__promo-wrap {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero__promo {
  width: min(100% - 56px, 844px);
  min-height: 60px;
  margin-inline: auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

.hero__promo-text {
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.hero__promo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-hero {
  position: relative;
  padding: 152px 0 84px;
  overflow: hidden;
  background: radial-gradient(circle at 16% 20%, rgba(117, 179, 255, 0.32), transparent 31%),
    radial-gradient(circle at 82% 22%, rgba(164, 242, 219, 0.26), transparent 29%),
    linear-gradient(180deg, #f6f9ff 0%, #f2f4f6 100%);
}

.blog-hero__container {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.blog-hero__eyebrow {
  margin-bottom: 28px;
}

.blog-hero__title {
  max-width: 760px;
  color: #242633;
  font-size: clamp(4.2rem, 7.3vw, 7.2rem);
  font-weight: 430;
  line-height: 0.94;
  letter-spacing: 0;
}

.blog-hero__description {
  max-width: 650px;
  margin-top: 30px;
  color: #3e4350;
  font-size: 23px;
  line-height: 1.42;
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.blog-section {
  padding: 78px 0 108px;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  padding: 18px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(210, 220, 239, 0.82);
  box-shadow: 0 18px 40px rgba(122, 140, 177, 0.14);
}

.blog-card__media {
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: #dfeaff;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 24px 0;
}

.blog-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-text-faint);
  font-size: 14px;
  font-weight: 550;
}

.blog-card__title {
  margin-top: 18px;
  color: #202431;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 520;
  line-height: 1;
}

.blog-card__description {
  margin-top: 20px;
  max-width: 650px;
  color: var(--color-text-soft);
  font-size: 20px;
  line-height: 1.48;
}

.blog-card__link {
  align-self: flex-start;
  margin-top: 26px;
}

.article-layout {
  padding: 72px 0 108px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 42px;
}

.article {
  min-width: 0;
  padding: 56px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(210, 220, 239, 0.82);
  box-shadow: 0 18px 40px rgba(122, 140, 177, 0.14);
}

.article__lead {
  color: #424a5a;
  font-size: 22px;
  line-height: 1.55;
}

.article h2 {
  margin-top: 56px;
  color: #202431;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 650;
  line-height: 1.08;
}

.article h3 {
  margin-top: 30px;
  color: #27304a;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.18;
}

.article p,
.article li {
  color: #4a5263;
  font-size: 19px;
  line-height: 1.72;
}

.article p {
  margin-top: 18px;
}

.article ul,
.article ol {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-left: 26px;
}

.article a {
  color: var(--color-primary-strong);
  font-weight: 650;
}

.article-callout {
  margin-top: 34px;
  padding: 24px;
  border-radius: 24px;
  background: #f5f8ff;
  border: 1px solid rgba(210, 220, 239, 0.9);
  color: #34415c;
}

.article-step {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: #fbfcff;
  border: 1px solid rgba(210, 220, 239, 0.85);
}

.article-step h3 {
  margin-top: 0;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  grid-column: 2;
  grid-row: 1;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(122, 140, 177, 0.12);
}

.article-sidebar__label {
  color: var(--color-primary-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.article-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: #364057;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.article-sidebar a:hover {
  background: rgba(63, 90, 232, 0.08);
  color: var(--color-primary-strong);
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.faq-item {
  padding: 22px;
  border-radius: 22px;
  background: #f8faff;
  border: 1px solid rgba(210, 220, 239, 0.85);
}

.faq-item h3 {
  margin-top: 0;
}

.footer {
  position: relative;
  overflow: hidden;
  min-height: 343px;
  background: radial-gradient(circle at 18% 18%, rgba(56, 110, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(132, 89, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(60, 135, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #111927 0%, #0d1422 100%);
  color: #fff;
}

.footer__container {
  width: min(100% - 56px, 1240px);
  min-height: inherit;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 0 48px;
}

.footer__brand img {
  width: 147px;
  height: auto;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 44px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.footer__links a:hover {
  opacity: 0.68;
}

.footer__text {
  width: min(100%, 420px);
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 226px;
  padding: 0 16px;
  border: 1px solid rgba(210, 220, 239, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #26314a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible,
.language-switcher.is-open .language-switcher__button {
  border-color: rgba(63, 90, 232, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(42, 90, 160, 0.12);
  color: var(--color-primary-strong);
}

.language-switcher__button:focus-visible {
  outline: 3px solid rgba(63, 90, 232, 0.24);
  outline-offset: 3px;
}

.language-switcher__icon {
  flex: 0 0 auto;
}

.language-switcher__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-base);
}

.language-switcher.is-open .language-switcher__chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-switcher__menu {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 40px));
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(210, 220, 239, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.language-switcher__menu[hidden] {
  display: none;
}

.language-switcher__option {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #26314a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.language-switcher__option.is-current {
  background: rgba(51, 87, 226, 0.1);
  color: var(--color-primary-strong);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .blog-hero__container,
  .article-shell,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__content {
    padding: 0 6px 12px;
  }

  .article-sidebar {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .container,
  .footer__container {
    width: min(100% - 32px, var(--container-max));
  }

  .hero__promo-wrap {
    top: auto;
    bottom: 12px;
    padding-inline: 16px;
  }

  .hero__promo {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .hero__promo-text {
    font-size: 13px;
    text-align: center;
  }

  .hero__promo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .hero__promo-actions .c-button--secondary {
    min-width: 0;
  }

  .blog-hero {
    padding: 96px 0 48px;
  }

  .blog-hero__title {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
  }

  .blog-hero__description {
    margin-top: 22px;
    font-size: 18px;
  }

  .blog-section,
  .article-layout {
    padding: 52px 0 88px;
  }

  .blog-card {
    padding: 14px;
    border-radius: 24px;
  }

  .blog-card__media {
    min-height: 210px;
    border-radius: 18px;
  }

  .blog-card__title {
    font-size: 34px;
  }

  .blog-card__description,
  .article__lead {
    font-size: 18px;
  }

  .article {
    padding: 28px;
    border-radius: 24px;
  }

  .article h2 {
    margin-top: 42px;
    font-size: 30px;
  }

  .article h3 {
    font-size: 21px;
  }

  .article p,
  .article li {
    font-size: 16px;
  }

  .footer {
    min-height: 494px;
  }

  .footer__container {
    padding: 40px 0 120px;
  }

  .footer__links {
    flex-direction: column;
    gap: 18px;
    font-size: 17px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 10px;
  }

  .language-switcher__button {
    min-width: min(226px, calc(100vw - 32px));
  }

  .language-switcher__menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
