:root {
    --bg: #ffffff;
    --text: #111315;
    --sub: #6b6f75;
    --accent: #2563eb;
    --border: rgba(0,0,0,0.08);
    --radius: 18px;
    --shadow: 0 10px 32px rgba(0,0,0,0.06);
    --font-main: 'Söhne', system-ui, sans-serif;
    --font-alt: 'Inter', system-ui, sans-serif;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.55;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 40px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
}

.logo {
    font-weight: 600;
    font-size: 18px;
}

.nav-desktop a {
    margin-left: 30px;
    color: var(--sub);
    text-decoration: none;
    font-size: 16px;
    transition: .2s;
}

.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:active { transform: scale(0.95); }

/* ================= BURGER ================= */
.burger {
    width: 32px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 3px;
    background: #111;
    border-radius: 4px;
    transition: 0.3s;
}

@media (max-width: 600px) {
    .burger { display: flex; }
    .nav-desktop { display: none; }
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 18px rgba(0,0,0,0.12);
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    transition: right 0.35s ease;
    z-index: 300;
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
    font-size: 20px;
    color: #111;
    padding: 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s;
}

.mobile-menu a:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(4px);
    color: var(--accent);
}

/* ================= BACKDROP ================= */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 250;
}
.backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ================= SECTIONS ================= */
.section {
    padding: 140px 20px;
    max-width: 980px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

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

/* ================= HERO ================= */
h1 {
    font-size: 58px;
    line-height: 1.15;
    font-weight: 600;
}

h1 span {
    background: linear-gradient(120deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 18px;
    max-width: 620px;
    font-size: 20px;
    color: var(--sub);
}

.hero-meta {
    margin-top: 16px;
    font-size: 15px;
    color: var(--sub);
}

/* ================= HERO BUTTONS ================= */
.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 14px;
}

.btn-primary {
    padding: 15px 34px;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 6px 22px rgba(37,99,235,0.25);
}

.btn-outline {
    padding: 15px 34px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 18px;
    text-decoration: none;
    transition: .25s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ================= CARDS ================= */
.card {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(18px);
    transition: .7s;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-title { font-size: 20px; font-weight: 600; }
.card-subtitle { font-size: 14px; color: var(--sub); }
.card-meta { font-size: 13px; color: var(--sub); }
.card-desc { font-size: 15px; color: var(--sub); margin-top: 12px; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: #eef2ff;
    color: #3b82f6;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
}

/* ================= SERVICES ================= */
.services-title {
    font-size: 32px;
    font-weight: 600;
    margin: 20px 0 18px;
    max-width: 680px;
}

.services-text {
    font-size: 18px;
    color: var(--sub);
    max-width: 720px;
    margin-bottom: 32px;
}

.services-btn { margin-top: 24px; }

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

.about-card {
    margin-top: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-photo-card {
    width: 230px;
    height: 230px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-info {
    flex: 1;
}

.about-info h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 18px;
}

.about-info p {
    font-size: 17px;
    color: var(--sub);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* кнопка */
.about-info .btn-primary {
    margin-top: 10px;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
}

/* ============= ADAPTIVE ============= */

@media (max-width: 800px) {
    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .about-photo-card {
        width: 200px;
        height: 200px;
    }

    .about-info h2 {
        font-size: 24px;
    }

    .about-info p {
        font-size: 15px;
    }
}

/* ================= CONTACT CARD ================= */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 28px;
    font-weight: 600;
}

.contact-text {
    max-width: 580px;
    margin: 14px auto 30px;
    color: var(--sub);
    font-size: 17px;
    line-height: 1.55;
}

/* CONTACT LINKS */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9ff;
    border-radius: 14px;
    text-decoration: none;
    color: var(--accent);
    font-size: 17px;
    transition: 0.25s ease;
}

.contact-item:hover {
    background: #e6ecff;
    transform: translateY(-3px);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

/* MOBILE */
@media (max-width: 600px) {
    .contact-card { padding: 26px; }
    .contact-title { font-size: 22px; }
    .contact-item { width: 100%; justify-content: center; }
}

/* ================= ANIMATED CONTACT BUTTON ================= */

.animated-btn {
    position: relative;
    display: inline-block;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 22px rgba(37,99,235,0.25);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 1;
}

/* мягкий градиент-перелив */
.animated-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}

.animated-btn:hover::before {
    opacity: 1;
}

/* Hover эффект */
.animated-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

/* Active эффект */
.animated-btn:active {
    transform: scale(0.95);
}

/* Белый блик */
.animated-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -35%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) rotate(25deg);
    transition: left .55s ease;
    pointer-events: none;
}

.animated-btn:hover::after {
    left: 130%;
}


/* ================= FOOTER ================= */
.footer {
    background: #14171A; /* мягкий тёмный графит, не черный */
    padding: 32px 20px;
    margin-top: 100px;
    color: #e5e7eb; /* светлый текст */
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.footer-sub {
    margin-top: 8px;
    font-size: 14px;
    color: #b5b9c0;
}

.footer-copy {
    margin-top: 14px;
    font-size: 13px;
    color: #8a8d92;
}

/* mobile */
@media (max-width: 600px) {
    .footer {
        padding: 28px 16px;
    }
    .footer-logo {
        font-size: 17px;
    }
    .footer-sub {
        font-size: 13px;
    }
}
