/* FINGY — расширенная мобильная адаптация */

@media (max-width: 1200px) {
  .cases-carousel {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .car-viewport {
    margin: 0 calc(var(--gutter) * -0.5);
  }
}

@media (max-width: 980px) {
  :root {
    --nav-h: 76px;
  }

  .nav {
    padding: 16px var(--gutter);
    gap: 12px;
    min-height: var(--nav-h);
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .nav-lang-mobile,
  .nav-burger {
    flex-shrink: 0;
  }

  .brand .sub {
    display: none;
  }

  .brand .mark {
    font-size: 18px;
  }

  .hero-inner {
    padding: calc(var(--nav-h) + clamp(20px, 4vw, 38px)) var(--gutter) 72px;
  }

  .hero-word {
    letter-spacing: .08em;
    padding-left: .08em;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .sub-line {
    font-size: 15px;
    line-height: 1.7;
    padding: 0 8px;
    overflow-wrap: anywhere;
  }

  .section.page-hero,
  .section.detail-page {
    padding-top: calc(var(--nav-h) + clamp(16px, 3vw, 28px));
  }

  .sub-line b {
    display: inline-block;
  }

  .band {
    min-height: 360px;
  }

  .band-in {
    padding: 48px var(--gutter);
  }

  .band-in h2 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .cases-carousel {
    position: relative;
    padding-bottom: 56px;
  }

  .car-arrow {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .car-arrow.prev {
    left: calc(50% - 52px);
  }

  .car-arrow.next {
    right: calc(50% - 52px);
    left: auto;
  }

  .ccard {
    min-width: min(88vw, 420px);
  }

  .news-row .news-body {
    padding-top: 36px;
    padding-bottom: 36px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .news-body h3 {
    font-size: clamp(22px, 5vw, 32px);
  }

  .footer .wrap {
    display: grid;
    gap: 28px;
    text-align: center;
  }

  .flinks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .fbrand,
  .fcontact,
  .fbottom {
    justify-self: center;
  }

  .social-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form .fwrap,
  .signup-form .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .section:not(.detail-page):not(.page-hero) {
    padding: 56px 0;
  }

  .section.page-hero,
  .section.detail-page {
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 48px;
  }

  .sec-head h2 {
    font-size: clamp(24px, 8vw, 34px);
    letter-spacing: 0;
  }

  .sec-head .lead,
  .sub-line {
    font-size: 15px;
  }

  .btn {
    padding: 14px 22px;
    font-size: 11px;
    letter-spacing: .14em;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: calc(var(--nav-h) + clamp(16px, 4vw, 24px)) var(--gutter) 56px;
  }

  .page-hero .sec-head h2,
  .detail-body h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-mono svg {
    width: 44px;
    height: 44px;
  }

  .hero-word {
    font-size: clamp(56px, 20vw, 120px);
    line-height: .88;
  }

  .hero-tag {
    letter-spacing: .24em;
    font-size: 10px;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-photo .fingy-picture__img {
    object-position: 62% center;
  }

  .gc-body,
  .form-card,
  .contact-side {
    padding-left: 0;
    padding-right: 0;
  }

  .news-row .news-body {
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: max(20px, var(--gutter));
    padding-right: max(20px, var(--gutter));
  }

  .gc-price,
  .cc-result {
    font-size: clamp(28px, 8vw, 40px);
  }

  .tst .q {
    font-size: 16px;
  }

  .stat .n {
    font-size: clamp(34px, 10vw, 48px);
  }

  .contact-grid {
    gap: 32px;
  }

  .field input,
  .field textarea,
  .signup-form input {
    font-size: 16px;
  }

  .drawer a {
    font-size: 24px;
  }

  .footer .faddr {
    font-size: 13px;
    line-height: 1.6;
  }

  .fbottom {
    flex-direction: column;
    gap: 10px;
  }
}

.lang-flags {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}

.lang-flag {
  display: inline-flex;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.45;
  border: none;
  outline: none;
  box-shadow: none;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-flag.is-active {
  opacity: 1;
}

.drawer-lang {
  margin: 8px 0 4px;
}

.drawer-lang .lang-flag {
  width: 36px;
  height: 26px;
}

.drawer-lang .lang-flag.is-active {
  opacity: 1;
}

@media (max-width: 380px) {
  .hero-badges .b {
    font-size: 12px;
  }

  .car-arrow {
    width: 40px;
    height: 40px;
  }

  .news-fig {
    min-height: 220px;
  }
}
