* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1115;
    color: #ffffff;
    line-height: 1.6;
}

* {
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(26px, 5vw, 52px);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    word-break: break-word;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

p {
    color: #bcbcbc;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.85;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #d4af37;
    cursor: pointer;
}

.logo:active {
    transform: scale(0.97);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.nav a:hover {
    color: #d4af37;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    height: 100vh;
    background: url('../images/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.65);
}

.hero__content {
    position: relative;
    max-width: 700px;
    width: 100%;
}

.hero p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #d1d1d1;
}

.section {
    padding: 100px 0;
}

.services__grid,
.advantages__grid,
.projects__grid {
    display: grid;
    gap: 30px;
}

.services__grid {
    grid-template-columns: repeat(3, 1fr);
}

.advantages__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.projects__grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.advantage {
    padding: 30px;
    background: #161a22;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
}

.service-card:hover,
.advantage:hover {
    transform: translateY(-5px);
    background: #1c212b;
    border: 1px solid rgba(212,175,55,0.2);
}

.project {
    height: 200px;
    background: #1c212b;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.contact-form input {
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: #1c212b;
    color: #fff;
}

.footer {
    text-align: center;
    padding: 30px 0;
    background: #0a0c10;
    color: #888;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .services__grid,
    .advantages__grid,
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #0f1115;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        display: none;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .services__grid,
    .advantages__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero__content {
        margin: 0 auto;
        padding: 0 10px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 26px;
    }
}

.applications__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.application-item {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.application-item:first-child {
    grid-column: span 4;
    height: 260px;
}

.application-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.2)
    );
}

.application-item p {
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.application-item:hover {
    transform: scale(1.02);
}

.applications-details {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.application-detail {
    margin-bottom: 25px;
}

.application-detail h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.application-detail p {
    color: #aaa;
    font-size: 14px;
    max-width: 600px;
}

.advantage {
    cursor: pointer;
    position: relative;
}

.advantage-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.advantage-more {
    display: inline-block;
    margin-top: 10px;   
    font-size: 13px;
    color: #d4af37;
    opacity: 0.8;
}

.advantage.active .advantage-text {
    -webkit-line-clamp: unset;
}

.advantage.active .advantage-more {
    opacity: 0.4;
}

@media (max-width: 992px) {
    .applications__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-item:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .applications__grid {
        grid-template-columns: 1fr;
    }

    .application-item:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .applications-details {
        grid-template-columns: 1fr;
    }
}

.contacts-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;
    background: #161a22;
    border-radius: 12px;

    text-decoration: none;
    color: #fff;

    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.contact-card img {
    width: 32px;
    height: 32px;
}

.contact-card span {
    font-size: 16px;
    font-weight: 500;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: #1c212b;
    border: 1px solid rgba(212,175,55,0.3);
}

@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.call-wrapper {
    position: relative;
}

.call-btn {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 20px;

    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;

    border: none;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.call-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(212,175,55,0.25);
}

.call-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;

    background: #161a22;
    border-radius: 10px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    border: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}

.call-dropdown a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.call-dropdown a:hover {
    background: #1c212b;
}

.call-wrapper.active .call-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.3);
}

.contact-card.disabled:hover {
    transform: none;
    background: #161a22;
    border: 1px solid rgba(255,255,255,0.05);
}

.call-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.2);
}

.call-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .call-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: #0a0c10;
    padding: 60px 0 20px;
}

.footer .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-block h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-block p {
    font-size: 14px;
    color: #aaa;
}

.footer-block a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-block a:hover {
    color: #d4af37;
}

.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 13px;
    color: #666;
}

.footer-socials .social-link {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-socials .social-link:hover {
    color: #d4af37;
}

.footer-socials .social-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.footer-socials .social-link.disabled:hover {
    color: #aaa;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-block {
        align-items: center;
        text-align: center;
    }
}

.contacts-offer {
    text-align: center;
    margin-bottom: 40px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(4px);
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.offer-text {
    font-size: 20px;
    line-height: 1.4;
    color: #e0e0e0;
    margin: 0;
}

.offer-text strong {
    color: #d4af37;
    font-weight: 600;
}

.offer-method {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    color: #d4af37;
    margin: 0 2px;
}

@media (max-width: 768px) {
    .offer-text {
        font-size: 18px;
    }
    
    .offer-method {
        font-size: 14px;
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .offer-text {
        font-size: 16px;
    }
    
    .contacts-offer {
        padding: 18px 12px;
    }
}