body {
    background: radial-gradient(ellipse at top center, #2a2a2a 0%, #000000 100%);
    color: #ffffff;
    margin: 0;
}
section {
    position: relative;
}
.section-anchor {
    position: absolute;
}

.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(0deg, rgba(20, 20, 20, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%),
        url(../images/hero_bg.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

.container {
    width: 100%;
    display: flex;
    margin: 0 auto;
    padding: 0px 30px;
    padding-top: 100px;
    max-width: 1020px;
}

.hero .container {
    height: 100%;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    margin-right: 0;
    gap: 50px;
}
.hero .container h2 {
    color: var(--text-color);
}
.hero .cta-button {
    font-size: 19px;
    padding: 10px;
    background-color: var(--white-color);
    color: var(--black-color);

    font-weight: bold;
    border-radius: 5px;
    box-shadow: 1px 1px 3px 0px rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 1px 1px 3px 0px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 1px 1px 3px 0px rgba(255, 255, 255, 0.75);
}
.cta-button:hover {
    background-color: var(--black-color);
    color: var(--white-color);
}

.slogan-highlight {
    display: flex;
    gap: 30px;
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
    color: var(--white-color);
}

.about .slogan-highlight {
    animation: fadeInUp 2s ease-out;
}

.hero .slogan-highlight {
    flex-direction: column;
    gap: 3px;
    margin-left: 20px;
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero .contact-tel,
.hero .contact-email {
    font-size: 2.5rem;
    line-height: 2.5rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
}
.hero .contact-email {
    justify-content: center;
}

.hero .hero-intro {
    font-size: 19px;
}

.background-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("../images/logo.webp") center center no-repeat;
    background-size: contain;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.about .container,
.partners .container {
    flex-direction: column;
    font-size: 19px;
}

.about h2,
.partners h2,
.roof-tabs-section h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-color);
    display: inline-block;
    padding-bottom: 8px;
    text-align: center;
}

.about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.about strong {
    font-weight: 700;
}

.about ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about ul li,
.hero ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.about ul li::before,
.hero ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
}

main {
    margin: 0 auto;
}

.contact > .container {
    justify-content: space-between;
    align-items: flex-start;
}
.contact-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 19px;
}
.contact-data h2 {
    margin-bottom: 20px;
}

.contact-data p {
    display: flex;
    gap: 10px;
    align-items: center;
}
.contact-data p svg {
    margin-left: 15px;
}

.socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 50%;
}
.sidebar .social-link,
.menu-container .social-link {
    width: 44px;
    height: 44px;
}
.social-link:hover {
    opacity: 0.5;
}
.social-icon {
    fill: var(--black-color);
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    width: 550px;
    height: 380px;
    border: 0;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
}

.service {
    margin-bottom: 40px;
}

.service img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.footer {
    margin-top: 100px;
    width: 100%;
    background: #131313;
}
.footer .container {
    flex-direction: column;
    padding-top: 30px;
}
.footer .logo-wrapper {
    height: 90px;
    margin-left: 30px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
}
.watermark {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}
/***************/
.aluminum-section > .container {
    flex-direction: column;
}
.aluminum-section h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-color);
    display: inline-block;
    padding-bottom: 8px;
    text-align: center;
}
.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.aluminum-section .section-title {
    position: relative;
    margin-bottom: 40px;
}
@keyframes fullRotate {
    0% {
        transform: rotate(-20deg) scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: rotate(-30deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: rotate(-20deg) scale(0.9);
        opacity: 0.7;
    }
}

.animated-logo {
    position: absolute;
    bottom: -7px;
    right: -26px;
    height: 25px;
    opacity: 0.7;
    transform-origin: center;
    animation: fullRotate 3s ease-in-out infinite;
}

.intro-text {
    font-size: 19px;

    line-height: 1.6;
}

.card-container {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 350px;
    width: 100%;
    border-radius: 20px;
    padding: 30px;
    background: var(--text-color);
    margin: 30px 0;
    color: var(--black-color);
    box-shadow: 2px 2px 5px 0px rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 2px 2px 5px 0px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 2px 2px 5px 0px rgba(255, 255, 255, 0.75);
}

.card {
    display: none;
    align-items: flex-start;
    gap: 20px;
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.card.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.card-text {
    width: 55%;
    padding: 20px;
}

.card-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text p {
    font-size: 1.25rem;
    line-height: 1.5;
}

.card-image {
    width: 45%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.card-image img {
    width: 100%;
    height: auto;
}

.card-controls {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
}

.card-controls button {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1.2rem;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.dot.active {
    background: gray;
}
/*Partners*/
/*************************/
.partners .container {
    max-width: 100%;
}
.partners h2 {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    width: 150px;
    height: 150px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.partner-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.partner-card.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: filter 0.3s ease;
}

.partner-description {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    color: #ccc;
    font-size: 0.8rem;
    padding: 15px;
    display: none;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.partner-description a {
    color: #999;
    text-decoration: underline;
    font-size: 0.8rem;
    margin-top: 10px;
}

.partner-card.active .partner-description {
    display: flex;
}

/******************/
/*Facade*/
.facade-section .container {
    flex-direction: column;
}

.facade-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--text-color);
    display: inline-block;
    padding-bottom: 8px;
}

.facade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.facade-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    color: var(--text-color);
    padding-bottom: 20px;
    max-width: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.facade-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.facade-card.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.facade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInCard {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.facade-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facade-card h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    color: var(--white-color);
}

.facade-card p {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 15px;
}

.facade-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.facade-modal.open {
    display: flex;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    color: var(--white-color);
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
    width: 30px;
    background: var(--black-color);
    border-radius: 50%;
    padding: 0px;
    color: var(--white-color);
    cursor: pointer;
    z-index: 1;
}
/********************/
/*roofing*/
/* Показувати тільки на певних екранах */
.roof-tabs-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease-out;
}

.roof-tabs-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.roof-tabs-section.fade-out {
    opacity: 0;
    transform: translateY(40px);
}
.roof-tabs-section .container {
    flex-direction: column;
    gap: 30px;
}
.roof-hero {
    background: url("../images/roofing/main.webp") center/cover no-repeat;
    height: 400px;
    position: relative;
}
.roof-hero h2,
.roof-hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 510px;
    margin: 0 auto;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.tab-container {
    display: flex;
    justify-content: space-between;
}

.roof-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
    margin-right: 10px;
}

.roof-tab,
.roof-tab:active,
.roof-tab:focus {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.roof-tab:hover,
.roof-tab.active {
    background: var(--white-color);
    color: var(--black-color);
}

.roof-content {
    display: flex;
    justify-content: center;
}

.roof-panel {
    display: none;
    max-width: 600px;
    animation: fadeSlide 0.5s ease-out;
}

.roof-panel.active {
    display: block;
}

.roof-panel img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.desktop-only {
    display: flex;
}
.mobile-only {
    display: none;
}

/***********************/
/*Objects*/
.projects-section .container {
    flex-direction: column;
}

.projects-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 8px;
}

.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.projects-grid .project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.6s ease-out;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.2);
}

.projects-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.lightbox-gallery {
    position: relative;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-gallery img {
    max-width: 100%;
    max-height: 75vh;
}

.lightbox-gallery p,
.project-card p {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    min-height: 40px;
    height: auto;
    line-height: 40px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 1rem;
}

.project-card p {
    bottom: 0px;
    padding: 6px 5px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 22px;
    text-align: center;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
}
.gallery-close {
    position: fixed;
    background: var(--white-color);
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: var(--black-color);
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1005;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

@media (width < 868px) {
    .hero .container {
        align-items: center;
        text-align: center;
    }
    .hero .slogan-highlight {
        text-align: left;
    }
    .about .slogan-highlight {
        flex-direction: column;
    }

    .card-container {
        height: auto;
        width: 100%;
        max-width: 450px;
        margin: 30px auto;
    }

    .card {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-text {
        width: 100%;
        padding: 0;
        min-height: 205px;
    }

    .card-text h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .card-text p {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .card-image {
        width: 100%;
        height: auto;
    }

    .contact > .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .contact-map {
        width: 100%;
        max-width: 550px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    .roof-accordion {
        width: 100%;
    }

    .roof-accordion details {
        background: #2a2a2a;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 15px;
        color: var(--white-color);
    }

    .roof-accordion summary {
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        outline: none;
    }

    .roof-accordion img {
        width: 100%;
        margin: 15px 0;
        border-radius: 8px;
    }
}

@media (width < 600px) {
    .slogan-highlight {
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .hero .slogan-highlight a {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

@media (width < 480px) {
    .slogan-highlight {
        font-size: 19px;
        line-height: 24px;
        gap: 20px;
    }
}

@media (width < 400px) {
    .card-text {
        min-height: 270px;
    }
    .footer .logo-wrapper {
        margin-left: 0;
    }
    .watermark {
        flex-direction: column;
    }

    .partner-grid {
        gap: 15px;
    }
}
