:root {
    --bg-page: #FBFBFD;
    --bg-muted: #ebebeb;
    --bg-badge: #F5F5F7;
    --text: #000000;
    --text-nav: #333333;
    --text-muted: #666666;
    --accent: #0071E3;
    --border-hairline: #e5e5e5;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-tag: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius-sm: 40px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1200px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --bg-section: #ffffff;
    --bg-quote: #f4f4f4;
    --bg-projects: #f7f7f7;
    --bg-project-card: #FBFBFD;
    --bg-highlight: #E8E8ED;
    --bg-award-card: #f2f2f2;
    --bg-cert-card: #f5f5f5;
    --bg-contact-strip: #f6f6f6;
    --contact-icon-bg: rgba(0, 123, 255, 0.12);
    --bg-footer: #f5f5f7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-hairline); 
    backdrop-filter: blur(8px);
}

.header_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.header_logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.header_toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.header_toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
}

.header_menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    justify-content: flex-end;
}

.header_menu_link {
    display: inline-block;
    padding: 8px 0;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-nav);
    position: relative;
    transition: color 0.3s ease;
}

.header_menu_link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.header_menu_link:hover {
    color: var(--text);
}

.header_menu_link--active {
    color: var(--text);
}

.header_menu_link--active::after {
    transform: scaleX(1);
    opacity: 1;
}

.hero {
    padding: 48px 0 80px;
    background: var(--bg-section);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 48px 64px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 8px 14px;
    background: var(--bg-badge);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-nav);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero__title {
    margin: 0 0 12px;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero__subtitle {
    margin: 0 0 20px;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--accent);
}

.hero__cursor {
    display: inline-block;
    animation: cursor-blink 1s step-end infinite;
    font-weight: 600;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

.hero__text {
    margin: 0 0 32px;
    max-width: 520px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 0;
    margin-bottom: 36px;
}

.hero__stat {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 0 24px;
    border-left: 1px solid var(--border-hairline);
    text-align: left;
}

.hero__stat:first-child {
    padding-left: 0;
    border-left: none;
}

.hero__stat-value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
}

.btn--primary:hover {
    filter: brightness(1.06);
}

.btn--secondary {
    background: transparent;
    color: var(--text-nav);
    border-color: var(--border-hairline);
}

.btn--secondary:hover {
    border-color: #c8c8c8;
    background: rgba(0, 0, 0, 0.03);
}

.btn__icon {
    flex-shrink: 0;
}

.hero__visual {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 400px;
}

.hero__frame-outer {
    background: var(--bg-muted);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero__frame-inner {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.hero__photo {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.hero__tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-nav);
    box-shadow: var(--shadow-tag);
    white-space: nowrap;
}

.hero__tag-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__tag--tr {
    top: 8%;
    right: -8px;
}

.hero__tag--br {
    bottom: 18%;
    right: 4%;
}

.hero__tag--bl {
    bottom: 12%;
    left: -4px;
}

.about {
    padding: 80px 0 96px;
    background: var(--bg-page);
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 56px 64px;
    align-items: start;
}

.about__label {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about__title {
    margin: 0 0 24px;
    max-width: 34rem;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.about__body {
    margin-bottom: 28px;
}

.about__body p {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-nav);
}

.about__body p:last-child {
    margin-bottom: 0;
}

.about__body strong {
    font-weight: 600;
    color: var(--text);
}

.about__quote {
    margin: 0;
    padding: 24px 24px 24px 24px;
    background: var(--bg-quote);
    border-radius: var(--radius-sm);
    position: relative;
}

.about__quote-icon {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    opacity: 0.95;
}

.about__quote-text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--text);
}

.about__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    margin: 0;
    padding: 24px;
    background: var(--bg-section);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
}

.about-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--accent);
}

.about-card__icon svg {
    display: block;
}

.about-card__icon iconify-icon {
    width: 24px;
    height: 24px;
}

.about-card__title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
}

.about-card__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.projects {
    padding: 80px 0 96px;
    background: #ffffff;
}

.projects__head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 56px;
}

.projects__overline {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.projects__title {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.projects__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-hairline);
    border-radius: 1px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    position: relative;
    margin-bottom: 28px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    display: block;
    width: 16px;
    height: 16px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-projects);
}

.project-card {
    background: var(--bg-project-card);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
}

.project-card__period {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent);
}

.project-card__title {
    margin: 0 0 8px;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.project-card__meta {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.project-card__text {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.project-card__text:last-child {
    margin-bottom: 0;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    display: inline-block;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-nav);
    background: var(--bg-highlight);
    border-radius: 999px;
}

.project-card__highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-nav);
    background: var(--bg-highlight);
    border-radius: var(--radius-sm);
}

.project-highlight--single {
    font-weight: 600;
    color: var(--text);
}

.project-highlight__icon {
    flex-shrink: 0;
    color: var(--accent);
}

.education {
    padding: 80px 0 96px;
    background: var(--bg-page);
}

.education__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 48px;
}

.education__overline {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.education__title {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.education__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.education__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.edu-card {
    position: relative;
    margin: 0;
    padding: 26px 24px 72px;
    background: var(--bg-section);
    border: 1px solid #eeeeee;
    border-radius: 18px;
    overflow: hidden;
}

.edu-card__period {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.edu-card__title {
    margin: 0 0 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    padding-right: 56px;
}

.edu-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.edu-card__text--narrow {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.edu-card__icon {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.edu-card__icon svg {
    display: block;
}

.edu-card--wide {
    padding: 32px 28px 80px;
}

.edu-card--center {
    text-align: center;
}

.edu-card--center .edu-card__title {
    padding-right: 0;
}

.edu-card--center .edu-card__icon {
    right: 20px;
    bottom: 18px;
}

.edu-card--extra {
    padding: 28px 28px 32px;
    text-align: left;
}

.edu-card--extra .edu-card__subtitle {
    margin: 0 0 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.edu-extra-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-extra-list__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.edu-extra-list__star {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
    display: flex;
}

.edu-extra-list__star svg {
    display: block;
}

.edu-extra-list__star iconify-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.awards {
    padding: 64px 0 96px;
    background: #ffffff; 
}

.awards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 36px 28px 32px;
    background: var(--bg-project-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-highlight);
    min-height: 100%;
}

.award-card__media {
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.award-card__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    max-width: 22rem;
}

.award-card__subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 22rem;
}

.award-card__year {
    margin: 0;
    margin-top: auto;
    padding-top: 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
}

.certificates {
    padding: 64px 0 96px;
    background: #ffffff; 
}

.certificates__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 48px;
}

.certificates__overline {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.certificates__title {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.certificates__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.cert-card {
    margin: 0;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.cert-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.cert-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.cert-card__media {
    flex: 1;
    min-height: 240px;
    padding: 14px;
    background: var(--bg-cert-card);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card__media img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.cert-card__preview {
    position: relative;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}

.cert-card__preview img {
    transition: transform 0.28s ease, filter 0.28s ease;
}

.cert-card__preview:hover img {
    transform: scale(1.03);
    filter: brightness(0.88);
}

.cert-card__preview-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.cert-card__preview:hover .cert-card__preview-label,
.cert-card__preview:focus-visible .cert-card__preview-label {
    opacity: 1;
}

.cert-card__preview:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cert-preview {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.cert-preview.is-open {
    display: block;
}

.cert-preview__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.cert-preview__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1020px);
    max-height: 90vh;
    margin: 4vh auto;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.cert-preview__image {
    width: 100%;
    max-height: calc(90vh - 70px);
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.cert-preview__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
    color: #111111;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

body.preview-open {
    overflow: hidden;
}

.qualities {
    padding: 80px 0 96px;
    background: var(--bg-page); 
}

.qualities__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 64px;
    align-items: start;
}

.qualities__label {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.qualities__head-spacer {
    grid-column: 2;
    grid-row: 1;
}

.qualities__title {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.qualities__aside-title {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.qualities__tags {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quality-pill {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-section);
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    line-height: 1.35;
}

.hobby-grid {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hobby-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: var(--bg-section);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    min-height: 52px;
}

.hobby-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.hobby-card__icon svg {
    display: block;
}

.hobby-card__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.contact {
    padding: 64px 0 96px;
    background: #ffffff; 
}

.contact__card {
    background: var(--bg-project-card);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 5vw, 56px);
}

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 64px;
    align-items: start;
}

.contact__label {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__title {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.contact__lead {
    margin: 0 0 36px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 28rem;
}

.contact__list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.contact__item:last-child {
    margin-bottom: 0;
}

.contact__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--contact-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__icon iconify-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact__item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.contact__item-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

a.contact__item-value:hover {
    color: var(--accent);
}

.contact__item-note {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.contact__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.contact-social:hover {
    background: #e6e6e6;
}

.contact-social__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-social__icon iconify-icon {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.contact__form {
    margin: 0;
    padding-top: 4px;
}

.contact-field {
    margin-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-field--message {
    margin-top: 8px;
    margin-bottom: 28px;
}

.contact-input {
    width: 100%;
    margin: 0;
    padding: 16px 0;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: 0;
}

.contact-input::placeholder {
    color: var(--text-muted);
}

.contact-input:focus {
    outline: none;
}

.contact-field:focus-within {
    border-bottom-color: var(--accent);
}

.contact-textarea {
    display: block;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.contact-submit:hover {
    filter: brightness(1.06);
}

.contact-submit:active {
    transform: scale(0.99);
}

.contact-submit__icon {
    flex-shrink: 0;
}

.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.contact-form-status {
    min-height: 24px;
    margin: 14px 4px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-status.is-success {
    color: #157347;
}

.contact-form-status.is-error {
    color: #b42318;
}

.footer {
    padding: 64px 0 48px;
    background: var(--bg-footer); 
}

.footer__inner {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.footer__name {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.footer__tagline {
    margin: 0 0 32px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.footer__menu {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-nav);
}

.footer__link:hover {
    color: var(--accent);
}

.footer__rule {
    height: 1px;
    margin: 0 auto 24px;
    max-width: min(100%, 520px);
    background: var(--border-hairline);
    border: none;
}

.footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .header_wrapper {
        min-height: 64px;
    }

    .header_toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header_menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        padding: 0 24px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .header_menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header_menu_list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border: 1px solid var(--border-hairline);
        border-radius: 14px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .header_menu_item {
        border-bottom: 1px solid var(--border-hairline);
    }

    .header_menu_item:last-child {
        border-bottom: none;
    }

    .header_menu_link {
        display: block;
        padding: 14px 16px;
    }

    .header_menu_link--active::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        justify-self: center;
        max-width: 360px;
    }

    .hero__tag--tr {
        right: 0;
    }

    .hero__tag--bl {
        left: 0;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about {
        padding: 56px 0 72px;
    }

    .projects {
        padding: 56px 0 72px;
    }

    .projects__head {
        margin-bottom: 40px;
    }

    .project-card {
        padding: 22px 20px 20px;
    }

    .education {
        padding: 56px 0 72px;
    }

    .education__head {
        margin-bottom: 36px;
    }

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

    .edu-card__title {
        padding-right: 0;
    }

    .awards {
        padding: 48px 0 72px;
    }

    .awards__grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
    }

    .certificates {
        padding: 48px 0 72px;
    }

    .certificates__head {
        margin-bottom: 36px;
    }

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

    .cert-card,
    .cert-card:nth-child(4),
    .cert-card:nth-child(5) {
        grid-column: auto;
    }

    .qualities {
        padding: 56px 0 72px;
    }

    .qualities__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qualities__head-spacer {
        display: none;
    }

    .qualities__label {
        grid-column: 1;
        grid-row: 1;
    }

    .qualities__title {
        grid-column: 1;
        grid-row: 2;
    }

    .qualities__tags {
        grid-column: 1;
        grid-row: 3;
    }

    .qualities__aside-title {
        grid-column: 1;
        grid-row: 4;
    }

    .hobby-grid {
        grid-column: 1;
        grid-row: 5;
    }

    .contact {
        padding: 48px 0 72px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 48px 0 40px;
    }

    .footer__tagline {
        margin-bottom: 28px;
    }

    .footer__menu {
        margin-bottom: 28px;
        gap: 8px 18px;
    }
}

@media (max-width: 600px) {
    .header_menu_list {
        gap: 4px 16px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 0;
    }

    .hero__stat {
        flex: none;
        padding: 16px 0;
        border-left: none;
        border-bottom: 1px solid var(--border-hairline);
    }

    .hero__stat:first-child {
        padding-top: 0;
    }

    .hero__stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero {
        padding: 32px 0 56px;
    }

    .about {
        padding: 40px 0 56px;
    }

    .about-card {
        padding: 20px;
    }

    .projects {
        padding: 40px 0 56px;
    }

    .timeline__item {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline__dot {
        width: 14px;
        height: 14px;
        margin-top: 4px;
        justify-self: center;
    }

    .education {
        padding: 40px 0 56px;
    }

    .edu-card {
        padding: 22px 20px 68px;
    }

    .edu-card--wide {
        padding: 24px 20px 72px;
    }

    .edu-card--extra {
        padding: 22px 20px 24px;
    }

    .awards {
        padding: 40px 0 56px;
    }

    .award-card {
        padding: 28px 22px 26px;
    }

    .certificates {
        padding: 40px 0 56px;
    }

    .cert-card__media {
        min-height: 200px;
        padding: 12px;
    }

    .qualities {
        padding: 40px 0 56px;
    }

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

    .contact {
        padding: 32px 0 56px;
    }

    .contact__card {
        padding: 24px 20px 32px;
        border-radius: var(--radius-lg);
    }

    .contact__item {
        gap: 14px;
    }

    .contact__icon {
        width: 46px;
        height: 46px;
    }

    .footer {
        padding: 40px 0 32px;
    }

    .footer__menu {
        gap: 8px 14px;
    }
}