:root {
    --bg-deep: #000000;
    --accent: #ffffff;
    --accent-glow: #ffffff;
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}
.loader-logo {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s, transform 0.5s;
}
.loader-logo img {
    max-width: 90%;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}
.sound-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100px;
    margin-bottom: 20px;
    position: relative;
}
.sound-visualizer .bar {
    width: 12px;
    height: 20px;
    background: white;
    border-radius: 6px;
    transition: height 0.1s ease;
}
.sound-visualizer .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}
.sound-visualizer .dot.visible {
    opacity: 1;
}
.loader-progress-container {
    width: 90%;
    max-width: 1200px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.1s linear;
    transform-origin: left;
}
.progress-percent {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255,255,255,0.9);
    transition: width 0.3s, height 0.3s, opacity 0.2s;
}
/* В полях ввода — обычный текстовый курсор, а светящаяся точка прячется, чтобы не закрывать текст */
input,
textarea {
    cursor: text;
}
select,
input[type="date"],
input[type="checkbox"] {
    cursor: pointer;
}
#cursor.is-hidden {
    opacity: 0;
}
/* Сенсорные экраны: мыши нет — точка не нужна */
@media (hover: none) {
    * {
        cursor: auto;
    }
    #cursor {
        display: none;
    }
}
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.wrapper {
    position: relative;
    z-index: 2;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    transition: transform 0.5s ease, background 0.5s ease;
}
header.hidden {
    transform: translateY(-100%);
}
.logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav-links {
    display: flex;
    gap: 3rem;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

section {
    min-height: 100vh;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero-section {
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 8vw;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.hero-title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.9);
}
.hero-title span.filled {
    color: #ffffff;
    -webkit-text-stroke: 0;
}

.hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 2rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.projects-section {
    padding: 10vh 5vw;
}
.section-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 6vw;
    margin-bottom: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-align: center;
}
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}
.featured-grid {
    grid-template-columns: 1fr 1fr;
    transition: grid-template-columns 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card {
    position: relative;
    height: 600px;
    background: #000;
    overflow: hidden;
    /* transform карточки двигает только GSAP (анимация появления). CSS-переход на transform здесь нельзя:
       он растягивает каждый кадр анимации, и карточки в ряду застревают на разной высоте */
    transition: box-shadow 0.4s;
    border: none;
}
.card-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 1;
}
.card-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    mix-blend-mode: normal;
}
/* Видео всегда заполняет карточку целиком, при наведении — лёгкий наезд камеры */
.project-card:hover .card-media video {
    transform: scale(1.05);
    opacity: 1;
}
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
    font-weight: 700;
}
.card-desc {
    font-family: 'Montserrat', sans-serif;
    color: #ccc;
    font-size: 1.3rem;
    line-height: 1.5;
    max-width: 80%;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    font-weight: 400;
}
.card-tags {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 10px;
    z-index: 3;
}
.tag {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease 0.3s;
}
.project-card:hover .card-content {
    transform: translateY(0);
}
.project-card:hover .card-title,
.project-card:hover .card-desc,
.project-card:hover .tag {
    transform: translateY(0);
    opacity: 1;
}

.card-border {
    position: absolute;
    background: rgba(255,255,255,0.6);
    z-index: 10;
    pointer-events: none;
}
.border-top {
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: width 0.3s ease;
}
.border-right {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
    transition: height 0.3s ease 0.3s;
}
.border-bottom {
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: width 0.3s ease 0.6s;
}
.border-left {
    top: 0;
    left: 0;
    width: 1px;
    height: 0;
    transition: height 0.3s ease 0.9s;
}
.project-card:hover .border-top {
    width: 100%;
}
.project-card:hover .border-right {
    height: 100%;
}
.project-card:hover .border-bottom {
    width: 100%;
}
.project-card:hover .border-left {
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 80%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-card:hover::before {
    opacity: 1;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 4rem 0;
    opacity: 0.8;
}
.catalog-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.explorer-card {
    width: 90%;
    max-width: 1400px;
    height: 450px;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5rem;
    position: relative;
    transition: all 0.5s ease;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.explorer-card .card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.explorer-card .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.5s, transform 0.8s;
    filter: grayscale(50%);
}
.explorer-card:hover .card-media video {
    transform: scale(1.05);
    opacity: 0.6;
}
.explorer-content {
    position: relative;
    z-index: 2;
}
.explorer-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}
.explorer-content p {
    font-size: 1.5rem;
    color: #ccc;
}
.explorer-arrow {
    font-size: 5rem;
    transition: transform 0.5s ease;
    color: #fff;
    position: relative;
    z-index: 2;
}
.explorer-card:hover .explorer-arrow {
    transform: translateX(30px);
}

footer {
    padding: 1.5rem 5vw 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-left, .footer-right {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}
.footer-nav a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-text p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-right {
    align-items: flex-end;
}
.footer-logo-image img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}
.footer-contacts a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.footer-contacts a:hover {
    color: #fff;
}

.footer-copyright {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 1rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Added for legal info consistency */
.legal-info {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.projects-page .project-card {
    height: 450px;
}

.page-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 4vw;
    margin: 4rem 0 2rem;
    text-align: center;
    letter-spacing: 2px;
}

/* ===== Пагинация (обновлённая) ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin: 3rem 0 5rem;
    flex-wrap: wrap;      /* перенос на мобилках */
}

.pagination button,
.pagination .page-number {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;          /* закруглённые кнопки */
    backdrop-filter: blur(4px);
}

.pagination .page-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pagination button:hover:not(:disabled),
.pagination .page-number:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.pagination .page-number.active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

/* Адаптивность пагинации */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        margin: 2rem 0;
    }
    .pagination button,
    .pagination .page-number {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    .pagination .page-number {
        width: 36px;
        height: 36px;
    }
}

/* ===== Конец пагинации ===== */


.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin: 3rem 0 5rem;
    justify-content: center;
}

.contact-info {
    flex: 1 1 300px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3,
.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: none;
    font-weight: 700;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    color: #fff;
    width: 30px;
    text-align: center;
}

.contact-info-item a,
.contact-info-item span {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.contact-info-item a:hover {
    color: #ccc;
}

.contact-form {
    flex: 1 1 400px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.8rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.map-container {
    width: 100%;
    margin: 3rem 0 5rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    filter: grayscale(100%) invert(90%) contrast(120%);
}

.map-container small {
    display: block;
    text-align: center;
    margin-top: 10px;
}
.map-container small a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}
.map-container small a:hover {
    border-bottom-color: #fff;
}

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

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    #cursor {
        display: none;
    }

    #preloader {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        transform: none;
        gap: 20px;
    }
    .loader-logo img {
        max-width: 80%;
        height: auto;
    }

    header {
        padding: 1rem 5vw;
    }
    .logo img {
        height: 40px;
    }
    .nav-links {
        display: none;
    }

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

    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        transform: none !important;
        flex-wrap: wrap !important;
    }

    .services-carousel {
        display: block !important;
        overflow: visible !important;
    }

    .page-header {
        font-size: 8vw;
    }
    .contacts-container {
        flex-direction: column;
    }
    footer {
        padding: 1rem 5vw 0.5rem !important;
        gap: 0.8rem !important;
    }
    .footer-left, .footer-right {
        width: 100%;
        align-items: center;
        gap: 0.5rem !important;
    }
    .legal-info {
        font-size: 0.7rem;
        margin-top: 0.5rem;
        color: rgba(255,255,255,0.5);
        text-align: center;
    }
    .footer-nav {
        align-items: center;
    }
    .footer-nav a:hover {
        transform: translateX(0);
    }
    .footer-right {
        align-items: center;
    }
    .footer-contacts {
        align-items: center;
    }
    .hero-title {
        font-size: 10vw; 
    }
    .hero-title .line {
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .about-content {
        font-size: 1.1rem;
    }
    .explorer-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
        height: auto;
    }
    .explorer-arrow {
        transform: rotate(90deg);
    }
    .explorer-card:hover .explorer-arrow {
        transform: rotate(90deg) translateX(20px);
    }
    .hero-stats {
        flex-direction: column;
    }
    .catalog-section {
        padding: 2vw;
    }
    .explorer-content h2 {
        font-size: 3rem;
    }
    .project-card {
        height: auto;
        min-height: 350px;
    }
    .project-card .card-content {
        transform: translateY(0);
    }
    .project-card .card-title,
    .project-card .card-desc,
    .project-card .tag {
        opacity: 1;
        transform: translateY(0);
    }
    .project-card:hover {
        transform: none;
    }
    .project-card .card-title {
        font-size: 2rem;
    }
    .project-card .card-desc {
        font-size: 1rem;
        max-width: 100%;
    }
    .service-card h3 {
        font-size: 1.5rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info-item a,
    .contact-info-item span {
        font-size: 1rem;
    }

    footer {
        gap: 1rem;
        padding: 1rem 5vw 0.5rem;
    }
    .footer-nav a {
        font-size: 1rem;
    }
    .footer-contacts a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 9vw;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-header {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .project-card .card-title {
        font-size: 1.5rem;
    }
    .service-card {
        padding: 1rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }
    .service-card p {
        font-size: 0.95rem;
    }
    .contact-info .icon {
        font-size: 1.2rem;
    }
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 8vw;
    }
}
@media (max-width: 360px) {
    .hero-title {
        font-size: 8vw; 
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.about-section {
    padding: 10vh 5vw;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ccc;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.services-section {
    padding: 10vh 5vw;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
    gap: 1rem;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}
.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.service-card p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
.service-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    align-self: flex-end;
    transition: transform 0.3s ease;
    font-weight: 600;
    margin-top: auto;
}
.service-card:hover .service-link {
    transform: translateX(10px);
}

.contact-section {
    padding: 10vh 5vw;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.card-price {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
}

.loader-bar {
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.5s ease;
}

/* Mobile filter menu (used on catalog page) */
.mobile-filters {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 70px;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.mobile-filters .filter-btn {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    margin: 0 0.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}
.mobile-filters .filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
    .mobile-filters {
        display: flex;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .mobile-filters .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}
@media (min-width: 769px) {
    .mobile-filters {
        display: none;
    }
}
/* ===== Мобильное меню (общее для всех страниц) ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: relative;
}
.burger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 150;
    transition: left 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    padding: 100px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    overflow-y: auto;
}
.sidebar.open {
    left: 0;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.2s;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar a.active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 700;
}
.sidebar a:hover {
    padding-left: 10px;
    border-bottom-color: #fff;
}
.sidebar a.sidebar-phone {
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 140;
    display: none;
}
.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
}
/* ===== Формы ===== */
.form-status {
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #9be59b;
}
.form-status.error {
    color: #ff8a80;
}
.form-status:empty {
    display: none;
}

/* ===== Кейсы ===== */
/* Нечётное число кейсов: последний остаётся обычного размера и встаёт по центру ряда */
@media (min-width: 769px) {
    .featured-grid .project-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 2rem) / 2);
    }
}

/* ===== Карточки каталога ===== */
/* Не больше 4 колонок: 12 позиций на странице делятся ровно на 4, 3 и 2 — ряды всегда полные */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 3rem;
}
@media (max-width: 1200px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.gear-card {
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.gear-card:hover {
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
/* Фото товаров на белом фоне — даём им белую площадку и вписываем целиком */
.gear-media {
    position: relative;
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Абсолютное позиционирование: высокое фото не может растянуть площадку */
.gear-media img {
    position: absolute;
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    object-fit: contain;
    transition: transform 0.4s ease;
}
.gear-card:hover .gear-media img {
    transform: scale(1.04);
}
.gear-media .no-image {
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}
.gear-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.2rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
}
.gear-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}
.gear-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.6rem;
}
.gear-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.65);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gear-card.expanded .gear-desc {
    -webkit-line-clamp: unset;
    display: block;
}
.gear-more {
    align-self: flex-start;
    margin-top: 0.4rem;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-family: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
/* Цена прижата к низу карточки — у всех карточек в ряду на одной линии */
.gear-footer {
    margin-top: auto;
    padding-top: 1rem;
}
.gear-price {
    color: #fff;
    white-space: nowrap;
}
.gear-price b {
    font-size: 1.3rem;
    font-weight: 800;
}
.gear-price span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-left: 0.25rem;
}
.gear-price.on-request b {
    font-size: 1rem;
}
/* Телефон: две колонки, без описания — название и цена */
@media (max-width: 600px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .gear-media img {
        inset: 0.6rem;
        width: calc(100% - 1.2rem);
        height: calc(100% - 1.2rem);
    }
    .gear-body {
        padding: 0.75rem;
    }
    .gear-title {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    .gear-desc,
    .gear-more {
        display: none;
    }
    .gear-footer {
        padding-top: 0.75rem;
    }
    .gear-price b {
        font-size: 1.05rem;
    }
}

/* ===== Первый экран ===== */
/* Повторный визит: прелоадер не показываем вовсе (класс ставится в <head> до отрисовки) */
.intro-seen #preloader {
    display: none;
}
.hero-kicker {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.hero-btn.primary {
    background: #fff;
    color: #000;
}
.hero-btn:hover,
.hero-btn:focus-visible {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255,255,255,0.35);
}
.hero-btn-short {
    display: none;
}

/* Телефон в шапке */
.nav-links {
    margin-left: auto;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 3rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
/* Ноутбуки: меню плотнее, телефон иконкой — иначе пункты наезжают на логотип */
@media (max-width: 1280px) {
    .nav-links {
        gap: 1.75rem;
    }
    .header-phone {
        margin-left: 1.75rem;
    }
    .header-phone-text {
        display: none;
    }
}

/* Планшеты: пять пунктов меню + логотип + телефон в строку уже не влезают */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .burger {
        display: flex;
    }
    .header-phone {
        margin-left: auto;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-phone {
        margin-left: auto;
        margin-right: 1.25rem;
        width: 40px;
        height: 40px;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 50%;
    }
    .header-phone-text {
        display: none;
    }
    .hero-kicker {
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
        margin-top: 2rem;
    }
    .hero-btn {
        min-width: 0;
        padding: 0.95rem 1.5rem;
        font-size: 0.85rem;
    }
    .hero-btn-full {
        display: none;
    }
    .hero-btn-short {
        display: inline;
    }
}

/* Телефон: заголовок крупнее подзаголовка (слова короче прежних, влезают при 12.5vw) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 12.5vw;
        line-height: 1.05;
        margin-bottom: 1.25rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.45;
    }
}

/* Атрибут hidden должен скрывать и элементы, которым задан display (например, section) */
[hidden] {
    display: none !important;
}

/* ===== Блок доверия ===== */
.trust-section {
    min-height: auto;
    padding: 10vh 5vw;
}
.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 4rem;
}
.trust-stat {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.trust-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.trust-stat-label {
    margin-top: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.trust-subtitle {
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.trust-clients {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 4rem;
}
.trust-clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3rem;
    list-style: none;
}
.trust-client img {
    display: block;
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.trust-client img:hover {
    opacity: 1;
}
.trust-client-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}
.trust-reviews {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.trust-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.trust-review {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    font-family: 'Montserrat', sans-serif;
}
.trust-review blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}
.trust-review blockquote::before {
    content: '«';
}
.trust-review blockquote::after {
    content: '»';
}
.trust-review figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: auto;
}
.trust-review-author {
    font-weight: 700;
    color: #fff;
}
.trust-review-role,
.trust-review-event {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ===== Реквизиты в футере ===== */
.legal-info a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Юридические страницы ===== */
/* Здесь нет кастомного курсора — возвращаем обычный */
.legal-page,
.legal-page * {
    cursor: auto;
}
.legal-page a {
    cursor: pointer;
}
.legal-header {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.legal-back {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 5vw 4rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
}
.legal-doc h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.25;
    color: #fff;
    margin-bottom: 0.5rem;
}
.legal-doc h2 {
    font-size: 1.15rem;
    color: #fff;
    margin: 2.25rem 0 0.75rem;
}
.legal-doc p {
    margin-bottom: 1rem;
}
.legal-doc ul {
    margin: 0 0 1rem 1.25rem;
}
.legal-doc li {
    margin-bottom: 0.4rem;
}
.legal-doc a {
    color: #fff;
}
.legal-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
/* Незаполненный реквизит — видно сразу, чтобы документ не ушёл в прод с пустыми полями */
.legal-todo {
    background: #ffd54a;
    color: #000;
    padding: 0 0.3em;
    border-radius: 3px;
    font-weight: 700;
}
.legal-footer {
    padding: 2rem 5vw;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.legal-footer a {
    color: rgba(255,255,255,0.8);
}

/* ===== Фильтр категорий в каталоге ===== */
.catalog-filters {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 2.5rem;
}
.catalog-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.catalog-filter:hover {
    border-color: #fff;
}
.catalog-filter.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}
.catalog-filter-count {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.55;
}
.catalog-filter.active .catalog-filter-count {
    opacity: 0.6;
}

/* Телефон: категории в одну строку с прокруткой, чтобы не занимать пол-экрана */
@media (max-width: 600px) {
    .catalog-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }
    .catalog-filters::-webkit-scrollbar {
        display: none;
    }
    .catalog-filter {
        padding: 0.5rem 0.95rem;
        font-size: 0.75rem;
    }
}

/* Текущий раздел в меню шапки */
.nav-links a.active::after {
    width: 100%;
}
.sidebar-label {
    margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.sidebar a.filter-link {
    font-size: 1.1rem;
    padding: 0.25rem 0;
}
/* В меню каталога пунктов много — плотнее, чтобы телефон внизу был виден без прокрутки */
.sidebar {
    gap: 1.1rem;
    padding-top: 90px;
}
.sidebar a.sidebar-phone {
    margin-top: 1rem;
}

/* Карта: высота задаётся контейнеру, чтобы место было зарезервировано ещё до создания iframe */
.map-container {
    height: 400px;
    margin-bottom: 1rem;
    background: #111;
}
.map-container iframe {
    display: block;
    height: 100%;
}
.map-links {
    margin-bottom: 5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}
.map-links a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
}
.map-links a:hover {
    border-bottom-color: #fff;
}
@media (max-width: 480px) {
    .map-container {
        height: 300px;
    }
}

/* ===== Страница «Доставка и монтаж» ===== */
.dlv {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 4rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.8);
}
/* Вложенные section не должны наследовать полноэкранную высоту обычных секций */
.dlv .dlv-block {
    display: block;
    min-height: 0;
    padding: 0;
    margin-top: 5rem;
}
.dlv-intro {
    text-align: center;
}
.dlv-lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
}
.dlv-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.dlv-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
}
.dlv-title {
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
}
.dlv-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.dlv-card {
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}
.dlv-card-num {
    display: block;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
}
.dlv-card h3,
.dlv-why h3,
.dlv-steps h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.dlv-card p,
.dlv-why p,
.dlv-steps p {
    font-size: 0.92rem;
    line-height: 1.55;
}
.dlv-extra {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid #fff;
    background: rgba(255,255,255,0.04);
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Шаги: номер в кружке, линия-связка между шагами */
.dlv-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    list-style: none;
    counter-reset: dlv-step;
}
.dlv-steps li {
    position: relative;
    counter-increment: dlv-step;
    padding-top: 3.5rem;
}
.dlv-steps li::before {
    content: counter(dlv-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-weight: 800;
}
.dlv-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 3.25rem;
    right: -0.75rem;
    height: 1px;
    background: rgba(255,255,255,0.25);
}
.dlv-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.dlv-faq {
    max-width: 820px;
    margin: 0 auto;
}
.dlv-faq details {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.dlv-faq summary {
    position: relative;
    padding: 1.25rem 2.5rem 1.25rem 0;
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}
.dlv-faq summary::-webkit-details-marker {
    display: none;
}
.dlv-faq summary::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}
.dlv-faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.dlv-faq details p {
    padding: 0 2.5rem 1.25rem 0;
    line-height: 1.6;
}
.dlv .dlv-form {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    background: rgba(0,0,0,0.6);
    scroll-margin-top: 110px;
}
.dlv-form .dlv-title {
    margin-bottom: 0.5rem;
}
.dlv-form-sub {
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.65);
}
.dlv-form .contact-form {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

@media (max-width: 900px) {
    .dlv-cards,
    .dlv-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .dlv-steps li:not(:last-child)::after {
        display: none;
    }
    .dlv-why {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 600px) {
    .dlv .dlv-block {
        margin-top: 3.5rem;
    }
    .dlv-lead {
        font-size: 1.05rem;
    }
    .dlv-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .dlv-cards,
    .dlv-steps {
        grid-template-columns: 1fr;
    }
    .dlv .dlv-form {
        padding: 1.75rem 1.25rem;
    }
}

/* ===== О нас ===== */
.about-section {
    min-height: auto;
    text-shadow: none;
}
.about-content {
    max-width: 1100px;
    width: 100%;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}
.about-lead {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #fff;
}
.about-subtitle {
    margin: 3.5rem 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.about-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
}
.about-formats li {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    text-align: left;
}
.about-card {
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}
.about-card h4 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.about-card p {
    font-size: 0.92rem;
    line-height: 1.55;
}
.about-card a {
    color: #fff;
    white-space: nowrap;
}
.about-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .about-content {
        font-size: 1rem;
    }
    .about-lead {
        font-size: 1.1rem;
    }
    .about-subtitle {
        margin-top: 2.5rem;
    }
    .about-formats li {
        padding: 0.5rem 0.95rem;
        font-size: 0.8rem;
    }
    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== Призыв оставить заявку под каталогом ===== */
/* section внутри секции: без полноэкранной высоты обычных секций */
.catalog-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    min-height: 0;
    margin: 1rem auto 5rem;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    background: rgba(0,0,0,0.6);
    font-family: 'Montserrat', sans-serif;
}
.catalog-cta-text h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}
.catalog-cta-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
}
.catalog-cta-form {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}
.catalog-cta-form .form-group textarea {
    min-height: 100px;
}

@media (max-width: 900px) {
    .catalog-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
}
@media (max-width: 600px) {
    .catalog-cta {
        margin-bottom: 3rem;
        padding: 1.75rem 1.25rem;
    }
}

/* ===== Каталог: вводный текст и переключатель страниц-ссылок ===== */
.catalog-intro {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}
.catalog-intro h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #fff;
}
.catalog-intro p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #fff;
}
/* Страницы — ссылки (их видят поисковики), выглядят как прежние кнопки */
.pagination .page-btn,
.pagination a.page-number {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
}
.pagination a.page-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a.page-btn:hover,
.pagination a.page-number:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}
.pagination span.page-btn {
    opacity: 0.3;
}
.pagination a.page-number.active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* ===== Запрос в Telegram вместо формы заявки ===== */
.req-lead {
    margin: -1rem 0 1.75rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}
.req-needs {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
    min-width: 0;
}
.req-label {
    display: block;
    margin-bottom: 0.6rem;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.req-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.req-chips label {
    position: relative;
}
.req-chips input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.req-chips span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.req-chips label:hover span {
    border-color: #fff;
}
.req-chips input:checked + span {
    background: #fff;
    border-color: #fff;
    color: #000;
}
.req-chips input:focus-visible + span {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.req-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.req-row .form-group {
    display: block;
}
.form-group select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}
.form-group select option {
    background: #111;
    color: #fff;
}
.form-group input[type="date"] {
    color-scheme: dark;
}
.form-group select:focus {
    outline: none;
    border-color: #fff;
}
.req-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.req-actions .submit-btn {
    display: inline-block;
    flex: 1;
    text-align: center;
    text-decoration: none;
}
.req-call {
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}
.req-hint {
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
}
.req-copy {
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
    font: inherit;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 600px) {
    .req-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .req-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .req-call {
        align-self: center;
    }
}

/* ===== Иконки в контактах ===== */
.contact-info-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}
.contact-info-item .icon svg {
    width: 20px;
    height: 20px;
}

/* ===== Появление блоков и прелоадер (раньше — GSAP и Lenis) ===== */
html {
    scroll-behavior: smooth;
}
/* Начальное состояние ставит script.js (prepareReveal), .is-visible запускает переход.
   Кривая cubic-bezier(0.215, 0.61, 0.355, 1) — то же «power3.out», что было в GSAP */
.reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y, 50px));
    transition: opacity var(--reveal-duration, 1s) cubic-bezier(0.215, 0.61, 0.355, 1),
                transform var(--reveal-duration, 1s) cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
#preloader {
    transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}
#preloader.is-filling .loader-bar {
    width: 100%;
    transition: width 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955), opacity 0.25s;
}
#preloader.is-fading .loader-logo,
#preloader.is-fading .loader-bar {
    opacity: 0;
    transition: width 0.7s, opacity 0.25s;
}
#preloader.is-leaving {
    transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== Телефон: ничего не шире экрана ===== */
/* Длинное слово («Видеооборудование») крупным шрифтом распирало колонку сетки до 430px,
   страница становилась шире экрана, и iPhone уменьшал её целиком — блоки «съезжали».
   minmax(0, 1fr) не даёт содержимому растянуть колонку, а заголовки переносятся. */
.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    /* Базовые правила карточек стоят в файле ниже старых мобильных и перебивали их — повторяем здесь */
    .service-card {
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.3rem;
    }
    .service-card p {
        font-size: 0.95rem;
    }
}
/* Safari на iPhone рисует поле даты по своей ширине и без высоты — выравниваем с остальными полями */
.form-group input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
    min-height: 3rem;
    text-align: left;
}
.form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}
.req-row > .form-group {
    min-width: 0;
}
/* Узкие телефоны (320–360px): карточки контактов и запроса не шире экрана */
.contact-info,
.contact-form {
    min-width: 0;
}
@media (max-width: 480px) {
    .contacts-container {
        gap: 1.5rem;
    }
    .contact-info,
    .contact-form {
        flex-basis: 100%;
        padding: 1.25rem;
    }
    .contact-info-item a,
    .contact-info-item span {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }
}
/* Длинные слова в заголовках переносим, а не выпускаем за край экрана */
.section-header,
.project-card .card-title,
.catalog-cta-text h2,
.dlv-title {
    overflow-wrap: break-word;
}
@media (max-width: 380px) {
    .section-header {
        font-size: 2rem;
    }
}
/* Теги кейса на телефоне: переносятся на вторую строку, а не уезжают за левый край карточки */
@media (max-width: 768px) {
    .card-tags {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }
    .tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}
