* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-align: center;

    background: #070a10;
    overflow-x: hidden;
}

.logo {

    width: 90px;

    height: auto;

    display: block;

    margin: 0 auto 15px;

}

.header h1 {

    font-size: 42px;

    margin: 10px 0;

}

.header p {

    color: #b8c0cc;

    font-size: 18px;

}

.hero {

    padding: 50px 20px;

}

.hero h2 {

    font-size: 34px;

}

.hero p {

    color: #c5ccd6;

}

.main-btn {

    display: inline-block;

    margin-top: 25px;

    padding: 16px 40px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #ff8c00,
        #ff5100
    );

    color: white;

    text-decoration: none;

    font-size: 18px;

    transition: 0.2s;

    box-shadow:
    0 8px 20px rgba(255,100,0,0.35);

}

.main-btn:hover {

    transform: translateY(-3px);

}

.block {

    padding: 50px 20px;

}

.block h2 {

    font-size: 30px;

}

.cards {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

}

.card {

    width: 260px;

    padding: 25px;

    border-radius: 20px;

    background:
    rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    box-shadow:
    0 10px 30px rgba(0,0,0,0.3);

    transition: 0.2s;

}

.card:hover {

    transform: translateY(-5px);

}

.works {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

}

.works img {

    width: 280px;

    height: 200px;

    object-fit: cover;

    border-radius: 18px;

    box-shadow:
    0 10px 30px rgba(0,0,0,0.4);

}

.contact {

    max-width: 400px;

    margin: auto;

}

.btn {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin: 15px 0;

    padding: 16px;

    border-radius: 15px;

    color: white;

    text-decoration: none;

    font-size: 18px;

    transition: 0.2s;

}

.btn {
    transition: 0.25s ease;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.telegram {

    background:
    linear-gradient(135deg,#2AABEE,#229ED9);

}

.whatsapp {

    background:
    linear-gradient(135deg,#25D366,#1ebe5d);

}

.phone {

    background:
    linear-gradient(135deg,#555,#222);

}

.icon {

    font-size: 22px;

}

@media (max-width: 600px) {

    .header h1 {

        font-size: 32px;

    }

    .hero h2 {

        font-size: 26px;

    }

    .works img {

        width: 95%;

    }

    .card {

        width: 95%;

    }

.work-img {
    cursor: pointer;
    transition: 0.3s;
}

.work-img:hover {
    transform: scale(1.05);
}

}

#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #ff8c00, #ff5100);
    color: white;

    font-size: 22px;

    cursor: pointer;

    display: none;

    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 30px;

    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);

    z-index: 9999;
}

.nav-logo {
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {

    color: white;
    text-decoration: none;

    font-size: 16px;

    padding: 6px 10px;
    border-radius: 8px;

    transition: 0.2s;
}

/* hover эффект */
.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a:visited {
    color: white;
}

/* активный раздел */
.nav-links a.active {
    background: linear-gradient(135deg, #ff8c00, #ff5100);
    color: white;
}

body {
     padding-top: 80px;
}

html {
     scroll-behavior: smooth;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;

    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* первый цвет */
body::before {
    background: rgba(255, 120, 0, 0.22);
    top: 10%;
    left: 10%;
    animation: glow1 28s infinite;
}

/* второй цвет */
body::after {
    background: rgba(0, 170, 255, 0.20);
    bottom: 10%;
    right: 10%;
    animation: glow2 34s infinite;
}

@keyframes glow1 {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.05); }
    66%  { transform: translate(-20px, 30px) scale(1.08); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes glow2 {
    0%   { transform: translate(0px, 0px) scale(1.05); }
    33%  { transform: translate(-25px, 20px) scale(1.1); }
    66%  { transform: translate(20px, -25px) scale(1.07); }
    100% { transform: translate(0px, 0px) scale(1.05); }
}