/* =========================
   DESIGN TOKENS
========================= */
:root {
    --bg: #0b1220;
    --bg-soft: #111a2e;

    --card: rgba(17, 26, 46, 0.78);
    --card-border: rgba(148, 163, 184, 0.16);

    --text: #e5eefb;
    --muted: #9fb0c7;

    --accent: #38bdf8;
    --accent-2: #0ea5e9;
    --accent-dark: #0f172a;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

    --radius: 22px;
    --radius-sm: 14px;

    --container: 1100px;
}

/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;

    background:
            radial-gradient(circle at top left, rgba(56,189,248,0.20), transparent 30%),
            radial-gradient(circle at top right, rgba(14,165,233,0.16), transparent 28%),
            linear-gradient(135deg, #08111f 0%, #0b1220 45%, #111a2e 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

li{
    margin-left: 15px;
}

/* =========================
   LAYOUT
========================= */
.container,
.navigation {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px;
}

.navigation {
    display: flex;
    justify-content: flex-end;
}

/* =========================
   HEADER / BRAND
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* ключевое */
}

.brand-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    flex-shrink: 1;
}

.brand-logo:hover {
    transform: scale(1.03);
}

.brand-name {
    font-size: clamp(18px, 4vw, 32px);
}


.brand-subtitle {
    font-size: clamp(12px, 3vw, 18px);
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

nav a {
    font-size: 22px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.2s;
}

nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

/* =========================
   HERO
========================= */
.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 20px;
}

.hero-main,
.hero-side,
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* glow */
.hero-main:hover,
.hero-side:hover,
.card:hover {
    box-shadow:
            0 25px 70px rgba(0,0,0,0.5),
            0 0 40px rgba(56,189,248,0.12);
}

.hero-main {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

/* glow фон */
.hero-main::after {
    content: "";
    position: inherit;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56,189,248,0.1), transparent 40%);
}

/* =========================
   TEXT
========================= */
h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(18px, 2vw, 26px);
    margin-bottom: 14px;
}

.hero-text {
    color: var(--muted);
    font-size: 18px;
    max-width: 700px;
    margin-bottom: 22px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-dark);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn:hover {
    transform: translateY(-2px);
}

/* =========================
   CONTACTS
========================= */
.hero-side {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            inset 0 0 10px rgba(0,140,255,0.05);
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    transition: 0.2s;
    background: rgba(56,189,248,0.08);
}

.contact-link:hover {
    transform: translateY(-2px);
    background: rgba(56,189,248,0.08);
}

/* =========================
   QR BLOCK
========================= */
.qr-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    background: rgba(56,189,248,0.08);
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            inset 0 0 10px rgba(0,140,255,0.05);
    transition: 0.3s;
}

.qr-card:hover {
    transform: translateY(-5px);
    background: rgba(56,189,248,0.08);
}

.qr-code {
    width: 140px;
    height: 140px;
    background: white;
    padding: 10px;
    border-radius: 12px;
}

/* =========================
   SECTIONS
========================= */
.section {
    margin-top: 20px;
}

.card {
    padding: 26px;
}

.section-title {
    font-size: 22px;
}

.section-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

/* =========================
   ABOUT (AVATAR)
========================= */
.container-section-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.section_avatar {
    width: 160px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.3s;

    border: 2px solid rgb(56, 189, 248);
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            0 0 60px rgba(0,140,255,0.05);
}

.section_avatar:hover {
    transform: scale(1.05);
}

/* =========================
   SERVICES / SKILLS
========================= */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service,
.case {
    padding: 16px;
    margin: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    transition: 0.25s;
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            inset 0 0 10px rgba(0,140,255,0.05);
}

.service:hover,
.case:hover {
    transform: translateY(-4px);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            inset 0 0 10px rgba(0,140,255,0.05);
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(229,238,251,0.55);
}

.case-text{
    color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-section-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 14px;
    }

    h1 {
        font-size: 30px;
    }

    .hero-text {
        font-size: 16px;
    }
}

/* =========================
   COPY BUTTON
========================= */

.contact-link {
    position: relative;
    padding-right: 40px;
    box-shadow:
            0 0 20px rgba(0,140,255,0.15),
            inset 0 0 10px rgba(0,140,255,0.05);
}

/* кнопка справа */
.copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    transition: 0.2s;
    cursor: pointer;
}

.contact-link:hover .copy-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* эффект нажатия */
.copy-btn:active {
    transform: translateY(-50%) scale(0.9);
}

/* подсветка при копировании */
.contact-link.copied {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* tooltip */
.contact-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -28px;
    right: 10px;
    background: rgba(15, 23, 42, 0.95);
    color: #38bdf8;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.2s ease;
}

.contact-link.copied::after {
    opacity: 1;
    transform: translateY(0);
}