/* Responsive Design - Media Queries */

/* Промежуточные экраны - выравнивание слева, пока не поместятся в строку */
@media (max-width: 768px) {
    .schedule-legend {
        justify-content: flex-start;
    }
}

/* Когда все элементы помещаются в строку - центрируем */
@media (min-width: 769px) {
    .schedule-legend {
        justify-content: center;
    } 
}

@media (min-width: 769px) and (max-width: 1120px) {
    .navbar-menu {
        gap: 1rem;
    }

    .navbar-menu a {
        font-size: 0.9rem;
    }

    .navbar-menu .nav-cta-item a {
        padding: 0.42rem 0.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-scroll-offset: calc(88px + var(--safe-area-top));
    }

    .schedule-actions {
        margin-top: 2.5rem;
        gap: 1.75rem;
    }
    .schedule-hint {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .class-option {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    .group-pricing-options {
        grid-template-columns: 1fr;
    }

    .group-info-list div {
        grid-template-columns: 1fr;
        gap: 0.05rem;
    }
}

/* Tablets and below */
@media (max-width: 768px) {
    /* Navigation - Reduced height */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand h2 {
        font-size: 1.3rem;
    }

    .brand-logo {
        min-width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .navbar-brand .brand-name {
        font-size: 0.82rem;
    }

    .navbar-toggle {
        transform: scale(1);
        margin-right: 10px;
    }

    .navbar-toggle span {
        width: 28px;
        height: 3px;
    }

    .navbar-menu {
        position: fixed;
        top: calc(60px + var(--safe-area-top));
        left: 0;
        right: 0;
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: flex;
        border-bottom: none;
    }

    .navbar-menu.active {
        max-height: calc(100svh - 60px - var(--safe-area-top));
    }

    .navbar-menu li {
        width: 100%;
        text-align: left;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 52px;
        padding: 0 1rem;
        font-size: 0.95rem;
        line-height: 1.25;
        color: white;
        transition: color 0.3s ease;
    }

    .navbar-menu .nav-cta-item {
        padding: 0;
    }

    .navbar-menu .nav-cta-item a {
        color: #e74c3c;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.25;
    }
    
    .navbar-menu a:hover {
        color: #e74c3c;
    }

    .navbar-menu .nav-cta-item a:hover {
        color: #ff6b5f;
        background: transparent;
    }
    
    .navbar-menu a::after {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(70px + var(--safe-area-top)) 0 calc(40px + var(--safe-area-bottom));
    }

    .hero-background {
        background-position: center 20% !important;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "media"
            "stats";
        gap: 1.4rem;
    }

    .hero-content {
        padding: 2rem 0 1.15rem;
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.08;
        margin-bottom: 0.7rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 10.6em;
    }

    .hero-intro {
        font-size: 0.42em;
        margin-bottom: 0.2rem;
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 0.1rem;
        margin-bottom: 1.15rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.45;
        max-width: 28ch;
        color: rgba(255, 255, 255, 0.88);
    }

    .hero-trust {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        max-width: none;
        margin-bottom: 1.2rem;
    }

    .hero-trust span {
        min-width: 0;
        min-height: 36px;
        width: auto;
        padding: 0.42rem 0.62rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .hero-trust .hero-trust-hours {
        display: none;
    }

    .hero-trust span:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 54px;
        padding: 12px 18px;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        border-width: 1px;
        border-radius: 8px;
    }

    .hero-buttons .btn-primary {
        box-shadow: 0 14px 34px rgba(231, 76, 60, 0.24);
    }

    .hero-buttons .btn i {
        flex: 0 0 auto;
    }

    .hero-buttons .btn-secondary {
        min-height: 48px;
        background: rgba(255, 255, 255, 0.055);
        border-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.88);
        font-size: 14px;
    }

    .hero-media {
        justify-self: center;
        width: 100%;
        max-width: 400px;
        aspect-ratio: 4 / 5;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
        margin-top: 0.6rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
        text-align: center;
        min-width: 0;
        border-right: 0;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* About Section */
    .about {
        padding: 4rem 0 3rem;
    }

    .about .section-header {
        margin-bottom: 2rem;
    }

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

    .about .section-subtitle {
        font-size: 0.95rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        height: 400px;
    }

    .about-info h3 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 1rem;
        border: 2px solid #f39c12;
        border-radius: 10px;
        background: rgba(243, 156, 18, 0.05);
        margin-bottom: 2rem;
    }

    .achievement-item {
        padding: 1rem;
        /* margin-bottom: 1rem; */
    }

    .achievement-item h4 {
        margin-bottom: 0.5rem;
    }

    .achievement-item p {
        line-height: 1.6;
    }

    .achievement-item i {
        font-size: 1.5rem;
    }

    /* Services Section */
    .services {
        padding: 1.5rem 0 3rem;
        scroll-margin-top: var(--header-scroll-offset);
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .services-grid,
    .services-grid-centered,
    .services-grid-four {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 0.75rem;
    }

    .service-card {
        padding: 1.25rem;
        margin-bottom: 0;
        border-color: rgba(44, 62, 80, 0.14);
        box-shadow: 0 14px 32px rgba(26, 39, 55, 0.09);
    }

    .service-icon {
        width: 54px;
        height: 54px;
    }

    .service-icon span {
        font-size: 0.95rem;
    }

    .service-card h3 {
        font-size: 1.28rem;
        margin-bottom: 0.55rem;
    }

    .service-card p {
        min-height: 0;
        margin-bottom: 1.15rem;
        line-height: 1.6;
    }

    .service-features {
        margin-bottom: 1.35rem;
    }

    .pricing-section {
        position: relative;
        margin: 2.75rem -20px 0;
        scroll-margin-top: var(--header-scroll-offset);
        padding: 1.35rem 20px 0;
        background: #f7f9fb;
        border: 0;
        border-top: 1px solid #e2e7ee;
        border-radius: 0;
        box-shadow: none;
    }

    .pricing-title {
        margin-top: 0;
        margin-bottom: 0.35rem;
        font-size: 1.45rem;
        text-align: center;
    }

    .pricing-block-title {
        margin-bottom: 0.9rem;
        font-size: 0.88rem;
        text-align: center;
    }

    .pricing-overview {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 0.95rem;
        padding-bottom: 0.8rem;
    }

    .pricing-overview + .pricing-block-title {
        margin-top: 1.6rem;
    }

    .pricing-choice {
        position: relative;
        overflow: hidden;
        padding: 0.9rem 1rem 0.95rem;
        border-color: rgba(44, 62, 80, 0.1);
        box-shadow: 0 8px 20px rgba(44, 62, 80, 0.07);
        text-align: center;
    }

    .pricing-choice-content {
        gap: 0.35rem;
    }

    .pricing-choice-icon {
        width: 34px;
        height: 34px;
        margin: 0 auto 0.55rem;
        font-size: 0.95rem;
    }

    .pricing-choice h4 {
        margin-bottom: 0;
        font-size: 1.02rem;
    }

    .pricing-choice-text {
        margin-bottom: 0;
        font-size: 0.84rem;
    }

    .pricing-choice-price strong {
        font-size: 1.04rem;
    }

    .pricing-choice-price {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.6rem;
        margin-bottom: 0;
        padding: 0.58rem 0.72rem;
        background: rgba(247, 249, 251, 0.76);
        border: 1px solid rgba(44, 62, 80, 0.08);
        border-radius: 8px;
        text-align: left;
    }

    .pricing-choice-price span {
        margin-top: 0;
        text-align: right;
        white-space: nowrap;
    }

    .pricing-table {
        display: none;
    }

    .group-pricing {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.15rem;
        margin-top: 1.25rem;
        margin-bottom: 0.9rem;
        box-shadow: 0 10px 26px rgba(44, 62, 80, 0.1);
    }

    .group-pricing-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid #edf0f4;
    }

    .group-pricing-title i {
        width: 30px;
        height: 30px;
    }

    .group-pricing-title h3 {
        font-size: 1rem;
    }

    .group-pricing-body {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .group-info-list {
        grid-template-columns: 1fr;
    }

    .group-info-list div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .group-pricing-options {
        gap: 0.55rem;
        padding-left: 0;
        border-left: 0;
    }

    .group-pricing-options div {
        padding: 0.65rem;
    }

    .group-pricing-options span {
        font-size: 0.78rem;
    }

    .group-pricing-options strong {
        font-size: 0.84rem;
    }

    .price-guide {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .price-group {
        padding: 1rem;
    }

    .price-group-header {
        gap: 0.65rem;
        margin-bottom: 0.8rem;
    }

    .price-group-header i {
        width: 30px;
        height: 30px;
    }

    .price-group-header h3 {
        font-size: 1rem;
    }

    .price-group-header p {
        font-size: 0.82rem;
    }

    .price-row {
        grid-template-columns: minmax(92px, 1fr) repeat(2, minmax(72px, 0.85fr));
        gap: 0;
        padding: 0;
        font-size: 0.82rem;
    }

    .price-row > span,
    .price-row > strong {
        min-width: 0;
        padding: 0.68rem 0.55rem;
    }

    .price-row > :not(:first-child) {
        border-left: 1px solid #edf0f4;
        text-align: center;
    }

    .price-row-head {
        font-size: 0.74rem;
        font-weight: 400;
        line-height: 1.25;
    }

    .price-row strong {
        color: #2c3e50;
        font-size: 0.84rem;
    }

    .gym-fees {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 1rem;
        background: #ffffff;
        box-shadow: none;
    }

    .gym-fees-title {
        max-width: none;
        align-items: flex-start;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid #edf0f4;
        font-size: 1.08rem;
        font-weight: 700;
    }

    .gym-fees-title i {
        width: 30px;
        height: 30px;
    }

    .gym-fee-list {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gym-fee-list > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.9rem;
        align-items: center;
        padding: 0.85rem;
        background: #f8fafc;
        border: 1px solid #edf0f4;
        border-radius: 10px;
    }

    .gym-fee-list dt {
        padding: 0;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .gym-fee-list dd {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: end;
        gap: 0.12rem;
        padding: 0;
        text-align: right;
    }

    .gym-fee-list dd span {
        display: inline;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: #46515d;
        line-height: 1.45;
    }

    .gym-fee-list strong {
        display: inline;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .pricing-title-secondary,
    .price-guide,
    .price-group,
    .gym-fee-card,
    .price-row {
        margin-top: 0;
    }

    /* Services Note */
    .services-note {
        margin: 1.2rem 0 0;
        padding: 0;
    }

    .services-note p {
        font-size: 0.82rem;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
    }

    .services-note i {
        font-size: 0.9rem;
        margin-top: 2px;
    }

    .service-features li {
        margin-bottom: 1rem;
    }

    /* Bot Section */
    .bot-section {
        padding: 4rem 0 4.8rem;
    }

    .bot-features-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-bottom: 0;
    }

    .bot-feature {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0.12rem;
        align-items: center;
        min-height: 0;
        padding: 0.78rem 0.85rem;
        border-radius: 8px;
    }

    .bot-feature-icon {
        grid-row: 1 / span 2;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 8px;
        margin: 0;
    }

    .bot-feature h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.9rem;
        line-height: 1.18;
        min-height: 0;
        margin: 0;
    }

    .bot-feature p {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.76rem;
        line-height: 1.4;
        margin: 0;
    }

    .bot-cta {
        display: none;
    }

    .bot-stats {
        flex-direction: row;
        gap: 1rem;
        padding: 1.6rem 0 0;
    }

    .bot-stat {
        flex: 1;
        min-width: 80px;
    }

    .bot-stat-value {
        font-size: 1.18rem;
    }

    .bot-stat-label {
        font-size: 0.72rem;
    }

    .bot-cta {
        margin: 2.4rem 0 0 0;
        padding-top: 0;
    }

    .bot-action {
        min-width: 0;
    }

    .btn-large {
        font-size: 1rem;
        padding: 0.9rem 1.8rem;
        width: 100%;
    }

    .service-price {
        margin-bottom: 1.5rem;
    }

    .price {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Schedule Section */
    .schedule {
        padding: 4rem 0;
    }

    /* Show short day names on mobile */
    .day-full {
        display: none;
    }

    .day-short {
        display: inline;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 35px repeat(5, minmax(62px, 1fr));
        font-size: 0.7rem;
    }

    .schedule-header > div {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .time-cell {
        padding: 1rem 0.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }

    .time-period {
        font-size: 0.7rem;
        font-weight: 600;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: -1px;
        line-height: 1;
    }

    .class-cell {
        padding: 0.3rem;
    }

    .class-options {
        gap: 3px;
        grid-template-columns: 1fr 1fr;
    }

    .class-option {
        min-width: 28px;
        height: 24px;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .schedule-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem 0.3rem;
        min-width: 50px;
    }

    .class-option {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .schedule-legend {
        font-size: 0.75rem;
        gap: 0.4rem;
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        margin: 0;
        flex: 1;
    }

    .legend-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 8px;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    .legend-item span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Combine legend and button in one row on mobile */
    .schedule-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    
    .schedule-actions .btn {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 4rem 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .author-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .author-position {
        margin-bottom: 1rem;
    }

    .testimonial-rating {
        margin-top: 1rem;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
    }

    .testimonials-controls {
        gap: 1rem;
    }

    /* Contact Section */
    .contact {
        padding: 4rem 0;
    }

    .contact-info h3 {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 0;
        height: 100%;
        margin-bottom: 0;
        padding: 1rem 0.75rem;
    }

    .contact-item > div {
        width: 100%;
        min-width: 0;
    }

    .contact-item i {
        margin-top: 0;
        margin-bottom: 0.45rem;
    }

    .contact-item h4 {
        margin-bottom: 0.45rem;
        margin-top: 0;
        font-size: 0.95rem;
    }

    .contact-item p {
        font-size: 0.82rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .contact-item .location-links {
        display: block;
        text-align: center;
    }

    .contact-item .location-links a {
        display: inline;
    }

    .social-links {
        display: none;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
        gap: 0.25rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.9rem;
        font-size: 16px; /* Prevent zoom on iOS */
        margin-top: 0;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .btn-primary[type="submit"] {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        margin-top: 1rem;
    }

    .form-quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .form-quick-links a {
        min-height: 44px;
        padding: 0.55rem 0.35rem;
        gap: 0.35rem;
        font-size: 0.82rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-links {
        display: none;
    }

    .footer-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-info p {
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    /* General */
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .pricing-section {
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .hero-title {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .hero-intro {
        font-size: 0.46em;
        margin-bottom: 0.15rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-trust {
        gap: 0.45rem;
        margin-bottom: 1.1rem;
    }

    .hero-trust span {
        padding: 0.4rem 0.56rem;
        font-size: 0.78rem;
    }

    .hero-buttons {
        gap: 0.5rem;
        margin-top: 0;
    }

    .hero-buttons .btn {
        min-height: 56px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .services {
        padding-bottom: 2.75rem;
    }

    .service-card {
        padding: 1.15rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .schedule-header,
    .schedule-row {
        font-size: 0.7rem;
        grid-template-columns: 35px repeat(5, minmax(62px, 1fr));
    }

    .class-cell {
        padding: 0.5rem 0.2rem;
    }
    
    .time-cell {
        padding: 1rem 0.15rem;
        min-height: 80px;
    }
    
    .time-period {
        font-size: 0.7rem;
    }
    
    .schedule-actions {
        flex-direction: column;
        gap: 1.75rem;
    }
    
    .schedule-legend {
        width: 100%;
    }
    
    .schedule-actions .btn {
        width: 100%;
    }

    /* Services Note - Mobile */
    .services-note {
        margin: 1.15rem 0 0;
        padding: 0;
    }

    .services-note p {
        font-size: 0.78rem;
        line-height: 1.45;
        gap: 6px;
    }

    .services-note i {
        font-size: 1rem;
    }

    .floating-whatsapp {
        display: none;
    }

    .back-to-top {
        display: none;
    }

    .mobile-sticky-cta {
        position: fixed;
        left: max(16px, var(--safe-area-left));
        right: max(16px, var(--safe-area-right));
        bottom: calc(14px + var(--safe-area-bottom));
        z-index: 1000;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 56px;
        gap: 0.65rem;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .mobile-sticky-cta--hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(calc(100% + 18px));
    }

    .mobile-sticky-cta a {
        pointer-events: auto;
        min-height: 56px;
        border-radius: 8px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 700;
        box-shadow: 0 12px 30px rgba(5, 11, 16, 0.24);
    }

    .mobile-sticky-cta-primary {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: #ffffff;
    }

    .mobile-sticky-cta-secondary {
        background: #25d366;
        color: #ffffff;
        font-size: 1.35rem;
    }

}

/* iPhone 11 specific (414px width) */
@media (max-width: 414px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation - Extra compact for iPhone 11 */
    .navbar {
        padding: 0.4rem 0;
    }

    .navbar-brand h2 {
        font-size: 1.2rem;
    }

    .brand-logo {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .navbar-brand .brand-name {
        font-size: 0.74rem;
    }

    .navbar-menu {
        top: calc(53px + var(--safe-area-top));
    }

    /* Hero Section */
    .hero {
        padding-top: calc(65px + var(--safe-area-top));
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    /* Prevent text zoom on input focus */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Notification positioning */
    .notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .navbar {
        padding: 0.4rem 0;
    }

    .navbar-brand h2 {
        font-size: 1.1rem;
    }

    .brand-logo {
        min-width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .navbar-brand .brand-name {
        font-size: 0.7rem;
    }

    .navbar-menu {
        top: calc(51px + var(--safe-area-top));
    }

    .hero {
        padding-top: calc(60px + var(--safe-area-top));
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .navbar {
        padding: 0.3rem 0;
    }

    .navbar-menu {
        top: calc(54px + var(--safe-area-top));
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--safe-area-top)) 0 calc(60px + var(--safe-area-bottom));
    }

    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-content {
        max-width: 500px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .class-option,
    .social-icon,
    .navbar-menu a {
        min-height: 44px; /* Apple's recommended touch target */
    }

    .class-option {
        padding: 8px;
    }

    /* Non-clickable card bodies: disable touch highlight/active flash */
    .service-card,
    .achievement-item,
    .bot-feature {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
        cursor: default;
    }

    /* Remove sticky hover/active feedback on touch devices. Use explicit
       values so cards do not inherit parent backgrounds or border colors. */
    .achievement-item:hover,
    .achievement-item:active {
        transform: none;
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .service-card:hover,
    .service-card:active,
    .service-card.selected:hover,
    .service-card.selected:active {
        transform: none;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-color: rgba(44, 62, 80, 0.14);
        box-shadow: 0 16px 38px rgba(26, 39, 55, 0.08);
    }

    .service-card.featured:hover,
    .service-card.featured:active {
        transform: none;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-color: rgba(44, 62, 80, 0.14);
        box-shadow: 0 16px 38px rgba(26, 39, 55, 0.08);
    }

    .bot-feature:hover,
    .bot-feature:active {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .class-option:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Ensure touch scrolling is smooth */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Desktop alignment - shift hero content left */
@media (min-width: 1024px) {
    .hero .container {
        max-width: 1320px;
        padding-left: 48px;
        padding-right: 48px;
    }
    
    .hero-content {
        margin-left: 0;
        max-width: 760px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }

    /* Bot stats */
    .bot-stat-value {
        font-size: 1.45rem;
    }

    .bot-stat-label {
        font-size: 0.8rem;
    }
}
