/* Base */
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: #000000;
    background: #fff;
    letter-spacing: -0.01em;
}

img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --container: 1200px;
    --pad: clamp(16px, 5vw, 32px);
    --muted: #4b5563;
    --link: #2563eb;
    --radius: 20px;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
    --divider: #e5e7eb;
}

.container {
    width: min(100% - 2*var(--pad), var(--container));
    margin-inline: auto;
}

/* Header */
.topbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #D2D2D2;
}

.topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.name {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.my-name {
    font-weight: 700
}

.my-email {
    color: var(--muted);
    font-size: 14px
}

.my-email:hover {
    color: var(--link);
    font-size: 14px
}

.nav {
    display: flex;
    gap: 18px;
}

.nav a {
    color: var(--link);
    font-weight: 400
}

.nav a:hover {
    color: var(--link);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px
}

/* TITLES */
h1 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 25px;
    margin-top: 45px;
}

h2 {
    font-size: 32px;
    font-weight: 500;
    margin-top: 60px;
    margin-bottom: 10px;
}

/* CONTENT */
p {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 18px;
    font-weight: 300;
    max-width: 1000px;
    line-height: 1.35em;
}

a {
    color: var(--link);
}

.a:hover {
    color: var(--link);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px
}

.figma-link {
    color: var(--link);
    font-size: 18px;
    text-decoration: underline;
    text-decoration-thickness: 0.75px;
    text-underline-offset: 7px
}

.figma-link:hover {
    color: var(--hover-color);
}

.text-container {
    margin-bottom: 40px;
    margin-top: 40px;
}

.text-block {
    margin-bottom: 60px;
}

.text-block p {
    margin-top: 15px;
}


/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 100px 0 56px;
    color: #000000
}

.links {
    display: flex;
    gap: 18px;
}

.footer-link {
    position: relative;
    color: #000000;
}

.footer-link:hover {
    color: var(--link);
}

/* Адаптивы */
@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .container {
        padding: 20px;
    }
}