/* =========================
   MOBILE.CSS
   Rusmanov Group
========================= */

@media (max-width: 920px) {
  :root {
    --header-h: 76px;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: rgba(8, 12, 22, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 120;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }

  .cursor {
    display: none !important;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin: 0 auto 32px;
  }

  .section-title {
    font-size: 42px;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 14px;
  }

  .section-text {
    font-size: 17px;
    line-height: 1.55;
  }

  .btn {
    width: 100%;
  }

  /* =========================
     HEADER
  ========================= */

  .header__inner {
    gap: 16px;
  }

  .logo__text {
    font-size: 16px;
  }

  .nav {
    left: 12px;
    right: 12px;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  /* =========================
     HERO
  ========================= */

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .hero__content {
    display: contents;
  }

  .hero__badge {
    order: 1;
    margin-bottom: 0;
    font-size: 13px;
    padding: 9px 16px;
  }

  .hero__title {
    order: 2;
    font-size: 56px;
    line-height: 0.9;
    margin: 0;
  }

  .hero__text {
    order: 3;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero__visual {
    order: 4;
  }

  .hero__actions {
    order: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2px;
  }

  .hero__actions .btn {
    min-height: 54px;
  }

  .hero-slider {
    height: 470px;
    min-height: unset;
    border-radius: 28px;
  }

  .hero-slider__slogan {
    left: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 14px;
  }

  .hero-slider__dots {
    right: 14px;
    bottom: 14px;
  }

  /* =========================
     SERVICES
  ========================= */

  .services .cards-grid--3 {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .service-card {
    min-height: auto !important;
    padding: 18px 16px !important;
    border-radius: 20px;
  }

  .service-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .service-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .service-card h3 {
    font-size: 19px !important;
    line-height: 1.15;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
  }

  .service-card p {
    font-size: 14px !important;
    line-height: 1.5;
    color: var(--text-soft);
  }

  /* =========================
     PORTFOLIO
  ========================= */

  .portfolio .section-title {
    font-size: 38px;
  }

  .portfolio .cards-grid--3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .portfolio .project-card {
    aspect-ratio: 16 / 11 !important;
    min-height: unset;
    border-radius: 20px;
  }

  .project-card__image img {
    object-fit: cover;
    object-position: center;
  }

  .project-card__overlay {
    padding: 14px 14px 13px;
  }

  .project-card__meta {
    gap: 6px;
    margin-bottom: 10px;
  }

  .project-card__badge {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
    border-radius: 9px;
  }

  .project-card__overlay h3 {
    font-size: 18px !important;
    margin: 0 0 4px;
  }

  .project-card__overlay p {
    font-size: 14px !important;
  }

  /* =========================
     VIDEOS
  ========================= */

  .videos-slider {
    gap: 12px;
  }

  .videos-slider .video-card {
    flex: 0 0 100%;
  }

  .videos-slider__viewport {
    overflow: hidden;
  }

  .videos-slider__nav {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .videos-slider__nav span {
    font-size: 30px;
  }

  .video-card__preview {
    aspect-ratio: 9 / 16 !important;
    margin-bottom: 14px;
  }

  .video-card h3 {
    font-size: 20px;
    margin: 0 0 6px;
  }

  .video-card p {
    font-size: 14px;
  }

  /* =========================
     PRICING
  ========================= */

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .price-card {
    padding: 24px 20px 22px !important;
    border-radius: 22px;
  }

  .price-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .price-card__sub {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .price-card__value {
    font-size: 34px;
    margin-bottom: 18px;
  }

  .price-card__list {
    margin-bottom: 20px;
  }

  .price-card__list li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 24px;
  }

  /* =========================
     PROCESS
  ========================= */

  .process-roadmap {
    overflow: hidden;
  }

  .process .section-head {
    margin-bottom: 28px;
  }

  .roadmap {
    position: relative;
    min-height: auto !important;
    margin-top: 0;
    padding-left: 34px;
    overflow: visible;
  }

  .roadmap__svg {
    display: none !important;
  }

  .roadmap::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(53, 200, 255, 0.75) 0%,
      rgba(122, 92, 255, 0.75) 100%
    );
    box-shadow:
      0 0 10px rgba(53, 200, 255, 0.22),
      0 0 18px rgba(122, 92, 255, 0.18);
    z-index: 0;
  }

  .roadmap::after {
    display: none !important;
  }

  .roadmap__items {
    display: grid !important;
    gap: 14px;
    position: relative;
    z-index: 1;
    height: auto !important;
  }

  .roadmap-step {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
  }

  .roadmap-step::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35c8ff, #7a5cff);
    box-shadow:
      0 0 10px rgba(53, 200, 255, 0.3),
      0 0 16px rgba(122, 92, 255, 0.24);
    z-index: 2;
  }

  .roadmap-step__card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .roadmap-step__num {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .roadmap-step h3 {
    font-size: 20px;
    margin: 0 0 6px;
    line-height: 1.15;
  }

  .roadmap-step p {
    display: block !important;
    font-size: 14px;
    line-height: 1.45;
  }

  .roadmap__checkpoint {
    display: none !important;
  }

  /* =========================
     ABOUT
  ========================= */

  .about .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .about .stat-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .about .stat-card__value,
  .about .stat-card__value--text {
    font-size: 22px;
    line-height: 1.05;
    margin-bottom: 10px;
  }

  .about .stat-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .about .stat-card__value--text {
    display: block;
    word-break: break-word;
  }

  /* =========================
     DESIGN INTRO
  ========================= */

  .design__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .design__content {
    display: contents;
  }

  .design__title {
    order: 1;
    margin-bottom: 0;
    font-size: 50px;
  }

  .design__list {
    order: 2;
    margin: 0;
  }

  .design__list li {
    font-size: 16px;
    margin-bottom: 14px;
    padding-left: 16px;
  }

  .design__visual-wrap {
    order: 3;
  }

  .design__actions {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2px;
  }

  .design__visual {
    height: 350px;
    min-height: unset;
    border-radius: 24px;
  }

  .design__floating {
    left: 12px;
    bottom: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    gap: 10px;
  }

  .design__floating strong {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .design__floating span {
    font-size: 12px;
    line-height: 1.25;
  }

  .design__actions .btn {
    width: 100%;
    min-height: 52px;
  }

  /* =========================
     DESIGN GALLERY
  ========================= */

  .design-gallery__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
  }

  .design-gallery__floating {
    max-width: 100%;
    width: 100%;
    padding: 18px;
    border-radius: 18px;
  }

  .design-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .design-collage__item,
  .design-collage__item--large,
  .design-collage__item--quote,
  .design-collage__item--bedroom-wide,
  .design-collage__item--bottom-wide,
  .design-collage > .design-collage__item:not(.design-collage__item--large):not(.design-collage__item--quote):not(.design-collage__item--bedroom-wide):not(.design-collage__item--bottom-wide) {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .design-collage__item--quote {
    min-height: 180px;
  }

  .design-collage__overlay {
    padding: 16px;
  }

  .design-collage__overlay span {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .design-collage__overlay h3 {
    font-size: 18px;
    line-height: 1.15;
  }

  .design-collage__text {
    padding: 20px;
  }

  .design-collage__text h3 {
    font-size: 24px;
  }

  /* =========================
     DESIGN PACKAGES
  ========================= */

  .design-tiers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .design-tier {
    padding: 22px 18px 20px;
    border-radius: 22px;
  }

  .design-tier__name {
    font-size: 28px;
  }

  .design-tier__subtitle {
    font-size: 14px;
  }

  .design-tier__price {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .design-tier__price strong {
    font-size: 32px;
  }

  .design-tier__desc {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .design-tier__list {
    gap: 10px;
    margin-bottom: 18px;
  }

  .design-tier__list li {
    font-size: 14px;
    line-height: 1.45;
    padding-left: 20px;
  }

  .design-tier__link {
    min-height: 50px;
    font-size: 14px;
  }

  /* =========================
     CONTACTS
  ========================= */

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-list a,
  .contact-list span {
    font-size: 17px;
  }

  .form {
    padding: 22px 18px;
    border-radius: 20px;
  }

  /* =========================
     FOOTER
  ========================= */

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__links {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 54px;
  }

  .hero-slider {
    height: 400px;
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal__dialog {
    width: min(100vw - 20px, 100%);
    padding: 18px 16px;
    border-radius: 22px;
  }

  .gallery-modal__title {
    font-size: 22px;
  }

  .gallery-modal__image-wrap {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .gallery-modal__main {
    width: 100%;
    margin-bottom: 14px;
  }

  .gallery-modal__nav {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .gallery-modal__nav span {
    font-size: 28px;
  }

  .gallery-modal__nav--prev {
    left: 8px;
  }

  .gallery-modal__nav--next {
    right: 8px;
  }

  .gallery-modal__thumbs-track {
    gap: 8px;
  }

  .gallery-modal__thumb {
    flex: 0 0 calc((100% - 16px) / 3);
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  /* =========================
     HERO — уменьшаем текст под заголовком
  ========================= */
  .hero__text {
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-width: 100%;
  }

  /* =========================
     PROCESS — убираем чекпоинты
  ========================= */
  .roadmap {
    padding-left: 20px !important;
  }

  .roadmap::before {
    left: 8px !important;
    width: 3px !important;
  }

  .roadmap-step::before {
    display: none !important;
    content: none !important;
  }

  .roadmap__checkpoint {
    display: none !important;
  }

  .roadmap-step {
    width: 100% !important;
  }

  /* =========================
     ABOUT — убираем лишнюю пустоту в карточках
  ========================= */
  .about .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
  }

  .about .stat-card {
    min-height: unset !important;
    height: auto !important;
    padding: 18px 16px !important;
    border-radius: 18px;
    display: block !important;
  }

  .about .stat-card__value,
  .about .stat-card__value--text {
    font-size: 20px !important;
    line-height: 1.05;
    margin-bottom: 8px !important;
  }

  .about .stat-card p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0;
  }
}