/* =========================================================
   DIRECTION TEMPLATE STYLES
   ========================================================= */

:root {
  --color-theme-dark: #2A2828;
  --color-theme-light: #C21D1D;
  --color-theme-text: #ffffff;
  
  /* Noise parameters */
  --dev-noise-opacity: 0.4;
  --dev-noise-size: 150px;
  --dev-noise-brightness: 0;
  --dev-noise-contrast: 100%;
}

body.theme-dev {
  --color-theme-dark: #2A2828;
  --color-theme-light: #C21D1D;
}
body.theme-ito {
  --color-theme-dark: #e51622;
  --color-theme-light: #930946;
}
body.theme-marketing,
body.theme-design {
  --color-theme-dark: #974ce5;
  --color-theme-light: #9a8df6;
}
body.theme-bk {
  --color-theme-dark: #3ddfec;
  --color-theme-light: #4a44e3;
}

body.direction-template-active {
  margin: 0;
  padding: 0;
  color: var(--color-theme-text);
  font-family: var(--font-jost, "Jost", sans-serif);
  background: var(--color-theme-dark);
  background-image: linear-gradient(
    180deg, 
    var(--color-theme-light) 0%, 
    var(--color-theme-dark) 20%, 
    var(--color-theme-light) 50%, 
    var(--color-theme-dark) 75%, 
    var(--color-theme-light) 100%
  );
  overflow-x: hidden;
  position: relative;
}

/* NOISE OVERLAY */
body.direction-template-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Under content, over background color */
  opacity: var(--dev-noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: var(--dev-noise-size) var(--dev-noise-size);
  filter: brightness(var(--dev-noise-brightness)) contrast(var(--dev-noise-contrast));
}

/* Ensure content is strictly above noise */
.dev-page {
  position: relative;
  z-index: 2;
}

/* HEADER OVERRIDES */
body.direction-template-active .site-header:not(.is-scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

body.direction-template-active .site-header:not(.is-scrolled) .site-header__nav-link,
body.direction-template-active .site-header:not(.is-scrolled) .site-header__phone {
  color: #ffffff !important;
}

body.direction-template-active .site-header:not(.is-scrolled) .site-header__menu-btn img {
  content: url("../img/dotts-menu.svg");
}

/* MAIN CONTAINER OFFSET */
.dev-page {
  padding-top: calc(var(--header-h, 96px) + 10px);
}

/* COMMON SECTIONS */
.dev-section-title {
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.1;
}

.dev-section-title--center {
  text-align: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0; /* Updated to have no rounded corners */
  transition: all 0.3s ease;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn--primary {
  background: linear-gradient(270deg, var(--color-theme-dark) 0%, var(--color-theme-light) 100%);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  background: linear-gradient(90deg, var(--color-theme-dark) 0%, var(--color-theme-light) 100%);
}

.dev-btn-line {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: border-color 0.3s ease;
}
.dev-btn-line:hover {
  border-color: #fff;
}

/* HERO */
.dev-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.dev-hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60vh;
  gap: 40px;
  width: min(1720px, 92vw);
}

.dev-hero__content {
  flex: 1;
  max-width: 40%;
  min-width: 0;
}

.dev-hero__title {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 24px;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.dev-hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Custom strike line looks more stable than browser default on large Jost text. */
.dev-hero__subtitle .itw-strike,
.dev-hero__subtitle del,
.dev-hero__subtitle s,
.dev-hero__subtitle strike {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  /*margin-left: 0.4em;*/
}

.dev-hero__subtitle .itw-strike::after,
.dev-hero__subtitle del::after,
.dev-hero__subtitle s::after,
.dev-hero__subtitle strike::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 57%;
  height: 2px;
  background: currentColor;
  opacity: 0.95;
  pointer-events: none;
  transform: translateY(-50%);
}

.dev-hero__subtitle > * {
  margin: 0;
}

.dev-hero__subtitle > * + * {
  margin-top: 0.75em;
}

body.direction-template-active .dev-hero__content .btn.btn--primary {
  min-width: clamp(220px, 18vw, 300px);
  padding: 18px 36px;
  text-transform: uppercase;
}

.dev-hero__image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.dev-hero__image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.dev-hero--it-support .dev-hero__container {
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.dev-hero--web-dev .dev-hero__container {
  align-items: center;
}

.dev-hero--it-support .dev-hero__content {
  flex: 0 1 720px;
  max-width: min(720px, 48%);
}

.dev-hero--web-dev .dev-hero__content {
  max-width: 40%;
}

.dev-hero__title--it-support {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.dev-hero__title--it-support .dev-hero__title-part {
  display: inline;
}

.dev-hero__title--it-support .dev-hero__title-part--main {
  white-space: nowrap;
}

/* MARQUEE */
.dev-marquee {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.dev-marquee-track {
  display: flex;
  width: max-content;
  animation: dev-marquee-scroll 25s linear infinite;
}

.dev-marquee-content {
  display: flex;
  gap: 60px;
  padding-right: 60px;
}

.dev-marquee-content a,
.dev-marquee-content span {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.dev-marquee-content a:hover {
  opacity: 1;
}

@keyframes dev-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CASES SLIDER */
.dev-cases {
  padding: 0 0 0;
}

.dev-case-slider {
  position: relative;
  overflow: visible; /* to allow arrows outside if needed */
  margin-bottom: 40px;
}

.dev-case-slider__track {
  display: flex;
  overflow: hidden;
  position: relative;
}

.dev-case.slide {
  flex: 0 0 100%;
  width: 100%;
  display: none;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.dev-case.slide.active {
  display: flex;
  opacity: 1;
}

/* Slide Content Animations */
.dev-case.slide.active .dev-case__image {
  animation: zoomInSlide 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.dev-case.slide.active .dev-case__content > * {
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.dev-case.slide.active .dev-case__title { animation-delay: 0.1s; }
.dev-case.slide.active .dev-case__tags  { animation-delay: 0.2s; }
.dev-case.slide.active .dev-case__text  { animation-delay: 0.3s; }
.dev-case.slide.active .dev-case__actions { animation-delay: 0.4s; }

@keyframes zoomInSlide {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.dev-case__image {
  flex: 1.2;
}

.dev-case__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.dev-case__content {
  flex: 1;
}

.dev-case__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.dev-case__tags {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dev-tag {
  font-size: 14px;
  color: var(--color-theme-text);
  opacity: 0.7;
  font-weight: 500;
}

.dev-case__text {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.dev-case__text > * {
  margin: 0;
}

.dev-case__text > * + * {
  margin-top: 0.75em;
}

.dev-case__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* SLIDER CONTROLS */
.dev-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, color 0.3s ease;
}

.dev-slider-arrow:hover {
  background: #fff;
  color: var(--color-theme-dark);
}

.dev-slider-arrow--prev {
  left: -80px; /* moved further away */
}

.dev-slider-arrow--next {
  right: -80px; /* moved further away */
}

.dev-slider-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.dev-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  opacity: 0.5;
}

.dev-slider-dot.active {
  opacity: 1;
}

.dev-slider-dot.active::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.dev-cases__more {
  text-align: center;
  margin-top: 40px;
}

/* CLIENTS MARQUEE */
.dev-clients {
  padding: 80px 0 0;
  overflow: hidden;
}

.dev-clients-marquee {
  width: 80%;
  overflow: hidden;
  display: flex;
  margin: 40px auto 0;
}

.dev-clients-marquee-track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: dev-marquee-scroll 35s linear infinite;
}

.dev-clients-marquee-content {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

.dev-clients-marquee-content img {
  width: 300px;
  height: 150px;
  object-fit: cover; /* Changed from cover so logos look good */
  display: block;
  background: transparent;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .dev-clients-marquee-content img {
    width: 200px;
    height: 100px;
  }
}

/* SERVICES */
.dev-services {
  padding: 80px 0 0;
  scroll-margin-top: calc(var(--header-h, 96px) + 24px);
}

.dev-services__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.dev-services__tabs--bottom {
  margin-top: -1px;
}

.dev-services__tab {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 auto;
  text-align: center;
}

.dev-services__tab.active,
.dev-services__tab:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.dev-services__tab--wide {
  flex: 1 1 calc(50% - 20px);
}

/* SERVICE DETAIL STYLES */
.dev-service-detail {
  padding: 0 0 80px;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.dev-service-detail.active {
  display: block;
}

/* OVERRIDE FOR SINGLE SERVICE */
.is-single-service .dev-service-detail {
  display: block;
  padding-top: 80px;
}

.dev-service-detail__columns {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.dev-service-detail__text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.dev-service-detail__text > * {
  margin: 0;
}

.dev-service-detail__text > * + * {
  margin-top: 0.85em;
}

.dev-service-detail__text ul,
.dev-service-detail__text ol {
  padding-left: 1.4em;
}

.dev-service-detail__text li + li {
  margin-top: 0.4em;
}

.dev-service-detail__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.dev-service-detail__bottom {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.dev-service-detail__image {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.dev-service-detail__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dev-service-detail__form-wrapper {
  flex: 1;
  background: rgba(0,0,0,0.2);
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dev-form__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.dev-form__group {
  margin-bottom: 24px;
}

.dev-form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 0;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.dev-form__input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.dev-form__input.is-invalid {
  border-bottom-color: #f55157;
}

.dev-form__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.dev-form__checkbox-group {
  margin-bottom: 32px;
}

.dev-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.8;
}

.dev-checkbox input {
  display: none;
}

.dev-checkbox__mark {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dev-checkbox__text {
  display: block;
  min-width: 0;
  min-height: 20px;
  line-height: 1.4;
}

.dev-checkbox__text a {
  margin-left: 0.28em;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.dev-checkbox input:checked + .dev-checkbox__mark {
  background: var(--color-theme-light);
  border-color: var(--color-theme-light);
}

.dev-checkbox input:checked + .dev-checkbox__mark::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
}

.dev-checkbox.is-invalid {
  opacity: 1;
}

.dev-checkbox.is-invalid .dev-checkbox__mark {
  border-color: #f55157;
  box-shadow: 0 0 0 1px #f55157 inset;
}

.dev-checkbox.is-invalid .dev-checkbox__text {
  color: #ffd6d8;
}

.itw-smartcaptcha {
  margin: 0 0 24px;
}

.itw-smartcaptcha__container {
  min-height: 100px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.itw-smartcaptcha__container.is-invalid {
  box-shadow: 0 0 0 1px #f55157 inset;
}

.itw-smartcaptcha--invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.itw-smartcaptcha--invisible .itw-smartcaptcha__container {
  min-height: 0;
}

.dev-form__submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  cursor: pointer;
}

.itw-form-status {
  display: block;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.itw-form-status[hidden] {
  display: none;
}

.itw-form-status.is-success {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.itw-form-status.is-error {
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.dev-service-detail__more {
  text-align: center;
  margin-top: 40px;
}

.direction-page--child-direction .dev-service-detail {
  padding-bottom: 100px;
}

main.dev-page.direction-page--child-direction {
  padding-top: calc(var(--header-h, 96px) + 6px);
}

.direction-page--child-direction .dev-hero {
  padding-bottom: 8px;
}

.direction-page--child-direction .dev-hero__container {
  min-height: clamp(320px, 41vh, 500px);
  gap: clamp(24px, 3vw, 40px);
}

.direction-page--child-direction .dev-hero__content {
  max-width: 49%;
}

.direction-page--child-direction .dev-hero__title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  margin-bottom: 14px;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.direction-page--child-direction .dev-hero__subtitle {
  margin-bottom: 18px;
}

.direction-page--child-direction .dev-clients {
  padding-top: 24px;
}

.direction-page--child-direction .dev-service-detail__columns--single {
  display: block;
  margin-bottom: 56px;
}

.direction-page--child-direction .dev-service-detail__text--wide {
  max-width: 980px;
  font-size: 20px;
  line-height: 1.7;
}

.direction-page--child-direction .dev-section-title,
.direction-page--child-direction .dev-service-detail__more {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service {
  margin-top: 0;
  padding-block: clamp(44px, 5vw, 76px);
  padding-inline: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, var(--color-theme-light) 0%, var(--color-theme-dark) 100%);
  color: #fff;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__container {
  max-width: 1480px;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__left {
  justify-content: center;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__title,
.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__desc,
.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__phone,
.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-checkbox__text,
.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-checkbox__text a {
  color: #fff;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__title {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__desc {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__phone {
  margin-top: 0;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__soc-icon {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__right {
  background: rgba(255, 255, 255, 0.1);
  padding: clamp(28px, 3vw, 40px);
  backdrop-filter: blur(10px);
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__form {
  max-width: none;
  gap: 30px;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__field input {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__field input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-checkbox__box {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-checkbox input:checked~.itw-checkbox__box::after {
  border-color: #fff;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__btn {
  background: #fff;
  color: var(--color-theme-dark);
  font-weight: 700;
}

.direction-page--child-direction .itw-audit.itw-audit--direction-service .itw-audit__btn:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.92);
}

/* CROSS SELL */
.dev-cross-sell {
  padding: 0 0 120px;
}

.dev-cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dev-cross-card {
  background: #ffffff;
  color: #282828;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}
.dev-cross-card:hover {
  opacity: 0.9;
}

.dev-cross-card__image {
  background: #F4F4F4;
}

.dev-cross-card__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.dev-cross-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dev-cross-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

/* =========================================================
   АДАПТИВ РАЗДЕЛА: НАПРАВЛЕНИЯ (ПОДХОД MOBILE MOBILE-OVERRIDES)
   ========================================================= */

/* --- Планшеты (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .dev-hero__container,
  .dev-case,
  .dev-service-detail__columns,
  .dev-service-detail__bottom {
    flex-direction: column;
  }
  .dev-cross-sell__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dev-hero__title {
    font-size: 64px;
  }

  .dev-hero--it-support .dev-hero__content {
    max-width: min(720px, 100%);
  }

  .dev-hero__title--it-support .dev-hero__title-part {
    display: block;
  }

  .dev-hero__title--it-support .dev-hero__title-part--lead {
    margin-bottom: 0.04em;
  }
}

@media (min-width: 1320px) and (max-width: 1920px) {
  .dev-hero--it-support .dev-hero__title {
    font-size: clamp(42px, 6.2vw, 68px);
  }

  .dev-hero--bitrix-impl .dev-hero__title {
    font-size: clamp(48px, 8vw, 82px);
  }

  .direction-page--child-direction .dev-hero--bitrix-impl .dev-hero__title,
  .direction-page--child-direction .dev-hero__title {
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.04;
  }

  .dev-hero--web-dev .dev-hero__content {
    max-width: 45%;
  }
}

/* --- Мобильные (max-width: 640px) --- */
@media (max-width: 640px) {
  .dev-cross-sell__grid {
    grid-template-columns: 1fr;
  }
  .dev-hero__title {
    font-size: 42px;
  }

  .dev-hero__title--it-support .dev-hero__title-part--main {
    white-space: nowrap;
  }

  .dev-services__tab {
    flex: 1 1 100%;
  }
  .dev-case__actions {
    flex-direction: column;
    width: 100%;
  }
  .dev-case__actions .btn {
    width: 100%;
  }
  .dev-case__title {
      font-size: 28px;
  }
  .dev-service-detail__form-wrapper {
      padding: 24px;
  }
}

/* --- Мелкие экраны (max-width: 480px) --- */
@media (max-width: 480px) {
    .dev-hero__title {
        font-size: 36px;
    }

    .dev-hero__title--it-support {
        font-size: 34px;
        line-height: 0.96;
    }
}

/* --- Очень узкие экраны (max-width: 360px) --- */
@media (max-width: 360px) {
    .dev-hero__title {
        font-size: 28px;
    }

    .dev-hero__title--it-support {
        font-size: 31px;
    }
}
