/* ==========================================================================
   OTOBUS.RU - Responsive Media Queries
   ========================================================================== */

@media (max-width: 782px) {
  body.admin-bar .inner-page-header-wrapper {
    top: 46px !important;
  }
}

@media (max-width: 992px) {
  .hero-island-header-wrapper {
    padding: 10px 12px;
  }
  .header-center-nav {
    display: none;
  }
  .header-search-wrap {
    width: 180px;
  }
  .dark-front-hero {
    min-height: auto;
    height: auto;
    padding: 125px 0 45px;
  }
  .hero-fullscreen-container {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-bg-zoom-layer {
    background-position: center 25%;
  }
  .hero-front-title {
    font-size: 38px;
    line-height: 1.18;
  }
  .hero-front-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .hero-features-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .hero-island-header-wrapper {
    padding: 8px 10px;
  }
  .header-search-wrap {
    display: none;
  }
  .header-phone-pill {
    display: none;
  }
  .dark-front-hero {
    min-height: auto;
    height: auto;
    padding: 120px 0 45px;
  }
  .hero-fullscreen-container {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-bg-zoom-layer {
    background-position: 18% 25%;
  }
  .hero-light-ignition {
    left: 20%;
    top: 60%;
  }
  .hero-front-title {
    font-size: 29px;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
  }
  .hero-front-subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 8px;
  }
  .hero-cta-center-row {
    margin-bottom: 24px;
  }
  .hero-btn-catalog {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 13px 22px;
    font-size: 14.5px;
  }
  .hero-features-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "hero-slide";
    margin-top: 30px;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-feature-card {
    grid-area: hero-slide;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 14px 18px;
    gap: 14px;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    min-height: 84px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
  }
  .hero-feature-card.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hero-features-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
  }
  .hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .hero-dot.active {
    background: var(--echo-red-accent);
    width: 22px;
    border-radius: 4px;
  }
  .feature-title {
    font-size: 13.5px;
  }
  .feature-desc {
    font-size: 12px;
    line-height: 1.4;
  }
  .feature-icon-box {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-island-header-wrapper {
    padding: 6px 8px;
  }
  .hero-overlay-header {
    padding: 6px 10px;
    border-radius: 12px;
  }
  .hero-overlay-header .echo-header-flex {
    gap: 6px;
  }
  .echo-logo {
    gap: 6px;
  }
  .echo-logo-img,
  .echo-logo .custom-logo {
    height: 28px;
  }
  .echo-logo-text .logo-bold {
    font-size: 15px;
  }
  .echo-logo-text .logo-red {
    font-size: 15px;
  }
  .header-user-actions-row {
    gap: 3px;
  }
  .header-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .header-action-btn svg {
    width: 14px;
    height: 14px;
  }
  .header-action-btn .action-badge {
    min-width: 14px;
    height: 14px;
    font-size: 8px;
    top: -3px;
    right: -3px;
  }
  .mobile-menu-btn {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
  .dark-front-hero {
    padding: 92px 0 35px;
  }
  .hero-bg-zoom-layer {
    background-position: 10% 20%;
  }
  .hero-light-ignition {
    left: 15%;
    top: 58%;
  }
  .hero-front-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .hero-front-subtitle {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .hero-cta-center-row {
    margin-bottom: 20px;
  }
  .hero-btn-catalog {
    padding: 13px 22px;
    font-size: 14px;
  }
  .hero-features-row {
    margin-top: 24px;
  }
  .hero-feature-card {
    padding: 12px 15px;
    gap: 12px;
    min-height: 78px;
  }
  .hero-features-dots {
    margin-top: 12px;
  }
  .feature-title {
    font-size: 13px;
  }
  .feature-desc {
    font-size: 11.5px;
  }
  .feature-icon-box {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 992px) {
  .catalog-layout-grid {
    grid-template-columns: 1fr;
  }

  .mobile-filter-open-btn {
    display: inline-flex;
  }

  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 2000;
    border-radius: 0 20px 20px 0;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .catalog-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px;
    cursor: pointer;
  }

  .catalog-vin-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .vin-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .seo-about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .seo-about-card {
    padding: 30px 24px 24px;
  }
  .seo-about-main-title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .seo-features-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .bus-models-grid-3cols {
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .header-center-nav {
    display: none !important;
  }

  .bus-models-section,
  .seo-about-section,
  .contact-feedback-section {
    padding: 44px 0;
  }

  .echo-section-header {
    margin-bottom: 28px;
  }

  .echo-section-title {
    font-size: 30px;
  }

  .bus-models-grid-3cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .feedback-card__grid {
    grid-template-columns: 1fr;
  }

  .feedback-card__content {
    padding: 34px 28px;
  }

  .feedback-card__title {
    font-size: 28px;
  }

  .feedback-card__map-pane {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    min-height: 400px;
    height: 400px;
  }

  .feedback-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-col-company {
    grid-column: 1 / -1;
  }

  .footer-col-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .bus-models-section,
  .seo-about-section,
  .contact-feedback-section {
    padding: 32px 0;
  }

  .brands-marquee-section {
    padding: 16px 0;
  }

  .site-footer {
    padding: 36px 0 24px;
    overflow: hidden;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
  }

  .footer-col-company,
  .footer-col-brands,
  .footer-col-cats,
  .footer-col-menu,
  .footer-col-contacts {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

  .footer-col-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-company-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .footer-phone-big {
    font-size: 22px;
    word-break: break-word;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-copyright {
    font-size: 12px;
    line-height: 1.5;
  }

  .echo-section-header {
    margin-bottom: 20px;
  }

  .echo-section-title {
    font-size: 24px;
  }

  .echo-section-desc {
    font-size: 14.5px;
  }

  .feedback-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-card__content {
    padding: 26px 18px;
  }

  .feedback-card__title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .feedback-card__desc {
    margin-bottom: 18px;
  }

  .feedback-card__map-pane {
    min-height: 330px;
    height: 330px;
  }

  .feedback-card__map-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .seo-card-header {
    margin-bottom: 18px;
  }

  .bus-models-grid-3cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Catalog & Pages Mobile Header & Layout */
  .catalog-page-wrapper,
  .page-wrapper,
  .product-page-wrapper,
  .single-product-page-wrapper {
    padding: 12px 0 45px;
  }

  .catalog-breadcrumbs,
  .product-breadcrumbs {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 12px;
    gap: 6px;
  }

  .catalog-header-block,
  .page-header-block {
    margin-bottom: 18px;
  }

  .catalog-main-header {
    padding: 14px 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .catalog-title-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 10px;
  }

  .catalog-page-title {
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    letter-spacing: -0.3px;
  }

  .catalog-count-pill {
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .catalog-toolbar-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
  }

  .catalog-meta-tools-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-filter-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    height: 38px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    white-space: nowrap;
  }

  .catalog-sort-wrapper {
    display: flex;
    width: 100%;
    min-width: 0;
  }

  .catalog-sort-wrapper .sort-label {
    display: none;
  }

  .catalog-sort-wrapper .sort-select-wrapper {
    width: 100%;
    min-width: 0;
  }

  .catalog-sort-select,
  .sort-select-wrapper select {
    width: 100%;
    height: 38px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 8px;
    text-overflow: ellipsis;
  }

  .view-switch-group {
    height: 38px;
    padding: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .view-switch-btn {
    padding: 4px 6px;
    height: 32px;
    width: 32px;
  }

  .active-filter-chips-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    margin-top: 4px;
  }

  .active-chips-label {
    font-size: 11px;
  }

  .active-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
  }

  .filter-chip-btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .filter-chip-reset-all {
    font-size: 11px;
    padding: 2px 4px;
    margin-left: auto;
  }

  /* Products Cards Grid */
  .products-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ignavo-prod-card {
    padding: 8px 8px 12px 8px;
    border-radius: 14px;
  }

  .prod-img-box {
    height: 155px;
    border-radius: 10px;
  }

  .prod-clean-title {
    font-size: 13px;
    line-height: 1.35;
    min-height: 35px;
    margin-bottom: 4px;
  }

  .prod-category-brand {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .prod-clean-article {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .prod-clean-bottom {
    gap: 4px;
    padding-top: 6px;
  }

  .prod-clean-price {
    font-size: 16px;
  }

  .prod-card-buy-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
    border-radius: 8px;
  }

  /* List View Modifier for Mobile */
  .products-cards-grid.view-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .products-cards-grid.view-list .ignavo-prod-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
  }

  .products-cards-grid.view-list .prod-img-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .products-cards-grid.view-list .prod-card-body {
    flex: 1;
    min-width: 0;
    padding-top: 0;
  }

  .products-cards-grid.view-list .prod-clean-title {
    min-height: auto;
    margin-bottom: 2px;
  }

  .products-cards-grid.view-list .prod-clean-article {
    margin-bottom: 6px;
  }

  .brand-card-premium {
    padding: 18px 16px 14px;
    border-radius: 14px;
  }

  .brand-card-badge {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .brand-card-img-box {
    height: 135px;
    margin: 12px 0 8px;
  }

  .brand-card-img-box img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
  }

  .brand-card-name {
    font-size: 16.5px;
    font-weight: 800;
    margin-bottom: 3px;
  }

  .brand-card-sub {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .brand-card-stock {
    font-size: 11.5px;
  }

  .brand-card-arrow {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .bus-models-grid-3cols {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .brand-card-premium {
    padding: 20px 18px 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-card-badge {
    top: 14px !important;
    left: 14px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .brand-card-img-box {
    height: 145px !important;
    margin: 14px 0 10px !important;
  }

  .brand-card-img-box img {
    max-height: 140px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .brand-card-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
  }

  .brand-card-sub {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--ignavo-text-muted) !important;
    -webkit-line-clamp: 2 !important;
  }

  .brand-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 14px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .brand-card-stock {
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }

  .brand-card-arrow {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }

  .bus-models-section,
  .seo-about-section,
  .contact-feedback-section {
    padding: 26px 0;
  }

  .echo-section-header {
    margin-bottom: 16px;
  }

  .products-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ignavo-prod-card {
    padding: 8px 8px 10px 8px;
  }

  .prod-img-box {
    height: 135px;
  }

  .prod-clean-title {
    font-size: 12px;
    min-height: 32px;
  }

  .prod-clean-price {
    font-size: 14.5px;
  }

  .prod-card-buy-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .bus-models-grid-3cols {
    gap: 12px !important;
  }

  .products-cards-grid {
    gap: 8px;
  }

  .ignavo-prod-card {
    padding: 6px 6px 8px 6px;
  }

  .prod-img-box {
    height: 115px;
  }

  .prod-clean-title {
    font-size: 11.5px;
    min-height: 30px;
  }

  .prod-clean-price {
    font-size: 13.5px;
  }

  .prod-card-buy-btn {
    height: 30px;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .prod-card-buy-btn svg {
    width: 13px;
    height: 13px;
  }

  .brand-card-premium {
    padding: 16px 14px 14px !important;
  }

  .brand-card-img-box {
    height: 125px !important;
  }

  .brand-card-img-box img {
    max-height: 120px !important;
  }

  .brand-card-name {
    font-size: 16.5px !important;
  }

  .brand-card-sub {
    font-size: 12px !important;
  }

  .brand-card-stock {
    font-size: 11.5px !important;
  }
}

@media (max-width: 768px) {
  .legal-page-card {
    padding: 24px 20px;
  }
  .legal-title {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .contacts-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .error-huge-num {
    font-size: 72px;
  }
  .error-bus-icon {
    width: 60px;
    height: 60px;
  }
  .error-card-container {
    padding: 36px 20px;
  }
}

@media (max-width: 992px) {
  .single-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .single-article-card {
    padding: 22px 18px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .vin-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }
  .vin-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-main-img-box {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .product-gallery-card, .product-buy-card, .product-tabs-card {
    padding: 20px;
  }
  .product-order-actions-row {
    flex-direction: column;
  }
  .qty-stepper {
    width: 100%;
    justify-content: space-between;
  }
  .btn-add-to-cart-big {
    width: 100%;
  }
  .specs-table td {
    padding: 8px 6px;
    font-size: 12.5px;
  }
}

@media (max-width: 1024px) {
  .delivery-methods-grid {
    grid-template-columns: 1fr;
  }
  .tc-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  .tc-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero-island-header-wrapper,
  body.admin-bar .inner-page-header-wrapper,
  body.admin-bar .echo-header {
    top: 46px;
  }
}

