/* Generated by scripts/build-css.sh — do not edit; edit style/*.css instead. */
/* ==== style/components.css ==== */
.button {
  border: none;
  /* Kill the UA's default gray buttonface: .button is also used on real
       <button> elements (quiz form) whose modifiers don't set a background
       (secondary/ghost/mutted) — they must render transparent like the <a>
       usages do. */
  background: transparent;
  --padding-y: 10px;
  --padding-x: 13px;
  --border-size: 2px;
  --padding-y-with-border: calc(var(--padding-y) - var(--border-size));
  --padding-x-with-border: calc(var(--padding-x) - var(--border-size));
  cursor: pointer;
  color: #fff;
  user-select: none;
  padding: var(--padding-y-with-border) var(--padding-x-with-border);
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s;

  --box-shadow: 0 2px 10px -2px rgba(var(--color-accent-rgb), 0.4);

  &.button {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  &.primary {
    background: var(--color-accent);
    display: inline-block;
    border: 2px solid var(--color-accent);

    &:hover {
      transform: translateY(-6px);
      background: var(--color-accent-hover);
      border-color: var(--color-accent-hover);
      box-shadow: var(--box-shadow);
    }

    &:active {
      background: var(--color-accent-pressed);
      border-color: var(--color-accent-pressed);
      transform: translateY(0);
    }
  }

  &.secondary {
    padding: var(--padding-y-with-border) var(--padding-x-with-border);

    &.large {
      padding: var(--padding-y-large-with-border)
        var(--padding-x-large-with-border);
    }

    border: var(--border-size) solid var(--color-accent);
    box-sizing: border-box;

    &:hover {
      border-color: var(--color-accent-hover);
      color: var(--color-accent-hover);
      box-shadow: var(--box-shadow);
    }

    &:active {
      color: var(--color-accent-pressed);
      border-color: var(--color-accent-pressed);
      background: #000;
      transform: translateY(0);
    }
  }

  &.tertiary {
    background: #fff;
    color: var(--color-accent);

    &:hover {
      color: var(--color-accent-hover);
      transform: translateY(-6px);
      box-shadow: 0 6px 5px 0 rgba(0, 0, 0, 0.2);
    }

    &:active {
      color: var(--color-accent-pressed);
      transform: none;
      box-shadow: none;
    }
  }

  &.ghost {
    border: none;
    color: #fff;

    &:hover {
      color: var(--color-accent);
    }

    &:active {
      color: var(--color-accent-pressed);
    }
  }

  &.mutted {
    border: var(--border-size) solid var(--color-border-mutted);

    &:hover {
      border-color: var(--color-border-mutted-hover);
    }

    &:active {
      border-color: var(--color-border-mutted-pressed);
    }
  }

  &.without-transform {
    &:hover {
      transform: none;
    }
    &:active {
      transform: none;
    }
  }

  /* Disabled buttons are dimmed and fully inert — pointer-events:none also
       keeps the hover lift/shadow from firing on a disabled button. */
  &:disabled {
    pointer-events: none;
    opacity: 0.5;
  }
}

/* ==== style/footer.css ==== */
footer {
  color: #fff;
  background-image: radial-gradient(
    ellipse 40% 100% at center top,
    hsl(0deg 0% 35.3% / 26%) 0%,
    #09070b 70%
  );
  --color-footer-content: #7c7484;

  .footer-top {
    display: flex;
    padding: 43px 0 0 104px;
    justify-content: space-between;
  }

  .footer-top__logo {
    width: 670px;
  }

  .footer-top__logo-link {
    color: #fff;
    font-size: 23px;
    font-weight: bold;
    letter-spacing: 0.02em;
  }

  .footer-top__contacts {
    width: 510px;
  }

  .footer-top__contacts-title {
    font-size: 20px;
  }

  .footer-top__items {
    list-style: none;
    padding: 14px 0 0;
  }

  .footer-top__item {
    color: var(--color-footer-content);
    margin-bottom: 30px;
  }

  .footer-top__mailing {
    width: 650px;
  }

  .footer-top__mailing-title {
    font-size: 20px;
  }

  .footer-top__mailing-description {
    padding: 14px 0 0;
    color: var(--color-footer-content);
    line-height: 23px;
    width: 300px;
  }

  .footer-top__mailing-input-wrapper {
    margin-top: 25px;
    display: flex;
    align-items: center;
  }

  .footer-top__mailing-input-img {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: -37px;
    z-index: 2;
    transition: all ease-in-out 0.2s;

    &:hover {
      opacity: 0.6;
    }
  }

  .footer-top__mailing-input {
    background-color: #18141c;
    border: 1px solid #2d2835;
    padding: 10px 16px;
    border-radius: 8px;
    position: relative;
    font-size: 16px;
    width: 260px;
    color: #fff;

    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus,
    &:-webkit-autofill:active {
      -webkit-box-shadow: 0 0 0 30px #18141c inset !important;
      -webkit-text-fill-color: #ffffff;
    }

    &:active,
    &:focus-visible {
      outline: none;
      border-color: #7a7487;
      background-color: #18141c;
      color: #fff;
    }
  }

  .footer-bottom {
    letter-spacing: 0.005em;
    display: flex;
    justify-content: space-between;
    margin-top: 26px;
    border-top: 1px solid #7c7484;
    color: #fff;
    font-size: 12px;
    padding: 42px 0 82px 0;
  }

  .footer-bottom__link {
    color: #7c7484;
  }

  .footer-bottom__copyright {
    padding: 0;
    margin: 0;
    color: #7c7484;
  }
}

.footer-bottom__designer-contact {
  color: #fff;
  font-size: 16px;
}

.footer-bottom__designer-contact-i {
  font-style: italic;
}

@media (max-width: 1279px) {
  footer .footer-top {
    padding-left: 0;
    gap: 40px;
  }

  footer .footer-top__logo,
  footer .footer-top__contacts,
  footer .footer-top__mailing {
    flex: 1;
  }
}

@media (max-width: 767px) {
  footer {
    background-image: radial-gradient(
      ellipse 390px 575px at center top,
      rgba(255, 255, 255, 0.1),
      #09070b 72%
    );
  }

  footer .footer-top {
    grid-template-columns: minmax(132px, 36%) minmax(0, 1fr);
    gap: 44px 24px;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  footer .footer-top__logo-link {
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0;
  }

  footer .footer-top__contacts,
  footer .footer-top__mailing {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  footer .footer-top__contacts-title,
  footer .footer-top__mailing-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0;
  }

  footer .footer-top__items,
  footer .footer-top__mailing-description {
    margin: 0;
    padding: 5px 0 0;
    color: var(--color-footer-content);
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    min-width: 0;
  }

  footer .footer-top__item {
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }

  footer .footer-top__mailing-input-wrapper {
    margin-top: 0;
    width: 100%;
    min-width: 0;
  }

  footer .footer-top__mailing-input {
    height: 40px;
    width: 100%;
    padding: 8px 40px 8px 16px;
    border-color: var(--color-card-border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
  }

  footer .footer-top__mailing-input-img {
    margin-left: -34px;
  }

  footer .footer-bottom {
    gap: 16px;
    margin-top: 40px;
    padding: 39px 0 73px;
    border-top-color: var(--color-footer-content);
    color: var(--color-footer-content);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
  }

  .footer-bottom__designer-contact {
    font-size: 14px;
    margin-top: 20px;
    order: 1;
  }
}

/* ==== style/calculate-quiz.css ==== */
/* "Calculate the project" quiz — multi-step lead form.
   Figma: ServiceLab. — card 1232x392, padding 56/36/40;
   info 464 | panel/textarea 504 (+64 gap), all bottom-aligned. */

.calculate-form .calculate-quiz__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 392px;
  box-sizing: border-box;
  border-radius: var(--border-radius-size);
  background: linear-gradient(135deg, #9724ff 0%, #591c90 24%, #18141c 63%);
  padding: 36px 56px 40px;
}

.calculate-form .calculate-quiz__card_done {
  align-items: center;
}

.calculate-quiz__panel.is-hidden,
.calculate-quiz__textarea.is-hidden,
.calculate-quiz__consent.is-hidden,
.calculate-quiz__actions button.is-hidden {
  display: none;
}

/* 464px in the mock; shrinks a little when the card is 1230px wide. */
.calculate-quiz__info {
  flex: 0 1 464px;
  min-width: 0;
}

.calculate-quiz__title {
  margin: 4px 0 0;
  color: #fff;
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  white-space: pre-line;
}

.calculate-quiz__hint {
  margin: 20px 0;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: pre-line;
}

.calculate-quiz__error {
  color: #ffb4b4;
  font-size: 14px;
  line-height: 22px;
  margin: 16px 0 0;
}

/* Middle card column: question panels (steps 1–3) and textarea + consent
   + actions (step 4) share the same 504px slot next to info. */
.calculate-quiz__main {
  flex: 0 1 504px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calculate-quiz__panel {
  flex-shrink: 0;
  width: 100%;
  min-height: 316px;
  box-sizing: border-box;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-size);
  padding: 24px 32px;
}

.calculate-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card-style selector (no radio circles): full-width rounded row with a
   translucent fill that lights up on hover; the picked card gets a white
   border + brighter fill and a check chip on the right. */
.calculate-quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.02em;
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.calculate-quiz__option:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-1px);
}

.calculate-quiz__option:active {
  transform: translateY(0);
}

.calculate-quiz__option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* "Custom option" keeps the card shape but with a dashed border to hint at
   a free-form choice. */
.calculate-quiz__option_custom {
  border-style: dashed;
}

.calculate-quiz__option.is-checked {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Check chip on the right; the slot is reserved even when unchecked so
   labels don't shift between steps. */
.calculate-quiz__option-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calculate-quiz__option.is-checked .calculate-quiz__option-check {
  background: #fff;
  border-color: #fff;
}

.calculate-quiz__option.is-checked .calculate-quiz__option-check::after {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--color-accent);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 3%, 39% 70%);
}

.calculate-quiz__textarea {
  flex-shrink: 0;
  width: 100%;
  height: 316px;
  box-sizing: border-box;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid #cbd5e15c;
  border-radius: var(--border-radius-size);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.02em;
  resize: none;
  outline: none;
}

.calculate-quiz__textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.calculate-quiz__textarea:focus {
  border-color: var(--color-accent);
}

/* 152-FZ consent checkbox on the contact step; the link opens the consent
   page in a new tab so the user can read the terms without leaving the form. */
.calculate-quiz__consent {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 20px;
}

.calculate-quiz__consent input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e15c;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.calculate-quiz__consent input:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.calculate-quiz__consent input:checked::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 3%, 39% 70%);
}

.calculate-quiz__consent a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calculate-quiz__consent a:hover {
  color: var(--color-accent-hover);
}

/* Action buttons under the middle column: "Back" from step 2 on,
   "Отправить" on the contact step. Visuals come entirely from the
   site-wide .button helpers in components.css (secondary black / primary). */
.calculate-quiz__actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 1279px) {
  .calculate-form .calculate-quiz__card {
    flex-direction: column;
    align-items: stretch;
    padding: 32px;
  }

  /* Desktop column widths (464/504px) become fixed heights once the card
     stacks — size both columns by content so the action buttons stay on
     screen. */
  .calculate-quiz__info,
  .calculate-quiz__main {
    flex: 0 0 auto;
  }

  .calculate-quiz__main,
  .calculate-quiz__panel,
  .calculate-quiz__textarea,
  .calculate-quiz__consent {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .calculate-form .calculate-quiz__card {
    padding: 20px 24px 24px;
  }

  .calculate-quiz__title {
    font-size: 30px;
    line-height: 42px;
    font-weight: 500;
  }

  .calculate-quiz__hint {
    margin: 12px 0 16px;
  }

  .calculate-quiz__panel {
    min-height: auto;
    padding: 20px;
  }

  .calculate-quiz__options {
    gap: 8px;
  }

  .calculate-quiz__option {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .calculate-quiz__option-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .calculate-quiz__option.is-checked .calculate-quiz__option-check::after {
    width: 10px;
    height: 10px;
  }

  .calculate-quiz__textarea {
    height: 200px;
    font-size: 16px;
    line-height: 24px;
  }

  .calculate-quiz__consent {
    font-size: 13px;
    line-height: 18px;
    gap: 10px;
  }

  .calculate-quiz__consent input {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 420px) {
  /* Keep the contact step (textarea + consent + actions) inside one phone
     screen. */
  .calculate-quiz__textarea {
    height: 140px;
  }
}

/* ==== style/markdown.css ==== */
.markdown {
  color: #e5e7eb;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Headings */
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

.markdown h1 {
  font-size: 2.4rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

.markdown h2 {
  font-size: 1.8rem;
}

.markdown h3 {
  font-size: 1.4rem;
}

/* Paragraphs */
.markdown p {
  margin: 1rem 0;
  color: #cbd5e1;
}

/* Links */
.markdown a {
  color: #60a5fa;
  text-decoration: none;
}

.markdown a:hover {
  text-decoration: underline;
}

/* Lists */
.markdown ul,
.markdown ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  list-style: none;
}

/* Horizontal rule */
.markdown hr {
  border: none;
  border-top: 1px solid #334155;
  margin: 3rem 0;
}

/* Blockquotes */
.markdown blockquote {
  border-left: 4px solid #3b82f6;
  padding: 0.8rem 1rem;
  margin: 1.5rem 0;
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  border-radius: 0 8px 8px 0;
}

/* Inline code */
.markdown code {
  background: #2d2835;
  color: #f8fafc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.92em;
}

/* Code blocks: Service Lab grey panel (scheme C), square corners */
.markdown pre {
  background: #2e344066;
  color: #eceff4;
  padding: 1.2rem;
  border-radius: 0;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #434c5e;
}

.markdown pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Tables */
.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.markdown thead {
  background: #1e293b;
}

.markdown th,
.markdown td {
  padding: 0.9rem 1rem;
  border: 1px solid #334155;
  text-align: left;
}

.markdown th {
  color: #f8fafc;
  font-weight: 600;
}

.markdown td {
  color: #cbd5e1;
}

/* Images */
.markdown img {
  max-width: 100%;
  border-radius: 14px;
  margin: 1.5rem 0;
}

/* Strong */
.markdown strong {
  color: #f8fafc;
  font-weight: 700;
}

/* Selection */
.markdown ::selection {
  background: #2563eb;
  color: white;
}

/* Scrollbar */
.markdown pre::-webkit-scrollbar {
  height: 8px;
}

.markdown pre::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 999px;
}

/* ==== style/utils.css ==== */
.no-select {
  -webkit-user-select: none; /* Safari, Chrome, Opera */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}

.pointer {
  cursor: pointer;
}

/* ==== style/index.css ==== */
:root {
  --color-accent-rgb: 150, 35, 255;
  --color-accent: rgb(var(--color-accent-rgb));
  --color-accent-pressed: #500098;
  --color-accent-hover: #7912d6;
  --color-border-mutted: #656565;
  --color-border-mutted-hover: #868686;
  --color-border-mutted-pressed: #404040;
  --color-card-border: #2d2835;
  --color-card-bg: #18141c;
  --color-card-bg-hover: #211c26;
  --color-card-shadow-hover: #9623ff;
  --color-text-muted: #868686;
  --header-top: 31px;
  --header-hidden-top: -75px;
  --header-show-top: 35px;
  --border-radius-size: 16px;
  --color-secondary-page-bg: #09070b;
  --logo-size: 41px;

  --blog-card-logo-size: 35px;
}

html,
body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  letter-spacing: 0.02em;
  scrollbar-gutter: stable;
}

a {
  text-decoration: none;
}

@keyframes hide {
  from {
    top: var(--header-top);
  }

  to {
    top: var(--header-hidden-top);
  }
}

@keyframes show {
  from {
    top: var(--header-hidden-top);
  }

  60% {
    top: var(--header-show-top);
  }

  to {
    top: var(--header-top);
  }
}

.container {
  margin: 0 auto;
  max-width: 1230px;
}

.header {
  top: 31px;
  position: fixed;
  width: 100%;
  z-index: 3;

  &.hidden {
    animation-duration: 0.1s;
    animation-name: hide;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    top: var(--header-hidden-top);
  }

  &.visible {
    animation-duration: 0.4s;
    animation-name: show;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    top: var(--header-top);
  }
}

.header-nav__logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav__logo-img {
  width: var(--logo-size);
  margin: 0 15px 0 50px;
  overflow: hidden;

  svg {
    display: block;
    width: var(--logo-size);
    height: var(--logo-size);
  }
}

.header-nav {
  height: 70px;
  display: flex;
  border: 2px solid #4c4854;
  border-radius: var(--border-radius-size);
  justify-content: space-between;
  align-items: center;
  background-color: rgba(24, 20, 28, 0.7);
  backdrop-filter: blur(10px);
}

.header-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.header-nav__burger img {
  width: 24px;
  height: 24px;
}

.menu-container {
  margin-right: 100px;
}

.header-nav__menu {
  display: flex;
}

.header-nav__menu-item {
  color: #ffffff;
  font-size: 16px;
  margin: 0 23px;
}

.page {
  background: #09070b;
}

.start-page {
  background-size: cover;
  overflow: hidden;
  position: relative;

  .start-page-gradient {
    position: absolute;
    width: 838px;
    height: 838px;
    z-index: 0;
    overflow: hidden;
    background: #9623ff;
    filter: blur(150px);
    transform: translate(-50%, -50%);
    opacity: 0.2;
  }

  .start-page-right-gradient {
    top: 1290px;
    right: -470px;
  }

  .start-page-left-gradient {
    top: 2059px;
    left: 100px;
  }

  .hero {
    z-index: 1;
    position: relative;

    .hero-content {
      padding: 66px 72px 55px 72px;
      background: url("/assets/hero.webp") no-repeat center -120px / 1280px auto;
    }

    .hero-content-bg {
      background: url("/assets/hero-bg.webp") no-repeat center 0 / 1230px auto;
    }

    padding-top: 86px;
  }

  .hero-title {
    margin-bottom: 30px;
    color: #fff;
    font-size: 56px;
    line-height: 68px;
    letter-spacing: 0.03em;

    .hero-title__accent {
      color: var(--color-accent);
    }
  }

  .hero-description {
    color: #fff;
    font-size: 20px;
    line-height: 29px;
  }

  .hero-buttons {
    margin-top: 106px;
    display: flex;
    gap: 15px;
    padding-bottom: 75px;
  }
}

/* components */
.ghost {
  color: #fff;
  font-size: 16px;
  transition: color ease-in-out 0.3s;

  &:hover {
    color: var(--color-accent);
  }

  &:active {
    color: var(--color-accent-pressed);
  }
}

.section-title {
  color: #fff;
  font-size: 48px;
  letter-spacing: 0.02em;
  margin: 38px 0;
}

.section-title span {
  color: var(--color-accent);
}

/* Standard top offset for top-of-page content sections: with the 38px top
   margin of .section-title the page title lands at 191px, below the fixed
   header (~105px). Home-page mid-page sections opt out via .start-page. */
.section {
  position: relative;
  z-index: 1;
  padding-top: 153px;
}

.start-page .section {
  padding-top: 0;
}

.card {
  background: var(--color-card-bg);
  border: 2px solid var(--color-card-border);
  min-height: 396px;
  border-radius: var(--border-radius-size);
  transition: all ease-in-out 0.3s;
  cursor: pointer;
  position: relative;

  &:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    background: var(--color-card-bg-hover);
    box-shadow: 0 0 10px 1px var(--color-card-shadow-hover);
  }

  &:active {
    background: var(--color-card-bg);
    transform: translateY(0);
    border-color: var(--color-accent-pressed);
    box-shadow: none;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.card__content {
  padding: 0px 29px;
  max-width: 320px;
}

.card__title {
  color: #fff;
  margin: 29px 0 15px;
  font-size: 32px;
  line-height: 43px;
  letter-spacing: 0.02em;
}

.card__description {
  color: #fff;
  line-height: 24px;
  letter-spacing: 0.02em;
}

.card__bg-icon {
  --bg-size: 38px;
  --offset: 31px;
  position: absolute;
  right: var(--offset);
  bottom: var(--offset);
  display: flex;
  background: #fff;
  width: var(--bg-size);
  height: var(--bg-size);
  border-radius: calc(var(--bg-size) / 2);

  & > img {
    margin: auto;
  }
}

.spec {
  color: #fff;
  margin-top: -15px;
  margin-bottom: 77px;

  .card {
    padding: 0;
  }
}

.why-we {
  margin: 0 0 48px;
}

.motivation {
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 56px;
}

.motivation__description {
  margin: -12px 0 0;
}

.motivation__description-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.005em;
}

.motivation__promo {
  border-radius: var(--border-radius-size);
  padding: 0px 43px 60px;
  background-image: linear-gradient(
    to right bottom,
    #18141c,
    #341f4f,
    #512686,
    #7229c1,
    #9724ff
  );
}

.motivation__promo-title {
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.motivation__promo-text {
  max-width: 372px;
  line-height: 23px;
  letter-spacing: 0.008em;
}

.motivation-options {
  margin: 14px 0 0;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.motivation-option {
  border-radius: var(--border-radius-size);
  padding: 35px 40px 60px;

  &:nth-child(1) {
    background: url("/assets/motivation-options/01.svg") no-repeat 0 0;
  }

  &:nth-child(2) {
    background: #9623ff;
  }

  &:nth-child(3) {
    background: url("/assets/motivation-options/03.webp") no-repeat 0 0;
  }
}

.motivation-option-title {
  font-size: 55px;
  margin: 0;
  letter-spacing: 0.03em;
  margin-left: 4px;
}

.motivation-option-text {
  margin: 10px 0;
  max-width: 220px;
  line-height: 22px;
}

/*work*/
.work-section {
  margin: 0 0 48px;
}

.work {
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;

  .work-item {
    padding: 5px 0px;

    .work-item-title__number {
      font-size: 56px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }

    .work-item-title__number-value {
      margin-right: 27px;
    }

    .work-item-title__number-border {
      width: 100%;
      height: 1px;
      background: var(--color-accent);
      display: inline-block;
    }
  }

  .work-item-content {
    margin: 0 0 0 28px;

    .work-item-content-title {
      font-size: 24px;
      line-height: 36px;
      margin-bottom: -6px;
    }

    .work-item-content-description {
      line-height: 24px;
      width: 230px;
    }

    .work-item-content__title {
      font-size: 20px;
    }
  }
}

.calculate-form {
  .calculate-form__content {
    background: url("/assets/calculate-form-bg.webp") no-repeat 0 0;
    padding: 5px 70px 0 625px;
    height: 400px;
  }

  .calculate-form-title {
    color: #fff;
    font-size: 50px;
    margin: 34px 0 24px;
    line-height: 56px;
    letter-spacing: 0.0015em;
  }

  .calculate-form-description {
    color: #fff;
    line-height: 24px;
    max-width: 510px;
    letter-spacing: 0.01em;
  }

  .calculate-form-buttons {
    margin-top: 41px;

    .button {
      padding: calc(var(--padding-y-with-border) + 1px)
        calc(var(--padding-x-with-border) + 3px);
    }
  }
  margin-bottom: 143px;
}

.secondary-page-gradient {
  --gradient-size: 1240px;
  position: absolute;
  width: var(--gradient-size);
  height: var(--gradient-size);
  z-index: 0;
  overflow: hidden;
  background: #9623ff;
  filter: blur(150px);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  top: 170px;
  right: -844px;
  z-index: 0;
  border-radius: calc(var(--gradient-size) / 2);
}

.cases-page {
  overflow: hidden;
  position: relative;
  background: var(--color-secondary-page-bg);

  .case {
    &:hover {
      box-shadow: none;
      border-color: var(--color-card-border);
    }
  }

  .cases {
    z-index: 2;
    position: relative;
    min-height: 600px;
    margin-bottom: 120px;
  }

  .cases-description {
    margin-bottom: 58px;
    color: #fff;
    font-size: 20px;
    max-width: 445px;
    line-height: 30px;
    letter-spacing: 0.015em;
  }

  .cases-list {
  }

  .cases-list__filter {
    display: flex;
    gap: 19px;
    margin-bottom: 32px;
  }

  .case__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
  }

  .case__link {
    color: #fff;
  }

  .case__title {
    margin-top: 16px;
  }

  .case__description {
    max-width: 230px;
  }

  .case-additional {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid var(--color-accent);
    background-image: linear-gradient(
      135deg,
      #9724ff 0%,
      #591c90 24.038%,
      #18141c 63.462%
    );

    .card__content {
      margin-top: 0;
      max-width: none;
      padding: 24px 24px 0;
    }

    .case__title {
      margin: 0 0 12px;
      font-size: 28px;
      font-weight: 600;
      line-height: 36px;
    }

    &:hover,
    &:active {
      transform: none;
    }

    .case-additional__buttons {
      margin: 0;
      padding: 0 24px 24px;
      display: flex;
      justify-content: flex-end;
    }

    .case__description {
      margin: 0;
      max-width: 302px;
      font-size: 16px;
      font-weight: 500;
      line-height: 24px;
    }

    .case-additional__buttons .button {
      padding: 8px 16px;
      border-color: var(--color-accent);
      background: var(--color-accent);
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      line-height: 24px;
      letter-spacing: 0;
      color: #fff;
    }
  }
}

.blog-page {
  background: var(--color-secondary-page-bg);

  overflow: hidden;
  position: relative;
  background: var(--color-secondary-page-bg);
}

/*ABOUT-CASES*/

.about__cases__top {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 16px;
}

.about__cases__top p {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 0 16px;
}

.about__cases__border {
  background: linear-gradient(135deg, #18141c 0%, #9724ff 100%);
  padding: 24px 24px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.about__cases__border_block {
  padding: 2px 0 3px 0;
}

.about__cases__border_block:nth-child(1) {
  padding: 2px 56px 3px 0;
}

.about__cases__border_block:nth-child(3) {
  padding: 2px 56px 3px 56px;
  border: 1px solid #fff;
  border-width: 0 1px 0 1px;
}

.about__cases__border_block:nth-child(5) {
  padding: 2px 0 3px 56px;
}

.about__cases__border p {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 4px 0;
  text-align: center;
  letter-spacing: 0;
}

.about__cases__border h3 {
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: #fff;
  margin: 0;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
}

.about__cases__border_line {
  display: none;
}

.about__cases__width {
  max-width: 920px;
  margin: 0 0 24px 104px;
}

.about__cases__width h2 {
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #fff;
  margin: 0 0 16px 0;
}

.about__cases__width p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 0 auto;
  max-width: 816px;
}

.about__cases__img {
  border-radius: var(--border-radius-size);
  overflow: hidden;
  height: 433px;
  background: #d9d9d90d;
  margin: 0 0 40px 0;
  display: flex;
}

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

.about__cases__width ol {
  padding: 0;
  margin: 0 0 0 auto;
  max-width: 816px;
}

.about__cases__width h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #fff;
  margin: 24px 0 16px auto;
  max-width: 816px;
}

.about__cases__width:last-of-type {
  counter-reset: case-solution-step;
}

.about__cases__width:last-of-type h3 {
  position: relative;
  padding-left: 1.15em;
  text-indent: -1.15em;
}

.about__cases__width:last-of-type h3::before {
  counter-increment: case-solution-step;
  content: counter(case-solution-step) ". ";
}

.solution-subline {
  display: block;
  padding-left: 1.15em;
}

.cases__result {
  margin: 40px 0;
}

.cases__result h2 {
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: #fff;
  margin: 0;
}

.cases__result__wrap {
  display: flex;
  margin: 24px 0 0 0;
}

.cases__result__block {
  width: 33.333333%;
  margin: 0 16px 0 0;
}

.cases__result__block:last-child {
  margin: 0;
}

.cases__result__border {
  border-radius: var(--border-radius-size);
  padding: 32px 32px 40px 40px;
  height: -webkit-fill-available;
}

.cases__result__block:nth-of-type(1) .cases__result__border {
  background: linear-gradient(135deg, #18141c 0%, #9724ff 100%);
}

.cases__result__block:nth-of-type(2) .cases__result__border {
  background: var(--color-accent);
}

.cases__result__block:nth-of-type(3) .cases__result__border {
  background: linear-gradient(
    135deg,
    #9724ff 0%,
    #591c90 24.04%,
    #18141c 63.46%
  );
}

.cases__result__border h3 {
  font-weight: 700;
  font-size: 56px;
  line-height: 68px;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: 0.04em;
}

.cases__result__border p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0;
}

.cases__result__img {
  background: #ffffff0d;
  height: 367px;
  border-radius: var(--border-radius-size);
  overflow: hidden;
  display: flex;
}

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

.cases__result__inner {
  display: flex;
  margin: 20px 0 0 0;
}

.cases__result__inner__block {
  width: 58%;
  margin: 0 16px 0 0;
}

.cases__result__inner__block:last-child {
  width: 42%;
  margin: 0;
}

.cases__result__inner__block:only-child {
  width: 100%;
  margin: 0;
}

.cases__result__inner p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0;
}

.cases__result__author {
  display: flex;
  align-items: center;
  margin: 60px 0 0 0;
}

.cases__result__author__img {
  display: flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}

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

.cases__result__author__info {
  margin: 0 0 0 16px;
}

.cases__result__author h4 {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 4px 0;
}

.cases__result__author h5 {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  margin: 0;
}

.other {
  margin: 106px 0 128px 0;
}

.blog__page + .other {
  margin-top: 48px;
}

.blog__page__head {
}

.other__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.025em;
}

.other__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.other__wrap {
  margin: 24px 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.other__block {
}

/*blog*/

.blog {
  margin: 0 0 128px 0;
}

.blog__page__head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin: 0 0 30px;
}

.blog__top {
  margin: 24px 0 0 0;
  display: flex;
}

.blog__top__block {
  width: 64%;
  margin: 0 120px 0 0;
}

.blog__top__block:last-child {
  width: 38%;
  margin: 0;
}

.blog__top p {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
  margin: 0;
}

.blog__search {
  margin: 40px 0 0 0;
  position: relative;
}

.blog__search button {
  display: flex;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  background: none;
  cursor: pointer;
  padding: 0;
  border: none;
  width: 24px;
  height: 24px;
}

.search-loading {
  width: 20px;
  height: 20px;
}

.blog__search__input {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 0 0;
  width: 100%;
  padding: 0 24px;
  border-radius: var(--border-radius-size);
  height: 48px;
  box-sizing: border-box;
  background: #303030;
  border: none;
  outline: none;
}

.blog__search__input::-webkit-input-placeholder {
  color: #8e8e8e;
}

.blog__search__input::-moz-placeholder {
  color: #8e8e8e;
}

.blog__search__input:-ms-input-placeholder {
  color: #8e8e8e;
}

.blog__search__input::placeholder {
  color: #8e8e8e;
}

.blog__top ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.blog__top ul li {
  display: flex;
}

.blog__wrap {
  margin: 48px 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.blog__card {
  overflow: hidden;
  height: auto;
  cursor: pointer;
}

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

.blog__card__read-time {
  color: var(--color-text-muted);
}

.blog__card__img {
  display: flex;
  height: 198px;
}

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

.blog__card__info {
  padding: 16px 32px 32px 32px;
}

.blog__card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog__card__top-category {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #868686;
  margin: 0;
}

.blog__card__top-date {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #868686;
  margin: 0;
  display: block;
}

.blog__card h3 {
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: #fff;
  margin: 0 0 24px 0;
  min-height: 110px;
}

.blog__card__logo {
  display: flex;
  align-items: center;
}

.blog__card__logo__img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
}

.blog__card__logo__svg-container {
  width: 40px;
  height: 40px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__card__logo__svg-container svg {
  width: var(--blog-card-logo-size);
  height: var(--blog-card-logo-size);
  /* the artwork sits 1 unit low in the 16x16 viewBox; nudge up so it looks centered */
  position: relative;
  top: -4px;
}

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

.blog__card__logo p {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 0 0 0 10px;
}

.blog__card a:after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/*blog__page*/

.blog__page__main {
  background: #161616;
}

.blog__page__title {
  max-width: 600px;
}

.blog__page__banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 564px;
}

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

.blog__page__top {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog__page__top data {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  display: block;
  margin: 0 32px;
}

.blog__page__top span {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  margin: 0;
}

.blog__page__width {
  position: relative;
  z-index: 1;
  max-width: 816px;
}

.blog__page__width p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 20px 0 10px 0;
}

.blog__page__width p strong {
  font-weight: 700;
}

.blog__page__width h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  margin: 40px 0 40px 0;
}

/* comparison tables: size to content and scroll horizontally when wider
   than the column (body clips overflow-x on mobile, so the table itself
   must be the scroll container) */
.blog__page__width table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.blog__page__width th,
.blog__page__width td {
  padding: 10px 16px;
  border: 1px solid #434c5e;
  text-align: left;
  vertical-align: top;
}

.blog__page__width th {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

.blog__page__border {
  margin: 30px -40px 0px -40px;
  padding: 32px 40px;
  border-radius: var(--border-radius-size);
  background: rgba(150, 35, 255, 0.5);
}

.blog__page__border p {
  margin: 0;
}

.blog__page__cta {
  margin: 48px 0 0 0;
  padding: 32px 40px;
  border-radius: var(--border-radius-size);
  background: rgba(150, 35, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.blog__page__cta__title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #fff;
}

.blog__page__cta__text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.blog__page__cta .button {
  flex-shrink: 0;
}

/*contacts*/

.contacts {
  margin-bottom: 108px;
}

.contacts-page {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

.contacts__top {
  display: flex;
  align-items: center;
}

.contacts__contacts {
  text-align: center;
  margin: 0 0 0 120px;
}

.contacts__contacts a {
  display: block;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: #fff;
  margin: 0 0 16px 0;
}

.contacts__contacts a:last-child {
  margin: 0;
}

.contacts__legal {
  margin: 160px 0 0 0;
}

.contacts__legal h2 {
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #fff;
  margin: 0;
}

.contacts__legal ul {
  padding: 0;
  list-style: none;
  margin: 40px 0 0 0;
}

.contacts__legal ul li {
  display: flex;
  border-top: 2px solid #fff;
  transition: border ease-in-out 0.3s;

  &:hover {
    border-top: 2px solid var(--color-card-shadow-hover);
  }
}

.contacts__legal ul li a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: #fff;
}

.contacts__legal ul li a img {
  transition: 0.3s;
}

.contacts__legal ul li a:hover img {
  transform: rotate(45deg);
}

.contacts__requisites {
  margin: 100px 0 0 0;
}

.contacts__requisites h2 {
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #fff;
  margin: 0;
}

.contacts__requisites-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
}

.contacts__requisites-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid #fff;
  padding: 23px 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: #fff;
}

.contacts__requisites-label {
  color: #7c7484;
}

.contacts__requisites-value {
  text-align: right;
}

/* Legal / info text pages: /activity, /privacy, /consent — child pages of
   /contacts. Top padding comes from .section; only bottom spacing is local. */
.legal-page {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

.legal {
  padding-bottom: 120px;
}

.legal__updated {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.legal__download {
  margin: 32px 0 0;
}

.legal__body {
  max-width: 760px;
  margin: 48px 0 0;
}

.legal__body p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 30px;
  margin: 0 0 20px;
}

.legal__body h2 {
  color: #fff;
  font-size: 28px;
  line-height: 36px;
  margin: 40px 0 16px;
}

.legal__body ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal__body li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 30px;
  margin: 0 0 8px;
}

.legal__body a {
  color: var(--color-accent);
}

.legal__body a:hover {
  color: var(--color-accent-hover);
}

.legal__back {
  display: inline-block;
  margin-top: 56px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 28px;
  text-decoration: none;
  transition: color 0.3s;
}

.legal__back:hover {
  color: #fff;
}

@media (max-width: 1279px) {
  .container {
    max-width: none;
    width: auto;
    margin: 0 24px;
  }

  .header-nav__logo {
    margin-left: 0;
  }

  .menu-container {
    margin-right: 32px;
  }

  .cards,
  .blog__wrap,
  .other__wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work .work-item-content .work-item-content-description {
    width: auto;
  }

  .calculate-form .calculate-form__content {
    min-height: 400px;
    height: auto;
    padding: 40px;
    background-position: center;
    background-size: cover;
  }

  footer .footer-top {
    padding-left: 0;
    gap: 40px;
  }

  footer .footer-top__logo,
  footer .footer-top__contacts,
  footer .footer-top__mailing {
    flex: 1;
  }
}

@media (max-width: 767px) {
  :root {
    --header-top: 12px;
    --header-hidden-top: -72px;
    --header-show-top: 12px;
    --border-radius-size: 12px;
    --logo-size: 32px;
  }

  html,
  body {
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: clip;
    scrollbar-gutter: auto;
  }

  body.body-menu-open {
    overflow: hidden;
  }

  .container {
    margin: 0 16px;
  }

  .header {
    left: 0;
    right: 0;
    top: var(--header-top);
    width: auto;
  }

  .header-nav {
    min-height: 48px;
    height: auto;
    padding: 0 16px;
    align-items: center;
    position: relative;
  }

  .header-nav__logo {
    margin-left: 0;
    padding-left: 0;
    font-size: 20px;
    line-height: 24px;
    position: relative;
    z-index: 2;
  }

  .header-nav__burger {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 2;
  }

  .menu-container {
    margin-left: auto;
    margin-right: 0;
  }

  .header-nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -2px;
    right: -2px;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 2px solid #4c4854;
    border-radius: var(--border-radius-size);
    background-color: rgba(24, 20, 28, 0.96);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .header.menu-open .header-nav__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-nav__menu-item {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 24px;
  }

  .start-page .hero {
    padding-top: 92px;
  }

  .start-page .start-page-gradient {
    display: none;
  }

  .start-page .hero .hero-content {
    background-position: center top;
    background-size: cover;
    border-radius: var(--border-radius-size);
    overflow: hidden;
  }

  .start-page .hero .hero-content-bg {
    background: none;
  }

  .start-page .hero-title {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 18px;
  }

  .start-page .hero-description {
    font-size: 17px;
    line-height: 26px;
  }

  .start-page .hero-buttons,
  .case-additional .case-additional__buttons,
  .other__top {
    flex-direction: column;
    align-items: stretch;
  }

  .start-page .hero-buttons {
    margin-top: 48px;
    padding-bottom: 0;
  }

  .button {
    text-align: center;
  }

  .cards,
  .blog__wrap,
  .other__wrap,
  .work,
  .motivation,
  .motivation-options {
    grid-template-columns: 1fr;
  }

  .blog__wrap {
    margin: 32px 0 0 0;
  }

  .other__wrap {
    margin: 0;
  }

  .card {
    min-height: auto;
  }

  .card__content,
  .spec .card {
    max-width: none;
  }

  .card__title {
    font-size: 28px;
    line-height: 36px;
  }

  .spec {
    margin-bottom: 56px;
  }

  .motivation__promo,
  .motivation-option {
    padding: 28px 24px 40px;
  }

  .motivation__promo-title {
    font-size: 30px;
    line-height: 38px;
  }

  .motivation-option-title {
    font-size: 42px;
    line-height: 50px;
  }

  .work .work-item-content {
    margin-left: 0;
  }

  .calculate-form {
    margin-bottom: 80px;
  }

  .calculate-form .calculate-form__content {
    padding: 32px 20px;
    min-height: auto;
  }

  .calculate-form .calculate-form-title {
    font-size: 34px;
    line-height: 42px;
    margin-top: 0;
  }

  .calculate-form .calculate-form-buttons .button {
    width: 100%;
  }

  footer .footer-top,
  footer .footer-bottom {
    display: grid;
    gap: 28px;
    padding-left: 0;
  }

  footer .footer-top {
    padding-top: 40px;
  }

  footer .footer-top__mailing-description,
  footer .footer-top__mailing-input {
    width: 100%;
    box-sizing: border-box;
  }

  footer .footer-bottom {
    margin-top: 40px;
    padding: 28px 0 48px;
  }

  .section {
    padding-top: 116px;
  }

  .cases-page .cases,
  .blog,
  .contacts {
    margin-bottom: 64px;
  }

  .cases-description {
    margin-bottom: 40px !important;
  }

  .cases-description,
  .blog__top p {
    font-size: 14px;
    line-height: 26px;
  }

  .cases-list__filter,
  .blog__top ul {
    gap: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .cases-list__filter {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .cases-list__filter::-webkit-scrollbar {
    display: none;
  }

  .cases-list__filter .button,
  .blog__top ul .button {
    white-space: nowrap;
  }

  .case__img,
  .blog__card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .case-additional .case-additional__buttons {
    margin: 0;
    padding: 0 24px 24px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
  }

  .blog__top,
  .contacts__top,
  .about__cases__top,
  .about__cases__border,
  .cases__result__inner {
    display: grid;
    gap: 24px;
  }

  .contacts__top {
  }

  .cases__result__wrap {
    display: grid;
    gap: 16px;
  }

  .blog__top__block,
  .blog__top__block:last-child,
  .cases__result__block,
  .cases__result__inner__block,
  .cases__result__inner__block:last-child {
    width: auto;
    margin: 0;
  }

  .case_list__filter {
    gap: 16px;
    margin-bottom: 24px;
  }

  .blog__card__info {
    padding: 16px 20px 24px;
  }

  .blog__card h3 {
    font-size: 24px;
    line-height: 32px;
    margin: 0 0 12px 0;
  }

  .blog__page {
    padding-top: 260px;
  }

  .blog__page__banner {
    height: 360px;
  }

  .blog__page__top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .blog__page__top data {
    margin: 0;
  }

  .blog__page__width,
  .about__cases__width {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .blog__page__border {
    margin: 0;
    padding: 24px 20px;
  }

  .blog__page__cta {
    margin-top: 40px;
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .blog__page__cta .button {
    text-align: center;
  }

  .about__cases {
    padding-top: 96px;
  }

  .about__cases::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -290px;
    left: 100%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #9724ff;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
  }

  .about__cases__top p {
    margin-left: 0;
    width: max-content;
  }

  .about__cases__border_block,
  .about__cases__border_block:nth-of-type(1),
  .about__cases__border_block:nth-of-type(2),
  .about__cases__border_block:nth-of-type(3),
  .about__cases__border_block:nth-child(1),
  .about__cases__border_block:nth-child(3),
  .about__cases__border_block:nth-child(5) {
    padding: 0;
    border: 0;
  }

  .about__cases__border {
    gap: 0;
  }

  .about__cases__border_block {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .about__cases__border_line {
    margin: 12px 0;
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
  }

  .about__cases__border_block p {
    margin: 0 0 12px;
  }

  .about__cases__border_block h3 {
    margin: 0;
    white-space: normal;
  }

  .about__cases__width h2,
  .contacts__legal h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .about__cases__img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .cases__result__img {
    display: none;
  }

  .cases__result__border {
    padding: 28px 24px 32px;
    height: auto;
    min-height: 0;
  }

  .cases__result__border h3 {
    font-size: 42px;
    line-height: 50px;
  }

  .cases__result__author {
    margin-top: 32px;
  }

  .other {
    margin: 0 0 64px 0;
  }

  .other .container {
    display: flex;
    flex-direction: column;
  }

  .other__top {
    display: contents;
  }

  .other__title {
    order: 1;
  }

  .other__wrap {
    order: 2;
  }

  .other__top .button {
    display: none;
  }

  .contacts__contacts {
    text-align: left;
    margin-left: 0;
  }

  .contacts__contacts a,
  .contacts__legal ul li a {
    font-size: 20px;
    line-height: 30px;
  }

  .contacts__legal ul {
    margin-top: 24px;
  }

  .contacts__legal {
    margin-top: 48px;
  }

  .contacts__requisites {
    margin-top: 48px;
  }

  .contacts__requisites h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .contacts__requisites-list {
    margin-top: 24px;
  }

  .contacts__requisites-list li {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    font-size: 20px;
    line-height: 30px;
  }

  .contacts__requisites-value {
    text-align: left;
  }

  .secondary-page-gradient,
  .start-page .start-page-gradient {
    width: 520px;
    height: 520px;
    filter: blur(110px);
  }
}

@media (max-width: 420px) {
  .container {
    margin: 0 12px;
  }

  .section-title,
  .cases__result h2,
  .other__title,
  .start-page .hero-title,
  .calculate-form .calculate-form-title {
    font-size: 30px;
    line-height: 38px;
  }

  .header-nav {
    padding: 0 12px;
  }

  .contacts__contacts a,
  .contacts__legal ul li a {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 767px) {
  .container {
    margin: 0 20px;
  }

  .header-nav__logo-img {
    margin: 0 10px;
  }

  .page,
  .start-page {
    max-width: 100%;
    overflow-x: clip;
  }

  .header {
    top: 12px;
  }

  .header-nav {
    min-height: 48px;
    padding: 6px 23px 6px 0;
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    background-color: rgba(24, 20, 28, 0.8);
    box-sizing: border-box;
  }

  .header-nav__logo {
    font-size: 16px;
    line-height: 24px;
  }

  .header-nav__burger {
    width: 24px;
    height: 24px;
  }

  .header-nav__menu {
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
  }

  .blog__top {
    display: grid;
    gap: 24px;
  }

  .blog__top__block,
  .blog__top__block:last-child {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .blog__search {
    width: 100%;
    max-width: 100%;
  }

  .blog__search__input {
    width: 100%;
    max-width: 100%;
    padding-right: 56px;
    box-sizing: border-box;
  }

  .blog__top ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .blog__top ul::-webkit-scrollbar {
    display: none;
  }

  .blog__top ul li {
    flex: 0 0 auto;
  }

  .blog__page {
    padding-top: 96px;
  }

  .blog__page__banner {
    display: none;
  }

  .blog__page__ixhead {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .blog__page__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "author author"
      "date read";
    row-gap: 8px;
    align-items: center;
  }

  .blog__page .blog__card__logo {
    grid-area: author;
  }

  .blog__page__top data {
    grid-area: date;
    margin: 0;
    color: #7c7484;
  }

  .blog__page__top span {
    grid-area: read;
    color: #7c7484;
    text-align: right;
  }

  .blog__page__width {
    margin-top: 24px;
  }

  .blog__page__width.markdown {
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
  }

  .blog__page__width p {
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
  }

  .blog__page__width h3 {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 28px;
  }

  .blog__page__width pre {
    padding: 14px 12px;
    border: 1px solid #434c5e;
    border-radius: 0;
    color: #eceff4;
  }

  .blog__page__width pre code {
    font-size: 12px;
    line-height: 1.6;
  }

  .blog__page__width :not(pre) > code {
    background: #2d2835;
    color: #fff;
    border-radius: 4px;
  }

  .blog__page__width th,
  .blog__page__width td {
    padding: 8px 12px;
  }

  .blog__page__head {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .blog__page__border {
    margin: 0 -20px;
    padding: 24px 20px;
    border-radius: 0;
    background: rgba(80, 0, 152, 0.6);
  }

  .blog__page__cta {
    margin: 40px -20px 0;
    padding: 24px 20px;
    border-radius: 0;
    background: rgba(80, 0, 152, 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .blog__page__cta .button {
    text-align: center;
  }

  .contacts {
    margin-bottom: 64px;
  }

  .contacts__top {
    display: grid;
    gap: 20px;
    align-items: start;
  }

  .contacts__contacts {
    margin: 0;
    text-align: left;
  }

  .contacts__contacts a {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 30px;
  }

  .contacts__legal {
    margin-top: 48px;
  }

  .contacts__legal h2 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: 0;
  }

  .contacts__legal ul {
    margin-top: 24px;
  }

  .contacts__legal ul li a {
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    line-height: 24px;
  }

  .contacts__legal ul li a img {
    flex: 0 0 auto;
  }

  .legal {
    padding-bottom: 80px;
  }

  .legal__body {
    margin-top: 32px;
  }

  .legal__body p,
  .legal__body li {
    font-size: 16px;
    line-height: 26px;
  }

  .legal__body h2 {
    font-size: 22px;
    line-height: 30px;
    margin: 32px 0 12px;
  }

  /* Hero fills exactly the first screen: text on top, buttons pinned to the
     bottom edge so "Обсудить проект" is visible without scrolling. */
  .start-page .hero {
    padding-top: 68px;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .start-page .hero .container {
    margin: 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }

  .start-page .hero .hero-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 12vw, 47px) 20px clamp(39px, 12vw, 46px);
    border-radius: 0;
    background: radial-gradient(
      ellipse 70% 90px at 50% 100%,
      rgba(151, 36, 255, 0.14) 0%,
      rgba(151, 36, 255, 0.06) 48%,
      rgba(151, 36, 255, 0) 86%
    );
    box-sizing: border-box;
  }

  /* Illustration lives on a pseudo-element so it can be dimmed with opacity;
     kept small and bottom-anchored so it never reaches the title text. */
  .start-page .hero .hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/hero.webp") no-repeat 75% 100% / 220%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
  }

  .start-page .hero .hero-content-bg {
    background: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .start-page .hero-title {
    max-width: 350px;
    margin: 0;
    font-size: clamp(24px, 8.2vw, 32px);
    font-weight: 600;
    line-height: clamp(31px, 10.25vw, 40px);
  }

  .start-page .hero-description {
    max-width: 270px;
    margin: clamp(18px, 6.15vw, 24px) 0 0;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: clamp(18px, 5.65vw, 22px);
    text-shadow:
      0 2px 2px rgb(0 0 0 / 85%),
      0 1px 3px rgb(12 10 14 / 60%);
    z-index: 2;
  }

  .start-page .hero-description br {
    display: none;
  }

  /* Auto margin absorbs leftover first-screen height; padding keeps the
     minimal picture zone above the buttons. */
  .start-page .hero-buttons {
    width: 100%;
    margin-top: auto;
    padding-top: clamp(140px, 46vw, 230px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 4.35vw, 17px);
  }

  .button.button {
    font-size: clamp(12px, 3.6vw, 14px);
    font-weight: 400;
    line-height: clamp(18px, 5.65vw, 22px);
    letter-spacing: 0;
  }

  .section-title,
  .cases__result h2,
  .other__title {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
  }

  .spec {
    margin: 48px 0;
  }

  .cards {
    gap: 16px;
  }

  .card {
    min-height: 320px;
    border-width: 1px;
    border-radius: 16px;
  }

  .card__title {
    margin: 31px 0 16px;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
  }

  .card__description {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
  }

  .card__bg-icon {
    --bg-size: 40px;
    --offset: 31px;
  }

  .motivation {
    gap: 40px;
  }

  .motivation__description-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
  }

  .motivation__promo {
    order: 2;
    min-height: 268px;
    padding: 24px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .motivation__promo-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
  }

  .motivation__promo-text {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
  }

  .motivation-options {
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .motivation-option {
    min-height: 167px;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--color-accent) !important;
    box-sizing: border-box;
  }

  .motivation-option:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 167px;
  }

  .motivation-option-title {
    margin: 0 0 8px;
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    letter-spacing: 0;
  }

  .motivation-option-text {
    max-width: 230px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
  }

  .work-section {
    margin-bottom: 78px;
  }

  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 47px 16px;
  }

  .work .work-item {
    padding: 0;
  }

  .work .work-item .work-item-title__number {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
  }

  .work .work-item-title__number-value {
    margin-right: 15px;
  }

  .work .work-item-content .work-item-content-title {
    margin: 12px 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
  }

  .work .work-item-content .work-item-content-description {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
  }

  /* Anchor scroll stops below the fixed header; the card fills the rest of
     the screen so title and "Получить расчет" button are both visible. */
  .calculate-form {
    margin-bottom: 64px;
    scroll-margin-top: 76px;
  }

  .calculate-form .calculate-form__content {
    position: relative;
    min-height: calc(100vh - 96px);
    min-height: calc(100svh - 96px);
    padding: 20px 24px 24px;
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    background: linear-gradient(113deg, #9724ff 0%, #591c90 24%, #18141c 64%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Illustration on a dimmed pseudo-element so the heading stays readable. */
  .calculate-form .calculate-form__content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/images/CTA_image-mobile.webp") no-repeat center
      bottom / 100% auto;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
  }

  .calculate-form .calculate-form-title {
    max-width: 300px;
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    z-index: 2;
  }

  .calculate-form .calculate-form-description {
    max-width: 310px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
    z-index: 2;
  }

  .calculate-form .calculate-form-buttons {
    margin-top: auto;
  }

  .calculate-form .calculate-form-buttons .button {
    width: auto;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    position: relative;
    z-index: 2;
  }

  .about__cases__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .about__cases__top .button {
    order: 1;
  }

  .about__cases__top h1 {
    order: 2;
  }

  .about__cases__border h3,
  .about__cases__width h2,
  .cases__result h2,
  .other__title {
    font-size: 28px;
    line-height: 36px;
  }

  .about__cases__width h3 {
    font-size: 20px;
    line-height: 32px;
  }

  .cases__result__border h3 {
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    letter-spacing: 0;
  }

  .cases__result__border p {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
  }

  .cases__result__inner p {
    font-weight: 500;
  }
}

/* Footer newsletter: submit button (was a static img) + status line */
.footer-top__mailing-input-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-top__mailing-input-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.footer-top__mailing-status {
  min-height: 1em;
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-muted, #868686);
}
