@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f5ee;
  --bg-elevated: #fcfdf8;
  --bg-muted: #e8ece0;
  --ink: #121610;
  --ink-secondary: #3d4638;
  --ink-muted: #66705f;
  --line: rgba(18, 22, 16, 0.1);
  --line-strong: rgba(18, 22, 16, 0.16);
  --brand: #1b6d24;
  --brand-hover: #15571d;
  --brand-soft: #a3f69c;
  --brand-soft-hover: #8eec86;
  --brand-deep: #0d2a12;
  --brand-panel: #111f0f;
  --accent: #bcebf0;
  --shadow-sm: 0 1px 2px rgba(18, 22, 16, 0.05);
  --shadow: 0 18px 40px rgba(18, 22, 16, 0.08);
  --shadow-lg: 0 28px 60px rgba(18, 22, 16, 0.14);
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(163, 246, 156, 0.22), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(188, 235, 240, 0.18), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn svg {
  margin-right: 10px;
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.accordion__title:focus-visible,
.menu-item:focus-visible,
.nav-burger:focus-visible,
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.filled {
  background-color: var(--brand-soft);
  color: #002204;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 24px rgba(27, 109, 36, 0.16);
}

.filled:hover {
  background-color: var(--brand-soft-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 14px 28px rgba(27, 109, 36, 0.2);
}

.contained {
  background-color: #dce8d4;
  cursor: pointer;
  color: #111f0f;
}

.contained:hover {
  background-color: #d0dfc6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.outlined {
  background-color: transparent;
  border: 1px solid var(--line-strong);
  color: var(--brand);
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 48px;
  padding: 12px 20px;
}

.outlined:hover {
  background-color: rgba(27, 109, 36, 0.06);
  border-color: var(--brand);
}

.content-container {
  max-width: 1208px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.subtitle {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

@media screen and (max-width: 576px) {
  .subtitle {
    font-size: 30px;
  }
}

/* ------ title ------ */

.title-block {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 88% 0%, rgba(163, 246, 156, 0.28), transparent 58%),
    radial-gradient(700px 280px at 8% 90%, rgba(188, 235, 240, 0.2), transparent 50%),
    linear-gradient(180deg, #f7f8f2 0%, #eef1e6 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  margin: 16px auto;
  max-width: 1440px;
  padding: 72px 0 0 0;
  box-shadow: var(--shadow);
}

.title-block::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 22, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 16, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%);
}

.title-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  padding: 0 40px;
}

@media screen and (max-width: 1200px) {
  .title-inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }
}

.title-content {
  max-width: 690px;
  display: flex;
  flex-direction: column;
}

.title-text {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--ink);
}

@media screen and (max-width: 576px) {
  .title-block {
    padding-top: 40px;
    border-radius: 24px;
    margin: 12px;
  }

  .title-text {
    font-size: 34px;
  }
}

.description-text {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-secondary);
}

.title-img {
  width: 100%;
  max-width: 690px;
  height: 100%;
  border-radius: 28px 28px 0 0;
  object-fit: cover;
  display: block;
  box-shadow: 0 -8px 40px rgba(18, 22, 16, 0.08);
}

@media screen and (max-width: 1200px) {
  .title-img {
    height: 420px;
    max-width: none;
    border-radius: 20px 20px 0 0;
  }
}

.title-video iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 20px;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 18px 0;
  flex-wrap: wrap;
}

@media screen and (max-width: 600px) {
  .actions {
    flex-direction: column;
  }

  .actions > a,
  .actions button {
    width: 100%;
  }
}

.actions a {
  text-decoration: none;
}

.trust-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 72px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

@media screen and (max-width: 1200px) {
  .trust-note {
    margin: 0 0 36px 0;
  }
}

.trust-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-note svg {
  flex-shrink: 0;
}

/* ----- title end ------ */

/* ----- description ----- */

.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 768px;
  padding: 0 24px;
}

@media screen and (max-width: 992px) {
  .text-wrapper {
    max-width: none;
  }
}

.group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  margin-top: 36px;
}

@media screen and (max-width: 992px) {
  .group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .group {
    grid-template-columns: repeat(1, 1fr);
  }
}

.advantage {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(180deg, #fcfdf8 0%, #f6f7f1 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.advantage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(27, 109, 36, 0.22);
}

.icon-wrapper img {
  width: 56px;
  height: 56px;
}

.advantage-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.advantage-text {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-secondary);
  margin-bottom: 0;
}

/* ----- description end ----- */

/* ----- card block ----- */

.card-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

@media screen and (max-width: 1100px) {
  .card-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .card-group {
    grid-template-columns: repeat(1, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  padding: 20px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.card-free {
  background: linear-gradient(180deg, #eefbee 0%, #f7fcf6 100%);
  border: 1px solid rgba(163, 246, 156, 0.7);
}

.card.card-featured {
  background: linear-gradient(180deg, #162316 0%, #0f160f 100%);
  border-color: rgba(163, 246, 156, 0.28);
  color: #fcfdf6;
  box-shadow: 0 20px 48px rgba(17, 31, 15, 0.28);
}

.card.card-featured .card-title,
.card.card-featured .period,
.card.card-featured .card-content-item {
  color: #fcfdf6;
}

.card.card-featured .card-content-item path {
  fill: #a3f69c;
}

.card.card-featured .btn.contained {
  background: var(--brand-soft);
  color: #002204;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card button,
.card a.btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-image {
  width: 100%;
  height: 148px;
  padding: 0 16px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 16px;
}

.card0 {
  background-image: url(../images/tariff-starter.jpg);
}

.card1 {
  background-image: url(../images/tariff-small.jpg);
}

.card2 {
  background-image: url(../images/tariff-light.jpg?v=2);
}

.card3 {
  background-image: url(../images/tariff-medium.jpg);
}

.card4 {
  background-image: url(../images/tariff-large.jpg);
}

.card-content {
  margin-bottom: 24px;
}

.card-content svg {
  width: 12px;
  height: 9px;
  margin: 0 8px 0 0;
}

.card-content-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.blue {
  background-color: var(--accent);
  color: #12363a;
}

.green {
  background-color: var(--brand-soft);
  color: #002204;
}

.period {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

/* ----- card block end ----- */

/* ---- questions block ----- */

.questions-inner {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin: 24px 0 28px 0;
}

@media screen and (max-width: 992px) {
  .questions-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.helper-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 24px;
  max-width: 312px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 992px) {
  .helper-block {
    max-width: none;
  }
}

.helper-block a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.helper-block a:hover {
  color: var(--brand-hover);
}

.helper-block svg {
  margin-bottom: 16px;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px -24px 0 -24px;
}

.accordion__arrow {
  position: relative;
  top: 0;
}

.accordion-body {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-secondary);
}

.accordion__item {
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion__item:hover,
.accordion__item:has(.accordion-active) {
  border-color: rgba(27, 109, 36, 0.22);
  box-shadow: var(--shadow-sm);
}

.accordion__item .accordion__title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  font-family: inherit;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  padding: 0;
  gap: 12px;
}

.accordion__content {
  margin-top: 8px;
}

.accordion__item .accordion-title .accordion__arrow {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  text-align: center;
  margin-right: 5px;
  transition: transform 0.2s ease-out;
}

.accordion__item .accordion__rotate {
  transform: rotate(180deg);
}

.accordion__item .accordion__content {
  display: none;
}

.accordion__item .accordion__arrow-item {
  width: 12px;
}

/* ---- questions block end ----- */

/* ---- badge in title---- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.badge-title {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  width: max-content;
  margin-bottom: 0;
}

.badge-mcp {
  background: #1a1c19;
  border-color: #1a1c19;
  text-decoration: none;
  gap: 8px;
  padding-left: 10px;
}

.badge-mcp:hover {
  background: #111f0f;
  border-color: #a3f69c;
}

.badge-mcp .badge-text {
  color: #a3f69c;
}

.mcp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3f69c;
  box-shadow: 0 0 0 4px rgba(163, 246, 156, 0.18);
  animation: mcp-pulse 1.8s ease-in-out infinite;
}

@keyframes mcp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(163, 246, 156, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(163, 246, 156, 0.08); }
}

.badge-text {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.42;
}

/* ---- badge end ---- */

/* ---- MCP strip ---- */

.mcp-strip {
  max-width: 1208px;
  margin: 8px auto 24px;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

.mcp-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 88% -20%, rgba(163, 246, 156, 0.2), transparent 55%),
    linear-gradient(160deg, #0f1a0f 0%, #151815 52%, #061208 100%);
  border-radius: var(--radius-lg);
  padding: 44px 44px 40px;
  color: #e2e3dd;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.mcp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3f69c;
  margin-bottom: 12px;
}

.mcp-title {
  font-size: 36px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fcfdf6;
  margin-bottom: 12px;
}

.mcp-copy {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(226, 227, 221, 0.82);
  max-width: 520px;
  margin-bottom: 20px;
}

.mcp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mcp-chip {
  border: 1px solid rgba(163, 246, 156, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #a3f69c;
  background: rgba(163, 246, 156, 0.06);
}

.mcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mcp-actions .btn.filled {
  color: #002204;
  min-height: 48px;
}

.mcp-actions .btn.outlined {
  border-color: rgba(163, 246, 156, 0.4);
  color: #a3f69c;
  min-height: 48px;
  padding: 10px 18px;
}

.mcp-terminal {
  background: #0b100b;
  border: 1px solid rgba(163, 246, 156, 0.18);
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

.mcp-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(163, 246, 156, 0.12);
  font-size: 12px;
  color: rgba(226, 227, 221, 0.55);
}

.mcp-term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53a252;
}

.mcp-term-dot:nth-child(2) { background: #a3f69c; }
.mcp-term-dot:nth-child(3) { background: #1b6d24; }

.mcp-term-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.mcp-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mcp-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(163, 246, 156, 0.7);
}

.mcp-line p {
  margin: 0;
  color: #e2e3dd;
}

.mcp-line.agent p {
  color: #a3f69c;
}

.mcp-url {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(163, 246, 156, 0.1);
  color: #a3f69c;
  word-break: break-all;
}

@media screen and (max-width: 900px) {
  .mcp-panel {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }

  .mcp-title {
    font-size: 28px;
  }
}

/* ---- MCP strip end ---- */

/* ---- benefit group ---- */

.benefit-wrapper {
  padding: 0 24px;
}

.benefit-group {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.benefit-left-text {
  margin-right: -24px;
}

@media screen and (max-width: 992px) {
  .benefit-left-text {
    margin: 0 auto;
  }
}

.benefit-right-text {
  margin-left: -24px;
}

@media screen and (max-width: 992px) {
  .benefit-right-text {
    margin: 0 auto;
  }

  .benefit-right-text .benefit {
    flex-direction: column-reverse;
  }
}

.benefit {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 992px) {
  .benefit {
    flex-direction: column;
  }
}

@media screen and (max-width: 576px) {
  .benefit {
    gap: 24px;
  }
}

.benefit-content {
  width: calc(100% - 324px - 36px);
  max-width: 768px;
}

@media screen and (max-width: 992px) {
  .benefit-content {
    width: 100%;
    max-width: none;
  }
}

.benefit-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.benefit-text {
  display: flex;
  line-height: 1.6;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--ink-secondary);
}

.benefit-text p {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.benefit-img {
  max-width: 420px;
  width: 100%;
}

@media screen and (max-width: 992px) {
  .benefit-img {
    align-self: center;
  }
}

@media screen and (max-width: 576px) {
  .benefit-img {
    max-width: none;
  }
}

.benefit-img img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* ---- benefit group end ---- */

/* ---- quick start block ---- */

.quick-start {
  margin: 16px 0 80px 0;
  background:
    radial-gradient(700px 240px at 80% 0%, rgba(163, 246, 156, 0.22), transparent 60%),
    linear-gradient(160deg, #1a2a18 0%, #52634f 48%, #2f3d2c 100%);
  background-image: url(../images/banner-back.png),
    radial-gradient(700px 240px at 80% 0%, rgba(163, 246, 156, 0.22), transparent 60%),
    linear-gradient(160deg, #1a2a18 0%, #52634f 48%, #2f3d2c 100%);
  background-size: cover, auto, auto;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  box-shadow: var(--shadow-lg);
}

.quick-start-title {
  color: #fff;
  text-align: center;
}

.quick-start-description {
  margin: 16px 0 28px 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  max-width: 560px;
  font-size: 17px;
}

.quick-start .actions {
  margin: 0;
}

.quick-start .trust-note {
  justify-content: center;
  margin: 20px 0 0 0;
  color: rgba(255, 255, 255, 0.75);
}

/* ---- quick start block end ---- */

.animation {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
}

/* ----- header ----- */

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: rgba(243, 245, 238, 0.9);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.header-wrapper.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 22, 16, 0.04);
}

.styled-header {
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--brand);
}

.login-link svg {
  margin-right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}

.btn-login:hover {
  background: rgba(27, 109, 36, 0.06);
}

.btn-header {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* ----- header end ----- */

/* ----- nav ------ */

.nav-container {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-container > a {
  display: flex;
  flex-shrink: 0;
}

.nav-container svg {
  margin-right: 20px;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  align-items: center;
}

.nav-group a,
.nav-dropdown-toggle {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-group a:hover,
.nav-dropdown-toggle:hover {
  color: var(--brand);
  background: rgba(27, 109, 36, 0.06);
}

.nav-group a.nav-mcp {
  color: var(--brand);
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-toggle svg {
  margin: 0;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  width: 100%;
}

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
}

@media screen and (max-width: 960px) {
  .nav-container:has(.nav-burger) {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .nav-container:has(.nav-burger) .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-container:has(.nav-burger) .nav-group {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0 16px;
  }

  .nav-container:has(.nav-burger) .nav-group.nav-group--open {
    display: flex;
  }

  .nav-container:has(.nav-burger) .nav-dropdown {
    width: 100%;
  }

  .nav-container:has(.nav-burger) .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 8px;
    min-width: 0;
  }

  .header-actions .btn-header {
    display: none;
  }
}

/* ----- nav end ------ */

/* ----- auth ----- */

.auth-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.styled-auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  overflow: hidden;
  border: 1px solid var(--line);
}

.styled-auth-icon:hover {
  transform: scale(1.04);
}

.styled-auth-icon img {
  width: 200%;
  position: relative;
  top: 6px;
}

/* ----- auth end ----- */

/* ----- menu ----- */

.menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  background-color: var(--bg-elevated);
  padding: 8px;
  width: 220px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: absolute;
  top: 48px;
  right: 0;
}

.menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.menu-item:hover {
  background-color: rgba(26, 28, 25, 0.06);
}

/* ----- menu end ----- */

/* ----- auth data ----- */

.auth-data {
  border-radius: 8px;
  background-color: #2f312d;
  font-size: 12px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  position: absolute;
  right: 48px;
  top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 576px) {
  .auth-data {
    display: none;
  }
}

/* ----- auth data end ----- */

/* ----- cookie banner ----- */

#overlay {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.popup {
  pointer-events: auto;
  position: fixed;
  left: 50%;
  bottom: 24px;
  top: auto;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  min-width: 0;
  max-width: 640px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(252, 253, 248, 0.96);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.popup h2,
.popup h3 {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.popup p {
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.popup .btn,
.popup .btn-success {
  min-height: 44px;
  background: var(--brand-soft);
  color: #002204;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
}

a.remodal__file-link {
  display: inline;
  text-decoration: underline;
  color: var(--brand);
}

/* ----- unused flow placeholders ----- */

.flow-service,
#flow-isolate {
  width: 100%;
  height: 364px;
  border-radius: 28px;
  padding: 0 24px;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 24px;
}

.flow-service {
  background-image: url(flow-test.png);
}

#flow-isolate {
  background-image: url(flow-i-test.png);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
