/* =========================================================
   BINTANG TEKNIK COMPANY PROFILE
   File: assets/css/responsive.css
   Purpose: Responsive Layout
========================================================= */

/* =========================
   LARGE DESKTOP / TV
========================= */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }

  .hero {
    min-height: 980px;
  }

  .hero-title {
    font-size: clamp(72px, 6vw, 108px);
  }

  .hero-desc {
    font-size: 20px;
  }

  .hero-visual {
    min-height: 640px;
  }

  .section {
    padding: 130px 0;
  }

  .product-card {
    min-height: 340px;
  }
}

/* =========================
   LAPTOP MEDIUM
========================= */
@media (max-width: 1200px) {
  :root {
    --container: 1060px;
  }

  .hero-layout {
    grid-template-columns: 1fr 0.92fr;
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(46px, 7vw, 76px);
  }

  .hero-visual {
    min-height: 520px;
  }

  .floating-card {
    padding: 12px 14px;
  }

  .card-right {
    right: -18px;
  }

  .about-preview-layout {
    gap: 42px;
  }

  .product-grid,
  .feature-grid {
    gap: 18px;
  }

  .footer-layout {
    grid-template-columns: 1.2fr 0.75fr 0.75fr 0.95fr;
    gap: 26px;
  }
}

/* =========================
   TABLET LANDSCAPE
========================= */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 86px 0;
  }

  .section-sm {
    padding: 58px 0;
  }

  .site-header {
    inset: 14px 0 auto;
  }

  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .nav-actions .btn {
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
    padding: 150px 0 74px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-desc {
    max-width: 700px;
  }

  .hero-visual {
    min-height: 560px;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .card-top {
    left: 18px;
  }

  .card-right {
    right: 18px;
  }

  .card-bottom {
    left: 70px;
  }

  .brand-strip-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .brand-strip-title {
    max-width: 100%;
  }

  .brand-marquee {
    width: 100%;
  }

  .about-preview-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 480px;
    max-width: 640px;
  }

  .about-photo-card {
    inset: 20px 60px 20px 0;
  }

  .product-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   TABLET PORTRAIT / MOBILE NAV
========================= */
@media (max-width: 860px) {
  .navbar {
    padding: 10px 10px 10px 14px;
    border-radius: 28px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 90px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(220, 231, 237, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 70px rgba(8, 47, 73, 0.18);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    min-height: 48px;
    justify-content: center;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 18px;
  }

  .nav-actions .btn {
    display: none;
  }

  .page-hero {
    padding: 142px 0 72px;
  }

  .page-title {
    font-size: clamp(40px, 10vw, 68px);
  }

  .page-desc {
    font-size: 16px;
  }

  .section-title {
    font-size: clamp(34px, 8vw, 52px);
  }

  .section-desc {
    font-size: 16px;
  }

  .hero-title {
    font-size: clamp(44px, 10vw, 74px);
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-meta {
    gap: 10px;
  }

  .meta-item {
    font-size: 12px;
  }

  .contact-form {
    padding: 24px;
    border-radius: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 42px 28px;
    border-radius: 30px;
  }

  .cta-box::before {
    inset: 16px;
    border-radius: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================
   MOBILE LARGE
========================= */
@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(24, 183, 216, 0.12), transparent 24rem),
      var(--bg-main);
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .section-sm {
    padding: 52px 0;
  }

  .kicker {
    font-size: 11px;
    padding: 7px 12px;
  }

  .hero {
    padding: 138px 0 64px;
  }

  .hero-layout {
    gap: 42px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .btn-group {
    gap: 12px;
  }

  .btn {
    min-height: 48px;
    padding: 13px 18px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-orbit {
    inset: 20px 0;
    border-radius: 36px;
  }

  .hero-orbit::before {
    inset: 22px;
    border-radius: 28px;
  }

  .hero-device {
    width: min(84%, 390px);
    padding: 18px;
    border-radius: 28px;
  }

  .device-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .device-panel h3 {
    font-size: 18px;
  }

  .device-stats {
    gap: 10px;
  }

  .device-stat {
    padding: 12px;
  }

  .device-stat strong {
    font-size: 22px;
  }

  .floating-card {
    gap: 10px;
    max-width: 220px;
  }

  .floating-card .icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .floating-card strong {
    font-size: 13px;
  }

  .floating-card span {
    font-size: 11px;
  }

  .card-top {
    top: 42px;
    left: 8px;
  }

  .card-right {
    top: 210px;
    right: 6px;
  }

  .card-bottom {
    bottom: 42px;
    left: 26px;
  }

  .about-visual {
    min-height: 430px;
  }

  .about-photo-card {
    inset: 16px 36px 16px 0;
    border-radius: 30px;
  }

  .about-photo-card::before {
    inset: 20px;
    border-radius: 22px;
  }

  .about-badge {
    right: 0;
    bottom: 54px;
    width: 180px;
    padding: 20px;
    border-radius: 24px;
  }

  .about-badge strong {
    font-size: 34px;
  }

  .product-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .faq-layout,
  .contact-layout {
    gap: 32px;
  }

  .faq-question {
    min-height: 62px;
    padding: 18px;
  }

  .faq-answer-inner {
    padding: 0 18px 20px;
  }

  .contact-card {
    padding: 18px;
    border-radius: 22px;
  }

  .map-box {
    min-height: 300px;
    border-radius: 28px;
  }

  .info-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer {
    padding-top: 58px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* =========================
   MOBILE MEDIUM
========================= */
@media (max-width: 620px) {
  .site-header {
    inset: 10px 0 auto;
  }

  .navbar {
    width: min(100% - 20px, var(--container));
    border-radius: 24px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-menu {
    left: 10px;
    right: 10px;
    top: 78px;
  }

  .page-hero {
    padding: 124px 0 62px;
  }

  .page-title {
    letter-spacing: -0.052em;
  }

  .hero {
    padding: 126px 0 58px;
  }

  .hero-title {
    letter-spacing: -0.06em;
  }

  .hero-desc,
  .page-desc,
  .section-desc {
    line-height: 1.75;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .meta-item {
    width: fit-content;
  }

  .btn-group {
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-device {
    width: min(92%, 360px);
  }

  .device-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: relative;
    inset: auto;
    max-width: 100%;
  }

  .hero-orbit {
    inset: 0;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
  }

  .card-top,
  .card-right,
  .card-bottom {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
  }

  .shape-1,
  .shape-2 {
    display: none;
  }

  .brand-chip {
    min-width: 112px;
    height: 44px;
    font-size: 13px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .about-visual {
    min-height: 390px;
  }

  .about-photo-card {
    inset: 0 22px 0 0;
  }

  .about-badge {
    width: 158px;
    bottom: 34px;
  }

  .about-badge strong {
    font-size: 30px;
  }

  .about-badge span {
    font-size: 12px;
  }

  .card,
  .product-card {
    padding: 22px;
    border-radius: 24px;
  }

  .card-title,
  .product-title {
    font-size: 21px;
  }

  .stats-grid {
    gap: 14px;
  }

  .stat-card {
    padding: 22px;
    border-radius: 24px;
  }

  .stat-number {
    font-size: 36px;
  }

  .contact-form {
    padding: 20px;
    border-radius: 24px;
  }

  .form-control {
    border-radius: 14px;
  }

  .cta-box {
    padding: 34px 22px;
  }

  .cta-title {
    letter-spacing: -0.045em;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* =========================
   MOBILE SMALL
========================= */
@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 46px 0;
  }

  .navbar {
    gap: 12px;
    padding: 9px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 14px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 116px;
  }

  .page-hero {
    padding-top: 116px;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 0.98;
  }

  .page-title {
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-desc,
  .page-desc,
  .section-desc {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 430px;
    padding-top: 306px;
  }

  .hero-orbit {
    border-radius: 28px;
  }

  .hero-device {
    top: 38%;
    padding: 14px;
    border-radius: 24px;
  }

  .device-top {
    margin-bottom: 12px;
  }

  .device-panel {
    padding: 14px;
  }

  .device-panel p {
    font-size: 12px;
  }

  .floating-card {
    padding: 12px;
    border-radius: 18px;
  }

  .about-visual {
    min-height: 340px;
  }

  .about-photo-card {
    border-radius: 26px;
  }

  .about-photo-card::before {
    inset: 16px;
    border-radius: 18px;
  }

  .about-badge {
    width: 146px;
    padding: 16px;
    border-radius: 20px;
  }

  .about-badge strong {
    font-size: 28px;
  }

  .about-list li {
    font-size: 14px;
  }

  .product-list li {
    font-size: 13px;
  }

  .faq-question {
    font-size: 14px;
  }

  .faq-icon {
    width: 30px;
    height: 30px;
  }

  .contact-card {
    gap: 12px;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .map-box {
    min-height: 260px;
  }

  .cta-box {
    border-radius: 26px;
  }

  .cta-box::before {
    display: none;
  }

  .footer-bottom {
    margin-top: 38px;
  }
}

/* =========================
   EXTRA SMALL
========================= */
@media (max-width: 380px) {
  .brand-name {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-title {
    font-size: 38px;
  }

  .page-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 31px;
  }

  .btn {
    font-size: 13px;
  }

  .hero-visual {
    padding-top: 292px;
  }

  .hero-device {
    width: 96%;
  }

  .device-panel h3 {
    font-size: 16px;
  }

  .device-stat strong {
    font-size: 20px;
  }

  .about-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    width: 100%;
  }

  .about-visual {
    min-height: 300px;
    display: grid;
  }

  .about-photo-card {
    position: relative;
    inset: auto;
    min-height: 250px;
  }

  .footer-logo-text {
    font-size: 16px;
  }
}

/* =========================
   REDUCED MOTION SUPPORT
========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   HERO FIX PATCH
   Put this at the bottom of assets/css/responsive.css
========================================================= */

/* Desktop refinement */
@media (min-width: 1025px) {
  .hero {
    min-height: 880px;
    padding: 150px 0 80px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.88fr);
    gap: 42px;
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(54px, 5.8vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }

  .hero-desc {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-visual {
    min-height: 560px;
    max-width: 560px;
    margin-left: auto;
    overflow: visible;
  }

  .hero-orbit {
    inset: 24px 0 24px 34px;
    border-radius: 42px;
  }

  .hero-device {
    width: 390px;
    left: 56%;
    top: 55%;
  }

  .floating-card {
    max-width: 280px;
  }

  .card-top {
    top: 92px;
    left: 16px;
  }

  .card-right {
    right: -12px;
    top: 245px;
  }

  .card-bottom {
    left: 72px;
    bottom: 74px;
  }
}

/* Tablet refinement */
@media (max-width: 1024px) {
  .hero {
    padding-top: 132px;
  }

  .hero-layout {
    gap: 44px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-title {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 640px;
    min-height: 520px;
  }

  .hero-device {
    width: min(74%, 400px);
  }
}

/* Mobile hero redesign */
@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding: 112px 0 56px;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(42px, 13vw, 62px);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .hero-desc {
    margin-top: 20px;
    font-size: 15.5px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions.btn-group {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 10px;
  }

  .meta-item {
    width: fit-content;
    max-width: 100%;
  }

  .hero-visual {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: auto;
    max-width: 100%;
    padding-top: 0;
    margin: 0;
    overflow: hidden;
  }

  .hero-orbit {
    position: absolute;
    inset: 0;
    min-height: 360px;
    border-radius: 30px;
  }

  .hero-device {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    padding: 16px;
    border-radius: 26px;
    margin-top: 34px;
    z-index: 4;
  }

  .device-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .device-panel h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .device-panel p {
    font-size: 13px;
    line-height: 1.65;
  }

  .device-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .device-stat {
    padding: 12px;
    border-radius: 16px;
  }

  .device-stat strong {
    font-size: 22px;
  }

  .device-stat span {
    font-size: 11px;
  }

  .floating-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    z-index: 5;
    padding: 13px;
    border-radius: 18px;
    transform: none !important;
  }

  .floating-card .icon {
    width: 40px;
    height: 40px;
  }

  .floating-card strong {
    font-size: 13px;
  }

  .floating-card span {
    font-size: 11px;
  }

  .card-top {
    order: 2;
  }

  .card-right {
    order: 3;
  }

  .card-bottom {
    order: 4;
  }

  .hero-device {
    order: 1;
  }

  .shape-1,
  .shape-2,
  .line-decor {
    display: none;
  }
}

/* Small phone tightening */
@media (max-width: 420px) {
  .hero {
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(38px, 12.5vw, 52px);
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-device {
    margin-top: 24px;
  }

  .device-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ABOUT PAGE RESPONSIVE
========================================================= */
@media (max-width: 1024px) {

  .story-layout,
  .capability-layout {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 540px;
    max-width: 700px;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .sector-grid,
  .capability-cards {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 460px;
  }

  .story-photo-card {
    inset: 0 22px 24px 0;
    border-radius: 30px;
  }

  .story-photo-card::before {
    inset: 18px;
    border-radius: 22px;
  }

  .story-badge {
    width: 190px;
    padding: 20px;
    right: 0;
    bottom: 30px;
  }

  .story-badge strong {
    font-size: 42px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .story-visual {
    min-height: 380px;
  }

  .story-badge {
    position: relative;
    width: 100%;
    bottom: auto;
    right: auto;
    margin-top: 16px;
  }

  .story-photo-card {
    position: relative;
    inset: auto;
    min-height: 290px;
  }

  .story-point {
    grid-template-columns: 1fr;
  }

  .story-point-icon {
    width: 52px;
    height: 52px;
  }

  .milestone-card,
  .mini-stat-card,
  .value-panel {
    padding: 22px;
  }
}

/* =========================================================
   PRODUCT CATALOG RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .catalog-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .catalog-filter {
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .catalog-card {
    min-height: 250px;
    padding: 20px;
    border-radius: 24px;
  }

  .catalog-logo {
    height: 76px;
  }

  .catalog-modal-panel {
    padding: 24px;
    border-radius: 26px;
  }

  .catalog-modal-header {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 42px;
  }

  .catalog-modal-logo {
    width: 104px;
    height: 80px;
  }
}

@media (max-width: 540px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-filter-btn {
    width: 100%;
  }

  .catalog-modal {
    padding: 12px;
  }

  .catalog-modal-panel {
    max-height: 90vh;
    padding: 20px;
  }

  .catalog-modal-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   FAQ PAGE RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .faq-help-grid {
    grid-template-columns: 1fr;
  }

  .faq-flow-layout {
    grid-template-columns: 1fr;
  }

  .faq-sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .order-step {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .order-step span {
    width: 52px;
    height: 52px;
  }

  .faq-contact-box {
    padding: 22px;
  }
}

/* =========================================================
   CONTACT PAGE RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .contact-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-section-layout {
    grid-template-columns: 1fr;
  }

  .map-embed-card {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .map-embed-card {
    min-height: 340px;
    border-radius: 26px;
  }

  .map-info-box {
    padding: 22px;
  }
}

/* =========================================================
   HOME HERO MOBILE PHOTO FIX
   Fix hero photo ketimpa floating cards
========================================================= */
@media (max-width: 620px) {
  .hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    max-width: 100%;
    padding-top: 0;
    margin-top: 10px;
    overflow: visible;
  }

  .hero-photo-card {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: auto;
    min-height: 240px;
    aspect-ratio: 16 / 11;
    border-radius: 26px;
    overflow: hidden;
    z-index: 1;
  }

  .hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-photo-card::after {
    z-index: 2;
  }

  .hero-visual .floating-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    z-index: 3;
  }

  .hero-visual .card-top {
    order: 2;
  }

  .hero-visual .card-right {
    order: 3;
  }

  .hero-visual .card-bottom {
    order: 4;
  }

  .hero-visual .parallax-layer {
    transform: none !important;
  }

  .hero-shape,
  .line-decor {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-photo-card {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .hero-visual .floating-card {
    padding: 12px;
    border-radius: 18px;
  }
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .catalog-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .catalog-filter {
    justify-content: flex-start;
    max-width: 100%;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-modal-panel {
    width: min(100%, 900px);
  }

  .product-modal-hero {
    grid-template-columns: 140px 1fr;
  }

  .product-modal-logo {
    min-height: 118px;
  }
}

@media (max-width: 768px) {
  .catalog-card {
    min-height: 300px;
    padding: 22px;
    border-radius: 26px;
  }

  .catalog-logo {
    height: 82px;
  }

  .catalog-logo img {
    max-height: 52px;
  }

  .product-catalog-modal {
    padding: 12px;
    align-items: end;
  }

  .product-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 22px;
    border-radius: 28px 28px 0 0;
  }

  .product-modal-close {
    margin: -4px -4px 0 10px;
  }

  .product-modal-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 46px 22px 0;
  }

  .product-modal-logo {
    width: 150px;
    min-height: 108px;
  }

  .product-modal-heading h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .product-modal-section {
    padding: 20px;
    border-radius: 24px;
  }

  .product-modal-section-head {
    display: grid;
    gap: 8px;
  }

  .modal-product-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-modal-actions {
    bottom: -22px;
    margin: 24px -22px -22px;
    padding: 16px 22px 18px;
  }
}

@media (max-width: 560px) {
  .catalog-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-filter-btn {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    min-height: auto;
  }

  .catalog-card::after {
    opacity: 1;
    transform: none;
  }

  .catalog-meta {
    padding-bottom: 28px;
  }

  .product-modal-panel {
    padding: 18px;
  }

  .product-modal-hero {
    padding-right: 42px;
  }

  .product-modal-logo {
    width: 132px;
    min-height: 96px;
    border-radius: 22px;
  }

  .product-modal-section {
    padding: 16px;
  }

  .modal-product-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-product-chip {
    width: 100%;
    text-align: left;
  }

  .modal-product-gallery {
    grid-template-columns: 1fr;
  }

  .product-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 22px -18px -18px;
    padding: 14px 18px 18px;
  }

  .product-modal-actions .btn {
    width: 100%;
  }
}