/* Full HD screens (1920x1080) */
@media (max-width: 1920px) {
    .hero-description { font-size: 24px; }
    .hero-tagline span { font-size: 28px; }
}


/* Ultra-wide screens (2K+) */
@media (min-width: 1921px) {
    .hero-title { font-size: 86px; }
    .hero-description { font-size: 30px; }
    .hero-tagline span { font-size: 38px; }
    .feature-title { font-size: 36px; }
    .feature-desc { font-size: 18px; }
    .section-title { font-size: 42px; }
    .about-text p { font-size: 22px; }
    .service-title { font-size: 22px; }
    .service-desc { font-size: 18px; }
}

/* Windows 150% DPI on 1080p (viewport ~1280px) */
@media (max-width: 1400px) {
    .header { padding: 12px 0; }
    .logo-img { height: 36px; }
    .logo-divider { height: 30px; }
    .logo-sub { font-size: 12px; max-width: 160px; }
    .nav a { font-size: 11px; }
    .nav { margin: 0 15px; }
    .header-contacts { font-size: 16px; }
    .header-right { gap: 15px; }

    .hero-content { padding-top: 100px; }
    .hero-text { max-width: 550px; }
    .hero-title { font-size: 52px; }
    .hero-description { font-size: 20px; }
    .hero-tagline { padding-top: 100px; max-width: 220px; display: flex !important; flex-shrink: 0; }
    .hero-tagline span { font-size: 16px; }
    .hero-cta { margin-top: 25px; }
    .btn-hero-cta { font-size: 16px; padding: 10px 20px; min-width: 140px; }
    .btn-hero-arrow svg { width: 18px; height: 14px; }

    .feature-title { font-size: 22px; margin-bottom: 8px; }
    .feature-desc { font-size: 13px; }
    .feature-box { padding: 15px 20px; }

    .hero-description-second { margin-top: 15px; }
}

/* Large desktop / small laptop — header compression */
@media (max-width: 1200px) {
    .header-grid { grid-template-columns: auto 1fr; }
    .header-right { gap: 15px; }
    .nav { margin: 0 15px; }
    .nav a { font-size: 12px; }
    .logo-sub { font-size: 12px; max-width: 180px; }
    .contact-phones div { letter-spacing: 0.15em; font-size: 15px; }

    .hero-title { font-size: 56px; }
    .hero-description { font-size: 22px; }
    .hero-tagline span { font-size: 26px; }
    .feature-title { font-size: 26px; }
    .feature-desc { font-size: 14px; }
    .btn-hero-cta { font-size: 18px; padding: 14px 30px; }
}

/* === 150% DPI: збільшити дрібні шрифти, великі залишити === */
@media (max-height: 800px) and (min-width: 1024px) {
    .logo-img { height: 32px !important; }
    .nav a { font-size: 10px !important; }
    .header-contacts { font-size: 14px !important; }
    .contact-phones div { font-size: 14px !important; }
    .hero-page::before { background-position: 62% calc(85% + 56px); }
    .hero-content { padding-top: 40px !important; }
    .hero-title { font-size: 50px !important; }
    .hero-description { font-size: 18px !important; transform: translateY(8px); }
    .hero-description-second { transform: translateY(8px); }
    .hero-cta { transform: translateY(16px); margin-top: 15px; }
    .hero-description-second { margin-top: 10px; }
    .hero-tagline { max-width: 350px !important; transform: translateY(16px); }
    .hero-tagline span { font-size: 18px; }
    .btn-hero-cta { font-size: 14px; padding: 8px 18px; }
    .features-strip { transform: translateX(-24px); }
    .feature-title { font-size: 26px; margin-bottom: 6px; }
    .feature-desc { font-size: 14px; }
    .feature-box { padding: 12px 20px; }

    /* === Інші секції при 150% === */
    .page { padding: 80px 0 40px; }
    .section-title { font-size: 28px; margin-bottom: 20px; }
    .about-text p { font-size: 15px; margin-bottom: 14px; }
    .about-layout { margin-bottom: 80px; transform: translateY(48px); }
    .services-intro p { font-size: 24px; }
    .services-intro { padding-bottom: 40px; }
    .about-stats { gap: 20px; }
    .service-title { font-size: 15px; margin-bottom: 6px; }
    .service-desc { font-size: 15px; }
    .service-icon { margin-bottom: 6px; font-size: 26px; }
    .contact-text-block p { font-size: 15px; }
    .contact-text-block p i { font-size: 17px; }
    .footer-col a, .footer-col p, .footer-socials-text { font-size: 15px; }
    .footer-developer { margin-top: 19px; padding-top: 7px; }
    .site-footer { padding-bottom: 20px; }
    .socials-centered { justify-content: space-between; max-width: 464px; }
    .socials-centered a { font-size: 25px; }
    .review-card { padding: 17px 20px; border-radius: 17px; }
    .review-text { font-size: 11px; }
    .review-stars { font-size: 11px; }
    .review-author { font-size: 11px; }
    .review-avatar { width: 27px; height: 27px; }
    .review-footer { gap: 7px; margin-top: 9px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 40px;
    }

    .hero-page {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .hero-fullwidth {
        padding: 0 30px;
        height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding-left: 0;
        padding-top: calc(var(--header-height) + 30px);
        height: auto;
        flex: none;
        justify-content: flex-start;
    }

    .hero-text {
        max-width: 100% !important;
    }

    .hero-tagline {
        padding-top: 0;
        padding-right: 0;
    }

    .hero-tagline span {
        font-size: 22px;
        text-align: left;
    }

    .features-strip {
        flex-direction: column;
        gap: 0;
        padding: 30px 0;
        margin-top: 40px;
        background: rgba(10, 16, 25, 0.9);
    }

    .feature-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 20px !important;
        max-width: 100%;
    }

    .feature-box:not(:last-child)::after {
        display: none;
    }

    .feature-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-desc {
        font-size: 14px;
    }

    .feature-desc br {
        display: none;
    }

    .about-layout {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .about-photo {
        width: 60%;
    }

    .about-text p {
        font-size: 20px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        padding-right: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contacts-content {
        flex-direction: column;
        gap: 40px;
    }

    .contacts-info {
        max-width: 100%;
    }

    .contacts-content-centered {
        gap: 40px;
    }

    .contacts-map-large {
        min-height: 400px;
    }

    .contacts-map-large iframe {
        min-height: 400px;
    }

    .hero-page,
    .about-page,
    .services-page,
    .contacts-page,
    .page {
        background-attachment: scroll !important;
        min-height: auto !important;
    }

    /* Grid: switch to single column, hide empty side columns */
    .split-grid {
        grid-template-columns: 1fr;
    }

    .side-col {
        display: none;
    }

    .hero-page::before {
        transform: none;
    }

    .btn-hero-cta {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* Burger menu activates — fullscreen nav with contacts */
@media (max-width: 960px) {
    /* Header */
    .header-grid { grid-template-columns: auto 1fr; }
    .logo-sub { display: none; }
    .header-contacts { display: none; }
    .header-right { justify-content: flex-end; gap: 10px; }

    /* Burger touch target >= 44px */
    .burger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-right: -4px;
    }

    .hero-cta {
        margin-top: 30px;
    }

    .hero-tagline {
        display: none;
    }

    /* Fullscreen nav */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 16, 25, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 30px 40px;
        z-index: 99;
        margin: 0;
        overflow-y: auto;
        transition: left 0.2s ease;
    }
    .nav.active { left: 0; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a {
        font-size: 16px;
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown {
        width: auto;
        min-width: calc(100% - 14px);
    }

    .nav-dropdown-item {
        font-size: 16px !important;
        padding-left: 22px !important;
        white-space: nowrap;
    }

    .service-sticky-cat {
        display: none;
    }

    .service-page-container {
        padding-top: calc(68px + 30px);
    }

    .service-detail-card h1 {
        margin-top: 16px;
    }

    .btn-service-cta {
        display: none;
    }

    .prices-infographic-page {
        margin: 0 -20px;
    }

    .prices-infographic-page img {
        width: 100%;
        border-radius: 0;
    }

    .prices-infographic-page ~ * {
        display: none;
    }

    body:has(.prices-infographic-page) .article-card {
        background: transparent;
        padding: 20px 20px 0;
    }

    body:has(.prices-infographic-page) .article-container {
        padding-bottom: 0;
    }

    body:has(.prices-infographic-page) .article-category,
    body:has(.prices-infographic-page) .back-link {
        color: var(--text-muted);
    }

    /* Contacts inside mobile nav */
    .nav-mobile-contacts {
        display: block;
        margin-top: 30px;
        padding-top: 20px;
        border-top: none;
    }
    .nav-mobile-contacts a {
        display: block;
        color: #fff;
        font-size: 18px;
        padding: 7px 0;
        border-bottom: none;
        white-space: nowrap;
    }
    .nav-mobile-socials {
        display: flex;
        gap: 20px;
        margin-top: 20px;
    }
    .nav-mobile-socials a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        padding: 0;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
    .menu-overlay.active { display: block; }

    /* Hide desktop-only fixed elements, show mobile FAB */
    .page-indicators { display: none; }
    .call-btn-fixed { display: none; }
    .mobile-call-fab {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 16px;
        width: 56px;
        height: 56px;
        background: var(--accent);
        color: #000;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        z-index: 97;
        box-shadow: 0 4px 15px rgba(212, 175, 104, 0.4);
        text-decoration: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top, 10px));
        background: #161920 !important;
        backdrop-filter: none;
    }

    .logo-img {
        height: 29px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .page {
        padding: 20px 0 60px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 0.94;
        letter-spacing: 1.2px;
        opacity: 0.82;
    }

    .hero-page {
        padding-bottom: 80px;
        overflow: hidden !important;
    }

    .hero-fullwidth {
        padding: 0 20px;
    }

    /* Grid: switch to single column, hide empty side columns */
    .split-grid {
        grid-template-columns: 1fr;
    }

    .side-col {
        display: none;
    }

    .hero-page::before {
        transform: none;
        height: calc(100vw * 1125 / 390);
        min-height: 100%;
        background-image: url('../images/hero-bg-mobile.png');
        background-size: 100% auto;
        background-position: center -48px;
        background-repeat: no-repeat;
        z-index: 1;
        opacity: 0.7;
    }

    .hero-page::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70%;
        background: linear-gradient(to bottom, rgba(10, 16, 25, 0.7) 0%, rgba(10, 16, 25, 0.4) 50%, transparent 100%);
        z-index: 0;
        pointer-events: none;
    }

    .hero-content {
        flex-direction: column !important;
        gap: 25px;
        padding-top: calc(var(--header-height) + 10px);
    }

    .hero-text {
        max-width: 100% !important;
    }

    .hero-description {
        font-size: 19px;
        max-width: 100%;
        margin-top: 10px;
        opacity: 0.80;
        line-height: 1.26;
        letter-spacing: 0.2px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 48px;
    }

    .services-intro {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        padding: 18px 16px;
    }

    .scroll-indicator {
        bottom: 20px;
        right: 85px;
        font-size: 20px;
        opacity: 0.6;
    }

    .features-strip {
        margin-top: 30px;
        padding: 25px 15px;
        flex-direction: column;
        gap: 0;
        background: rgba(0, 0, 0, 0.28);
        border-radius: 16px;
    }

    .feature-box {
        padding: 25px 15px !important;
        max-width: 100%;
        border-bottom: 2px solid rgba(139, 160, 185, 0.6);
    }

    .feature-box:last-child {
        border-bottom: none;
    }

    .feature-box::before,
    .feature-box::after {
        display: none !important;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature-desc {
        font-size: 16px;
        line-height: 1.29;
        letter-spacing: 0.3px;
    }

    .hero-stats-mobile {
        display: none;
        justify-content: space-around;
        align-items: center;
        margin-top: 0;
        margin-left: -15px;
        margin-right: -15px;
        padding: 32px 35px;
        background: rgba(0, 0, 0, 0.28);
        border-radius: 0;
        z-index: 10;
        text-align: center;
    }

    .hero-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .hero-stat-number {
        font-family: 'Montserrat', sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--accent);
        line-height: 1.2;
    }

    .hero-stat-label {
        font-family: 'Montserrat', sans-serif;
        font-size: 10px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* About section */
    .about-page {
        padding-top: 72px;
    }

    .about-layout {
        flex-direction: column;
        gap: 54px;
        margin-bottom: 30px;
    }

    .about-text {
        flex: 0 0 100%;
    }

    .about-photo {
        flex: 0 0 100%;
        width: 100%;
    }

    .about-text p {
        font-size: 16px;
        font-weight: 400;
        opacity: 0.80;
    }

    /* CTA Banner */
    .cta-banner {
        margin-bottom: 56px;
        margin-top: -16px;
    }

    .cta-banner-inner {
        flex-direction: column;
        padding: 34px 30px 50px;
        min-height: auto;
        text-align: center;
        gap: 30px;
    }

    .cta-banner-text h2 {
        font-size: 17px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .cta-banner-form {
        width: 100%;
    }

    .cta-form-fields {
        flex-direction: column;
    }

    .stat-label {
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        padding-right: 0;
        gap: 15px;
        margin-top: 80px;
        margin-bottom: 0;
    }

    /* Contacts: stack vertically */
    .contacts-layout {
        flex-direction: column;
        gap: 30px;
    }

    .contacts-map-col {
        width: 100%;
    }

    .contacts-map-small {
        height: 300px;
        border: none;
        background: transparent;
    }

    .contacts-map-large {
        min-height: 300px;
    }

    .contacts-map-large iframe {
        min-height: 300px;
    }

    /* Reviews: single column */
    .reviews-heading {
        font-size: 16px;
    }

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

    .review-card {
        padding: 24px 20px;
        flex: 0 0 calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }

    /* Socials: fit within text width */
    .socials-centered {
        gap: 0;
        justify-content: space-between;
        max-width: calc(100vw - 30px);
        margin-top: 0;
    }

    .socials-centered a {
        font-size: 43px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contacts-footer-text {
        font-size: 13px;
    }

    /* Touch targets */
    .btn,
    .btn-hero-cta,
    .btn-primary {
        min-height: 44px;
    }

    .btn-hero-cta {
        font-size: 15px;
        padding: 16px 36px;
        background: transparent;
        color: var(--accent);
        border: 2px solid var(--accent);
        box-shadow: none;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
        justify-content: center;
        border-radius: 10px;
    }

    .btn-hero-cta:hover {
        background: transparent;
        color: #fff;
        border-color: #fff;
        box-shadow: none;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Service detail page */
    .service-page-container { padding-top: 100px; padding-bottom: 60px; }
    .service-detail-card h1 { font-size: 24px; }
    .service-point { flex-direction: column; gap: 12px; padding: 20px; }

    /* Publications page */
    .publications-page-container {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .pub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pub-card {
        padding: 24px 20px;
    }

    /* Videos page */
    .videos-page-container {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .video-card-body {
        padding: 16px;
    }

    .video-search {
        max-width: 100%;
    }

    /* Article pages */
    .article-container { padding-top: 100px; }
    .article-card { padding: 30px 20px; }
    .article-card h1 { font-size: 24px; }
    .comments-section { margin-top: 40px; }
    .comment-form input,
    .comment-form textarea { padding: 12px; font-size: 14px; }
    .comment-btn { min-height: 44px; width: 100%; }
    .comment-author { flex-direction: column; gap: 4px; }
}

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

    .hero-title {
        font-size: 32px;
        letter-spacing: 1.2px;
    }

    .hero-page {
        min-height: 100dvh;
    }

    .hero-fullwidth {
        padding: 0 15px;
    }

    .hero-page::before {
        background-size: 100% auto;
        background-position: center -48px;
    }

    .hero-content {
        flex-direction: column !important;
        gap: 20px;
        padding-top: calc(var(--header-height) + 5px);
    }

    .hero-text {
        max-width: 100% !important;
    }

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

    .hero-description {
        font-size: 19px;
        max-width: 100%;
        margin-top: 8px;
        text-align: left;
    }

    .hero-description-second {
        margin-top: 18px;
    }

    .stat-number {
        font-size: 36px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 16px;
    }

    .service-icon {
        font-size: 22px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-desc {
        font-size: 16px;
    }

    .socials-centered a {
        font-size: 20px;
    }

    .contacts-footer-text {
        font-size: 12px;
    }

    /* Modal responsive */
    .modal-content {
        padding: 40px 30px;
        max-width: 90%;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .modal-form input {
        padding: 15px 20px;
        font-size: 14px;
    }

    .modal-form .btn {
        font-size: 16px;
        padding: 15px 30px;
        min-height: 52px;
    }

    /* CTA button full width on very small screens */
    .btn-hero-cta {
        width: auto;
        white-space: nowrap;
        font-size: 15px;
        min-width: unset;
    }

    .btn-outline { min-width: unset; width: 100%; }
    .pub-link { max-width: 100%; }
    .pub-grid { grid-template-columns: 1fr; }
    .case-number { word-break: break-all; }

    /* Article pages */
    .article-card { padding: 20px 15px; }
    .article-card h1 { font-size: 20px; }

    /* Service detail page */
    .service-page-container { padding-top: 90px; }
    .service-detail-card h1 { font-size: 20px; }
    .service-point { padding: 16px; }
    .service-point-content h3 { font-size: 16px; }
    .service-point-content p { font-size: 14px; }

    /* Publications page */
    .publications-page-container {
        padding-top: 90px;
    }

    .pub-card {
        padding: 20px 16px;
    }

    .pub-card-title {
        font-size: 17px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 14px;
    }

    /* Videos page */
    .videos-page-container {
        padding-top: 90px;
    }

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

    .video-card-body {
        padding: 14px;
    }

    .video-card-title {
        font-size: 15px;
    }

    .video-card-play {
        width: 48px;
        height: 48px;
    }

    .video-card-play i {
        font-size: 16px;
    }

    .contacts-map-small {
        width: 358px;
        height: 358px;
        margin: 0;
    }

    .contacts-map-small iframe {
        width: 100%;
        height: 100%;
    }

    .contacts-info-col {
        padding-left: 0;
        align-items: flex-start;
    }

    .contact-text-block {
        text-align: left;
    }

    .contact-text-block p {
        justify-content: flex-start;
        font-size: 16px;
        max-width: calc(100vw - 30px);
    }
}

/* Landscape mode — phones/tablets rotated horizontally */
@media (orientation: landscape) and (max-height: 600px) {
    /* Hero: let content flow naturally, no fixed height */
    .hero-page {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        padding-bottom: 20px;
    }

    .hero-fullwidth {
        height: auto;
    }

    .hero-content {
        height: auto !important;
        flex: none;
        gap: 20px;
        padding-top: calc(var(--header-height) + 10px);
    }

    .hero-title { font-size: clamp(24px, 5vw, 36px); margin-bottom: 10px; }
    .hero-description { margin-top: 8px; font-size: 14px; }
    .hero-cta { margin-top: 10px; }

    .hero-tagline { display: none; }

    /* Features strip: flow under hero */
    .features-strip {
        margin-top: 20px;
    }

    .feature-box { padding: 15px 25px !important; }
    .feature-title { font-size: 18px; margin-bottom: 8px; }
    .feature-desc { font-size: 12px; }

    /* Header: tighter, hide logo-sub to prevent overlap */
    .header { padding: 8px 0; }
    .logo-sub { display: none; }

    /* Hide fixed elements that overlap in landscape */
    .page-indicators { display: none !important; }
    .call-btn-fixed { display: none !important; }

    /* Modal: scrollable */
    .modal-content {
        padding: 30px 25px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Sections: reduced spacing */
    .page { padding: 40px 0; }
    .section-title { font-size: 24px; margin-bottom: 20px; }
}

/* Extra small — iPhone SE (375px) and narrower */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }

    .hero-fullwidth {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .hero-description {
        font-size: 17px;
    }

    .section-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .service-title {
        font-size: 16px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-desc {
        font-size: 13px;
    }

    /* Ensure contact info doesn't overflow */
    .contact-text-block p {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ===== Messenger FAB — Responsive ===== */

@media (max-width: 960px) {
    #messenger-fab {
        bottom: 100px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .messenger-menu {
        bottom: 170px;
        right: 16px;
    }

    .messenger-overlay-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #messenger-fab {
        width: 52px;
        height: 52px;
        bottom: 95px;
    }

    .messenger-menu {
        bottom: 155px;
    }
}

@media (max-height: 600px) and (orientation: landscape) and (max-width: 1023px) {
    #messenger-fab {
        display: none;
    }
}
