﻿@media (max-width: 1180px) {
    .header-inner {
        min-height: 84px;
    }

    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
        width: min(88%, 390px);
        height: 100vh;
        padding: 110px 24px 32px;
        overflow-y: auto;
        background: var(--white);
        box-shadow: -20px 0 60px rgba(0, 38, 84, 0.22);
        transform: translateX(105%);
        transition: transform 0.3s ease;
    }

        .main-navigation.is-open {
            transform: translateX(0);
        }

        .main-navigation > ul {
            display: grid;
            align-items: stretch;
            gap: 7px;
        }

        .main-navigation a,
        .dropdown-button {
            width: 100%;
            min-height: 50px;
            justify-content: space-between;
            padding: 12px 14px;
            font-size: 0.97rem;
        }

    .has-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease, border 0.3s ease;
    }

        .dropdown-menu::before {
            display: none;
        }

    .has-dropdown.is-open .dropdown-menu {
        max-height: 180px;
        padding: 7px;
        border: 1px solid var(--border);
    }

    .dropdown-menu a {
        min-height: 43px;
        background: var(--surface-soft);
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 38px;
    }

    .hero-content {
        padding-left: 0;
    }

    .technology-screen {
        width: 320px;
        height: 265px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

        .topbar-inner > span {
            display: none;
        }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 76px;
        padding-bottom: 72px;
    }

    .hero-content {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-badge {
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .notice-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .topbar-links {
        width: 100%;
        justify-content: center;
        gap: 14px;
    }

        .topbar-links a {
            font-size: 0.76rem;
        }

            .topbar-links a + a::before {
                left: -7px;
            }

    .header-inner {
        min-height: 76px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

        .brand-logo img {
            width: 50px;
            height: 50px;
        }

    .brand-text strong {
        font-size: 0.93rem;
    }

    .brand-text span {
        max-width: 205px;
        font-size: 0.72rem;
    }

    .mobile-menu-button {
        width: 44px;
        height: 42px;
    }

    .hero-inner {
        padding-top: 58px;
        padding-bottom: 56px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-actions {
        display: grid;
    }

        .hero-actions .button {
            width: 100%;
        }

    .hero-features {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .hero-feature {
        justify-content: center;
    }

    .hero-visual {
        min-height: 350px;
    }

    .technology-illustration {
        height: 350px;
    }

    .technology-screen {
        width: min(94%, 315px);
        height: 250px;
    }

    .floating-card {
        min-width: 135px;
        padding: 10px 12px;
    }

    .floating-card-security {
        top: 5px;
        right: 0;
    }

    .floating-card-network {
        bottom: 5px;
        left: 0;
    }

    .technology-node,
    .technology-line {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .guide-list {
        grid-template-columns: 1fr;
    }

    .notice-content {
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 50px;
        padding-bottom: 44px;
    }

    .footer-bottom {
        min-height: auto;
        padding: 18px 0;
    }

    .page-header {
        padding: 58px 0;
    }

    .content-section {
        padding: 54px 0 70px;
    }
}

@media (max-width: 430px) {
    .brand-text span {
        display: none;
    }

    .topbar-links a:last-child {
        display: none;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-badge {
        font-size: 0.73rem;
    }

    .section-label::before,
    .section-label::after {
        width: 16px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .technology-illustration {
        height: 320px;
    }

    .technology-screen {
        width: 280px;
        height: 225px;
    }

    .screen-content {
        padding-top: 15px;
    }

    .wifi-animation {
        margin-bottom: -3px;
        transform: scale(0.82);
    }

    .floating-card {
        transform: scale(0.88);
    }

    .floating-card-security {
        right: -10px;
    }

    .floating-card-network {
        left: -12px;
    }
}
