:root {
    --bg: #0f172a;
    --text: #ffffff;
    --accent: #00e5ff;
    --card: #1e293b;
}

/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("pictures/background.jpg") center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HEADER ================= */

.header-phone {
    font-size: 28px;
    font-weight: bold;
}

.header-phone a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: #ffffff;
}

.header-phone {
    opacity: 0;
    transform: translateY(-20px);
    animation: phoneFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes phoneFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    padding: 20px 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Лого и меню анимация */

.logo {
    opacity: 0;
    transform: translateX(-40px);
    animation: headerLeft 0.8s ease-out forwards;
}

.nav {
    opacity: 0;
    transform: translateX(40px);
    animation: headerRight 0.8s ease-out forwards;
}

@keyframes headerLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes headerRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo img {
    height: 100px;
    object-fit: contain;
}

/* NAVIGATION */

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 25px;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* BURGER */

#menu-toggle {
    display: none;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ================= HERO ================= */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 50px 20px 30px 20px;

    opacity: 0;
    transform: translateY(40px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes heroIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 800px;
}

/* HERO BUTTON */

.hero-btn {
    display: inline-block;
    padding: 15px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(145deg, #008aa3, #005f73);
    border-radius: 30px;
    border: none;
    text-decoration: none;
    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(0,0,0,0.4),
        inset 0 -3px 0 rgba(255,255,255,0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.6),
        inset 0 -3px 0 rgba(255,255,255,0.2);
}

/* ================= CARDS ================= */

.cards-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    flex-grow: 1;
}

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

    /* Анимация появления всего блока */
    opacity: 0;
    transform: translateY(40px);
    animation: cardsIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes cardsIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= CARD ================= */

.card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    width: 350px;
    height: 350px;
    position: relative;

    box-shadow: 0 10px 25px rgba(0,0,0,0.6);

    /* Hover-анимация отдельно */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.85);
}

/* Картинка */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: rgba(0, 229, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5px;
}

.card-text {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ================= CONTACT FORM ================= */

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;

    opacity: 0;
    transform: translateY(40px);
    animation: formAppear 0.8s ease forwards;
}

@keyframes formAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form input,
form textarea {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    outline: none;

    background: linear-gradient(145deg, #243447, #1a2533);
    color: var(--text);

    box-shadow:
        0 6px 15px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.05);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

form input:hover,
form textarea:hover {
    transform: translateY(-2px);
}

form input:focus,
form textarea:focus {
    transform: translateY(-3px);
    box-shadow:
        0 12px 25px rgba(0,0,0,0.8),
        0 0 0 2px var(--accent);
}

form button {
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    cursor: pointer;

    background: linear-gradient(145deg, #008aa3, #005f73);
    color: white;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 -3px 0 rgba(255,255,255,0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.8),
        inset 0 -3px 0 rgba(255,255,255,0.2);
}

/* ================= FOOTER ================= */

.footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.footer .designer {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.5;
    color: var(--text);
}

/* ================= HONEYPOT ================= */
.honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .logo img {
        height: 60px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .burger { display: block; }
    .nav { display: none; width: 100%; margin-top: 15px; }
    .nav ul { flex-direction: column; gap: 15px; }

    #menu-toggle:checked + .burger + .nav {
        display: flex;
        flex-direction: column;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .card {
        width: 90vw;
        height: 90vw;
        max-width: 350px;
        max-height: 350px;
    }

    form {
        width: 100%;
        padding: 0 10px;
    }

    form input,
    form textarea {
        font-size: 1rem;
        padding: 16px;
    }

    form button {
        font-size: 1.1rem;
        padding: 14px;
    }

    .card-text {
        font-size: 1rem;
    }
}
.contact-address {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 2;
}