:root {
    --primary-color: #0D0D0D;
    --secondary-color: #1A1A1A;
    --accent-color: #4E4E4E;
    --text-color: #E0E0E0;
    --cta-color: #3F51B5;
    --card-gradient: linear-gradient(135deg, #242424, #1A1A1A);
    --marquee-gap: clamp(1.2rem, 3vw, 2.2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
main {
    padding-top: 70px;
}

.section-heading {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    margin: 2rem 0 3rem;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.about-section-heading {
    text-align: center;
    margin: 3rem 0;
}

.mobile-section-heading {
    display: none;
    margin: 0;
    font-size: inherit;
}
header {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-color);
}

/* Support for iPhone notch (monobrow) */
@supports (padding: max(0px)) {
    header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    header::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top);
        background-color: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    margin-left: auto;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-link {
    display: inline-block;
    line-height: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 60px;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    height: 60px;
}

nav ul li {
    position: relative;
    padding: 0 1.8rem;
}

nav ul li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: -80%;
    bottom: -80%;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
}

nav ul li:last-child {
    padding-right: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0;
}

nav a:hover {
    color: var(--cta-color);
}
#hero {
    text-align: center;
    padding: 2.4rem 0 6rem;
    margin-bottom: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(3rem, 4.8vw, 4.2rem);
    font-weight: 700;
    margin: 0;
    position: relative;
}

.hero-content h1::after {
    content: "";
    position: absolute;
    bottom: -0.9rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
}
.hero-content p {
    font-size: 1.2rem;
    color: #A0A0A0;
    margin: 0;
}

.cta-button {
    background-color: var(--cta-color);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2.6rem;
    font-size: 1.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #303F9F;
}

#brand-strip {
    display: flex;
    justify-content: center;
    margin: clamp(0.06rem, 0.4vw, 0.18rem) 0 clamp(0.06rem, 0.4vw, 0.18rem);
}

#brand-strip .brand-strip-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.6rem);
}

.brand-slot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-card {
    width: clamp(120px, 14vw, 190px);
    aspect-ratio: 1 / 1;
    position: relative;
    perspective: 1100px;
    --logo-light: radial-gradient(58% 34% at center, rgba(215, 215, 215, 0.2), rgba(10, 10, 10, 0));
}

.logo-card::before,
.logo-card::after {
    content: "";
    position: absolute;
    inset: clamp(-0.18rem, -0.34vw, -0.1rem);
    border-radius: 50%;
    background: var(--logo-light);
    opacity: 0.16;
    filter: blur(9px);
    transform: translateZ(-1px);
}

.logo-card::after {
    inset: clamp(-0.34rem, -0.56vw, -0.18rem);
    opacity: 0.11;
}

.logo-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.logo-card.showing-back .logo-flip {
    transform: rotateY(180deg);
}

.logo-card.showing-front .logo-flip {
    transform: rotateY(0deg);
}

.logo-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 70%;
    max-height: 70%;
    margin: auto;
    backface-visibility: hidden;
    filter: grayscale(2%) brightness(0.96);
    transition: filter 0.3s ease;
    will-change: transform;
}

.logo-face[data-logo-id="martin-audio"],
.logo-face[data-logo-id="jbl"] {
    max-width: 50%;
    max-height: 50%;
}

.logo-face.logo-back {
    transform: rotateY(180deg);
}

.logo-card:hover .logo-face {
    filter: grayscale(0%) brightness(1.05);
}
#service-marquee {
    padding: 0;
    background: linear-gradient(
        90deg,
        rgba(49, 60, 135, 0.85) 0%,
        rgba(63, 81, 181, 0.88) 28%,
        rgba(63, 81, 181, 0.98) 50%,
        rgba(63, 81, 181, 0.88) 72%,
        rgba(49, 60, 135, 0.85) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.marquee-sequence {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 1.5rem 0;
    white-space: nowrap;
}

.marquee-item {
    position: relative;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.marquee-item::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: var(--marquee-gap);
    margin-right: var(--marquee-gap);
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.marquee-item:last-child::after {
    display: none;
}

.marquee-item:first-child::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: var(--marquee-gap);
    margin-left: var(--marquee-gap);
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}
#about {
    padding: 3.5rem 0 7rem;
    background-color: var(--secondary-color);
}

#about .container {
    padding-top: 0;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto;
    gap: 4rem;
    align-items: stretch;
}

.glass-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 28px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 26px;
    background: var(--card-gradient);
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    gap: 1.4rem;
}

.about-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #D4D4D4;
    line-height: 1.75;
}

.about-text p:last-of-type {
    margin-top: auto;
}

.about-title {
    font-size: clamp(2.6rem, 4vw, 3.2rem);
    margin: 0;
    letter-spacing: 0.04em;
    margin-bottom: clamp(1.4rem, 2.8vw, 2.2rem);
}

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(1.4rem, 2.8vw, 2.2rem);
    justify-self: end;
    width: 100%;
    max-width: clamp(260px, 22vw, 320px);
    margin-left: auto;
    margin-top: 0;
    align-self: stretch;
    height: 100%;
}

.stat-item {
    min-width: 220px;
    width: 100%;
    text-align: center;
    padding: clamp(1.4rem, 2.4vw, 2.1rem) clamp(1.6rem, 2.8vw, 2.4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item h3 {
    font-size: clamp(4.6rem, 6vw, 5.6rem);
    font-weight: 700;
    margin: 0;
    color: var(--cta-color);
}

.stat-item p {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #C6C6C6;
    letter-spacing: 0.03em;
}

#equipment {
    padding: 3rem 0;
    background-color: var(--secondary-color);
}

#equipment h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.equipment-lead {
    margin: 0 auto 3rem;
    max-width: 620px;
    text-align: center;
    color: rgba(224, 224, 224, 0.7);
    font-size: 1.05rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.4vw, 1.8rem);
    width: 100%;
    margin: 0;
    padding: 0;
}

.equipment-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    row-gap: clamp(1rem, 2.2vw, 1.6rem);
    align-items: center;
    justify-items: center;
    width: 100%;
    height: clamp(18rem, 34vw, 22rem);
    padding: clamp(1.4rem, 2.6vw, 1.8rem) clamp(1.2rem, 2.8vw, 1.8rem);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--card-gradient);
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.equipment-card-title {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    min-height: clamp(3.2rem, 6vw, 3.8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.equipment-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(7rem, 15vw, 8.8rem);
    aspect-ratio: 1 / 1;
    color: var(--cta-color);
    margin: 0;
    justify-self: center;
    transition: transform 0.3s ease;
}

.equipment-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: none;
    transition: transform 0.3s ease;
}

.equipment-card[data-category="led"] .equipment-card-icon {
    width: clamp(8.4rem, 17vw, 10.4rem);
}

.equipment-card[data-category="stage"] .equipment-card-icon,
.equipment-card[data-category="conference"] .equipment-card-icon {
    width: clamp(6.4rem, 13vw, 7.6rem);
}

.equipment-card[data-category="stage"] .equipment-card-icon {
    align-self: start;
    margin-top: clamp(0.4rem, 1vw, 0.8rem);
}

.equipment-card-hint {
    margin-top: auto;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(224, 224, 224, 0.48);
}

.equipment-card:hover .equipment-card-icon,
.equipment-card:focus-visible .equipment-card-icon {
    transform: scale(1.05);
}

.equipment-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(110% 140% at 5% 5%, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-card:hover,
.equipment-card:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

.equipment-card:hover::after,
.equipment-card:focus-visible::after {
    opacity: 1;
}

.equipment-card:focus-visible {
    outline: 2px solid rgba(99, 127, 255, 0.7);
    outline-offset: 2px;
}
#projects {
    padding: 0 0 2rem;
}

.mini-gallery {
    margin-top: 4rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 28px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--card-gradient);
    padding: clamp(1.4rem, 4vw, 2.2rem) 0;
    -ms-overflow-style: none; /* hide scrollbar IE/Edge */
    scrollbar-width: none; /* hide scrollbar Firefox */
    touch-action: pan-x pan-y;
}

.mini-gallery::-webkit-scrollbar {
    display: none;
}

.mini-gallery-track {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    padding-left: clamp(1.2rem, 3vw, 2.5rem);
    padding-right: clamp(1.2rem, 3vw, 2.5rem);
}

.mini-gallery-item {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: zoom-in;
    flex: 0 0 clamp(200px, 20vw, 320px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease;
}

.mini-gallery-item img {
    display: block;
    width: 100%;
    height: clamp(140px, 18vw, 220px);
    object-fit: cover;
    filter: saturate(0.92);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.mini-gallery-item:focus-visible {
    outline: 3px solid rgba(63, 81, 181, 0.85);
    outline-offset: 4px;
}

.mini-gallery-item:hover {
    transform: translateY(-6px);
}

.trusted-by-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 7rem;
    margin-bottom: 0;
}

.gallery-item {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(var(--slide-from));
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    will-change: transform, opacity;
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2rem;
}

.gallery-image-container {
    flex: 1 1 calc(66.66% - 1.33rem);
    min-width: 0;
}

.gallery-image-container picture,
.mini-gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item[data-direction="right"] {
    --slide-from: 110%;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.gallery-item[data-direction="left"] {
    --slide-from: -110%;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.trusted-by-gallery img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.trusted-by-gallery .plaque {
    flex: 1 1 calc(33.33% - 0.67rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trusted-by-gallery .plaque h4 {
    color: var(--cta-color);
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 1rem 0;
    font-weight: 600;
    align-self: flex-start;
}

.trusted-by-gallery .gallery-item:nth-child(1) .plaque h4 {
    white-space: nowrap;
}

.trusted-by-gallery .plaque p {
    color: #D4D4D4;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .mini-gallery-track {
        animation: none;
        transform: none;
    }
    .mini-gallery-item,
    .mini-gallery-item img {
        transition: none;
    }
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    background-color: rgba(0, 0, 0, 0.86);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(960px, 100%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--card-gradient);
    box-shadow: none;
    padding: clamp(2.2rem, 4vw, 2.8rem);
    overflow: hidden;
}

.modal-content::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    opacity: 0.85;
    pointer-events: none;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

.modal-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.close-btn {
    color: rgba(224, 224, 224, 0.6);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover,
.close-btn:focus-visible {
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.modal-body {
    margin-top: 1.8rem;
    max-height: min(60vh, 540px);
    overflow-y: auto;
    padding-right: clamp(0.2rem, 0.8vw, 0.8rem);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.modal-loading,
.modal-error,
.modal-empty {
    margin: 0;
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.75);
}

.modal-error {
    color: #ff8888;
}

.modal-equipment-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-equipment-head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-equipment-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(224, 224, 224, 0.55);
}

.modal-equipment-head h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 600;
    color: rgba(224, 224, 224, 0.95);
}

.modal-equipment-sections {
    display: grid;
    gap: clamp(2rem, 3.6vw, 2.8rem);
}

.modal-equipment-section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    background: var(--card-gradient);
}

.modal-equipment-section h4 {
    margin: 0 0 0.9rem 0;
    font-size: clamp(1.18rem, 2.1vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(246, 248, 255, 0.98);
}

.modal-equipment-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: clamp(0.85rem, 1.6vw, 1.05rem);
}

.modal-equipment-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(200px, 1fr) minmax(80px, auto);
    align-items: center;
    gap: 0.25rem 1.1rem;
    padding: 0.85rem 1.6rem 0.85rem 1.8rem;
    margin-bottom: 0.5rem;
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
}

.modal-equipment-item::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(146, 183, 255, 0.92);
}

.modal-equipment-item-brand {
    font-weight: 700;
    font-size: clamp(1.08rem, 1.35vw, 1.24rem);
    letter-spacing: 0.015em;
    text-transform: none;
    color: rgba(248, 250, 255, 0.98);
}

.modal-equipment-item-model {
    font-weight: 500;
    font-size: clamp(1.05rem, 1.28vw, 1.16rem);
    color: rgba(244, 246, 255, 0.95);
}

.modal-equipment-item > .modal-equipment-item-model:first-child {
    grid-column: 1 / -1;
}

.modal-equipment-item > .modal-equipment-item-model:first-child + .modal-equipment-item-qty {
    grid-column: 1 / -1;
}

.modal-equipment-item-qty {
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 600;
    color: #7CA8FF;
    justify-self: end;
}

.modal-equipment-item-qty--placeholder {
    color: rgba(244, 246, 255, 0.55);
    font-weight: 500;
}

html.equipment-modal-open,
body.equipment-modal-open {
    overflow: hidden;
    overscroll-behavior: contain;
}

/* Block background interactions when modal is open */
html.equipment-modal-open header,
html.equipment-modal-open main,
html.equipment-modal-open footer {
    pointer-events: none;
}

html.equipment-modal-open .modal {
    pointer-events: auto;
}

body.gallery-modal-open header,
body.gallery-modal-open main,
body.gallery-modal-open footer {
    pointer-events: none;
}

body.gallery-modal-open .gallery-modal {
    pointer-events: auto;
}
.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.9);
    z-index: 1100;
    padding: clamp(1.5rem, 4vw, 3rem);
    cursor: zoom-out;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal-image {
    max-width: min(1200px, 92vw);
    max-height: min(90vh, 760px);
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

body.gallery-modal-open {
    overflow: hidden;
}
#contact {
    padding: 8rem 0;
    text-align: center;
}

.contact-wrapper {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    min-height: 60vh;
}

#contact h2 {
    font-size: 2.8rem;
    margin-bottom: 0;
}

.contact-lead {
    margin: 0 auto;
    max-width: 540px;
    font-size: 1.05rem;
    color: rgba(224, 224, 224, 0.75);
    text-align: center;
}

.contact-lead + .contact-lead {
    margin-top: -1.2rem;
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.55);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.contact-card {
    --contact-card-accent: #3F82FF;
    padding: 1.8rem;
    border-radius: 24px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--cta-color);
    color: #0b0b0b;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-card-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(224, 224, 224, 0.68);
}

.contact-card-value {
    font-size: clamp(0.88rem, 1.6vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.contact-card:hover,
.contact-card:focus {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    outline: none;
}

.contact-card:hover::after,
.contact-card:focus::after {
    opacity: 1;
}

.contact-card--phone {
    --contact-card-accent: linear-gradient(135deg, #3F82FF, #607BFF);
}

.contact-card--email {
    --contact-card-accent: linear-gradient(135deg, #FF7E65, #FF9A6E);
}

.contact-card--telegram {
    --contact-card-accent: linear-gradient(135deg, #2AABEE, #229ED9);
}

.contact-card--whatsapp {
    --contact-card-accent: linear-gradient(135deg, #1BD741, #32E265);
}

footer {
    padding: 1.25rem 0;
    border-top: 1px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-color);
    border-radius: 1.5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}
@media (min-width: 720px) {
    .modal-equipment-item {
        font-size: clamp(1.06rem, 1.2vw, 1.18rem);
    }
}
@media (max-width: 1100px) {
    #brand-strip {
        margin: clamp(0.04rem, 0.35vw, 0.12rem) 0 clamp(0.04rem, 0.35vw, 0.12rem);
    }
    #brand-strip .brand-strip-inner {
        gap: clamp(1.2rem, 4vw, 2rem);
    }
}

@media (max-width: 1200px) {
    .equipment-grid {
        gap: clamp(1rem, 3vw, 1.4rem);
    }
}

@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .equipment-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    #hero {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    #brand-strip {
        margin: clamp(0.03rem, 0.6vw, 0.1rem) 0 clamp(0.03rem, 0.6vw, 0.1rem);
    }

    .cta-button {
        padding: 0.75rem 1.8rem;
        font-size: 1.25rem;
    }

    #brand-strip .brand-strip-inner {
        gap: 1.4rem;
    }

    .logo-card {
        width: clamp(92px, 38vw, 140px);
    }

    .logo-face {
        max-width: 78%;
        max-height: 78%;
    }

    .brand-slot:nth-child(n+4) {
        display: none;
    }

}

@media (max-width: 600px) {
    #contact {
        padding: 4.5rem 0;
    }

    .contact-card {
        padding: 1.4rem;
        border-radius: 20px;
    }

    .contact-card-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .gallery-item {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item[data-direction="right"] {
        flex-direction: column;
    }

    .gallery-image-container {
        flex: none;
        width: 100%;
        max-width: 600px;
    }

    .trusted-by-gallery .plaque {
        flex: 1 1 auto;
        padding-top: 2rem;
        text-align: center;
        align-items: center;
    }

    .trusted-by-gallery .plaque h4,
    .trusted-by-gallery .plaque p {
        align-self: center;
    }

    .trusted-by-gallery .plaque h4 {
        font-size: 1.8rem;
    }

    .trusted-by-gallery .plaque p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    *,
    *::before,
    *::after {
        -webkit-tap-highlight-color: rgba(63, 81, 181, 0.3);
    }

    /* Improve scrolling on iOS */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    @supports (padding: max(0px)) {
        body {
            padding-left: max(0px, env(safe-area-inset-left));
            padding-right: max(0px, env(safe-area-inset-right));
        }

        header .container {
            padding-left: max(5%, env(safe-area-inset-left));
            padding-right: max(5%, env(safe-area-inset-right));
        }
    }

    header .main-nav {
        margin-left: auto;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 16px;
        height: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-left: auto;
        min-width: 44px;
        min-height: 44px;
    }

    .hamburger-line {
        width: 100%;
        height: 1.5px;
        background-color: var(--text-color);
        border-radius: 1.5px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(3.5px, -3.5px);
    }

    .mobile-section-heading {
        display: none;
    }

    #hero {
        text-align: center;
        padding: 1.2rem 0;
        margin-bottom: 0;
    }

    #hero .container {
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        align-items: center;
    }

    #brand-strip {
        padding-block: 0;
    }

    #brand-strip .brand-strip-inner {
        gap: 0.25rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        padding-inline: clamp(0.5rem, 4.5vw, 1.1rem);
    }

    .hero-content p {
        margin-bottom: 0.4rem;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 4vw, 3.9rem);
        text-align: center;
    }

    .hero-content h1::after {
        bottom: -0.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(220px, 68%, 320px);
    }

    .hero-content p {
        margin: 0 auto;
    }

    #hero .cta-button {
        margin: 0 auto;
        max-width: 320px;
    }

    /* Show только три логотипа */
    .brand-slot:nth-child(n+4) {
        display: none;
    }

    header .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--accent-color);
    }

    header .main-nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        height: auto;
        align-items: flex-start;
    }

    nav ul li {
        padding: 0;
        width: 100%;
        border-bottom: 1px solid transparent;
        border-image: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0.15) 80%,
            rgba(255, 255, 255, 0) 100%
        ) 1;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li + li::before {
        display: none;
    }

    nav a {
        font-size: 1.5rem;
        padding: 1.2rem 0;
        width: 100%;
        display: block;
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    .logo {
        height: 50px;
    }

    /* Improve touch targets */
    .equipment-card {
        min-height: 280px;
        padding: 1.6rem;
    }

    .mini-gallery {
        margin-top: clamp(1.4rem, 4.8vw, 2.2rem);
        margin-bottom: clamp(1.4rem, 4.8vw, 2.2rem);
    }

    .mini-gallery-item {
        min-height: 44px;
        aspect-ratio: 3 / 2;
    }

    .trusted-by-gallery {
        gap: clamp(1.1rem, 4vw, 1.6rem);
        margin-top: clamp(1.4rem, 4.8vw, 2rem);
    }

    .trusted-by-gallery .plaque {
        text-align: center;
        align-items: center;
    }

    .trusted-by-gallery .plaque h4 {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        min-height: 120px;
        padding: 1.6rem;
        align-items: center;
        text-align: center;
    }

    .close-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        display: flex;
    }

    .modal-equipment-item {
        gap: 0.3rem;
    }

    .modal-equipment-item-qty {
        justify-self: flex-start;
    }

    #hero {
        padding: 1.2rem 0;
        margin-bottom: 1.2rem;
    }

    .cta-button {
        padding: 0.8rem 2.2rem;
        font-size: 1.35rem;
    }

    .about-section-heading {
        text-align: center;
    }

    .about-title {
        text-align: center;
    }

    #equipment h2,
    #contact h2 {
        text-align: center;
    }

    #brand-strip .brand-strip-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-card {
        width: clamp(100px, 28vw, 160px);
    }

    .logo-face {
        max-width: 74%;
        max-height: 74%;
    }

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

    .about-text,
    .about-stats {
        align-self: stretch;
    }

    .about-text {
        margin-top: 0;
    }

    .about-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
        letter-spacing: 0.02em;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        margin-right: 0;
        margin-left: 0;
        margin-top: 1rem;
        max-width: none;
        justify-self: center;
        gap: 0.8rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.8rem);
        min-width: 0;
        padding: 1.2rem 1rem;
    }

    .stat-item h3 {
        font-size: clamp(2.4rem, 7vw, 3.2rem);
    }

    .stat-item p {
        font-size: clamp(0.98rem, 2.6vw, 1.18rem);
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        gap: 0.8rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.8rem);
        min-width: 140px;
    }
}

@media (max-width: 360px) {
    .about-stats {
        flex-direction: column;
    }

    .stat-item {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    :root {
        --font-mobile-h1: 2.05rem;
        --font-mobile-h2: 1.75rem;
        --font-mobile-h3: 1.35rem;
        --font-mobile-body: 1rem;
        --font-mobile-small: 0.9rem;
        --font-mobile-tiny: 0.78rem;
    }

    header {
        padding: 0.6rem 0;
        min-height: 56px;
    }

    header .container {
        gap: 0.75rem;
    }

    .logo {
        height: 48px;
    }

    .mobile-menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }

    .container {
        width: 92%;
    }

    main {
        padding-top: 58px;
    }

    .mobile-section-heading {
        display: none;
    }

    #projects {
        padding: 1.5rem 0 2rem;
        background: none;
    }

    #hero {
        padding: 1rem 0;
        margin-bottom: 0;
    }

    #hero .container {
        align-items: center;
        gap: 1.2rem;
    }

    .hero-content {
        gap: 1.1rem;
        width: 100%;
        max-width: 28rem;
        margin: 0 auto;
        text-align: center;
        align-items: center;
        padding: 0 1.2rem;
    }

    .hero-content p {
        margin-bottom: 0.3rem;
    }

    .hero-content h1 {
        font-size: var(--font-mobile-h1);
        line-height: 1.2;
        letter-spacing: 0.01em;
    }

    .hero-content h1::after {
        width: 60%;
        left: 50%;
        transform: translateX(-50%);
        bottom: -0.5rem;
    }

    .hero-content p {
        font-size: var(--font-mobile-body);
        line-height: 1.6;
        max-width: 28ch;
        margin: 0 auto;
        padding: 0 0.4rem;
    }

    #brand-strip {
        width: 100%;
        padding-block: 0;
    }

    #brand-strip .brand-strip-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
        justify-items: center;
        width: 100%;
    }

    .brand-slot {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-card {
        width: clamp(98px, 30vw, 148px);
    }

    .logo-face {
        max-width: 74%;
        max-height: 74%;
    }

    #hero .cta-button {
        margin: 0 auto;
    }

    .cta-button {
        padding: 0.72rem 1.6rem;
        font-size: 1.05rem;
        letter-spacing: 0.04em;
        width: 100%;
        max-width: 280px;
        white-space: nowrap;
    }

    #about {
        padding: 2.8rem 0 2.8rem;
    }

    .about-content {
        gap: 1.8rem;
    }

    .glass-card {
        padding: 1.4rem;
    }

    .about-text {
        align-items: center;
        text-align: center;
        gap: 1.1rem;
    }

    .about-title {
        font-size: var(--font-mobile-h2);
        letter-spacing: 0.015em;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-text p {
        font-size: var(--font-mobile-small);
        line-height: 1.65;
    }

    .about-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        flex-direction: row;
        gap: 1rem;
        max-width: none;
        margin: 0;
    }

    .stat-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 150px;
        padding: 1.2rem 1rem;
        text-align: center;
    }

    .stat-item h3 {
        font-size: 3.3rem;
    }

    .stat-item p {
        font-size: 1rem;
        letter-spacing: 0.02em;
    }

    #service-marquee {
        margin-bottom: 3rem;
    }

    .marquee-sequence {
        padding: 1rem 0;
    }

    .marquee-item {
        font-size: 1rem;
    }

    #equipment {
        padding: 2.3rem 0;
    }

    #equipment h2 {
        font-size: var(--font-mobile-h2);
        margin: 0 auto 0.9rem;
        letter-spacing: 0.015em;
        text-align: center;
    }

    .equipment-lead {
        font-size: 0.9rem;
        margin: 0 auto 1.6rem;
        text-align: center;
        line-height: 1.6;
        max-width: 36ch;
    }

    .equipment-grid {
        gap: 1rem;
    }

    .equipment-card {
        padding: 1.2rem 1.1rem;
        min-height: auto;
        height: auto;
        row-gap: 1rem;
    }

    .equipment-card-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .equipment-card-icon {
        width: clamp(90px, 30vw, 120px);
        height: clamp(90px, 30vw, 120px);
    }

    .equipment-card-icon svg {
        width: clamp(64px, 22vw, 84px);
        height: clamp(64px, 22vw, 84px);
    }

    .mini-gallery {
        margin-top: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: clamp(1.2rem, 4.2vw, 1.8rem);
        padding: 0.85rem 0;
    }

    .mini-gallery-item {
        flex: 0 0 clamp(220px, 68vw, 300px);
        aspect-ratio: 3 / 2;
    }

    .mini-gallery-item img {
        height: 100%;
    }

    .gallery-image-container {
        aspect-ratio: 3 / 2;
        overflow: hidden;
    }

    .trusted-by-gallery img {
        height: 100%;
    }

    .modal-equipment-section {
        background: rgba(22, 22, 22, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.07);
        padding: 1rem 1.1rem;
        border-radius: 20px;
    }

    .modal-equipment-section ul {
        gap: 0.7rem;
    }

    .modal-equipment-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 0.8rem 0.9rem;
        margin: 0;
        gap: 0.35rem;
    }

    .modal-equipment-item-brand,
    .modal-equipment-item-model,
    .modal-equipment-item-qty {
        justify-self: flex-start;
        font-size: 0.96rem;
    }

    .modal-equipment-item-model {
        font-size: 0.9rem;
    }

    .modal-equipment-item-qty {
        font-size: 0.86rem;
        color: #86b1ff;
    }

    .equipment-card-hint {
        font-size: var(--font-mobile-tiny);
        letter-spacing: 0.12em;
    }

    #projects {
        padding: 0;
        background: none;
    }

    .trusted-by-gallery {
        margin-top: 0;
        gap: 1.6rem;
        align-items: center;
    }

    .gallery-item {
        padding: 0.8rem 1.4rem 1.4rem;
        gap: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gallery-item[data-direction="right"] {
        flex-direction: column;
    }

    .gallery-image-container {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .trusted-by-gallery .plaque {
        padding: 1.2rem;
        align-items: center;
        text-align: center;
    }

    .trusted-by-gallery .plaque h4 {
        font-size: 1.32rem;
        margin-bottom: 0.6rem;
        letter-spacing: 0.02em;
        align-self: center;
    }

    .trusted-by-gallery .plaque p {
        font-size: 0.92rem;
        line-height: 1.55;
        align-self: center;
    }

    .mini-gallery {
        margin-top: 2.4rem;
        margin-bottom: 2.4rem;
        padding: 0.9rem 0;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }

    .mini-gallery-track {
        gap: 0.8rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mini-gallery-item {
        flex: 0 0 clamp(220px, 68vw, 300px);
        border-radius: 18px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
        aspect-ratio: 3 / 2;
    }

    .mini-gallery-item img {
        height: 100%;
    }

    #contact {
        padding: 2.4rem 0;
    }

    #contact h2 {
        font-size: var(--font-mobile-h2);
        margin: 0 auto 1rem;
    }

    .contact-wrapper {
        gap: 1.6rem;
        min-height: auto;
    }

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

    .contact-card {
        padding: 1rem;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        min-height: 0;
    }

    .contact-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .contact-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-card-label {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .contact-card-value {
        font-size: 0.95rem;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .contact-lead {
        font-size: 0.92rem;
        line-height: 1.6;
        margin: 0 auto 1rem;
        max-width: 32ch;
    }

    .contact-lead + .contact-lead {
        margin-top: 0;
        margin-bottom: 2rem;
        font-size: 0.84rem;
    }

    footer {
        padding: 0.9rem 0;
        font-size: 0.85rem;
    }

    .footer-content {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        width: min(560px, 100%);
        padding: 1.6rem;
        border-radius: 22px;
    }

    .modal-title {
        display: none;
        font-size: 1.35rem;
        padding-right: 2.2rem;
    }

    .close-btn {
        top: 0.35rem;
        right: 0.4rem;
        font-size: 2rem;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        margin: 0;
        line-height: 0;
        touch-action: manipulation;
    }

    .modal-body {
        margin-top: 1.2rem;
        max-height: calc(100vh - 5.5rem);
        padding-right: 0.3rem;
        overflow-x: hidden;
    }

    .modal-equipment-content {
        gap: 1.2rem;
    }

    .modal-equipment-sections {
        gap: clamp(1.4rem, 3vw, 2rem);
    }

    .modal-equipment-section {
        border-radius: 24px;
        padding: clamp(1.2rem, 2.6vw, 1.6rem);
        background: rgba(25, 25, 25, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .modal-equipment-section h4 {
        margin: 0 0 1rem 0;
        font-weight: 700;
        font-size: clamp(1.05rem, 1.2vw, 1.2rem);
        color: rgba(224, 224, 224, 0.95);
        text-transform: uppercase;
        letter-spacing: 0.02em;
        text-align: center;
    }

    .modal-equipment-section ul {
        gap: clamp(0.75rem, 1.8vw, 1rem);
    }

    .modal-equipment-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0.4rem;
        padding: 0.85rem 1.1rem;
        font-size: clamp(1rem, 1.05vw, 1.08rem);
        line-height: 1.5;
        background: rgba(15, 15, 15, 0.75);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .modal-equipment-item::before {
        display: none;
    }

    .modal-equipment-item-brand {
        font-weight: 600;
        font-size: clamp(1rem, 1.1vw, 1.15rem);
        letter-spacing: 0.01em;
        color: rgba(244, 246, 255, 0.96);
        display: block;
    }

    .modal-equipment-item-model {
        font-weight: 500;
        font-size: clamp(0.95rem, 1vw, 1.05rem);
        color: rgba(220, 224, 240, 0.92);
        letter-spacing: 0.01em;
    }

    .modal-equipment-item-qty {
        font-size: clamp(0.92rem, 0.98vw, 1.02rem);
        font-weight: 600;
        color: #86b1ff;
        justify-self: flex-start;
    }

    .modal-equipment-item-qty--placeholder {
        color: rgba(220, 224, 240, 0.5);
        font-weight: 500;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    header {
        padding: 0.5rem 0;
    }

    .logo {
        height: 40px;
    }

    main {
        padding-top: 55px;
    }

    #hero {
        padding: var(--hero-spacing) 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    #about {
        padding: 2rem 0 4rem;
    }

    .about-content {
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        gap: 1.5rem;
        max-width: 100%;
    }

    .stat-item {
        flex: 1;
    }

    .trusted-by-gallery {
        margin-top: 3rem;
    }

    .gallery-item {
        padding: 1.5rem;
    }

    #contact {
        padding: 4rem 0;
    }

    .contact-wrapper {
        min-height: 50vh;
    }

    .modal-body {
        max-height: 50vh;
    }
}

@media (max-width: 375px) {
    :root {
        --font-mobile-h1: 1.9rem;
        --font-mobile-h2: 1.55rem;
        --font-mobile-h3: 1.18rem;
        --font-mobile-body: 0.92rem;
        --font-mobile-small: 0.82rem;
        --font-mobile-tiny: 0.68rem;
    }

    .logo {
        height: 44px;
    }

    .mobile-section-heading {
        font-size: var(--font-mobile-h2);
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-content p {
        margin-bottom: 0.2rem;
    }

    .hero-content h1::after {
        width: 64%;
        bottom: -0.4rem;
    }

    .cta-button {
        padding: 0.64rem 1.35rem;
        font-size: 0.98rem;
        align-self: center;
    }

    .logo-card {
        width: clamp(78px, 44vw, 118px);
    }

    .about-title {
        font-size: var(--font-mobile-h2);
    }

    .about-text p {
        font-size: var(--font-mobile-small);
    }

    #equipment h2 {
        font-size: var(--font-mobile-h2);
    }

    .equipment-lead {
        font-size: 0.82rem;
    }

    .equipment-card {
        padding: 1.05rem;
    }

    .equipment-card-title {
        font-size: 0.92rem;
    }

    .equipment-card-hint {
        font-size: var(--font-mobile-tiny);
    }

    .stat-item {
        padding: 0.9rem 0.6rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 0.88rem;
    }

    .trusted-by-gallery .plaque h4 {
        font-size: 1.22rem;
    }

    .trusted-by-gallery .plaque p {
        font-size: 0.78rem;
    }

    .contact-grid {
        gap: 0.8rem;
    }

    .contact-card {
        padding: 0.9rem;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
    }

    .contact-card-icon {
        width: 38px;
        height: 38px;
    }

    .contact-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-card-label {
        font-size: 0.56rem;
        letter-spacing: 0.09em;
    }

    .contact-card-value {
        font-size: 0.9rem;
    }

    .modal-body {
        max-height: calc(100vh - 4.8rem);
    }
}
