body {
  color: var(--color-text-strong);
  background: var(--color-bg-page);
}
main,
main * {
  min-width: 0;
}
/* Search panel – expands downward below header__top, never overlaps siblings */

/* Hero */
.hero {
  background: linear-gradient(90deg, var(--color-surface-warm), rgba(239, 235, 226, 0));
  box-shadow: var(--shadow-section);
}
.hero__content {
  min-height: 394px;
  padding: 55px var(--content-inline-start) 35px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero__title,
.home-title {
  max-width: 100%;
  margin-bottom: 20px;
  color: var(--color-text-strong);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-title {
  font-size: var(--fs-section);
}

.hero__title {
  font-size: var(--fs-display-title);
  overflow-wrap: anywhere;
}

.hero__subtitle {
  margin: 15px 0 20px;
  max-width: 290px;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__text {
  width: 100%;
  max-width: 560px;
  margin: 0 0 20px;
  font-size: var(--fs-hero-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

#hero .hero__cta.motion-reveal-group--3 {
  animation-fill-mode: backwards;
}

.hero__audience {
  margin: 0;
  padding: 30px 46px;
  background: var(--color-surface-highlight);
  box-shadow: var(--shadow-neumorphic);
  font-size: 20px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.home-button {
  min-width: 225px;
  min-height: 38px;
  padding: 9px 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5c5c5;
  border-radius: 50px;
  color: var(--color-text-strong);
  background: var(--color-surface-control);
  box-shadow:
    -3px -3px 14px #fff,
    3px 3px 14px #c9d9e8;
  font:
    400 16px/1.3 "Onest",
    sans-serif;
  text-decoration: none;
  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}
.home-button:active {
  transform: translateY(-1px);
}
.security {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 42px;
  text-align: center;
}
.security__heading {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
.security__title {
  max-width: 220px;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(to right, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.15) 100%) 1;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: uppercase;
}
.security__offer {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.02;
  text-transform: uppercase;
}
.security__text {
  margin: 0 0 20px;
  font-size: var(--fs-hero-text);
  line-height: 1.02;
}
/* Projects */

.projects,
.difference,
.solutions,
.stages,
.world,
.plans {
  padding: 20px;
}

.projects {
  background: rgba(245, 245, 245, 0.77);
  box-shadow: -8px 0 16px #c9d9e8;
}

.projects .home-title,
.difference .home-title,
.plans .home-title,
.stages .home-title {
  text-align: center;
}

.projects__rows {
  margin: 20px -20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects__slider {
  --projects-marquee-duration: 90s;
  --projects-marquee-gap: 0.35vw;

  width: 100%;
  overflow: hidden;
}

.projects__slider--second {
  --projects-marquee-duration: 75s;
}

.projects__track {
  width: max-content;
  display: flex;
  animation: projects-marquee var(--projects-marquee-duration) linear infinite;
  animation-play-state: paused;
}

.projects--motion-active .projects__track {
  animation-play-state: running;
}

.projects__group {
  padding-right: var(--projects-marquee-gap);
  display: flex;
  flex: 0 0 auto;
  gap: var(--projects-marquee-gap);
}

.projects__slide {
  flex: 0 0 auto;
  width: min(clamp(240px, 82vw, 760px), calc(100vw - 20px));
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.projects__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@keyframes projects-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.difference {
  background: var(--color-bg);
}
.difference__list {
  max-width: 1100px;
  margin: 20px auto 0;
}
.difference__item {
  padding: 0 0 20px;
  border-bottom: 1px solid #777;
}
.difference__item + .difference__item {
  padding-top: 20px;
}
.difference__question {
  display: flex;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.02;
}
.difference__question::-webkit-details-marker {
  display: none;
}
.difference__question::after {
  content: "↘";
  margin-left: 20px;
}
.difference__item[open] .difference__question::after {
  content: "↗";
}
.difference__answer {
  margin: 20px 0 0;
  font-size: var(--fs-hero-text);
  line-height: 1.3;
}
.plans {
  overflow: hidden;
  background: var(--color-bg);
}
.plans__scroll-hint {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted, #888);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plans__scroll-hint svg {
  flex: 0 0 auto;
  animation: plans-hint-slide 1.6s ease-in-out infinite;
}
@keyframes plans-hint-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
.plans__grid {
  margin: 45px auto 0;
  padding: 12px 20px 24px 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.plans__grid::-webkit-scrollbar {
  display: none;
}
.plan-card {
  flex: 0 0 min(294px, calc(100vw - 72px));
  max-width: min(294px, calc(100vw - 72px));
  padding: clamp(22px, calc(18px + 1.25vw), 28px)
    clamp(14px, calc(12px + 0.75vw), 18px) clamp(14px, calc(12px + 0.75vw), 18px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border-warm);
  border-radius: 18px;
  background: var(--color-surface-warm);
  scroll-snap-align: start;
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: clamp(14px, calc(12px + 0.75vw), 18px);
  padding: clamp(3px, calc(2px + 0.3vw), 4px) clamp(8px, calc(6px + 0.6vw), 10px);
  background: #fff387;
  font-size: clamp(10px, calc(9px + 0.3vw), 11px);
  text-transform: uppercase;
}
.plan-card__title {
  margin: clamp(8px, calc(7px + 0.4vw), 10px) 0;
  font-size: var(--fs-card-title);
  font-weight: 500;
  line-height: 1.02;
  text-transform: uppercase;
}
.plan-card__audience {
  width: 100%;
  margin: clamp(16px, calc(13px + 1vw), 22px) 0 0;
  font-size: clamp(16px, calc(13px + 0.9vw), 20px);
}

.plan-card__platform {
  font-size: clamp(16px, calc(13px + 0.9vw), 20px);
  font-weight: 500;
  margin: clamp(16px, calc(13px + 1vw), 22px) 0 0;
}

.plan-card__text {
  margin: clamp(14px, calc(12px + 0.6vw), 18px) 0
    clamp(18px, calc(14px + 1vw), 24px);
  font-size: clamp(14px, calc(12.5px + 0.25vw), 16px);
  line-height: 1.3;
}
.plan-card .home-button {
  margin-top: auto;
  margin-bottom: clamp(12px, calc(9px + 0.75vw), 18px);
  font-size: clamp(14px, calc(12px + 0.6vw), 16px);
}
.solutions {
  text-align: center;
  background: var(--color-bg);
}

.solutions .home-title small {
  margin-top: clamp(6px, 1.5vw, 10px);
  display: block;
  font-size: clamp(13px, calc(12px + 0.5vw), 16px);
  text-transform: none;
}

.solutions__panel {
  margin-top: clamp(24px, 6vw, 48px);
  margin-inline: -20px;
  padding: clamp(28px, 7vw, 64px) clamp(16px, 5vw, 56px);
  background: var(--color-surface-highlight);
}

.solutions__grid {
  max-width: 1160px;
  margin: 0 auto clamp(30px, 7vw, 56px);
  text-align: left;
}

.solutions__grid > .row {
  row-gap: clamp(34px, 9vw, 56px);
}

.solutions__grid > .row + .row {
  margin-top: clamp(34px, 9vw, 56px);
}

.solutions__item {
  max-width: 460px;
  margin-inline: auto;
}

.solutions__trigger {
  width: 100%;
  min-height: 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: clamp(14px, 4vw, 22px); */
  color: inherit;
  font: inherit;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.solutions__icon {
  width: clamp(64px, 20vw, 92px);
  height: clamp(64px, 20vw, 92px);
  object-fit: contain;
  transition: transform var(--transition-base);
}

.solutions__title {
  margin: 0;
  font-size: clamp(18px, calc(16px + 0.8vw), 22px);
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    color var(--transition-base),
    transform var(--transition-base);
}

.solutions__title::after {
  content: "\2193";
  margin-left: 0.45em;
  display: inline-block;
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.solutions__trigger[aria-expanded="true"] .solutions__title::after {
  transform: rotate(180deg);
}

.solutions__content {
  margin-top: clamp(20px, 5vw, 30px);
  text-align: center;
}

.solutions__question,
.solutions__description {
  margin: 0;
  font-size: clamp(14px, calc(13px + 0.35vw), 16px);
  line-height: 1.4;
}

.solutions__question {
  font-weight: 500;
}

.solutions__description {
  margin-top: clamp(12px, 3vw, 18px);
}

.stages {
    background: var(--color-bg);
}

.stages__list {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0;
  display: grid;
  gap: 28px;
  list-style: none;
}
.stages__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stages__list span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid #777;
  border-radius: 50%;
  font-size: 13px;
}
.stages__list h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, calc(14px + 0.3vw), 18px);
  font-weight: 500;
  text-transform: uppercase;
}
.stages__list p {
  margin: 0;
  font-size: clamp(14px, calc(13px + 0.2vw), 16px);
  line-height: 1.3;
}
.world {
  text-align: center;
  background-color: #f5f5f5;
}
.world__layout {
  row-gap: 44px;
}
.world__content {
  min-width: 0;
}
.globe__icon {
  width: 87px;
  height: auto;
}
.world__contacts {
  margin-top: 24px;
  text-align: center;
}
.world__contacts h3 {
  margin: 0 0 30px;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}
.world__contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.world__contact-links a {
  display: inline-block;
  color: var(--color-text-strong);
  font-size: clamp(15px, calc(14px + 0.15vw), 16px);
}
.world__contact-text {
  display: inline;
}
.home-contact .home-title {
  margin-bottom: 20px;
}
.inquire-form__notice {
  margin: 0 0 20px;
  color: var(--color-text);
  font-size: var(--fs-base);
}
.inquire-form__notice a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.inquire-form {
  --inquire-form-gap: 24px;

  display: flex;
  flex-direction: column;
  gap: var(--inquire-form-gap);
}
.inquire-form__row {
  display: grid;
  gap: 24px;
}
.inquire-form__group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inquire-form__label,
.inquire-form__choices legend {
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.inquire-form__label {
  text-align: left;
}

.inquire-form__label:hover {
    color: var(--color-hover);
}

.inquire-form__input {
  width: 100%;
  height: auto;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(
      to right,
      rgba(17, 17, 17, 0.8) 0%,
      rgba(17, 17, 17, 0.15) 100%
    )
    1;
  transition: color 0.3s ease;
}
.inquire-form__textarea {
  height: auto;
  min-height: 120px;
  padding: 8px 0 10px;
  resize: vertical;
}
.inquire-form__choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.inquire-form__budget {
  max-height: var(--budget-height);
  opacity: 1;
  visibility: visible;
  transition:
    max-height var(--transition-base),
    opacity var(--transition-base),
    margin-bottom var(--transition-base),
    visibility 0s linear 0s;
}
.inquire-form__budget.is-hidden {
  max-height: 0;
  margin-bottom: calc(-1 * var(--inquire-form-gap));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, 0s, 0.3s;
}
.inquire-form__budget.is-initializing {
  transition: none;
}
.inquire-form__choices legend {
  margin-bottom: 16px;
}
.inquire-form__chips {
  display: grid;
  gap: 20px;
  justify-content: center;
}
.inquire-form__chips label {
  margin: 0;
}
.inquire-form__chips input {
  position: absolute;
  opacity: 0;
}
.inquire-form__chips span {
  width: min(225px, 100%);
  min-height: 45px;
  padding: 8px 15px;
  display: grid;
  place-items: center;
  border: 1px solid #c5c5c5;
  border-radius: 50px;
  background: var(--color-surface-control);
  box-shadow: var(--shadow-neumorphic);
  font:
    500 14px/1.3 "Onest",
    sans-serif;
  cursor: pointer;
  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}
.inquire-form__chips input:checked + span {
  box-shadow:
    inset 3px 3px 7px #c9d9e8,
    inset -3px -3px 7px #fff;
}
.inquire-form__chips input:focus-visible + span {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.inquire-form__error {
  min-height: 18px;
  color: #9a1b1b;
  font-size: 13px;
  text-align: left;
}
.inquire-form__required {
  margin: -12px 0 0;
  font-size: 14px;
}
.inquire-form > .home-button {
  width: 225px;
  align-self: center;
}
@media (min-width: 590px) and (max-width: 991.98px) {
  .solutions__grid > .row > .col-12 {
    width: 50%;
  }

  .solutions__trigger {
    cursor: default;
  }

  .solutions__title::after {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-button:hover,
  .inquire-form__chips input:not(:checked) + span:hover {
    color: #000;
    background: #e2e1e1;
    border: 1px solid #c5c5c5;
    box-shadow:
      -5px -5px 18px #fff,
      5px 5px 18px #bdcedd;
    transform: translateY(-3px);
  }

  .solutions__item:hover .solutions__icon {
    transform: translateY(-5px) scale(1.05);
  }

  .solutions__item:hover .solutions__title {
    color: var(--color-hover);
    transform: translateY(-3px);
  }
}

@media (min-width: 576px) {
  .world__primary {
    padding-right: 20px;
  }
  .world__contacts {
    margin-top: 0;
    padding-left: 20px;
    text-align: left;
  }
  .world__contacts h3 {
    font-size: 24px;
  }
  .world__contact-links {
    justify-content: flex-start;
  }
  .inquire-form__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .inquire-form__chips span {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero__content {
    min-height: 490px;
    padding: 70px var(--content-inline-start);
  }
  .hero__subtitle {
    max-width: none;
    font-size: 30px;
  }

  .hero__audience {
    display: flex;
    align-items: center;
    font-size: 20px;
  }
  .projects,
  .difference,
  .plans,
  .solutions,
  .stages,
  .world {
    padding: 50px clamp(32px, 6vw, 90px);
  }
  .projects__rows {
    margin-inline: calc(-1 * clamp(32px, 6vw, 90px));
  }
  .solutions__panel {
    margin-inline: calc(-1 * clamp(32px, 6vw, 90px));
  }
  .difference__list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  .difference__item,
  .difference__item + .difference__item {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(60px, 8vw, 140px);
    border: 0;
  }
  .difference__question {
    cursor: default;
    font-size: 24px;
  }
  .difference__question::after {
    display: none;
  }
  .difference__answer {
    margin: 0;
  }
  .plans__scroll-hint {
    display: none;
  }
  .plans__grid {
    padding: 12px 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 294px));
    justify-content: center;
    gap: 18px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .plan-card {
    width: 100%;
    max-width: 294px;
    flex: none;
  }

  .stages__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .inquire-form__row {
    grid-template-columns: repeat(2, 1fr);
  }
  .inquire-form__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inquire-form__chips--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .globe__icon {
    width: 273px;
    height: 273px;
  }
  .hero__audience {
    padding: 30px;
    font-size: 24px;
  }
  .solutions__panel {
    margin-top: 0;
    padding-top: var(--gap-section);
  }

  .solutions__grid > .row {
    --bs-gutter-x: clamp(50px, 7vw, 80px);
    row-gap: 0;
  }

  .solutions__grid > .row + .row {
    margin-top: clamp(46px, 5vw, 70px);
  }
  .solutions__item {
    margin-inline: auto;
  }
  .solutions__trigger {
    min-height: 0;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 24px);
    text-align: left;
    cursor: default;
  }
  .solutions__title::after {
    display: none;
  }
  .solutions__content {
    margin-top: clamp(16px, 2vw, 24px);
    text-align: left;
  }
  .world__layout {
    max-width: 1240px;
    margin-inline: auto;
    align-items: flex-start;
  }
  .world__content {
    padding: 0 clamp(24px, 3vw, 46px);
    text-align: left;
  }
  .world__primary {
    padding-right: 0;
  }
  .world__content .home-title {
    max-width: 300px;
  }
  .world .home-title {
    font-size: 36px;
    line-height: 1.05;
  }
  .world__content .globe__icon {
    margin-top: 34px;
    display: block;
  }

  .world__contacts {
    width: 273px;
    margin-top: 80px;
    padding-left: 46px;
    text-align: left;
  }
  .world__contacts h3 {
    font-size: 24px;
  }
  .world__contact-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }
  .world__contact-links img {
    display: none;
  }
  .world__contact-text {
    display: inline;
  }
  .home-contact__content {
    min-width: 0;
    padding-left: clamp(20px, 3vw, 42px);
  }
  .home-contact__content > .home-title {
    text-align: center;
  }
}

@media (min-width: 1200px) {
  .security {
    padding: 45px;
  }
  .security__title {
    max-width: none;
    font-size: 22px;
  }
  .plans__grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 294px));
    gap: 22px;
    padding: 12px 0 24px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

}

@media (min-width: 1400px) {
  .plans__grid {
    grid-template-columns: repeat(4, minmax(0, 294px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .inquire-form__budget,
  .inquire-form__budget.is-hidden {
    transition: none;
  }
  .home-button,
  .inquire-form__chips span {
    transition: none;
  }
  .projects__track {
    animation: none;
    transform: none;
  }
  .plans__scroll-hint svg {
    animation: none;
  }
  .solutions__icon,
  .solutions__title,
  .solutions__title::after {
    transition: none;
  }
  .solutions__item:hover .solutions__icon,
  .solutions__item:hover .solutions__title {
    transform: none;
  }
}
