@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .logo-image,
  .logo img {
    height: 46px;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .logo-image,
  .logo img {
    height: 42px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .mobile-menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-cards {
    padding: 48px 16px;
  }

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

  .card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
  }
  .card.in:hover,
  .card.in:active,
  .card.in.touch-active,
  .card:hover,
  .card:active,
  .card.touch-active {
    box-shadow: 0 18px 40px -18px rgba(13, 18, 64, 0.28);
    transform: translateY(-12px);
  }
  .card:hover .icon,
  .card:active .icon,
  .card.touch-active .icon {
    transform: rotate(-12deg) scale(1.15);
  }
  .card:hover .go,
  .card:active .go,
  .card.touch-active .go {
    box-shadow: 0 8px 16px -6px currentColor;
    transform: translateX(6px) scale(1.12);
  }
}

@media (max-width: 960px) {
  .logo-image,
  .logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
  }

  .site-header .nav,
  .site-header .bar > .btn {
    display: none;
  }

  .site-header .burger {
    display: block;
  }

  .site-header .mobile-menu {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(13, 18, 64, 0.4);
    display: block;
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px;
    position: absolute;
    right: 0;
    top: 100%;
    transition: max-height 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s, visibility 0.5s, padding 0.4s;
    visibility: hidden;
  }

  .site-header .mobile-menu.open {
    max-height: calc(100vh - 76px);
    opacity: 1;
    overflow-y: auto;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-top: 8px;
    visibility: visible;
  }

  .site-header .mobile-menu a.link {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    font-size: 1.05rem;
    font-weight: 700;
    justify-content: space-between;
    opacity: 0;
    padding: 16px 4px;
    transform: translateX(-14px);
    transition: opacity 0.4s, transform 0.4s, color 0.2s;
  }

  .site-header .mobile-menu a.link::after {
    color: var(--red);
    content: "→";
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.25s;
  }

  .site-header .mobile-menu a.link:hover {
    color: var(--red);
  }

  .site-header .mobile-menu a.link:hover::after {
    opacity: 1;
    transform: none;
  }

  .site-header .mobile-menu.open a.link {
    opacity: 1;
    transform: none;
  }

  .site-header .mobile-menu.open a.link:nth-child(1) { transition-delay: 0.05s; }
  .site-header .mobile-menu.open a.link:nth-child(2) { transition-delay: 0.1s; }
  .site-header .mobile-menu.open a.link:nth-child(3) { transition-delay: 0.15s; }
  .site-header .mobile-menu.open a.link:nth-child(4) { transition-delay: 0.2s; }
  .site-header .mobile-menu.open a.link:nth-child(5) { transition-delay: 0.25s; }
  .site-header .mobile-menu.open a.link:nth-child(6) { transition-delay: 0.3s; }
  .site-header .mobile-menu.open a.link:nth-child(7) { transition-delay: 0.35s; }

  .site-header .mobile-menu .btn {
    justify-content: center;
    margin-top: 22px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .review { flex-basis: calc((100% - 18px) / 2); }
  .fg { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .reviews { padding: 48px 0; }
  .reviews .wrap { padding: 0 16px; }
  .review { flex-basis: 100%; }
  .arrow { height: 38px; width: 38px; }
  .slider { gap: 8px; }
  .news { padding: 26px 20px; border-radius: 24px; gap: 18px; }
  .news .mail { width: 54px; height: 54px; font-size: 1.4rem; }
  .news .tx { min-width: 0; }
  .news .tx h3 { font-size: 1.35rem; }
  .news .sub { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .sub input { font-size: 0.9rem; padding: 0 12px; }
  .sub button { padding: 12px 18px; font-size: 0.88rem; white-space: nowrap; }
  .news-sec { padding-top: 48px; }
  .news-sec > .wrap, footer > .wrap { padding-left: 16px !important; padding-right: 16px !important; }

  /* Mobile Footer */
  footer {
    border-top: 1px solid var(--line);
    margin-top: 40px !important;
    padding: 44px 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    position: relative;
    overflow: clip;
  }
  .fg {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px 16px !important;
    font-size: 0.84rem;
  }
  .fg > div:nth-child(2) {
    padding-left: 16px;
  }
  .fg h4 {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 10px;
  }
  .fg a {
    display: block !important;
    margin-bottom: 8px;
    word-break: break-word;
    font-size: 0.84rem;
    line-height: 1.4;
  }
  .fg .soc {
    margin-top: 10px;
  }
  .fg .soc a {
    display: grid !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
  }
  .fg p {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 8px 0 0;
  }
  .fg .footer-brand,
  .footer-brand {
    width: 180px;
    max-width: 100%;
  }
  .fg .footer-brand img,
  .footer-brand img,
  .fg .logo-image {
    max-width: 180px;
    width: 100%;
    height: auto;
  }
  .copy {
    border-top: 1px solid var(--line) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin-top: 28px !important;
    padding-top: 18px !important;
  }
  .copy span:last-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .lf {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .refill-cta {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    min-height: 450px;
    padding: 70px 42px;
  }

  .refill-cta__title {
    font-size: clamp(2.35rem, 5vw, 3.7rem);
  }

  .refill-cta__visual {
    min-height: 340px;
  }

  .refill-cta__device-placeholder {
    height: 300px;
    transform: rotate(6deg) scale(0.9);
    width: 164px;
  }

  .refill-cta__shape--circle {
    height: 220px;
    width: 220px;
  }
}

@media (max-width: 680px) {
  .refill-cta {
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 48px 24px;
  }

  .refill-cta__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .refill-cta__description {
    margin: 24px 0 28px;
  }

  .refill-cta__button {
    min-height: 56px;
  }

  .refill-cta__visual {
    min-height: 340px;
    margin-top: 12px;
  }

  .refill-cta__device-placeholder {
    height: 270px;
    transform: rotate(5deg) scale(0.88);
    width: 150px;
  }

  .refill-cta__shape--circle {
    height: 205px;
    right: 23%;
    top: 10%;
    width: 205px;
  }

  .refill-cta__shape--blob {
    bottom: 0;
    height: 80px;
    right: -8%;
    width: 170px;
  }

  .refill-cta__leaf--one {
    left: 7%;
  }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { margin: 20px auto 0; max-width: 560px; width: 100%; }
  .about-wrap { gap: 30px; grid-template-columns: 1fr; }
  .photo-side { margin: 0 auto; max-width: 520px; width: 100%; }
  .mobile-app__inner { grid-template-columns: 1fr; }
  .mobile-sec .app { grid-template-columns: 1fr; padding: 40px 28px; }
  .mobile-sec .phone-side { min-height: 400px; }
  #mobile .app { grid-template-columns: 1fr; padding: 34px 24px; }
}

@media (max-width: 600px) {
  /* Shared About/Home ribbon on mobile */
  .band {
    margin: 0 -8px;
    padding: 13px 0;
    transform: rotate(-1deg);
  }
  .mq { gap: 26px; font-size: 0.95rem; }

  .hero { padding: 36px 0 64px; }
  .hero .wrap { padding-left: 16px; padding-right: 16px; }
  .about { padding: 48px 0; }
  .about-wrap { padding-left: 16px; padding-right: 16px; }
  .stats { gap: 22px 10px; grid-template-columns: repeat(2, 1fr); }
  .mobile-app { padding: 48px 16px; }
  .mobile-app__inner { border-radius: 28px; padding: 40px 24px; }
  .mobile-sec { padding: 48px 0; }
  .mobile-wrap { padding: 0 16px; }
  .mobile-sec .app { border-radius: 32px; padding: 34px 22px; }
  .mobile-sec .store { flex: 1; min-width: 150px; }
  #mobile { padding: 48px 0; }
  #mobile .wrap { padding: 0 16px; }
  #mobile .app { border-radius: 28px; padding: 32px 18px; gap: 24px; }
  #mobile .phoneWrap { min-height: 320px; }
  #mobile .phone { height: 320px; width: 190px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.8rem); line-height: 1.08; }
  .badge { gap: 10px; padding: 10px 14px; right: 2%; }
  .cta { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .cta .btn { width: 100%; justify-content: center; }

  /* Home Page Only: Hero CTA Buttons adjusted perfectly for mobile screen (Side-by-Side 2 buttons) */
  .home-page .hero .cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 22px 0 26px;
    padding: 0;
    box-sizing: border-box;
  }
  .home-page .hero .cta .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 12px 10px;
    font-size: clamp(0.78rem, 3.2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 99px;
    box-sizing: border-box;
    gap: 6px;
  }
  .home-page .hero .cta .btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
  }
  .home-page .hero .cta .btn.line {
    box-shadow: none;
    border-width: 1.5px;
  }

  /* Home Page Only: Hero Trust Badges in ONE single line on mobile */
  .home-page .trust {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-page .trust::-webkit-scrollbar {
    display: none;
  }

  .home-page .trust div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-shrink: 0;
  }

  .home-page .trust div svg {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
    flex-shrink: 0;
  }

  .home-page .trust div span {
    font-size: clamp(0.72rem, 2.35vw, 0.85rem);
    line-height: 1.25;
    color: #5b6080;
    white-space: nowrap;
  }

  /* Home Page Only: Long Vertical Cards in Smooth Horizontal Scroll Track */
  .home-page .service-cards {
    padding: 48px 0 54px;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .home-page .service-cards .title {
    font-size: clamp(1.75rem, 6.8vw, 2.2rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 22px;
    padding: 0 20px;
    text-align: left;
  }

  .home-page .cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 16px 20px 28px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .home-page .cards::-webkit-scrollbar {
    display: none !important;
  }

  /* Long Vertical Box Styling */
  .home-page .cards .card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 0 0 215px !important;
    width: 215px !important;
    min-height: 400px !important;
    border-radius: 30px !important;
    padding: 32px 20px 26px !important;
    color: #1a1d45 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: pan-x manipulation !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s !important;
  }

  .home-page .cards .card .icon {
    display: block !important;
    filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.15)) !important;
    height: 68px !important;
    width: 68px !important;
    margin-bottom: 20px !important;
    transition: transform 0.4s !important;
  }

  .home-page .cards .card h3 {
    color: #0d1240 !important;
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.18 !important;
    margin: 0 0 10px !important;
  }

  .home-page .cards .card p {
    color: #4d5175 !important;
    flex: 1 !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  .home-page .cards .card .go {
    align-items: center !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: grid !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    height: 40px !important;
    width: 40px !important;
    justify-items: center !important;
    margin-top: 20px !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
  }

  /* Exact same hover/active/touch animation as desktop */
  .home-page .card:hover,
  .home-page .card:active,
  .home-page .card.touch-active,
  .home-page .card.in:hover,
  .home-page .card.in:active,
  .home-page .card.in.touch-active {
    box-shadow: 0 18px 40px -18px rgba(13, 18, 64, 0.28) !important;
    transform: translateY(-12px) !important;
  }

  .home-page .card:hover .icon,
  .home-page .card:active .icon,
  .home-page .card.touch-active .icon {
    transform: rotate(-12deg) scale(1.15) !important;
  }

  .home-page .card:hover .go,
  .home-page .card:active .go,
  .home-page .card.touch-active .go {
    box-shadow: 0 8px 16px -6px currentColor !important;
    transform: translateX(6px) scale(1.12) !important;
  }

  /* Home Page Only: About section stats in 1 single line */
  .home-page .about {
    padding: 44px 0;
  }

  .home-page .about-wrap {
    gap: 24px;
  }

  .home-page .about .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 24px 0 28px;
    text-align: center;
    align-items: start;
    padding: 14px 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 228, 218, 0.95);
    border-radius: 18px;
    box-shadow: 0 4px 16px -8px rgba(13, 18, 64, 0.08);
  }

  .home-page .about .stat {
    padding: 0 2px;
    font-size: clamp(0.66rem, 2.3vw, 0.74rem);
    line-height: 1.25;
    color: #5b6080;
  }

  .home-page .about .stat:not(:last-child) {
    border-right: 1px solid rgba(236, 228, 218, 0.95);
  }

  .home-page .about .stat b {
    font: 800 clamp(0.96rem, 3.6vw, 1.15rem) "Bricolage Grotesque", sans-serif;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .mq { font-size: 0.88rem; gap: 18px; }
  .home-page .about .stats {
    padding: 12px 4px;
    gap: 4px;
  }
  .home-page .about .stat b {
    font-size: 0.9rem;
  }
  .home-page .about .stat {
    font-size: 0.64rem;
  }
  .home-page .trust {
    gap: 6px;
  }
  .home-page .trust div {
    gap: 5px;
  }
  .home-page .trust div svg {
    width: 22px;
    height: 22px;
  }
  .home-page .trust div span {
    font-size: 0.68rem;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .band .mq { animation: none !important; transform: none !important; }
  .hero h1 span, .blob, .shop, .pill, .badge,
  .mobile-sec *, .mobile-sec *::before, .mobile-sec *::after { animation: none; transition: none; }
  .hero h1 span { opacity: 1; transform: none; }
  .mobile-sec .rv, .mobile-sec .row { opacity: 1; transform: none; }
  #mobile .rv, #mobile .phone .row { opacity: 1; transform: none; }
}
