/* ══════════════════════════════════════════
   RESPONSIVE — Media Queries
   ══════════════════════════════════════════ */

/* ── Tablet (< 860px) ── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    aspect-ratio: 16/9;
    order: -1;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

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

  .about-short {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-short-photo {
    aspect-ratio: 16/9;
    max-height: 300px;
  }

  .about-hero-inner {
    grid-template-columns: 1fr;
  }

  .about-hero-photo {
    aspect-ratio: 16/9;
    max-height: 300px;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  /* About Parallax Hero — отключаем fixed на планшетах (iOS) */
  .about-parallax-hero {
    background-attachment: scroll;
    background-position: 80% center;
  }

  /* Collage — уменьшаем фото для планшета */
  .photo-collage { min-height: 1700px; }
  .photo-collage-item:nth-child(1) { width: 220px; height: 280px; }
  .photo-collage-item:nth-child(2) { width: 240px; height: 180px; }
  .photo-collage-item:nth-child(3) { width: 200px; height: 260px; }
  .photo-collage-item:nth-child(4) { width: 240px; height: 180px; top: 260px; }
  .photo-collage-item:nth-child(5) { width: 220px; height: 190px; top: 240px; }
  .photo-collage-item:nth-child(6) { width: 200px; height: 250px; top: 240px; }
  .photo-collage-item:nth-child(7) { width: 250px; height: 190px; top: 500px; }
  .photo-collage-item:nth-child(8) { width: 230px; height: 180px; top: 530px; }
  .photo-collage-item:nth-child(9) { width: 200px; height: 250px; top: 490px; }
  .photo-collage-item:nth-child(10) { width: 260px; height: 200px; top: 760px; }
  .photo-collage-item:nth-child(11) { width: 220px; height: 280px; top: 740px; }
  .photo-collage-item:nth-child(12) { width: 240px; height: 190px; top: 780px; }
  .photo-collage-item:nth-child(13) { width: 230px; height: 190px; top: 1020px; }
  .photo-collage-item:nth-child(14) { width: 210px; height: 260px; top: 1000px; }
  .photo-collage-item:nth-child(15) { width: 250px; height: 180px; top: 1040px; }
  .photo-collage-item:nth-child(16) { width: 260px; height: 210px; top: 1280px; }
}

/* ── Mobile (< 700px) ── */
@media (max-width: 700px) {
  /* Nav — уменьшаем padding */
  .nav {
    padding: 0 var(--space-md);
  }

  /* Nav — мобильное меню */
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    flex-direction: column;
    gap: 0;
    z-index: 50;
  }

  .nav-menu--open {
    display: flex;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-menu .nav-link:hover {
    background: var(--color-frost);
  }

  .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-sm) var(--space-xs);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
  }

  .nav-mobile-call {
    width: 100%;
    justify-content: center;
  }

  .nav-mobile-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-primary-500);
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease;
  }

  .nav-mobile-tg:hover {
    background: var(--color-frost);
  }

  .nav-burger {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  /* Hero */
  .hero-mockup {
    padding: var(--space-2xl) 0;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  /* About Parallax Hero */
  .about-parallax-hero {
    height: 70vh;
    min-height: 500px;
    background-attachment: scroll;
  }

  .about-parallax-hero-content {
    padding: var(--space-2xl) var(--space-md);
  }

  .about-parallax-hero-title {
    font-size: 1.6rem;
  }

  .about-parallax-hero-text {
    font-size: 0.95rem;
  }

  .about-parallax-hero-stats {
    gap: var(--space-lg);
  }

  .about-parallax-stat-value {
    font-size: 1.4rem;
  }

  .hero-float-card {
    display: none;
  }

  /* Contacts block */
  .contacts-mockup {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Floating buttons — show on mobile */
  .floating-buttons {
    display: flex;
  }

  /* BA grid */
  .ds-ba-grid {
    grid-template-columns: 1fr;
  }

  /* Form grid */
  .ds-form-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons — разрешаем перенос на мобилке */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  /* Section padding */
  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Cards */
  .ds-cards-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-guarantees {
    grid-template-columns: 1fr;
  }

  .about-hero-stats {
    gap: var(--space-lg);
  }

  /* Care Plan — 1 колонка на мобилке */
  .care-plan-seasons {
    grid-template-columns: 1fr;
  }

  /* Mass Order */
  .mass-order-benefits {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  /* Geo Map */
  .geo-map-container,
  .geo-map-placeholder {
    height: 300px;
  }

  /* Geo cities tags — компактнее */
  .geo-cities {
    gap: var(--space-xs);
  }

  .tag {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Contacts Page */
  .contacts-page-grid {
    grid-template-columns: 1fr;
  }

  /* Contacts rows — стек на мобилке */
  .contacts-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  /* Contacts form buttons */
  .contacts-buttons {
    flex-direction: column;
  }

  .contacts-buttons .btn {
    width: 100%;
    flex: none;
  }

  /* Care Plan Page */
  .care-intro-grid {
    grid-template-columns: 1fr;
  }

  .care-tasks-grid {
    grid-template-columns: 1fr;
  }

  .care-cta-box {
    padding: var(--space-2xl) var(--space-lg);
  }

  .care-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Process steps */
  .process-steps {
    grid-template-columns: 1fr;
  }

  /* Villages list */
  .villages-list {
    grid-template-columns: 1fr;
  }

  .village-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  /* Location content */
  .location-content {
    font-size: 0.95rem;
  }

  /* Location Intro */
  .location-intro-grid {
    grid-template-columns: 1fr;
  }

  /* Location Problems */
  .problems-list {
    gap: var(--space-md);
  }

  /* Location Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Seasonal */
  .seasonal-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Village Profile */
  .village-profile {
    padding: var(--space-lg);
  }

  .village-profile-badges {
    gap: var(--space-xs);
  }

  /* Examples */
  .examples-grid {
    grid-template-columns: 1fr;
  }

  /* Pagination */
  .pagination a,
  .pagination span {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  /* Catalog mockup — менее padding */
  .catalog-mockup {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
  }

  /* Review phones — 1 колонка на мобилке */
  .review-phones-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .review-phone {
    border-radius: 32px;
    padding: 10px;
  }

  .review-phone-inner {
    border-radius: 24px;
  }

  .review-phone-notch {
    width: 100px;
    height: 24px;
  }

  .review-phone-home {
    width: 32px;
    height: 32px;
    margin: 8px auto;
  }

  /* BA card viewport */
  .ba-viewport {
    height: 220px;
  }

  /* Checklist */
  .checklist-item {
    padding: var(--space-sm) var(--space-md);
  }

  /* Collage — мобилка: вертикальный стек */
  .photo-collage {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .photo-collage-item {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    aspect-ratio: 4/3;
  }

  .photo-collage-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* About page */
  .about-hero {
    padding: var(--space-2xl) 0;
  }

  .about-hero-title {
    font-size: 1.6rem;
  }

  /* Location hero */
  .section--location-hero {
    padding: var(--space-2xl) 0;
  }

  /* Cards padding */
  .card {
    padding: var(--space-lg);
  }

  .contacts-card {
    padding: var(--space-lg);
  }

  /* Accordion */
  .accordion-trigger {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .accordion-content {
    padding: 0 16px 16px;
  }

  /* Pricing table */
  .pricing-table-row {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .pricing-table-info {
    flex: 1 1 calc(100% - 64px);
  }

  .pricing-table-cost {
    width: 100%;
    text-align: left;
    padding-left: 64px;
  }

  .pricing-table-desc {
    display: none;
  }

  /* Blog */
  .blog-articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-tips-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .blog-single-nav {
    flex-direction: column;
  }

  .blog-single-nav-link {
    max-width: 100%;
  }

  .blog-single-nav-next {
    text-align: left;
  }
}

/* ── Small mobile (< 400px) ── */
@media (max-width: 400px) {
  .hero-h1 {
    font-size: 1.4rem;
  }

  .nav {
    padding: 0 var(--space-sm);
  }

  /* About Parallax Hero */
  .about-parallax-hero {
    height: 80vh;
    background-position: right center;
  }

  .about-parallax-hero-content {
    padding: var(--space-xl) var(--space-sm);
  }

  .about-parallax-hero-title {
    font-size: 1.4rem;
  }

  .about-parallax-hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .about-parallax-stat-value {
    font-size: 1.2rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.88rem;
  }

  .btn-sm {
    padding: 6px 14px;
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  /* Hero trust */
  .hero-trust {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* About stats */
  .about-hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }

  .about-stat-value {
    font-size: 1.2rem;
  }

  .about-hero-title {
    font-size: 1.4rem;
  }

  /* Process steps */
  .process-step-num {
    font-size: 1.5rem;
  }

  /* Care plan */
  .care-season-title {
    font-size: 1.2rem;
  }

  .care-season-icon {
    font-size: 2rem;
  }

  .care-cta-box h2 {
    font-size: 1.2rem;
  }

  /* Cards — ещё компактнее */
  .card {
    padding: var(--space-md);
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Contacts */
  .contacts-card {
    padding: var(--space-md);
  }

  .contacts-row-icon {
    width: 36px;
    height: 36px;
  }

  /* Pagination */
  .pagination a,
  .pagination span {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  /* Badges */
  .badge {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  /* Section label */
  .section-label {
    font-size: 0.65rem;
    padding: 5px 12px;
  }

  /* Geo tags */
  .tag {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  /* Footer */
  .footer-inner {
    padding: var(--space-xl) 0;
  }

  .footer-heading {
    font-size: 0.75rem;
  }

  .footer-links a {
    font-size: 0.82rem;
  }

  /* Checklist */
  .checklist-text {
    font-size: 0.88rem;
  }

  .checklist-result-inner {
    padding: var(--space-md);
    font-size: 0.88rem;
  }

  /* Forms */
  .form-input,
  .form-textarea,
  .form-select {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  /* Guarantee */
  .about-guarantee {
    padding: var(--space-lg);
  }

  .about-guarantee-icon {
    font-size: 1.5rem;
  }

  .about-guarantee-title {
    font-size: 0.88rem;
  }

  /* Seasonal — 1 колонка на маленьких экранах */
  .seasonal-grid {
    grid-template-columns: 1fr;
  }

  /* Intro card icon */
  .intro-card-icon {
    width: 40px;
    height: 40px;
  }

  .intro-card-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Problem items */
  .problem-item {
    padding: var(--space-md);
  }

  /* Pricing cards */
  .pricing-card {
    padding: var(--space-md);
  }

  /* Pricing table */
  .pricing-table-cost {
    padding-left: 0;
  }

  /* Village profile */
  .village-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .footer-legal-links { margin-left: 0; justify-content: center; }
  .footer-disclaimer { text-align: center; }
}
