@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@600;700&display=swap");

:root {
    --bg: #f6f9ff;
    --bg-soft: #eef4ff;
    --panel: #ffffff;
    --panel-alt: #fbfdff;

    --text: #16263a;
    --text-soft: #2f4762;
    --muted: #4f647d;

    --line: #d8e3f2;
    --line-strong: #c3d4e8;

    --accent: #1f5fae;
    --accent-2: #3d7fd0;
    --accent-soft: #e5efff;

    --success-soft: #e8f6ef;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --shadow-sm: 0 10px 24px rgba(31, 64, 112, 0.08);
    --shadow-md: 0 18px 42px rgba(31, 64, 112, 0.11);
    --shadow-lg: 0 26px 60px rgba(31, 64, 112, 0.14);

    --ring: 0 0 0 4px rgba(61, 127, 208, 0.22);

    --t-fast: 160ms;
    --t-base: 280ms;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --space-section: 28px;
    --space-card: 20px;

    --parallax-shift-1: 0px;
    --parallax-shift-2: 0px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", "Trebuchet MS", "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.76;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(1200px 620px at -8% -12%, rgba(117, 167, 230, 0.26), transparent 62%),
        radial-gradient(980px 560px at 108% -8%, rgba(191, 214, 255, 0.28), transparent 62%),
        linear-gradient(180deg, #fdfefe 0%, #f4f8ff 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
    will-change: transform;
}

body::before {
    width: 320px;
    height: 320px;
    top: 16%;
    right: -120px;
    background: rgba(179, 210, 255, 0.26);
    transform: translate3d(0, var(--parallax-shift-1), 0);
}

body::after {
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: 18%;
    background: rgba(205, 228, 255, 0.3);
    transform: translate3d(0, var(--parallax-shift-2), 0);
}

::selection {
    background: rgba(61, 127, 208, 0.2);
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(31, 95, 174, 0.34);
}

a:hover {
    text-decoration-color: rgba(31, 95, 174, 0.7);
}

strong {
    font-weight: 800;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-inline: 22px;
}

main.container {
    padding-top: 34px;
    padding-bottom: 70px;
}

.muted {
    color: var(--muted);
}

.dot {
    color: rgba(100, 116, 139, 0.55);
    margin-inline: 9px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(195, 212, 232, 0.52);
    background: rgba(253, 254, 255, 0.54);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(50, 88, 140, 0.08);
}

.header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 12px;
}

.logo {
    display: grid;
    gap: 4px;
}

.logo__title {
    font-size: clamp(18px, 1.5vw, 22px);
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.08;
    color: #1a314d;
}

.logo__sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #566f8d;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: #233853;
    text-decoration: none;
    transition:
        transform var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease);
}

.nav__link:hover {
    transform: translateY(-1px);
    background: rgba(61, 127, 208, 0.11);
    border-color: rgba(61, 127, 208, 0.32);
    color: #184c89;
}

.nav__link:focus-visible,
.btn:focus-visible,
.gallery__btn:focus-visible,
.gallery__dot:focus-visible,
.gallery__viewport:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 30px;
    align-items: start;
}

.hero__left {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 38px;
    background:
        linear-gradient(160deg, rgba(234, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 48%),
        var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.hero__left::before {
    content: "";
    position: absolute;
    right: -86px;
    top: -64px;
    width: 290px;
    height: 290px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(158, 197, 255, 0.34), transparent 64%);
    pointer-events: none;
}

.hero__head {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.hero__name {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(36px, 5.1vw, 54px);
    line-height: 1.06;
    letter-spacing: 0.01em;
    color: #1d3450;
}

.hero__role {
    margin: 12px 0 18px;
    max-width: 50ch;
    font-size: 19px;
    color: var(--text-soft);
}

.hero__fact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(61, 127, 208, 0.32);
    background: linear-gradient(180deg, rgba(229, 239, 255, 0.92), rgba(242, 248, 255, 0.96));
    box-shadow: 0 8px 20px rgba(52, 104, 175, 0.1);
}

.hero__fact-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #3467aa;
}

.hero__fact-value {
    font-size: 16px;
    font-weight: 800;
    color: #1f395b;
}

.section {
    margin-top: 30px;
}

.section__title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3f5b78;
}

.card {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: var(--space-card);
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.card__title {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 800;
    color: #1f3551;
}

.card__text {
    font-size: 16px;
    color: #3f5874;
}

.card__meta {
    margin-top: 8px;
    font-size: 14px;
    color: #4f6681;
}

.card__meta span {
    color: #637b96;
}

.contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contacts__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: start;
    gap: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 16px 18px;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.contacts__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.contacts__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #516c89;
}

.contacts__value {
    font-size: 16px;
    font-weight: 600;
    color: #233a56;
    word-break: break-word;
}

.hero__right {
    position: sticky;
    top: 92px;
    align-self: start;
}

.photo__img {
    width: 100%;
    height: 590px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #edf3ff;
    box-shadow: var(--shadow-lg);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.hero__right:hover .photo__img {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 28px 68px rgba(31, 64, 112, 0.2);
}

.photo__hint {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
    color: #58718f;
}

.section-wrap,
.teach,
.exp,
.awards,
.pd,
.projects {
    margin-top: var(--space-section);
}

.panel--section,
.teach__card,
.exp__card,
.awards__card,
.pd__card,
.projects__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(241, 248, 255, 0.86), rgba(255, 255, 255, 0.98) 42%),
        var(--panel);
    box-shadow: var(--shadow-md);
    padding: 36px;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.panel--section::before,
.teach__card::before,
.exp__card::before,
.awards__card::before,
.pd__card::before,
.projects__card::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8ec0ff 0%, #4d87d4 35%, #9ddab6 100%);
    opacity: 0.95;
}

.panel--section:hover,
.teach__card:hover,
.exp__card:hover,
.awards__card:hover,
.pd__card:hover,
.projects__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(31, 64, 112, 0.14);
    border-color: var(--line-strong);
}

.section-head {
    margin-bottom: 20px;
}

.section-head--compact .section-head__title {
    margin-top: 4px;
}

.section-head__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(61, 127, 208, 0.34);
    background: rgba(229, 239, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3c6da9;
}

.section-head__title,
.teach__title,
.exp__title,
.awards__title,
.pd__title,
.projects__title {
    margin: 12px 0 8px;
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0.004em;
    color: #1b3552;
    text-transform: none;
}

.section-head__desc,
.awards__subtitle,
.pd__subtitle,
.projects__subtitle {
    margin: 0;
    color: #3f5874;
    font-size: 17px;
    line-height: 1.84;
    max-width: 80ch;
}

.section-divider,
.exp__divider,
.pd__divider {
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent, rgba(140, 165, 196, 0.62), transparent);
}

.status-grid {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.status-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    color: #263f5c;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.status-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(97, 149, 218, 0.5);
}

.profile-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    padding: 22px;
}

.profile-box__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.9;
    color: #2a4260;
    max-width: 76ch;
}

.teach__title {
    margin-top: 2px;
}

.teach__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #283f5d;
}

.teach__chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 218, 0.42);
    background: rgba(236, 245, 255, 0.85);
    font-weight: 700;
    font-size: 16px;
}

.teach__dot {
    color: rgba(100, 116, 139, 0.55);
    font-size: 18px;
    user-select: none;
}

.exp__lead {
    margin: 0 0 8px;
    font-size: 18px;
    color: #263f5d;
}

.exp__sub {
    margin: 16px 0 10px;
    font-size: 16px;
    color: #4e6783;
}

.exp__list {
    margin: 0;
    padding-left: 22px;
    color: #2a4260;
    font-size: 17px;
    line-height: 1.8;
}

.exp__list li {
    margin: 12px 0;
    padding-left: 2px;
}

.gallery {
    margin-top: 16px;
}

.gallery__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #ecf3ff;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.gallery__viewport:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.gallery__track {
    width: 100%;
    display: flex;
    transform: translateX(0);
    transition: transform 420ms var(--ease);
}

.gallery__slide {
    width: 100%;
    flex: 0 0 100%;
    height: 520px;
    object-fit: contain;
    object-position: center;
    background: #eef5ff;
}

.gallery__viewport::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 38, 64, 0), rgba(18, 38, 64, 0.34));
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(18, 38, 64, 0.38);
    color: #ffffff;
    font-size: 27px;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
}

.gallery__viewport:hover .gallery__btn,
.gallery__viewport:focus-within .gallery__btn {
    opacity: 0.95;
}

.gallery__btn:hover {
    background: rgba(18, 38, 64, 0.56);
}

.gallery__btn:active {
    transform: translateY(-50%) scale(0.96);
}

.gallery__btn--prev {
    left: 12px;
}

.gallery__btn--next {
    right: 12px;
}

.gallery__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-inline: 12px;
}

.gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition:
        transform var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease);
}

.gallery__dot:hover {
    transform: scale(1.1);
}

.gallery__dot.is-active {
    transform: scale(1.16);
    background: rgba(255, 255, 255, 0.96);
}

.gallery-stack {
    margin-top: 4px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.gallery-panel {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}

.gallery-panel__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(167, 188, 214, 0.55);
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    font-size: clamp(24px, 2.25vw, 31px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #1b3552;
    text-align: left;
}

.gallery-panel .gallery {
    margin-top: 0;
    min-width: 0;
}

.gallery-panel .gallery__viewport,
.gallery-panel .gallery__track {
    min-width: 0;
    width: 100%;
}

.gallery--cert .gallery__viewport::after {
    display: none;
}

.awards__grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.award {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: start;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 18px;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.award:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.award--wide {
    grid-column: 1 / -1;
}

.award__meta {
    display: grid;
    gap: 8px;
}

.award__year,
.award__tag,
.pd-item__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(61, 127, 208, 0.34);
    background: rgba(229, 239, 255, 0.86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d6da7;
}

.award__text,
.pd-item__text {
    font-size: 17px;
    line-height: 1.8;
    color: #2a4260;
}

.pd__year {
    color: #47627f;
}

.pd__grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pd__h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #425f7d;
}

.pd__list {
    display: grid;
    gap: 12px;
}

.pd-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 18px;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.pd-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
}

.gallery--cert .gallery__slide {
    height: 490px;
}

.project {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    transition:
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.project:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.project--media-left {
    grid-template-columns: 0.92fr 1.08fr;
}

.project__name {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 2.7vw, 36px);
    font-weight: 700;
    line-height: 1.12;
    color: #1d3856;
}

.project__desc {
    margin: 0;
    font-size: 17px;
    line-height: 1.9;
    color: #2a4260;
    max-width: 74ch;
}

.project__actions {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--t-fast) var(--ease),
        box-shadow var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease);
}

.btn--primary {
    color: #ffffff;
    background: linear-gradient(180deg, #3f81d0 0%, #2f6ab4 100%);
    border-color: rgba(47, 106, 180, 0.8);
    box-shadow: 0 14px 30px rgba(43, 99, 171, 0.25);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(43, 99, 171, 0.32);
}

.btn--primary:active {
    transform: translateY(0);
}

.project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 14px;
    color: #4f6784;
}

.project__meta-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #47617f;
}

.project__meta-value {
    font-weight: 600;
    color: #2f4765;
}

.project__media {
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        radial-gradient(370px 190px at 20% 18%, rgba(180, 210, 255, 0.52), transparent 65%),
        radial-gradient(420px 220px at 78% 80%, rgba(152, 214, 189, 0.36), transparent 70%),
        #f7fbff;
    display: grid;
    place-items: center;
    padding: 14px;
    overflow: hidden;
}

.project__img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(30, 64, 111, 0.2));
    transition: transform var(--t-base) var(--ease);
}

.project:hover .project__img {
    transform: translateY(-2px) scale(1.01);
}

.site-footer {
    border-top: 1px solid rgba(195, 212, 232, 0.72);
    background: rgba(253, 254, 255, 0.88);
    backdrop-filter: blur(6px);
}

.footer__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #4f6784;
}

.footer__sep {
    opacity: 0.65;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__left,
.hero__right {
    animation: rise 560ms var(--ease) both;
}

.hero__right {
    animation-delay: 90ms;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }

    .hero__left,
    .panel--section,
    .teach__card,
    .exp__card,
    .awards__card,
    .pd__card,
    .projects__card {
        padding: 30px;
    }

    .photo__img {
        height: 540px;
    }

    .gallery__slide {
        height: 480px;
    }

    .gallery--cert .gallery__slide {
        height: 460px;
    }
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

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

    .hero__right {
        position: static;
    }

    .photo__img {
        height: 460px;
    }

    .section-wrap,
    .teach,
    .exp,
    .awards,
    .pd,
    .projects {
        margin-top: 22px;
    }

    .awards__grid,
    .pd__grid,
    .project {
        grid-template-columns: 1fr;
    }

    .award--wide {
        grid-column: auto;
    }

    .project__img {
        height: 290px;
    }

    .gallery__slide {
        height: 400px;
    }

    .gallery--cert .gallery__slide {
        height: 390px;
    }
}

@media (max-width: 720px) {
    .container {
        padding-inline: 16px;
    }

    main.container {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .header__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .nav__link {
        white-space: nowrap;
        min-height: 38px;
        padding-inline: 13px;
    }

    .hero__left,
    .panel--section,
    .teach__card,
    .exp__card,
    .awards__card,
    .pd__card,
    .projects__card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .section-wrap,
    .teach,
    .exp,
    .awards,
    .pd,
    .projects {
        margin-top: 20px;
    }

    .panel--section::before,
    .teach__card::before,
    .exp__card::before,
    .awards__card::before,
    .pd__card::before,
    .projects__card::before {
        left: 14px;
        right: 14px;
    }

    .contacts__item,
    .award,
    .pd-item {
        grid-template-columns: 1fr;
    }

    .contacts__label {
        margin-bottom: 2px;
    }

    .pd-item__meta,
    .award__meta {
        grid-auto-flow: column;
        justify-content: start;
    }

    .photo__img {
        height: 380px;
    }

    .gallery__slide {
        height: 270px;
    }

    .gallery--cert .gallery__slide {
        height: 330px;
    }

    .gallery__btn {
        width: 42px;
        height: 42px;
        font-size: 24px;
        opacity: 0.9;
    }

    .section-head__title,
    .teach__title,
    .exp__title,
    .awards__title,
    .pd__title,
    .gallery-panel__title,
    .projects__title,
    .project__name {
        font-size: clamp(24px, 8.4vw, 31px);
    }

    .hero__role,
    .project__desc,
    .profile-box__text,
    .award__text,
    .pd-item__text {
        font-size: 16px;
        line-height: 1.78;
    }
}

@media (max-width: 480px) {
    .logo__title {
        font-size: 20px;
    }

    .hero__name {
        font-size: 38px;
    }

    .project__img {
        height: 230px;
    }

    .gallery__dots {
        gap: 6px;
    }

    .gallery__dot {
        width: 9px;
        height: 9px;
    }

    .gallery--cert .gallery__slide {
        height: 300px;
    }

    .footer__inner {
        gap: 6px;
    }
}
