


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#0f172a;
    color:#fff;
    overflow-x:hidden;
}

/* ===== КОНТЕЙНЕР ===== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ===== HEADER ===== */

.header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;

    backdrop-filter:blur(15px);
    background:rgba(15,23,42,.8);

    border-bottom:1px solid rgba(255,255,255,.08);
}

.header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-size:28px;
    font-weight:800;
    color:#fbbf24;
}

.menu{
    display:flex;
    gap:30px;
    list-style:none;
}

.menu a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.menu a:hover{
    color:#fbbf24;
}

/* ===== HERO ===== */

.hero{
    height:100vh;

    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=1600");

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-content{
    max-width:900px;
    padding:20px;
}

.hero h1{
    font-size:70px;
    margin-bottom:25px;
    animation:fadeUp 1s ease;
}

.hero p{
    font-size:22px;
    color:#d1d5db;
    margin-bottom:40px;
    animation:fadeUp 1.3s ease;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

/* ===== ВНУТРЕННИЕ СТРАНИЦЫ ===== */

.page-hero{
    padding:180px 0 100px;
    text-align:center;

    background:
    linear-gradient(
        135deg,
        #1e293b,
        #0f172a
    );
}

.page-hero h1{
    font-size:58px;
    margin-bottom:15px;
}

.page-hero p{
    color:#cbd5e1;
    font-size:20px;
}

/* ===== КНОПКИ ===== */

.btn{
    display:inline-block;
    padding:16px 32px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.btn-primary{
    background:#fbbf24;
    color:#111827;
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(251,191,36,.4);
}

.btn-secondary{
    border:2px solid white;
    color:white;
}

.btn-secondary:hover{
    background:white;
    color:black;
}

/* ===== СЕКЦИИ ===== */

.features,
.about-section,
.contacts-section,
.form-section{
    padding:100px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:42px;
}

/* ===== КАРТОЧКИ ===== */

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

.card{
    background:rgba(255,255,255,.05);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    padding:30px;

    border-radius:20px;

    transition:.4s;

    opacity:0;
    transform:translateY(40px);
}

.card.show{
    opacity:1;
    transform:translateY(0);
}

.card:hover{
    transform:translateY(-10px);
    border-color:#fbbf24;
}

.card h3{
    margin-bottom:15px;
    color:#fbbf24;
}

.card p{
    color:#cbd5e1;
    line-height:1.7;
}

/* ===== ABOUT ===== */

.about-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about-content p{
    line-height:1.8;
    color:#cbd5e1;
    margin-bottom:20px;
}

.about-image{
    width:100%;
    border-radius:20px;
}

/* ===== СТАТИСТИКА ===== */

.stats{
    background:#111827;
    padding:100px 0;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.stat{
    text-align:center;

    padding:35px;

    background:rgba(255,255,255,.03);

    border-radius:20px;

    border:1px solid rgba(255,255,255,.05);

    opacity:0;
    transform:translateY(40px);
}

.stat.show{
    opacity:1;
    transform:translateY(0);
}

.stat h2{
    font-size:50px;
    color:#fbbf24;
    margin-bottom:10px;
}

.stat p{
    color:#cbd5e1;
}

/* ===== ТАБЛИЦА ===== */

.price-table{
    width:100%;
    border-collapse:collapse;
    margin-top:40px;
}

.price-table th{
    background:#fbbf24;
    color:black;
    padding:20px;
}

.price-table td{
    padding:20px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.price-table tr:hover{
    background:rgba(255,255,255,.03);
}

/* ===== КОНТАКТЫ ===== */

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

.contact-card{
    background:rgba(255,255,255,.05);

    padding:30px;

    border-radius:20px;

    border:1px solid rgba(255,255,255,.08);

    text-align:center;
}

.contact-card h3{
    margin-bottom:15px;
    color:#fbbf24;
}

.contact-card p{
    color:#cbd5e1;
}

/* ===== ФОРМА ===== */

.contact-form{
    max-width:700px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form textarea{
    padding:18px;

    border:none;

    border-radius:12px;

    background:#1e293b;

    color:white;

    font-size:16px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:2px solid #fbbf24;
}

/* ===== CTA ===== */

.cta{
    padding:120px 20px;
    text-align:center;

    background:
    linear-gradient(
        135deg,
        #f59e0b,
        #fbbf24
    );
}

.cta h2{
    font-size:48px;
    color:#111827;
    margin-bottom:20px;
}

.cta p{
    color:#1f2937;
    margin-bottom:30px;
    font-size:20px;
}

/* ===== FOOTER ===== */

footer{
    padding:40px 0;
    text-align:center;
    background:#020617;
    color:#94a3b8;
}

/* ===== КНОПКА ВВЕРХ ===== */

.top-btn{
    position:fixed;
    right:25px;
    bottom:25px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:#fbbf24;

    font-size:24px;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:999;
}

.top-btn.visible{
    opacity:1;
    visibility:visible;
}

/* ===== АНИМАЦИИ ===== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media(max-width:900px){

    .hero h1{
        font-size:42px;
    }

    .page-hero h1{
        font-size:42px;
    }

    .about-content{
        grid-template-columns:1fr;
    }

    .menu{
        gap:15px;
        font-size:14px;
    }

    .hero p{
        font-size:18px;
    }

    .cta h2{
        font-size:32px;
    }

}


.advantages,
.services-preview,
.portfolio-preview {
    padding: 80px 0;
}

.advantages h2,
.services-preview h2,
.portfolio-preview h2,
.stats h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
}

.stats {
    padding: 80px 0;
    background: #111827;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.stat h3 {
    font-size: 50px;
    color: #fbbf24;
    margin-bottom: 10px;
}

.stat p {
    color: #cbd5e1;
    font-size: 18px;
}

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

.project {
    height: 200px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
section {
    padding-left: 20px;
    padding-right: 20px;
}

.cards {
    padding: 0 10px;
}


/* Заглушка для будущей фотографии */

.image-placeholder {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f1f3f5;
    border-radius: 20px;
    color: #777;
    text-align: center;
    font-size: 16px;
}

/* ===== СТРАНИЦА ПРОЕКТОВ ===== */

.portfolio-page {
    padding: 160px 0 100px;
}

.portfolio-page .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-page .section-title h1 {
    font-size: 58px;
    margin-bottom: 15px;
}

.portfolio-page .section-title p {
    color: #cbd5e1;
    font-size: 20px;
}

/* Сетка проектов */

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

/* Карточка проекта */

.project-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #fbbf24;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Изображение проекта */

.project-image {
    width: 100%;
    height: 230px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушка фотографии */

.project-placeholder {
    width: 100%;
    height: 100%;
    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;

    color: #94a3b8;
    background: #1e293b;
}

.project-placeholder strong {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
}

/* Информация проекта */

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #fbbf24;
    font-size: 22px;
    margin-bottom: 12px;
}

.project-category {
    display: inline-block;

    padding: 6px 12px;
    margin-bottom: 15px;

    border-radius: 20px;

    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;

    font-size: 13px;
}

.project-info p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* Сообщение, если проектов нет */

.projects-empty {
    text-align: center;
    padding: 60px 30px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    color: #cbd5e1;
}


/* ===== МОБИЛЬНАЯ ВЕРСИЯ ПРОЕКТОВ ===== */

@media (max-width: 900px) {

    .portfolio-page {
        padding: 130px 0 70px;
    }

    .portfolio-page .section-title h1 {
        font-size: 42px;
    }

    .portfolio-page .section-title p {
        font-size: 18px;
    }

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

}

/* ===== СООБЩЕНИЕ ФОРМЫ ===== */

.form-message {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 18px 22px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.5;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}


/* ===== КНОПКА ФОРМЫ ===== */

.contact-form .btn {
    border: none;
    cursor: pointer;
    font-size: 16px;
}