@media screen and (min-width: 1500px) {
    .container {
        max-width: 1320px;
    }

    section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .hero-ai {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .hero-ai .container {
        gap: 64px;
    }

    .info-section {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

@media screen and (max-width: 900px) {
    body.page-services .hero-ai--metrics {
        padding: 42px 10px 46px;
    }

    .business-automation-grid--four .business-automation-card {
        flex: 1 1 calc(50% - 10px);
    }

    body.page-services .hero-ai--metrics .container {
        grid-template-columns: 1fr !important;
        gap: 26px;
        align-items: start;
    }

    body.page-services .hero-ai--metrics .hero-ai__content,
    body.page-services .hero-ai--metrics .hero-ai__visual {
        max-width: 100%;
        width: 100%;
    }

    body.page-services .hero-ai--metrics .hero-ai__content {
        padding-top: 0;
    }

    body.page-services .hero-ai--metrics .hero-ai__title,
    body.page-services .hero-ai--metrics .hero-ai__subtitle {
        max-width: 100%;
    }

    body.page-services .hero-ai--metrics .hero-ai__visual {
        padding-left: 0;
        align-self: start;
    }

    body.page-services .hero-ai--metrics .hero-ai__stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 18px;
    }

    body.page-services .hero-ai--metrics .stat-item {
        min-width: 0;
    }

    body.page-services .hero-ai--metrics .hero-stats__disclaimer {
        max-width: 100%;
    }

    .case-stats {
        justify-content: center;
    }

    .case-stats .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .case-stats .stat-label {
        text-align: center;
        margin-inline: auto;
        max-width: 18ch;
    }
}

@media screen and (max-width: 768px) {
    .button{
        max-width: 100px;
        padding: 5px;
        font-weight: lighter;
        font-size: 0.8rem;
    }

    .hero-ai .button,
    .hero-ai .button--outline,
    .hero-ai .button--primary,
    .business-automation-section .button,
    .business-automation-section .button--outline,
    .business-automation-section .button--primary {
        max-width: none;
        width: auto;
        min-width: 0;
        padding: 9px 16px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    .note-box {
        line-height: 1.4;
    }

    /* Адаптивные стили для header */
    .header {
        padding: 0;
    }

    .header__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0;
    }

    .header__bottom {
        margin: 0;
        padding: 0 0 5px 0;
        box-sizing: border-box;
    }

    .header__logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header__contact {
        margin: 0;
        padding: 0;
        flex-direction: row; /* Расположение телефона в один ряд */
        align-items: center; /* Вертикальное выравнивание телефона */
    }

    .header__contact .region {
        display: none; /* Скрываем регион на мобильных устройствах */
    }

    .header__contact {
        flex-direction: column;
        align-items: flex-end;
    }

    .menu-toggle-label {
        display: flex; /* Отображаем бургер-меню на мобильных устройствах */
    }

    .nav-menu {
        display: none; /* Скрываем меню по умолчанию */
        flex-direction: column;
        gap: 4px;
        padding: 10px;
        background-color: var(--main-dark-color);
        position: absolute;
        top: 50px; /* Расстояние от бургера */
        border-radius: 12px;
        left: 0;
        width: min(220px, calc(100vw - 32px));
        box-sizing: border-box;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
        z-index: 1002;
        top: calc(100% + 10px);
    }

    .nav-menu a {
        display: block;
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 0.95rem;
        line-height: 1.25;
        color: #fff;
    }

    .nav-menu a.active {
        color: var(--accent-color);
        background: rgba(255, 255, 255, 0.06);
    }

    .header--minimal .nav-menu {
        left: 0;
        right: auto;
        top: calc(100% + 10px);
        width: min(220px, calc(100vw - 32px));
        padding: 10px;
        gap: 4px;
        background-color: var(--main-dark-color);
        border-radius: 12px;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    }

    .header--minimal .nav-menu a {
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        padding: 9px 10px;
    }

    .header--minimal .nav-menu a.active {
        color: var(--accent-color);
        background: rgba(255, 255, 255, 0.06);
    }

    .menu-toggle-checkbox:checked + .menu-toggle-label .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle-checkbox:checked + .menu-toggle-label .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-checkbox:checked + .menu-toggle-label .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-toggle-checkbox:checked ~ .nav-menu {
        display: flex; /* Отображаем меню при нажатии на бургер-меню */
    }
    
    /* Для фиксированной полосы */      
    .header__bottom.fixed {
        margin: 0;
        padding: 5px 15px;
    }

    /* Универсальные отступы для секций */
    section {
        padding: 20px 10px;
    }

    /* Адаптивные стили для слайдера на главной*/
    .home .slider__content {
        height: 380px;
    }
    
    .home .slider__menu {
        display: none;
    }
    
    .home .slide-quote {
        font-size: 1.3rem;
    }
    
    .home .slide-text {
        font-size: 0.9rem;
    }
    
    .home .slide-content {
        padding: 15px;
    }
      
    /* Адаптивные стили для секции "Портфолио" */
    .filter-button {
        padding: 10px 10px;
        margin: 5px 10px;
        font-size: 0.83rem;
    }

    .portfolio__filters {
        text-align: start;
        padding: 0;
    }

    /* Адаптивные стили для страниц с кейсами */
    .imitation_heading1 {
        line-height: 1.1;
        font-size: 1.3rem;
    }

    .case-hero h1 {
        font-size: 1.72rem;
    }
    .case-hero .subtitle {
        line-height: 1.45;
    }

    .case-hero {
        padding: 54px 10px;
    }

    .case-brief {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .case-brief .card {
        padding: 22px 18px;
    }

    .case-brief .card h3 {
        justify-content: flex-start;
        text-align: left;
    }

    main:not(.page-services) .info-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }
    .bullet-list li {
        line-height: 1.2;
    }
    /* Блок 50/50 (Этапы) — в столбик */
    .text-columns,
    .text-columns.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .text-columns .text,
    .text-columns .image {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 18px;
    }

    .text-columns .text h3 {
        font-size: 1.28rem;
        text-align: center;
    }
    .text-columns .text .bullet-list {
        text-align: left;
        margin: 0 auto; /* ← чтобы список был по центру блока, но текст — по левому краю */
        display: inline-block; /* ← важно: чтобы работал left-align внутри центрированного контейнера */
    }

    .text-columns .image img {
        margin: 0 auto;
    }

    .bullet-list li {
        font-size: 0.95rem;
    }

    .swiper-slide img {
        max-height: 240px;
    }

    .slide-caption {
        font-size: 0.85rem;
    }

    .swiper-button-prev,
    .swiper-button-next {
        top: 40%;
        width: 24px;
        height: 24px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }

    /* Видео-блок */
    .video-block {
        flex-direction: column;
        gap: 20px;
    }

    .video-block .video,
    .video-block .text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    main:not(.page-services) .video-block {
        flex-wrap: wrap;
    }

    .case-hero > .container.video-block {
        max-width: 100%;
        text-align: center;
    }

    main:not(.page-services) .video-block > video,
    main:not(.page-services) .video-block .video,
    main:not(.page-services) .video-block .case-site-flow,
    main:not(.page-services) .video-block .text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .video-block > video,
    .video-block .video video {
        max-height: 280px;
    }

    .video-block .text {
        text-align: center;
    }

    .video-block .text ul {
        text-align: left;
    }

    .case-site-flow {
        flex: 1 1 100%;
        width: 100%;
        min-height: 420px;
        padding: 24px 18px;
    }

    .case-site-flow__stage-labels {
        left: 18px;
        right: 18px;
        font-size: 0.62rem;
    }

    .case-site-flow__blueprint {
        inset: 56px 22px 28px;
    }

    .case-site-flow__line {
        left: 26px;
        top: 44px;
        bottom: 44px;
    }

    .case-site-flow__item,
    .case-site-flow__item:nth-child(odd) {
        width: min(260px, calc(100% - 26px));
        margin-left: 0;
        padding-left: 22px;
        font-size: 1rem;
        text-align: left;
    }

    .case-site-flow__item::before {
        display: none;
    }

    .case-site-flow__interface {
        inset: 64px 18px 22px 56px;
        border-radius: 14px;
    }

    .case-site-flow__interface-caption {
        right: 10px;
        bottom: 10px;
        font-size: 0.72rem;
    }

    .case-holiday-agency .holiday-case-scope__grid,
    .case-holiday-agency .holiday-case-proof__inner,
    .case-holiday-agency .holiday-case-showcase__grid,
    .case-holiday-agency .holiday-case-fit__grid,
    .case-holiday-agency .holiday-case-params__grid {
        grid-template-columns: 1fr;
    }

    .case-holiday-agency .holiday-case-proof {
        padding: 48px 10px;
    }

    .case-holiday-agency .holiday-case-proof__inner {
        padding: 24px 20px;
    }

    .case-holiday-agency .holiday-case-showcase__slider img {
        aspect-ratio: 4 / 3;
    }

    .case-holiday-agency .holiday-case-showcase__slider .slide-caption-wrapper {
        left: 12px;
        bottom: 12px;
        padding: 7px 11px;
    }

    .case-holiday-agency .holiday-case-showcase__slider .slide-caption {
        font-size: 0.82rem;
    }

    .case-holiday-agency .holiday-case-showcase__slider .swiper-button-prev,
    .case-holiday-agency .holiday-case-showcase__slider .swiper-button-next {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .case-holiday-agency .holiday-case-params__card {
        min-height: auto;
        padding: 24px 20px;
    }

    /* Карточки: одна под одной */
    .card-grid {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
        padding: 15px;
    }

    .business-automation-grid .business-automation-card,
    .business-automation-grid--four .business-automation-card,
    .business-automation-grid--three .business-automation-card {
        flex: 1 1 100%;
    }

    .hero-ai__buttons {
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-ai__buttons .button,
    .hero-ai__buttons .button--outline {
        width: 100%;
        justify-content: center;
    }

    .hero-ai__stats {
        gap: 16px;
        justify-content: flex-start;
    }

    .hero-ai--metrics .container {
        gap: 24px;
    }

    .hero-ai--metrics .hero-ai__title {
        font-size: clamp(1.8rem, 8.6vw, 2.55rem);
        max-width: 100%;
    }

    .hero-ai--metrics .hero-ai__visual {
        padding-left: 0;
    }

    .hero-ai--metrics .hero-ai__visual::before {
        width: 200px;
        height: 200px;
        top: -24px;
        right: -12px;
    }

    .hero-ai--metrics .hero-ai__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 18px;
        width: 100%;
    }

    .hero-ai--metrics .hero-stats__disclaimer {
        max-width: 100%;
        margin-top: 14px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .stat-item {
        min-width: 0;
        padding: 0;
    }

    .hero-ai--metrics .stat-number {
        font-size: clamp(1.9rem, 8.2vw, 2.75rem);
        min-height: 1em;
    }

    .hero-ai--metrics .stat-label {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    /* Универсальные отступы */
    .case-result,
    .case-final-cta {
        padding: 0 15px;
    }

    /* Модальные окна*/
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    #calculatorForm fieldset {
        padding: 10px;
    }
    
    #calculatorForm label {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.95rem;
    }
    
    #calculatorForm input[type="tel"] {
        font-size: 0.95rem;
    }
    
    .price-line {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1rem;
    }
    
    #submitCalc.button,
    .button-discuss {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
        margin-top: 10px;
    }

    /* CTA-блок */
    .cta-block {
        padding: 30px 15px;
    }

    .cta-block h2 {
        font-size: 1.3rem;
    }

    .cta-block p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .button,
    .cta-buttons .button--outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Адаптивные стили для footer */
    .footer {
        padding: 10px 0;
    }
  
    .footer .container {
        flex-direction: column;
        /* align-items: center; */
    }
  
    .footer__menu__uslugi, .footer__gl__menu, .footer__footer__column3 {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
  
    .footer__communik a, .footer__dzen a, .footer__chat-bot a {
        margin-right: 5px;
    }
    /* Адаптивные стили для слайдера */
    .slider {
        flex-direction: column;
    }
    
    .slider__content {
        height: 400px; /* Уменьшаем высоту для мобильных устройств */
    }
    
    .slider__menu {
        display: none;
    }
    
    .slider__menu__button {
        margin: 5px 0;
    }
    /*Адаптивные стили для динамических карточек*/
    .step-cards .card-sequence {
        flex-direction: column;
    }
    .step-cards .arrow {
        transform: rotate(90deg);
    }

    /* === WEBSITE DEVELOPMENT HERO === */
    .website-swiper {
        height: 300px;
    }
    
    .browser-window {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    
    .website-swiper .swiper-button-prev,
    .website-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .website-swiper .swiper-button-prev::after,
    .website-swiper .swiper-button-next::after {
        font-size: 14px;
    }
    
    .calc-step .options {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* === AUTOMATION SCHEME MOBILE === */
    .process-flow {
        flex-direction: column;
        gap: 15px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }

}

@media (max-width: 600px) {
    .business-automation-directions .business-automation-directions__nav,
    .business-automation-directions__nav,
    .leads-automation-directions .business-automation-directions__nav {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .business-automation-directions .business-automation-directions__button,
    .business-automation-directions__button,
    .leads-automation-directions .business-automation-directions__button {
      min-width: 0;
      width: 100%;
    }

    .leads-automation-actions__flow {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .leads-automation-proof__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .leads-automation-proof__metric {
      padding: 24px 18px 22px;
    }

    .leads-automation-proof__metric strong {
      font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .leads-automation-actions__item {
      min-height: 0;
      padding: 20px 16px 18px;
    }

    .leads-automation-actions__item h3 {
      font-size: 1rem;
      line-height: 1.25;
    }

    .leads-automation-actions__item p {
      font-size: 0.9rem;
      line-height: 1.45;
    }

    .leads-automation-packages__grid {
      grid-template-columns: 1fr;
      gap: 26px;
      align-items: start;
    }

    .leads-automation-package {
      min-height: auto;
      height: auto;
      overflow: visible;
    }

    .leads-automation-package .button {
      margin-top: 18px;
    }

    body.page-services .hero-ai--metrics .hero-ai__content,
    body.page-services .hero-ai--metrics .hero-ai__visual {
      min-width: 0;
    }

    body.page-services .hero-ai--metrics .hero-ai__title,
    body.page-services .hero-ai--metrics .hero-ai__title .gradient-text,
    body.page-services .hero-ai--metrics .hero-ai__title .gradient-text--multiline {
      width: auto;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    body.page-services .hero-ai--metrics .hero-ai__buttons {
      width: 100%;
      align-items: stretch;
      gap: 10px;
    }

    body.page-services .hero-ai--metrics .hero-ai__buttons .button,
    body.page-services .hero-ai--metrics .hero-ai__buttons .button--outline,
    body.page-services .hero-ai--metrics .hero-ai__buttons .button--primary {
      box-sizing: border-box;
      width: 100%;
      max-width: 100%;
      justify-content: center;
      white-space: normal;
    }

    .cases-roi .case-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: start;
      justify-content: stretch;
    }

    .cases-roi .case-stats .stat {
      min-width: 0;
      text-align: center;
    }

    .cases-roi .case-stats .stat-label {
      max-width: none;
    }
    /*Кнопки в портфолио для маленьких экранов*/
    .portfolio__buttons {
      flex-direction: column;
      gap: 8px;
    }
  
    .portfolio__btn,
    .portfolio__btn--outline {
      width: 100%;
    }
  }
  
@media screen and (max-width: 420px) {
    body h2{
        font-size: 1.16rem;
        font-weight: 600;
    }

    body h3{
        font-size: 1.11rem;
    }

    body h4{
        font-size: 1.05rem;
    }

    p, span, a, li, input, textarea {
        font-size: 0.89rem;
    }

    h1 span,
    h2 span,
    h3 span,
    h4 span,
    .stat-number .hero-counter {
        font-size: inherit;
        line-height: inherit;
    }
    
    /* Адаптивные стили для header для смартфонов */
    .header__logo {
        gap: 0px;
    }

    .header__logo h1 {
        font-size: 1rem;
        line-height: 1;
    }

    .header__contact a {
        font-size: 0.75rem;
        line-height: 1.1;
    }

    .header__social {
        margin: 15px;
    }

    /* Значок личного кабинета на мобильных */
    .lk-icon {
        font-size: 20px;
        margin: 0 5px;
    }

    /* Адаптивные стили для слайдера для смартфонов */
    .slider__content {
        height: 340px; /* Уменьшаем высоту для мобильных устройств */
    }
    
    .slider__menu {
        display: none;
    }

    /* Уменьшаем заголовок в подложке */
    .slide-quote{
        font-size: 1.1rem;
    }

    /* Уменьшаем текст в подложке */
    .slide-text {
        font-size: 0.8rem;
    }

    /* Адаптивные стили для слайдера на главной для смартфонов*/
    .home .slider__content {
        height: 300px;
    }
    
    .home .slider__menu {
        display: none;
    }
    
    .home .slide-quote {
        font-size: 1.1rem;
    }
    
    .home .slide-text {
        font-size: 0.8rem;
    }
    
    .home .slide-content {
        padding: 12px;
    }
      
    /* Адаптивные стили для секции "О нас" для быстрой отрисовки*/
    .divider {
        height: 4px;
        margin: 0;
    }

    .company.info-section p {
        min-height: 120px;
    }
    
    .info-section {
        box-shadow: none;
        padding: 15px 10px;
        margin: 10px 0 15px;
        background-color: #fff;
        min-height: 200px; /* Ускоряет отрисовку */
      }
    
    .info-section .container {
        padding: 0;
        width: 100%;
    }

    .info-section h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .info-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .business-automation-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .business-automation-grid {
        margin-top: 24px;
    }

    .business-automation-directions .business-automation-card,
    .business-automation-pains .business-automation-card,
    .business-automation-results .business-automation-card {
        padding: 18px 16px;
    }

    .business-automation-results .business-automation-card {
        padding: 16px 15px;
        min-height: 0;
    }

    .business-automation-results .business-automation-card::before {
        top: 16px;
        left: 15px;
    }

    .business-automation-results .business-automation-card::after {
        right: 15px;
        bottom: 13px;
        font-size: 0.62rem;
    }

    .business-automation-results .business-automation-card h4 {
        gap: 11px;
        margin-top: 18px;
    }

    .business-automation-results .business-automation-card h4::before {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }

    .business-automation-results .business-automation-card h4::after {
        left: 43px;
        max-width: calc(100% - 43px);
        white-space: normal;
    }

    .business-automation-directions__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .business-automation-directions__button {
        min-height: 96px;
        padding: 12px 10px 11px;
    }

    .business-automation-directions__button-icon {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .business-automation-directions__content.active {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .business-automation-directions__content-main,
    .business-automation-directions__side {
        padding: 24px 22px;
    }

    .business-automation-directions__content-main h3 {
        max-width: none;
    }

    .business-automation-directions__side {
        border-left: 0;
        border-top: 1px solid #e7eef5;
    }

    .leads-automation-hero__highlights {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .leads-automation-directions .business-automation-directions__button-title {
        font-size: 0.8rem;
    }

    .leads-automation-compare__grid,
    .leads-automation-before-after__grid {
        grid-template-columns: 1fr;
    }

    .leads-automation-compare__col,
    .leads-automation-before-after__panel {
        padding: 24px 22px 22px;
    }

    .leads-automation-actions__flow,
    .leads-automation-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leads-automation-impact__note {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 22px;
    }

    .leads-automation-impact__note p {
        font-size: 1.05rem;
    }

    .leads-automation-actions__item {
        min-height: 0;
    }

    .leads-automation-micro-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .leads-automation-micro-cta__inner .button {
        width: auto;
        max-width: 100%;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .cta-buttons .button {
        font-size: 0.95rem;
        padding: 12px;
    }

    .cta-buttons .button i {
        margin-right: 5px;
        font-size: 1rem;
    }

    /* Адаптивные стили для секции "Портфолио" для смартфонов*/
    .portfolio__filters {
        text-align: start;
        padding: 0 10px;
    }
    
    .filter-button {
        flex: 1 1 30%; /* Ширина кнопок примерно 45% для двух кнопок в строке */
        margin: 5px; /* Расстояние между кнопками */
        padding: 10px 10px;
        font-size: 0.8rem;
    }
        
    .portfolio__grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    /* Адаптивные стили для формы обратной связи */
    .contact-form input::placeholder, .contact-form textarea::placeholder {
        font-size: 0.75rem;
    }

    /* Адаптивные стили для страниц с кейсами */
    /* Блок 50/50 (Этапы) */
    .text-columns .text h3 {
        font-size: 1rem;
    }

    .swiper-slide img {
        max-height: 200px;
    }

    .slide-caption {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Видео */
    .video-block .video video {
        max-height: 220px;
    }

    /* Модальные окна*/
    .modal-content h3 {
        font-size: 1.1rem;
    }
    
    .modal-content p,
    #calculatorForm label,
    #formMessageCalc {
        font-size: 0.85rem;
    }
    
    #calculatorForm input[type="tel"] {
        padding: 10px;
        font-size: 0.9rem;
    }
    /* Отступы карточек и CTA */
    .card {
        padding: 10px;
    }

    .cta-block {
        padding: 25px 10px;
    }

    .cta-block h2 {
        font-size: 1.2rem;
    }
      
    /* Адаптивные стили для footer для смартфонов */
    .footer{
        padding-left: 10px;
    }

    .footer h4{
        font-size: 1rem;
    }

    .footer p, li, input, textarea {
        font-size: 0.83rem;
    }
    
    /* === WEBSITE DEVELOPMENT HERO - SMALL SCREENS === */
    .website-swiper {
        height: 250px;
    }
    
    .browser-window {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }
    
    .website-swiper .swiper-button-prev,
    .website-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    
    .website-swiper .swiper-button-prev::after,
    .website-swiper .swiper-button-next::after {
        font-size: 12px;
    }
    
    .slide-caption {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    
}

@media screen and (max-width: 480px) {
    .button,
    .button--outline,
    .button--primary,
    .button--secondary,
    .portfolio__btn {
        box-sizing: border-box;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cta-buttons,
    .button-group,
    .pricing-cta,
    .pricing-card .pricing-cta {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cta-buttons .button,
    .cta-buttons .button--outline,
    .button-group .button,
    .button-group .button--outline,
    .pricing-card .pricing-cta .button,
    .pricing-card .pricing-cta .button--outline {
        width: 100%;
        max-width: 100%;
    }

    .portfolio__item__label {
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        padding-left: 8px;
        padding-right: 8px;
        overflow-wrap: anywhere;
    }

    .portfolio__btns {
        width: 100%;
    }

    .portfolio__btn {
        justify-content: center;
    }

    body.page-services .hero-ai--metrics .hero-ai__stats {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    body.page-services .hero-ai--metrics .stat-item {
        text-align: left;
        width: 100%;
    }

    body.page-services .hero-ai--metrics .stat-number {
        justify-content: flex-start;
    }

    body.page-services .hero-ai--metrics .stat-label {
        max-width: 100%;
    }

    body.page-services .hero-ai--metrics {
        padding: 34px 10px 38px;
    }

    body.page-services .hero-ai--metrics .hero-ai__buttons {
        align-items: flex-start;
    }

    body.page-services .hero-ai--metrics .hero-ai__buttons .button,
    body.page-services .hero-ai--metrics .hero-ai__buttons .button--outline {
        width: auto;
        max-width: 100%;
        align-self: flex-start;
        padding: 10px 16px;
    }

    .hero-ai--metrics .hero-ai__title {
        font-size: clamp(1.55rem, 8.4vw, 2rem);
        max-width: 100%;
    }

    .hero-ai--metrics .hero-ai__subtitle {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .hero-ai--metrics .hero-ai__buttons {
        gap: 10px;
        margin-bottom: 18px;
    }

    .hero-ai--metrics .hero-ai__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-ai--metrics .stat-number {
        font-size: clamp(1.8rem, 10vw, 2.35rem);
    }

    .hero-ai--metrics .stat-label {
        font-size: 0.92rem;
    }

    .case-stats .stat-label {
        max-width: 16ch;
    }

    .leads-automation-actions__flow,
    .leads-automation-proof__grid {
        grid-template-columns: 1fr;
    }

    .leads-automation-before-after__panel,
    .leads-automation-impact__note,
    .leads-automation-actions__item,
    .leads-automation-proof__metric {
        border-radius: 16px;
    }

    .leads-automation-proof__metric strong {
        font-size: 2rem;
    }

    .leads-automation-before-after__indicator strong {
        font-size: 1.65rem;
    }

    .leads-automation-micro-cta {
        padding-bottom: 34px;
    }

    .leads-automation-micro-cta__inner .button {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .price-breakdown--stages .breakdown-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .price-breakdown--stages .breakdown-bar {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding-top: 0;
    }

    .price-breakdown--stages .breakdown-label {
        text-align: center;
    }
}

/* AI employees page */
@media screen and (max-width: 1180px) {
    .ai-employees-signals__grid,
    .ai-employees-roles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .ai-employees-hero__highlights {
        width: 100%;
    }

    .ai-employees-signals__grid,
    .ai-employees-roles__grid,
    .ai-employees-choice__grid,
    .ai-employees-results__compare,
    .ai-employees-lk-bridge__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ai-employees-card,
    .ai-employees-role,
    .ai-employees-hero__highlight,
    .ai-employees-results__panel {
        border-radius: 16px;
    }

    .ai-employees-role,
    .ai-employees-card {
        padding: 24px 20px 22px;
    }

    .ai-employees-results__panel {
        padding: 28px 22px 24px;
    }
}

@media screen and (max-width: 480px) {
    .ai-employees-hero__highlight {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 16px;
    }

    .ai-employees-hero__icon {
        width: 42px;
        height: 42px;
    }

    .ai-employees-role__head {
        align-items: center;
        text-align: center;
    }
}
