.firstCategory-container {
    max-width: 1500px;
    margin: 0 auto;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #2f2f2f;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fe7200;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fe7200;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.firstCategory-hero {
    /* Светлый фон вместо темного */
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 45%, #ffe8d2 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 500px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    animation: heroSectionEnter 0.9s ease-out forwards;
}

/* Контейнер для движущихся фигур на заднем фоне */
.firstCategory-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.firstCategory-hero-shape {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 40%;
    filter: blur(1px);
    opacity: 0.8;
    mix-blend-mode: soft-light;
}

.firstCategory-hero-shape--left {
    top: 55%;
    left: -8%;
    background: radial-gradient(circle at 30% 30%, rgba(254, 114, 0, 0.9), rgba(255, 195, 150, 0.3));
    animation: heroBlobLeft 18s ease-in-out infinite alternate;
}

.firstCategory-hero-shape--right {
    top: -10%;
    right: -12%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 70% 20%, rgba(255, 185, 130, 0.9), rgba(255, 240, 220, 0.2));
    animation: heroBlobRight 22s ease-in-out infinite alternate;
}

/* Легкая «подсветка» фона баннера (мягкое свечение) */
.firstCategory-hero::before {
    content: "";
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 8% 0%, rgba(254, 114, 0, 0.25) 0, transparent 60%),
        radial-gradient(circle at 95% 100%, rgba(255, 210, 170, 0.9) 0, transparent 60%);
    opacity: 0.9;
    pointer-events: none;
    z-index: -2;
    animation: heroGlow 14s ease-in-out infinite alternate;
}

/* Более заметные анимированные элементы на заднем плане баннера */
.firstCategory-hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle at 12% 85%, rgba(254, 114, 0, 0.30) 0, transparent 55%),
        radial-gradient(circle at 88% 10%, rgba(255, 160, 110, 0.45) 0, transparent 55%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0) 90%);
    background-size: 460px 460px, 560px 560px, 220% 220%;
    mix-blend-mode: soft-light;
    opacity: 0.95;
    pointer-events: none;
    z-index: -1;
    animation: heroBackgroundMove 16s linear infinite alternate;
}

.firstCategory-hero-content {
    flex: 1;
    color: #222;
    position: relative;
    z-index: 2;
}

.firstCategory-hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #222;
    animation: heroFadeUp 0.9s ease-out forwards;
}

.firstCategory-hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
    animation: heroFadeUp 0.9s ease-out forwards;
    animation-delay: 0.12s;
}

.firstCategory-cta-button {
    background-color: #fe7200;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(254, 114, 0, 0.35);
    animation: heroFadeUp 0.9s ease-out forwards;
    animation-delay: 0.24s;
}

.firstCategory-cta-button:hover {
    background-color: #e66500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 114, 0, 0.4);
}

.firstCategory-hero-image {
    flex: 1;
}

.firstCategory-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform-origin: center;
    animation: heroFloat 7s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.firstCategory-section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #2f2f2f;
    position: relative;
    padding-bottom: 20px;
}

.firstCategory-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #fe7200;
}

/* About Section */
.firstCategory-about-section {
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.firstCategory-about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-about-text {
    flex: 1;
}

.firstCategory-about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

.firstCategory-about-image {
    flex: 1;
}

.firstCategory-about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Advantages Section */
.firstCategory-advantages-section {
    /* убран серый фон, блок на белом фоне */
    background-color: #fff;
}

.firstCategory-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-advantage-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firstCategory-advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.firstCategory-advantage-icon {
    margin-bottom: 20px;
}

.firstCategory-advantage-icon img {
    width: 100px;
    height: 100px;
}

.firstCategory-advantage-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2f2f2f;
}

.firstCategory-advantage-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #2f2f2f;
}

/* Types Section */
.firstCategory-types-section {
    background-color: #fff;
}

.firstCategory-types-content {
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-type-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.firstCategory-type-item.firstCategory-reverse {
    flex-direction: row-reverse;
}

.firstCategory-type-image {
    flex: 1;
}

.firstCategory-type-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.firstCategory-type-description {
    flex: 1;
}

.firstCategory-type-description h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2f2f2f;
}

.firstCategory-type-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.firstCategory-type-description a {
    color: #fe7200;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.firstCategory-type-description a:hover {
    color: #e66500;
    text-decoration: underline;
}

/* Installation Section */
.firstCategory-installation-section {
    /* убран серый фон, делаем белый в общем стиле страницы */
    background-color: #fff;
}

.firstCategory-installation-content {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    gap: 40px;
}

.firstCategory-installation-text {
    flex: 1;
}

.firstCategory-installation-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.firstCategory-installation-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.firstCategory-step-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.firstCategory-step-number {
    background-color: #fe7200;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.firstCategory-step-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f2f2f;
}

.firstCategory-step-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #2f2f2f;
}

.firstCategory-installation-image {
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-installation-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Specifications Image */
.firstCategory-specifications-image {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

/* Пазл из 8 частей для изображения характеристик */
.firstCategory-specifications-puzzle {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.firstCategory-specifications-img-original {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.firstCategory-spec-piece {
    position: relative;
    background-image: url("https://metallprofil.uz/upload/resize_cache/iblock/b47/1441_1441_0/Metallocherepitsa_Lamonterra_KH.png");
    background-size: 400% 200%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1.04);
}

/* Запуск анимации только когда пазл активирован классом */
.firstCategory-specifications-puzzle.is-animated .firstCategory-spec-piece {
    animation: specPuzzleIn 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* Позиции и траектории 8 частей (4х2) */
.firstCategory-spec-piece--1 {
    background-position: 0% 0%;
    --tx: -40px;
    --ty: -40px;
    --delay: 0.0s;
}

.firstCategory-spec-piece--2 {
    background-position: 33.33% 0%;
    --tx: 40px;
    --ty: -50px;
    --delay: 0.08s;
}

.firstCategory-spec-piece--3 {
    background-position: 66.66% 0%;
    --tx: -50px;
    --ty: 40px;
    --delay: 0.16s;
}

.firstCategory-spec-piece--4 {
    background-position: 100% 0%;
    --tx: 50px;
    --ty: 30px;
    --delay: 0.24s;
}

.firstCategory-spec-piece--5 {
    background-position: 0% 100%;
    --tx: -60px;
    --ty: 40px;
    --delay: 0.32s;
}

.firstCategory-spec-piece--6 {
    background-position: 33.33% 100%;
    --tx: 30px;
    --ty: 50px;
    --delay: 0.40s;
}

.firstCategory-spec-piece--7 {
    background-position: 66.66% 100%;
    --tx: -30px;
    --ty: -40px;
    --delay: 0.48s;
}

.firstCategory-spec-piece--8 {
    background-position: 100% 100%;
    --tx: 40px;
    --ty: -30px;
    --delay: 0.56s;
}

/* Specifications Section */
.firstCategory-specifications-section {
    /* убран фон, оставляем базовый белый цвет страницы */
    background-color: #fff;
}

.firstCategory-specifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-spec-item {
    background: linear-gradient(145deg, #ffffff 0%, #f9f4ee 55%, #ffe7cf 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transform-origin: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.firstCategory-spec-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1f1f1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firstCategory-spec-item p {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* Ховер-анимация карточек характеристик */
.firstCategory-spec-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 14px 30px rgba(254, 114, 0, 0.28);
    background: linear-gradient(145deg, #fffaf5 0%, #ffe7cf 55%, #ffd0a3 100%);
}

/* Gallery Section */
.firstCategory-gallery-section {
    /* убран серый фон, делаем белый */
    background-color: #fff;
}

.firstCategory-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.firstCategory-gallery-item:hover {
    transform: scale(1.05);
}

.firstCategory-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Вращение изображений галереи по часовой стрелке при наведении */
.firstCategory-gallery-item:hover img {
    transform: scale(1.08) rotate(7deg);
}

/* Явная анимация элемента при шаговой ротации галереи */
.gallery-rotating {
    opacity: 0;
    transform: translateX(140%) scale(0.8) rotate(12deg);
}

/* Warranty Section */
.firstCategory-warranty-section {
    /* убран серый фон, делаем белый */
    background-color: #fff;
}

.firstCategory-warranty-content {
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-warranty-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Materials Section */
.firstCategory-materials-section {
    background-color: #fff;
}

.firstCategory-materials-content {
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-materials-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Selection Section */
.firstCategory-selection-section {
    /* убран серый фон, делаем белый */
    background-color: #fff;
}

.firstCategory-selection-content {
    max-width: 1400px;
    margin: 0 auto;
}

.firstCategory-selection-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Contacts Section */
.firstCategory-contacts-section {
    background-color: #fff;
}

.firstCategory-contacts-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.firstCategory-contact-info {
    flex: 1;
}

.firstCategory-contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2f2f2f;
}

.firstCategory-contact-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.firstCategory-contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.firstCategory-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #eeeeee;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #fe7200;
}

.firstCategory-contact-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.firstCategory-contact-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: #fe7200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.firstCategory-contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.firstCategory-contact-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.firstCategory-contact-text strong {
    font-size: 14px;
    color: #2f2f2f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.firstCategory-contact-text a {
    color: #fe7200;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.firstCategory-contact-text a:hover {
    color: #e66500;
    text-decoration: underline;
}

.firstCategory-contact-form {
    flex: 1;
    background-color: #eeeeee;
    padding: 30px;
    border-radius: 10px;
}

.firstCategory-contact-form h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2f2f2f;
}

.firstCategory-contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.firstCategory-contact-form input,
.firstCategory-contact-form textarea {
    padding: 12px;
    border: 2px solid #2f2f2f;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.firstCategory-contact-form input:focus,
.firstCategory-contact-form textarea:focus {
    outline: none;
    border-color: #fe7200;
}

.firstCategory-submit-button {
    background-color: #fe7200;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.firstCategory-submit-button:hover {
    background-color: #e66500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 114, 0, 0.4);
}

/* Footer */
.footer {
    background-color: #2f2f2f;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero animations */
@keyframes heroSectionEnter {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate3d(-10px, 12px, 0) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate3d(8px, -10px, 0) scale(1.03);
        opacity: 0.9;
    }
}

@keyframes heroBackgroundMove {
    0% {
        background-position: 0% 0%, 100% 100%, -10% 40%;
        transform: scale(1);
    }

    50% {
        background-position: 25% 85%, 80% 20%, 40% 60%;
        transform: scale(1.04);
    }

    100% {
        background-position: 50% -10%, 60% 110%, 110% 50%;
        transform: scale(1.08);
    }
}

/* Анимация сборки пазла */
@keyframes specPuzzleIn {
    0% {
        opacity: 0;
        transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Движение плавающих фигур на заднем фоне баннера */
@keyframes heroBlobLeft {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    40% {
        transform: translate3d(40px, -30px, 0) scale(1.08) rotate(8deg);
    }

    70% {
        transform: translate3d(10px, 20px, 0) scale(1.02) rotate(-6deg);
    }

    100% {
        transform: translate3d(60px, -20px, 0) scale(1.1) rotate(12deg);
    }
}

@keyframes heroBlobRight {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    35% {
        transform: translate3d(-40px, 40px, 0) scale(1.06) rotate(-10deg);
    }

    75% {
        transform: translate3d(-10px, -10px, 0) scale(1.02) rotate(6deg);
    }

    100% {
        transform: translate3d(-60px, 30px, 0) scale(1.08) rotate(-14deg);
    }
}