/* Local overrides: full-width shape hero, icons instead of photos */

.s-hero--shader {
  overflow: hidden;
}

.s-hero__shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .s-hero__shader {
    display: none;
  }
}

.s-hero--plain {
  position: relative;
  min-height: 100svh;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-inv);
  overflow: hidden;
}

.s-hero__shape {
  display: none !important;
}

.s-hero--plain .s-hero__wrap {
  position: relative;
  z-index: 2;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh;
  padding: clamp(28px, 4vw, 56px) var(--ds-edge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent !important;
}

.s-hero--shader .s-hero__wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0 !important;
  width: 100% !important;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.s-hero--plain .s-hero__h1 {
  max-width: 16ch;
  font-size: clamp(28px, 5.25vw, 74px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.04em;
  color: var(--color-fg-inv);
}

.s-hero--plain .s-hero__h1--usp {
  max-width: 14em;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.s-hero--plain .s-hero__bottom {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(180px, 280px) 1fr;
  column-gap: var(--ds-gap);
  align-items: end;
}

.s-hero--plain .s-hero__cta {
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.s-hero__price {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fa3433;
  opacity: 1;
}

.s-hero .s-hero__price {
  color: #fa3433;
}

.s-hero--plain .s-hero__bottom--usp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 46em;
}

.s-hero__lead {
  margin: 0;
  max-width: 42em;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.18px;
  color: var(--color-fg-inv);
  opacity: 0.72;
}

.s-hero__usp {
  margin: 0;
  max-width: 22em;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-fg-inv);
  opacity: 0.92;
}

.s-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(249, 249, 249, 0.28);
  border-radius: 900px;
  color: #f9f9f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip:hover {
  background: #f9f9f9;
  color: #1e1e1e;
  border-color: #f9f9f9;
}

.s-hero--plain .btn {
  background: #f9f9f9;
  color: #1e1e1e;
  border-color: #f9f9f9;
}

.s-hero--plain .btn:hover {
  color: #f9f9f9;
}

.s-hero--plain .btn::before {
  background: #1e1e1e;
}

.ico {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible;
}

.inv .ico,
.s-hero .ico,
.s-cg__img .ico {
  filter: invert(1);
}

.s-bio__avatar {
  background: rgba(30, 30, 30, 0.04);
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 5px;
  padding: 28px;
  box-sizing: border-box;
}

.inv .s-bio__avatar {
  background: rgba(249, 249, 249, 0.04);
  border-color: rgba(249, 249, 249, 0.12);
}

.s-cd__img {
  background: rgba(30, 30, 30, 0.04);
  border: 1px solid rgba(30, 30, 30, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  overflow: visible;
}

.inv .s-cd__img {
  background: rgba(249, 249, 249, 0.04);
  border-color: rgba(249, 249, 249, 0.12);
}

.s-cd__img .ico {
  width: 56%;
  height: auto;
  max-height: 56%;
  object-fit: contain;
  overflow: visible;
}

.s-cg__img {
  aspect-ratio: 1 !important;
  background: rgba(249, 249, 249, 0.05);
  border: 1px solid rgba(249, 249, 249, 0.12);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28%;
  box-sizing: border-box;
}

.s-outro__image {
  background: rgba(30, 30, 30, 0.04);
  border: 1px solid rgba(30, 30, 30, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  box-sizing: border-box;
  height: auto;
  min-height: 280px;
}

.s-outro__image .ico {
  width: 42%;
  height: 42%;
}

.icon-sq {
  overflow: hidden;
}

.icon-sq .ico {
  width: 47px;
  height: 47px;
}

.s-cd__feature .t-h4,
.s-pp__item h4,
.s-pw__step .t-h4 {
  max-width: 100%;
}

.s-cd__price {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fa3433;
}

.s-tariffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--ds-gap);
  row-gap: var(--ds-space-3);
}

.s-tariff {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 28px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 5px;
  background: rgba(30, 30, 30, 0.03);
}

.s-tariff .t-h4 {
  max-width: none;
}

.s-tariff .s-cd__price {
  margin: 0;
  font-size: 18px;
}

.s-tariff__list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-tariff__list li {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.18px;
  opacity: 0.7;
}

.s-tariff__out {
  margin-top: auto;
}

.s-tariff .btn {
  margin-top: 8px;
  padding: 14px 22px;
}

.s-tariff--free {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  column-gap: var(--ds-gap);
}

.s-tariff--free .s-tariff__list {
  grid-column: 2;
}

.s-tariff--free .btn {
  grid-column: 3;
  align-self: end;
}

@media (max-width: 1024px) {
  .s-tariffs {
    grid-template-columns: 1fr 1fr;
  }

  .s-tariff--free {
    grid-template-columns: 1fr;
  }

  .s-tariff--free .s-tariff__list,
  .s-tariff--free .btn {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .s-tariffs {
    grid-template-columns: 1fr;
  }
}

.s-pp__item h4 {
  overflow: visible;
  line-height: 1.25;
}

.s-pp__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin: 0.12em 0 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1;
  padding-top: 0.08em;
  box-sizing: border-box;
  overflow: visible;
}

.s-cd__feature .t-desc,
.s-pp__item .t-desc,
.s-pw__step .t-desc {
  max-width: 100%;
}

.s-pi__sub {
  max-width: 36em;
}

#smooth-wrapper,
#smooth-content {
  min-height: auto;
}

.s-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--ds-gap);
  row-gap: var(--ds-space-4);
}

.s-team__card:first-child {
  grid-column: 1 / span 2;
}

.s-team__card:last-child {
  grid-column: 3 / span 2;
}

.s-team__photo {
  width: 46%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 5px;
  background: #e8e8e8;
}

.s-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: none;
}

.s-team__copy {
  padding-top: 14px;
}

.s-team__copy .t-h4 {
  max-width: none;
}

.s-team__copy .t-label {
  margin-bottom: 6px;
}

.s-team__copy .t-desc {
  max-width: 380px;
}

#contact .s-outro__content {
  grid-column: 2 / -1;
  min-height: 0;
}

#contact .s-outro__content .t-h2 {
  max-width: 22ch;
}

.s-cta-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.s-cta-btns .btn {
  width: fit-content;
  padding: 16px 28px;
}

.s-wheel {
  height: 240vh;
  background: var(--color-bg);
  color: var(--color-fg);
}

.s-wheel__pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.s-wheel__hub {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  will-change: transform;
}

.s-wheel__item {
  position: absolute;
  left: 0;
  top: 50%;
  margin: 0;
  padding-left: clamp(48px, 9vw, 140px);
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-body);
  font-size: clamp(20px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #1e1e1e;
  transform: translateY(-50%);
  transform-origin: 0 50%;
  max-width: none;
  opacity: 0.16;
}

.s-wheel__item:first-child {
  opacity: 1;
}

@media (max-width: 768px) {
  .s-wheel {
    display: none;
  }
}

.s-cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--ds-gap);
  row-gap: var(--ds-space-4);
}

.s-case {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.s-case__media {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 16 / 10;
  background: #e8e8e8;
}

.s-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-case__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0) 35%, rgba(30, 30, 30, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.s-case__go {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  color: #f9f9f9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-case__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #fa3433;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-case:hover .s-case__media img,
.s-case:focus-visible .s-case__media img {
  transform: scale(1.1);
}

.s-case:hover .s-case__veil,
.s-case:focus-visible .s-case__veil {
  opacity: 1;
}

.s-case:hover .s-case__go,
.s-case:focus-visible .s-case__go {
  opacity: 1;
  transform: translateY(0);
}

.s-case:hover .s-case__line,
.s-case:focus-visible .s-case__line {
  transform: scaleX(1);
}

.s-case__meta {
  padding-top: 14px;
}

.s-case__meta .t-label {
  margin-bottom: 4px;
}

.s-case__meta .t-h4 {
  max-width: 100%;
}

.case-modal[hidden] {
  display: none !important;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-modal__back {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.case-modal__panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #f9f9f9;
  color: #1e1e1e;
  border-radius: 5px;
  padding: 36px 36px 40px;
  box-sizing: border-box;
}

.case-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #1e1e1e;
}

.case-modal__panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin: 20px 0 8px;
}

.case-modal__kicker {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.45;
  margin: 0 0 8px;
}

.case-modal__panel h2 {
  max-width: 22ch;
  margin: 0 0 16px;
}

.case-modal__stat {
  font-size: 18px;
  font-weight: 700;
  color: #fa3433;
  margin: 0 0 24px;
  max-width: 40em;
}

.case-modal__panel h3 {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.45;
  margin: 28px 0 8px;
}

.case-modal__panel p {
  max-width: 42em;
  margin: 0 0 12px;
}

.case-modal__panel a.t-link {
  display: inline-block;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .s-cases__grid {
    grid-template-columns: 1fr 1fr;
  }

  .s-cases__grid .s-case {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 640px) {
  .s-cases__grid {
    grid-template-columns: 1fr;
  }

  .case-modal {
    padding: 12px;
  }

  .case-modal__panel {
    padding: 28px 20px 32px;
    max-height: 92vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-case__media img,
  .s-case__veil,
  .s-case__go,
  .s-case__line {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-wheel {
    height: auto;
  }

  .s-wheel__pin {
    position: static;
    height: auto;
    padding: 64px 24px;
  }

  .s-wheel__hub {
    position: static;
    width: auto;
    height: auto;
  }

  .s-wheel__item {
    position: static;
    transform: none !important;
    opacity: 0.9 !important;
    display: block;
    padding: 10px 0;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .s-team {
    grid-template-columns: 1fr 1fr;
  }

  .s-team__card:first-child,
  .s-team__card:last-child {
    grid-column: auto;
  }

  .s-team__photo {
    width: 100%;
    max-width: none;
  }

  .s-hero--plain {
    min-height: 100svh;
    height: 100svh;
  }

  .s-hero--plain .s-hero__wrap {
    min-height: 100%;
    height: 100%;
    gap: 24px;
  }

  .s-hero--plain .s-hero__bottom {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .s-hero--plain .s-hero__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .s-team {
    grid-template-columns: 1fr;
  }

  .s-team__photo {
    width: 78%;
  }

  .s-hero--plain {
    min-height: 100svh !important;
    height: 100svh !important;
  }

  .s-hero--plain .s-hero__wrap {
    min-height: 100% !important;
    height: 100% !important;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 16px 24px;
  }

  .s-hero--plain .s-hero__h1 {
    font-size: clamp(32px, 11vw, 48px);
    font-weight: 700;
    line-height: 0.92;
  }

  .s-hero--plain .s-hero__bottom {
    grid-template-columns: 1fr;
    margin-top: auto;
  }

  .s-hero--plain .s-hero__bottom--usp {
    margin-top: auto;
  }

  .s-hero--plain .s-hero__h1--usp {
    font-size: clamp(26px, 8vw, 36px);
    font-weight: 700;
    max-width: 12em;
  }

  .s-hero__lead {
    font-size: 14px;
    max-width: 100%;
  }

  .s-cd__img {
    padding: 18px;
    overflow: visible;
  }

  .icon-sq {
    overflow: visible;
  }

  .s-cta-btns {
    width: 100%;
  }

  .s-cta-btns .btn {
    width: auto;
    min-width: 210px;
    padding: 14px 22px;
  }

  .s-hero--plain .s-hero__shape::after {
    width: 180px;
    height: 180px;
    top: auto;
    bottom: 12%;
  }
}

footer.section {
  padding-bottom: 40px;
}

.s-ft__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 10px;
  flex-direction: unset;
  align-items: start;
}

@media (max-width: 1024px) {
  .s-ft__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
    width: 100%;
  }
}

@media (max-width: 640px) {
  footer.section {
    padding-bottom: 20px;
  }
}

.cookie {
  position: fixed;
  left: 24px;
  bottom: 110px;
  z-index: 15000;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  background: #1e1e1e;
  color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(30, 30, 30, 0.28);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.cookie[hidden] {
  display: none !important;
}

.cookie p {
  margin: 0 0 12px;
  color: #f9f9f9;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.86;
  max-width: none;
}

.cookie__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 900px;
  background: #f9f9f9;
  color: #1e1e1e;
  font: 600 13px var(--font-body);
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}
