/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .header__cta {
    grid-column: 2;
    justify-self: end;
    margin-right: 4px;
  }
  .burger {
    display: block;
    grid-column: 3;
    justify-self: end;
  }
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .section {
    padding: 90px 0;
  }
  .section__head {
    margin-bottom: 44px;
  }

  .hero {
    padding: 130px 0 80px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual {
    justify-self: center;
    max-width: 620px;
    margin-top: 8px;
  }
  .hero__stats {
    margin-top: 34px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .profile-card {
    max-width: 620px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 28px;
  }
  .steps__line {
    display: none;
  }

  .params__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .params__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide,
  .bento-card--channels {
    grid-column: span 12;
  }
  .bento-card--channels {
    min-height: 230px;
  }
  .bento-card--full {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .bento-card__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .demo {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .demo-panel {
    padding: 42px;
  }
  .demo__phone-wrap {
    margin-top: 8px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq__aside {
    position: static;
  }

  .contact-card__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-card {
    padding: 44px;
  }
  .section--contacts {
    padding: 80px 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }
  .section {
    padding: 72px 0;
  }
  .section__head {
    margin-bottom: 38px;
  }
  .section__lead {
    font-size: 15.5px;
  }

  .header__inner {
    min-height: 68px;
  }

  .hero {
    padding: 112px 0 70px;
  }
  .hero__title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
  .hero__lead {
    font-size: 16px;
  }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
  }
  .hero__stat {
    padding: 0;
    margin: 0;
    border: 0;
  }
  .hero__stat b {
    font-size: 20px;
  }
  .hero__stat span {
    font-size: 10.5px;
  }
  .float-chip__inner {
    padding: 8px 11px;
    font-size: 10.5px;
  }
  .float-chip--tg {
    left: -8px;
  }
  .float-chip--vk {
    right: -4px;
    bottom: 22%;
  }
  .float-chip--time {
    right: 4px;
    top: -40px;
  }
  .float-chip--ai {
    left: -8px;
    bottom: 10%;
  }
  .orbit--2 {
    display: none;
  }

  .about {
    gap: 36px;
  }
  .profile-card {
    --pc-pad: 24px;
  }
  .profile-card__quote {
    font-size: 16px;
    margin: 24px 0;
  }
  .profile-card__foot b {
    font-size: 14px;
  }
  .profile-card__foot span {
    font-size: 8.5px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-card:last-child {
    grid-column: auto;
  }
  .pain-compare {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
  .pain-compare__arrow {
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 42px;
  }
  .step__dot {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .cycle-sep {
    margin: 56px 0 30px;
  }
  .tech-note__steps {
    grid-template-columns: 1fr;
  }
  .params {
    margin-top: 40px;
  }

  .bento--service > .bento-card {
    grid-column: span 12 !important;
  }
  .bento-card--wide {
    min-height: 400px;
    padding-bottom: 230px;
  }
  .bento-card--wide h3,
  .bento-card--wide p {
    max-width: 100%;
  }
  .bento-card--channels {
    min-height: 220px;
  }
  .bento-card--full {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .demo-panel {
    padding: 28px;
    border-radius: 30px;
  }
  .demo__title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }
  .phone {
    width: 280px;
  }

  .work-doc {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 12px;
  }
  .work-doc__body {
    padding-right: 0;
  }
  .work-doc__text {
    font-size: 12.5px;
  }

  .case-banner {
    padding: 18px;
    gap: 14px;
  }
  .case-banner__arrow {
    width: 38px;
    height: 38px;
  }

  .bento--benefits {
    grid-template-columns: 1fr;
  }
  .bento--benefits .bento-card {
    min-height: 220px;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .faq__a-inner p {
    padding-right: 20px;
  }

  .contact-card {
    padding: 28px;
    border-radius: 30px;
  }
  .contact-card__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .contact-card__actions .btn {
    flex: 1;
  }
  .contact-row {
    padding: 14px;
  }
  .contact-row__text a,
  .contact-row__text > span {
    font-size: 13px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav {
    justify-content: center;
  }
  .footer__meta {
    text-align: center;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .marquee {
    padding: 14px 0;
  }
  .marquee__group span {
    font-size: 10px;
  }
  .marquee__group {
    gap: 22px;
    padding-right: 22px;
  }

  .mobile-menu__inner {
    padding: 96px 24px 32px;
  }
}

@media (max-width: 560px) {
  .header__cta {
    display: none;
  }
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .burger {
    grid-column: 3;
  }

  .hero__title {
    font-size: clamp(2.1rem, 10.5vw, 2.8rem);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__stat b {
    font-size: 18px;
  }
  .hero__stat span {
    font-size: 9.5px;
  }
  .float-chip--ai {
    display: none;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-card:last-child {
    grid-column: auto;
  }
  .hero-card__label {
    font-size: 9px;
  }

  .profile-card__top {
    flex-wrap: wrap;
  }
  .profile-card__photo {
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
  }
  .status.profile-card__status {
    top: 12px;
    right: 12px;
  }
  .profile-card__chips span {
    font-size: 10px;
  }

  .bento-card--wide {
    min-height: 380px;
    padding-bottom: 210px;
  }
  .mini-posts {
    right: 14px;
    bottom: 14px;
    transform: scale(0.88);
    transform-origin: bottom right;
  }

  .demo-panel {
    padding: 22px;
  }
  .demo__chips {
    gap: 6px;
  }
  .chip {
    padding: 8px 12px;
    font-size: 11.5px;
  }
  .params__grid {
    grid-template-columns: 1fr;
  }
  .params__title br {
    display: none;
  }
  .diplomas__summary {
    flex-wrap: wrap;
  }
  .diplomas__cta {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }
  .work-doc {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
  .work-doc__body b {
    font-size: 1rem;
  }
  .work-doc__text {
    font-size: 11.5px;
  }
  .phone {
    width: 258px;
  }
  .phone__media {
    height: 108px;
  }
  .phone__post-text {
    font-size: 10.5px;
    max-height: 260px;
  }
  .demo__phone-badge {
    right: 0;
    bottom: 7%;
    font-size: 9.5px;
  }

  .case-card__body {
    padding: 20px;
  }
  .case-card__title {
    font-size: 16px;
  }
  .case-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 10px;
  }
  .case-banner__text b {
    font-size: 13px;
  }
  .case-banner__text small {
    font-size: 11px;
  }
  .case-banner__arrow {
    width: 34px;
    height: 34px;
  }

  .price-card {
    padding: 26px 22px;
  }
  .price-card__badge {
    top: 20px;
    right: 18px;
  }
  .price-card--featured .price-card__label {
    padding-right: 82px;
  }

  .contact-card {
    padding: 22px;
  }
  .contact-card__actions {
    flex-direction: column;
  }
  .contact-card__actions .btn {
    width: 100%;
  }
  .contact-row {
    gap: 10px;
    padding: 12px;
  }
  .contact-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .contact-row__text a,
  .contact-row__text > span {
    font-size: 12px;
  }
  .copy-btn {
    width: 32px;
    height: 32px;
  }
  .contact-row__arrow {
    width: 30px;
    height: 30px;
  }

  .lightbox__close {
    top: -44px;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__stat b {
    font-size: 16px;
  }
  .hero__stat span {
    font-size: 9px;
  }
  .phone {
    width: 236px;
  }
  .phone__media {
    height: 98px;
  }
  .demo__phone-badge {
    display: none;
  }
  .profile-card__foot {
    gap: 6px;
  }
  .diplomas__grid {
    grid-template-columns: 1fr;
  }
}
