:root {
  --aq-red: #ff2727;
  --aq-ink: #101014;
  --aq-paper: #f6f6f3;
}

/* SEO/accessibility hardening: preserve the visual language while making compact
   navigation controls comfortably tappable and keyboard-visible. */
.footer-info a,
.footer-info-services-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 4px;
}

.footer-info-services-list {
  column-gap: 12px;
  row-gap: 4px;
}

.partners-link:focus-visible,
.footer-info a:focus-visible {
  outline: 2px solid #f53b25;
  outline-offset: 4px;
}

.services .section-title,
.blog .section-title,
.blog-subtitle {
  color: #666;
}

.services-about-process__label {
  color: #c62d13;
}

.services-about-process__step-num {
  color: #666;
  opacity: 1;
}

.services-about-process__step-text {
  color: #6b6b6b;
}

.services-about-process__steps .services-about-process__step {
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .banner::before,
  .footer::before {
    background-image: url('/assets/site/img/banner-bg-mobile.webp');
  }

  .banner::after {
    background-image: url('/assets/site/img/banner-f-mobile.webp');
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

.container {
  width: min(1360px, calc(100% - 48px));
  max-width: 100%;
}

a,
button,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aq-red);
  outline-offset: 4px;
}

.header {
  top: 20px;
}

.header-fixed {
  top: 10px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-contact-btn,
.banner-cta__btn,
.button {
  min-height: 48px;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, transform 180ms ease;
}

.header-contact-btn:hover,
.banner-cta__btn:hover,
.button:hover {
  transform: translateY(-2px);
}

.home .banner {
  height: 100svh;
  min-height: 680px;
}

.home .banner-container {
  min-height: 680px;
}

@media (min-width: 901px) {
  .home .banner > .container,
  .home .banner-container {
    height: 100%;
    min-height: 100svh;
  }
}

.banner-title {
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.banner-description {
  max-width: 34ch;
  color: rgba(244, 244, 244, 0.82);
}

.banner-row {
  bottom: 24px;
  padding-bottom: 40px;
}

section {
  scroll-margin-top: 88px;
}

.section-title,
.services-pricing__title {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-next-screen__grid {
  gap: 14px;
}

.home-next-screen__card {
  border-color: rgba(16, 16, 20, 0.55);
  transition: transform 220ms ease, border-color 220ms ease,
    box-shadow 220ms ease;
}

.home-next-screen__card:hover {
  z-index: 1;
  transform: translateY(-5px);
  border-color: var(--aq-red);
  box-shadow: 0 20px 54px rgba(16, 16, 20, 0.12);
}

.services-item,
.services-pricing__card,
.portfolio-item,
.blog-item {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.services-pricing__card:hover,
.blog-item:hover {
  transform: translateY(-5px);
}

.blog-item img,
.portfolio-item img {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.blog-item:hover img,
.portfolio-item:hover img {
  transform: scale(1.025);
}

.form-input {
  min-height: 46px;
  border-bottom-color: rgba(244, 244, 244, 0.48);
}

.form-input:focus {
  border-bottom-color: var(--aq-red);
}

.kk-star-ratings .kksr-star[data-star] {
  cursor: pointer;
  border-radius: 3px;
}

.kk-star-ratings .kksr-star[data-star]:focus-visible {
  outline: 2px solid #ffb000;
  outline-offset: 3px;
}

.kk-star-ratings.aq-rating--busy {
  opacity: 0.62;
  pointer-events: none;
}

.kk-star-ratings.aq-rating--rated .kksr-star[data-star] {
  cursor: default;
}

.kk-star-ratings .kksr-legend {
  min-width: max-content;
}

body.single-case,
body.single-case_cn {
  overflow-x: clip;
}

@media (min-width: 901px) {
  .service-page-hero .banner-title {
    top: 46%;
  }

  .service-page-hero .pageBanner-img {
    max-height: 58vh;
  }

  .service-page-hero .banner-row {
    bottom: 28px;
    padding-bottom: 36px;
  }

  .footer--contacts-hands .footer-contacts {
    min-height: calc(100svh - 150px);
    display: grid;
    align-items: center;
    column-gap: clamp(48px, 7vw, 120px);
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .header,
  .header-fixed {
    top: 0;
    min-height: 72px;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .header .header-logo img {
    max-width: 205px;
    max-height: 38px;
  }

  .home .banner,
  .home .banner-container {
    min-height: 100svh;
  }

  .home .banner::after {
    opacity: 0.48;
  }

  .home .banner-title,
  .home .banner-title_left,
  .home .banner-title_center,
  .home .banner-title_right {
    color: #f4f4f4;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #f4f4f4;
  }

  .banner-title {
    top: 44%;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.82);
  }

  .banner-row {
    bottom: 18px;
    padding-bottom: 20px;
  }

  .banner-description {
    font-size: 16px;
    line-height: 1.45;
  }

  .banner-cta {
    width: 100%;
  }

  .banner-description-wrap {
    width: 100%;
    max-width: 100%;
  }

  .banner-cta__btn {
    flex: 1 1 0;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-next-screen {
    min-height: auto;
    padding: 20px 0;
  }

  .home-next-screen .container {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-next-screen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-next-screen__card {
    min-height: 176px;
    padding: 12px;
  }

  .home-next-screen__card--image {
    grid-column: 1 / -1;
    min-height: 220px;
    padding: 0;
  }

  .home-next-screen__number {
    font-size: clamp(27px, 8.5vw, 38px);
    letter-spacing: -0.04em;
  }

  .home-next-screen__label {
    font-size: 11px;
    line-height: 1.22;
  }

  .service-page-hero .banner-container {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .service-page-hero .pageBanner-img {
    width: min(54vw, 280px);
  }

  .service-page-hero .banner-title {
    margin-top: 8px;
    font-size: clamp(46px, 15vw, 68px);
    line-height: 0.96;
  }

  .service-page-hero .banner-row {
    margin-top: 4px;
  }

  .services_price--pricing,
  section {
    padding-top: clamp(64px, 14vw, 92px);
    padding-bottom: clamp(64px, 14vw, 92px);
  }

  .blog-list {
    gap: 48px;
    padding-block: 52px;
  }

  .blog-item {
    width: 100%;
  }

  .blog-item img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .footer-contacts {
    gap: 44px;
  }

  .form-group {
    margin: 34px 0;
  }

  .form-alert {
    max-width: 19ch;
    font-size: 10px;
    line-height: 1.2;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Contact page: editorial project brief form */
.contact-page .footer--contacts-hands {
  background: #050505;
}

.contact-page .footer-contacts {
  min-height: 100svh;
  margin-top: 0;
  padding: clamp(150px, 18vh, 190px) 0 clamp(88px, 11vh, 128px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  align-items: start;
  gap: clamp(56px, 7vw, 112px);
  overflow: visible;
}

.contact-page .footer-contacts-info {
  margin: 0;
  padding-top: 8px;
}

.contact-page .footer-contacts-title {
  max-width: 9.5ch;
  font-size: clamp(54px, 5.6vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.contact-page .footer-contacts-description {
  max-width: 36ch;
  padding-top: 36px;
  color: rgba(244, 244, 244, 0.68);
  font-size: 18px;
  line-height: 1.5;
}

.contact-page .footer-form {
  width: 100%;
  margin: 0;
  padding: clamp(30px, 3.2vw, 48px);
  border: 1px solid rgba(244, 244, 244, 0.2);
  border-radius: 14px;
  background: #0d0d0d;
}

.contact-page .contact-form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 244, 244, 0.18);
}

.contact-page .contact-form-title {
  color: #f4f4f4;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.contact-page .contact-form-note {
  flex: 0 0 auto;
  color: rgba(244, 244, 244, 0.48);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-page .contact-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.contact-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 32px 0 0;
}

.contact-page .form-group--message {
  grid-column: 1 / -1;
}

.contact-page .form-label {
  position: static;
  order: -1;
  color: rgba(244, 244, 244, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-page .form-input {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(244, 244, 244, 0.34);
  border-radius: 0;
  color: #f4f4f4;
  background: transparent;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-page textarea.form-input {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.contact-page .form-input::placeholder {
  color: rgba(244, 244, 244, 0.58);
  opacity: 1;
}

.contact-page .form-input:hover {
  border-bottom-color: rgba(244, 244, 244, 0.66);
}

.contact-page .form-input:focus {
  border-bottom-color: var(--aq-red);
  outline: none;
}

.contact-page .form-input:focus-visible {
  outline: 2px solid var(--aq-red);
  outline-offset: 6px;
}

.contact-page .form-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-top: 36px;
}

.contact-page .form-alert {
  max-width: 52ch;
  margin: 0;
  color: rgba(244, 244, 244, 0.48);
  font-size: 11px;
  line-height: 1.45;
}

.contact-page .form-alert span {
  color: rgba(244, 244, 244, 0.72);
  text-decoration-color: rgba(244, 244, 244, 0.4);
  text-underline-offset: 3px;
}

.contact-page .form-button .button {
  min-width: 190px;
  min-height: 56px;
  padding: 0 64px 0 24px;
  border: 1px solid var(--aq-red);
  border-radius: 0;
  color: #fff;
  background: var(--aq-red);
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, transform 180ms ease;
}

.contact-page .form-button .button::before {
  width: 32px;
  height: 32px;
  right: 12px;
  border-color: rgba(255, 255, 255, 0.76);
}

.contact-page .form-button .button:hover {
  border-color: #fff;
  color: #050505;
  background: #fff;
  transform: translateY(-2px);
}

.contact-page .form-button .button:hover::before {
  width: 32px;
  height: 32px;
  right: 12px;
  border-color: #050505;
}

.contact-page .form-button .button-arrow {
  right: 25px;
  width: 22px;
}

.contact-page .form-button .button:hover .button-arrow {
  right: 22px;
  width: 26px;
  background: #050505;
}

.contact-page .form-button .button:hover .button-arrow::before {
  border-left-color: #050505;
}

@media (max-width: 1050px) {
  .contact-page .footer-contacts {
    grid-template-columns: minmax(0, 0.7fr) minmax(500px, 1.3fr);
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .contact-page .footer-contacts {
    min-height: auto;
    padding: 116px 0 72px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-page .footer-contacts-title {
    max-width: 12ch;
    font-size: clamp(46px, 10vw, 72px);
  }

  .contact-page .footer-contacts-description {
    max-width: 48ch;
    margin-bottom: 0;
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .contact-page .footer--contacts-hands > .container {
    width: 100% !important;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-page .footer-contacts {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 104px 0 56px !important;
    gap: 36px;
  }

  .contact-page .footer-contacts-info,
  .contact-page .footer-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .contact-page .footer-contacts-title {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 44px);
    overflow-wrap: anywhere;
  }

  .contact-page .footer-contacts-description {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .contact-page .footer-form {
    padding: 24px 20px;
  }

  .contact-page .contact-form-heading,
  .contact-page .form-button {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .contact-page .contact-form-heading {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 22px;
  }

  .contact-page .contact-form-fields {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-form-fields,
  .contact-page .form-group,
  .contact-page .form-input,
  .contact-page .form-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .contact-page .form-group--message {
    grid-column: auto;
  }

  .contact-page .form-button {
    gap: 18px;
  }

  .contact-page .form-button .button {
    width: 100%;
  }

  .contact-page .form-alert {
    max-width: 100%;
    font-size: 10px;
  }
}
