/* Dulesov.ru — homepage design system */
:root {
    --primary: #8b5cf6;
    --primary-strong: #7047eb;
    --secondary: #45d6b4;
    --accent: #ffb45f;
    --page: #0a0b10;
    --page-soft: #0f1118;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: #151821;
    --surface-hover: rgba(255, 255, 255, 0.085);
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f6f7fb;
    --muted: #a7acba;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius-lg: 8px;
    --radius-md: 4px;
    --container: 1180px;
    --rail: clamp(118px, 14vw, 184px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'InterVariable', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--page);
    line-height: 1.58;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

body::after {
    opacity: 0.018;
}

a {
    text-underline-offset: 0.2em;
}

/* Navigation */
.main-nav {
    position: fixed;
    inset: 18px auto auto 50%;
    z-index: 1000;
    width: min(calc(100% - 36px), var(--container));
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 7px 70px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: color-mix(in srgb, var(--page) 88%, transparent);
    box-shadow: none;
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.nav-menu {
    position: static;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    box-shadow: none;
}

.nav-link {
    position: relative;
    padding: 9px 12px;
    border-radius: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 1px;
    display: block;
    background: var(--primary);
    scale: 0 1;
    transform-origin: left;
    transition: scale 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    scale: 1 1;
}

.nav-link--language {
    margin-left: 8px;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line));
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-link--language::after {
    display: none;
}

.nav-link--language:hover,
.nav-link--language:focus-visible {
    color: var(--page);
    background: var(--primary);
}

.theme-toggle {
    position: fixed;
    z-index: 1002;
    top: 24px;
    right: max(28px, calc((100vw - var(--container)) / 2 + 18px));
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.theme-toggle:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    background: var(--surface-hover);
}

/* Hero */
.hero {
    min-height: 100svh;
    display: block;
    padding: 0;
    text-align: left;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.18), transparent 34%),
        radial-gradient(circle at 88% 30%, rgba(69, 214, 180, 0.1), transparent 27%),
        linear-gradient(180deg, #0c0d13 0%, var(--page) 100%);
}

.hero::before {
    inset: 0;
    width: auto;
    height: auto;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    filter: none;
    mask-image: linear-gradient(to bottom, #000 15%, transparent 88%);
    animation: none;
    z-index: -2;
}

.hero-grid {
    width: min(calc(100% - 48px), var(--container));
    min-height: 100svh;
    margin: 0 auto;
    padding: 118px 0 76px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(390px, 5fr);
    align-items: center;
    gap: clamp(38px, 5.4vw, 76px);
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 710px;
    padding-right: clamp(0px, 1.5vw, 22px);
}

.hero-title-row {
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.hero-kicker,
.section-kicker {
    margin: 0 0 22px;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    border-block: 1px solid var(--line);
    background: transparent;
}

.hero-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--secondary);
}

.modern-hero-name {
    position: relative;
    margin: 0;
    max-width: 760px;
    font-size: clamp(4.35rem, 7vw, 7.35rem);
    font-weight: 850;
    line-height: 0.86;
    letter-spacing: -0.078em;
    color: var(--text) !important;
    background: none;
    text-wrap: balance;
}

.modern-hero-name span {
    color: inherit;
}

.modern-tagline {
    margin: 22px 0 0;
    color: var(--text);
    font-size: clamp(1.2rem, 1.8vw, 1.58rem);
    font-weight: 680;
    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.hero-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
    transform: none;
}

.hero-button--primary {
    background: var(--primary-strong);
    box-shadow: none;
}

.hero-button--primary:hover {
    background: var(--primary);
    box-shadow: none;
}

.hero-button--secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text);
}

.hero-button--secondary:hover {
    border-color: rgba(139, 92, 246, 0.55);
    background: var(--surface-hover);
}

.hero-stats {
    max-width: 640px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--line);
}

.hero-stat {
    min-width: 0;
    padding: 16px 18px 16px 0;
    display: grid;
    gap: 3px;
    color: inherit;
    text-decoration: none;
}

.hero-stat + .hero-stat {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.hero-stat strong {
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 780;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.015em;
    line-height: 1.35;
}

.hero-stat--vk {
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-stat--vk:hover,
.hero-stat--vk:focus-visible {
    background: rgba(39, 135, 245, 0.07);
}

.hero-stat--vk strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2787f5;
}

.hero-stat__verified {
    color: var(--secondary);
    font-size: 0.64em;
    filter: drop-shadow(0 0 6px rgba(69, 214, 180, 0.25));
}

@keyframes verified-breathe {
    0%, 100% { opacity: 0.78; scale: 0.94; }
    50% { opacity: 1; scale: 1.08; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-stat__verified {
        animation: verified-breathe 2.8s ease-in-out infinite;
    }
}

.hero-expertise {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-expertise span,
.badge {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 1px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hero-grid .contact-icons {
    justify-content: flex-start;
    gap: 9px;
    margin: 22px 0 0;
}

.hero-grid .contact-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: var(--surface);
    color: var(--muted);
    font-size: 1rem;
}

.hero-grid .contact-icon:hover {
    border-color: rgba(139, 92, 246, 0.55);
    background: var(--surface-hover);
    color: var(--text);
    transform: none;
}

.max-theme-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
    line-height: 0;
}

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

.max-theme-icon__dark {
    display: none !important;
}

body.light-theme .max-theme-icon__white {
    display: none;
}

body.light-theme .max-theme-icon__dark {
    display: block !important;
}

.hero-visual {
    position: relative;
    min-height: 600px;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(69, 214, 180, 0.04) 58%, transparent 58%);
    filter: blur(16px);
}

.hero-visual .photo-outer {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 36px), 400px);
    height: 520px;
    margin: 0;
    border-radius: 4px;
    transform: none;
}

.hero-visual .photo-outer::before {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: 6px;
    background: conic-gradient(from 0deg, transparent 0 56%, rgba(69, 214, 180, 0.12) 66%, #45d6b4 73%, #8b5cf6 80%, transparent 89% 100%);
    opacity: 0.7;
    filter: blur(0.2px);
    animation: portrait-signal 9s linear infinite;
    pointer-events: none;
}

.hero-visual .photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    background: #1b1e27;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.hero-visual .photo-wrapper:hover {
    border-color: rgba(139, 92, 246, 0.52);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.4);
}

.hero-visual .photo,
.hero-visual .photo-video {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center top;
}

.hero-visual .photo-video {
    transform: scale(1.02);
    opacity: 1;
    transition: opacity 0.45s ease;
}

.ambient-video-disabled .hero-visual .photo-video {
    opacity: 0;
}

.hero-visual .photo-sound {
    right: 16px;
    bottom: 16px;
    border-radius: 2px;
    padding: 8px 10px;
    background: rgba(9, 10, 14, 0.74);
    backdrop-filter: blur(12px);
}

.photo-play-mobile,
.photo-close-mobile {
    display: none;
}

@keyframes mobile-video-button-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.42), 0 12px 30px rgba(0, 0, 0, 0.34);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0), 0 16px 36px rgba(0, 0, 0, 0.42);
    }
}

.scroll-down {
    bottom: 22px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 1px;
    color: var(--muted);
    font-size: 0.8rem;
    animation: none;
}

.scroll-down:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.55);
}

@keyframes portrait-signal {
    to { transform: rotate(360deg); }
}

/* Main sections */
main {
    position: relative;
    background: var(--page);
    counter-reset: section;
}

section {
    width: min(calc(100% - 48px), var(--container));
    max-width: none;
    margin: 0 auto;
    padding: 104px 0;
    counter-increment: section;
}

section + section {
    border-top: 1px solid var(--line);
}

.section-darker {
    background: transparent;
}

.section-bg {
    display: none;
}

.section-header {
    max-width: none;
    margin-bottom: 50px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: clamp(24px, 5vw, 72px);
    border-top: 1px solid var(--line-strong);
}

.section-header .section-kicker {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 4px 0 0;
    padding-left: 18px;
    padding-right: 18px;
    color: var(--secondary);
}

.section-header .section-kicker::before {
    content: '0' counter(section) ' / ';
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.section-header h2,
.section-header .section-intro {
    grid-column: 2;
}

h2,
.section-header h2,
.cta-title {
    margin: 0;
    color: var(--text);
    font-family: inherit;
    font-size: clamp(2.45rem, 5.4vw, 4.7rem);
    font-weight: 810;
    line-height: 0.96;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

h2::after {
    display: none;
}

.section-intro {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.about-text {
    position: sticky;
    top: 120px;
    margin: 0;
    padding: 24px 24px 24px 28px;
    border: 0;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.85;
}

.about-me {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
    counter-reset: about-item;
}

.about-item,
.skill-category,
.job,
.portfolio-item {
    border: 0;
    background: var(--surface-strong);
    box-shadow: none;
}

.about-item {
    position: relative;
    min-height: 190px;
    padding: 48px 24px 24px;
    border-radius: 0;
    counter-increment: about-item;
    transition: background 0.25s ease;
}

.about-item::before {
    content: '0' counter(about-item);
    position: absolute;
    top: 17px;
    right: 20px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.about-item:hover {
    background: var(--surface-hover);
}

.about-item h3 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.3;
}

.about-item h3 i,
.skill-category h3 i {
    color: #a88cff;
}

.about-item p {
    color: var(--muted);
    font-size: 0.88rem;
}

.work-facts {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--line);
}

.work-fact {
    min-width: 0;
    padding: 20px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.work-fact:first-child {
    padding-left: 0;
    border-left: 0;
}

.work-fact dt {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.work-fact dt i {
    color: var(--secondary);
    font-size: 0.78rem;
}

.work-fact dd {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

.skills-container {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 1px;
    margin: 0;
    padding: 1px;
    background: var(--line);
    counter-reset: skill-card;
}

.skill-category {
    position: relative;
    grid-column: span 4;
    min-height: 0;
    padding: 54px 25px 25px;
    border-radius: 0;
    counter-increment: skill-card;
    transition: background 0.25s ease;
}

.skill-category::before {
    content: '0' counter(skill-card);
    position: absolute;
    top: 19px;
    right: 22px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.skill-category:hover {
    background: var(--surface-hover);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.skill-item {
    margin: 0;
    padding: 8px 0 8px 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.skill-item::before {
    content: '';
    top: 50%;
    left: 0;
    width: 6px;
    height: 1px;
    border-radius: 0;
    background: var(--secondary);
    color: transparent;
    font-size: 0;
    line-height: 0;
    transform: translateY(-50%);
}

.skill-category--media {
    grid-column: 1 / -1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    background: color-mix(in srgb, var(--primary) 5%, var(--surface-strong));
}

.skill-category--media h3 {
    grid-column: 1 / -1;
}

.skill-category--media .skill-item {
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

#experience {
    position: relative;
}

.job {
    position: relative;
    margin: 0;
    padding: 30px 0;
    display: grid;
    grid-template-columns: var(--rail) minmax(220px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(22px, 4vw, 54px);
    align-items: start;
    border-width: 1px 0 0;
    border-style: solid;
    border-color: var(--line);
    border-radius: 0;
    background: transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.job::before {
    display: none;
}

.job::after {
    display: none;
}

.job:last-of-type {
    border-bottom: 1px solid var(--line);
}

.job:hover {
    transform: none;
    border-color: rgba(139, 92, 246, 0.48);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.045), transparent 50%);
}

.job-title {
    display: contents;
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}

.job-title > span:first-child {
    grid-column: 2;
    grid-row: 1;
    line-height: 1.35;
}

.job-period {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: max-content;
    padding: 0;
    padding-left: 18px;
    border: 0;
    border-radius: 0;
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.job ul {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    padding: 0;
}

.job li {
    margin: 0;
    padding: 0 0 10px 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.job li:last-child {
    padding-bottom: 0;
}

.job li::before {
    top: 0.72em;
    width: 7px;
    height: 1px;
    background: var(--secondary);
    color: transparent;
    font-size: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 1px;
    background: var(--line);
    counter-reset: project-card;
}

.portfolio-item {
    position: relative;
    grid-column: span 6;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 54px 30px 30px;
    overflow: hidden;
    border-radius: 0;
    counter-increment: project-card;
    transition: background 0.25s ease;
}

.portfolio-item::after {
    content: '0' counter(project-card);
    position: absolute;
    right: 26px;
    top: 22px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.portfolio-item:hover {
    background: var(--surface-hover);
}

.portfolio-item--featured {
    grid-column: span 7;
    min-height: 390px;
    padding-right: min(25%, 180px);
    background:
        linear-gradient(145deg, rgba(139, 92, 246, 0.15), transparent 58%),
        var(--surface-strong);
}

.portfolio-item:nth-child(2) {
    grid-column: span 5;
}

.portfolio-item:nth-child(3),
.portfolio-item:nth-child(6) {
    grid-column: span 5;
}

.portfolio-item:nth-child(4),
.portfolio-item:nth-child(5) {
    grid-column: span 7;
}

.portfolio-item--featured::before {
    content: 'HI';
    position: absolute;
    right: -1%;
    bottom: -4%;
    top: auto;
    transform: none;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(7rem, 13vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.09em;
}

.project-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 34px;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-item h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 15px;
    color: var(--text);
    font-size: clamp(1.35rem, 2.35vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.portfolio-item p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.portfolio-item p:has(.badge) {
    min-height: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 20px;
}

.portfolio-item .badge {
    min-height: 28px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 6px 10px;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.badge-kpi {
    color: #b8f5e5;
    border-color: rgba(69, 214, 180, 0.25);
}

.portfolio-link {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 720;
}

.portfolio-link:hover {
    gap: 13px;
    color: #b7a0ff;
}

.portfolio-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: left;
}

/* Platforms */
.platforms-section {
    position: relative;
    overflow: clip;
}

.platforms-section::before {
    display: none;
}

.platforms-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
    counter-reset: platform-card;
}

.platform-card {
    position: relative;
    grid-column: span 3;
    min-width: 0;
    min-height: 138px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 42px 20px 20px;
    border: 0;
    border-radius: 0;
    background: var(--surface-strong);
    color: var(--text);
    text-decoration: none;
    counter-increment: platform-card;
    transition: background 0.25s ease;
}

.platform-card::before {
    content: '0' counter(platform-card);
    position: absolute;
    top: 14px;
    left: 20px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.platform-card--featured {
    grid-column: span 6;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), var(--surface-strong) 72%);
}

.platform-card:hover {
    transform: none;
    background-color: var(--surface-hover);
}

.platform-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
    border-radius: 1px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: #a88cff;
    font-size: 1.15rem;
}

.platform-card__icon--text {
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.platform-card__icon .max-theme-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.platform-card__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-card__copy strong {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.25;
}

.platform-card__copy small {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.platform-card__arrow {
    align-self: start;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.platform-card:hover .platform-card__arrow {
    color: var(--secondary);
    transform: translate(2px, -2px);
}

.cta-section {
    width: min(calc(100% - 48px), var(--container));
    margin-bottom: 112px;
    padding: clamp(52px, 7vw, 82px);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 2px;
    background:
        linear-gradient(120deg, rgba(69, 214, 180, 0.09), transparent 34%),
        linear-gradient(300deg, rgba(139, 92, 246, 0.22), transparent 42%),
        #11131a;
    text-align: left;
    box-shadow: none;
}

.cta-section::before {
    content: '06';
    inset: auto 3% -11% auto;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(9rem, 22vw, 18rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.1em;
    transform: none;
}

.cta-section .section-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.cta-title {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.cta-text {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 1.05rem;
}

.cta-button {
    position: relative;
    z-index: 1;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    overflow: visible;
    border-radius: 1px;
    background: var(--primary-strong);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cta-button::before {
    display: none;
}

.cta-button:hover {
    transform: none;
    background: var(--primary);
    box-shadow: none;
}

footer {
    padding: 44px max(24px, calc((100vw - var(--container)) / 2));
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 18px 36px;
    border-top: 1px solid var(--line);
    background: var(--page-soft);
    text-align: left;
}

.social-links {
    justify-content: flex-start;
    margin: 0;
    gap: 9px;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: var(--surface);
    color: var(--muted);
    font-size: 1rem;
}

.social-link:hover {
    border-color: rgba(139, 92, 246, 0.48);
    background: var(--surface-hover);
    color: var(--text);
    transform: none;
}

.footer-links {
    justify-content: flex-end;
    gap: 22px;
    margin: 0;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
}

.footer-links a,
.copyright {
    color: var(--muted);
    font-size: 0.78rem;
}

/* Cookie notice */
.cookie-consent-container {
    z-index: 1100;
}

.cookie-consent-banner {
    right: 20px;
    bottom: 20px;
    left: auto;
    max-width: 520px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(18, 20, 28, 0.92);
    color: var(--text);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
}

.cookie-consent-banner .cookie-icon {
    color: var(--accent);
}

.cookie-consent-banner .cookie-text {
    color: var(--muted);
    font-size: 0.78rem;
}

.cookie-consent-banner .cookie-btn {
    margin-left: 10px;
    border-radius: 9px;
    background: var(--primary);
}

.cookie-consent-trigger {
    width: 42px;
    height: 42px;
    right: 18px;
    bottom: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--accent);
}

/* Light mode */
body.light-theme {
    --page: #f5f6fa;
    --page-soft: #eceef4;
    --surface: rgba(14, 18, 32, 0.045);
    --surface-strong: #ffffff;
    --surface-hover: rgba(14, 18, 32, 0.075);
    --line: rgba(14, 18, 32, 0.1);
    --line-strong: rgba(14, 18, 32, 0.17);
    --text: #151722;
    --muted: #636978;
    --shadow: 0 24px 70px rgba(45, 38, 76, 0.12);
    color: var(--text);
    background: var(--page);
}

body.light-theme .hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.16), transparent 34%),
        radial-gradient(circle at 88% 30%, rgba(69, 214, 180, 0.13), transparent 27%),
        linear-gradient(180deg, #fafafe 0%, var(--page) 100%);
}

body.light-theme .hero::before {
    background-image:
        linear-gradient(rgba(20, 24, 38, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 24, 38, 0.04) 1px, transparent 1px);
}

body.light-theme .main-nav {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

body.light-theme .modern-hero-name {
    color: var(--text) !important;
}

body.light-theme .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.88);
}

body.light-theme .portfolio-item--featured::before {
    color: rgba(22, 24, 34, 0.045);
}

body.light-theme .cta-section {
    background:
        linear-gradient(120deg, rgba(69, 214, 180, 0.1), transparent 34%),
        linear-gradient(300deg, rgba(139, 92, 246, 0.18), transparent 42%),
        #ffffff;
}

/* Tablet */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
        gap: 42px;
    }

    .hero-visual {
        min-height: 520px;
    }

    .hero-visual .photo-outer {
        width: 340px;
        height: 440px;
    }

    .work-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-fact:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .work-fact:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .platforms-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .platform-card {
        grid-column: span 3;
    }

    .platform-card--featured {
        grid-column: span 6;
    }
}

@media (max-width: 920px) {
    .main-nav {
        z-index: 1200;
        min-height: 62px;
        padding: 8px 110px 8px 9px;
        border-color: transparent;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
    }

    body.light-theme .main-nav {
        background: transparent;
        box-shadow: none;
    }

    .nav-toggle {
        position: absolute;
        right: 58px;
        top: 9px;
        z-index: 3;
        width: 44px;
        height: 44px;
        display: flex;
        border: 1px solid var(--line);
        border-radius: 1px;
        background: var(--surface);
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        inset: -18px;
        z-index: 2;
        min-height: 100svh;
        margin: 0;
        padding: 110px 28px 40px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border-radius: 0;
        background: var(--page);
        backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    body.light-theme .main-nav .nav-menu {
        background: var(--page);
    }

    body.menu-open .cookie-consent-container {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.nav-menu--visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        border-radius: 0;
        color: var(--text);
        font-size: 1.08rem;
    }

    .nav-link--language {
        width: max-content;
        margin: 12px 0 0;
        padding-inline: 18px;
    }

    .theme-toggle {
        z-index: 1202;
        top: 27px;
        right: max(27px, calc((100vw - var(--container)) / 2 + 18px));
        width: 44px;
        height: 44px;
        border-radius: 1px;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 112px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .portfolio-item--featured {
        padding-right: 30px;
    }

    .portfolio-item--featured > * {
        max-width: min(680px, 100%);
    }

    .portfolio-item--featured::before {
        right: -3%;
        opacity: 0.45;
    }

    .modern-hero-name {
        font-size: clamp(4.2rem, 13vw, 6.5rem);
    }

    .hero-visual {
        min-height: 520px;
        border-left: 0;
    }

    .hero-visual .photo-outer {
        width: 380px;
        height: 480px;
    }

    .scroll-down {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        position: static;
    }

    .skills-container {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .skill-category {
        grid-column: span 3;
    }

    .skill-category--media {
        grid-column: span 6;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-item,
    .portfolio-item:nth-child(n) {
        grid-column: span 6;
    }

    .portfolio-item--featured,
    .portfolio-item--featured:nth-child(n) {
        grid-column: span 12;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .main-nav {
        inset: 12px auto auto 50%;
        width: calc(100% - 24px);
        min-height: 54px;
        padding-right: 104px;
    }

    .theme-toggle {
        top: 21px;
        right: 21px;
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        right: 48px;
        width: 36px;
        height: 36px;
    }

    .hero-grid {
        width: calc(100% - 32px);
        padding: 88px 0 28px;
        gap: 0;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        display: none;
    }

    .hero-visual.mobile-video-visible {
        position: fixed;
        inset: 0;
        z-index: 1400;
        min-height: 100svh;
        padding: 24px;
        display: grid;
        place-items: center;
        background: rgba(6, 7, 11, 0.88);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.mobile-video-open {
        overflow: hidden;
    }

    .hero-visual.mobile-video-visible .photo-outer {
        width: min(82vw, 360px);
        height: min(70svh, 480px);
        border-radius: 4px;
    }

    .hero-visual .photo-wrapper {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    }

    .hero-visual .photo-wrapper:not(.mobile-video-playing) .photo-video {
        opacity: 0 !important;
        pointer-events: none;
    }

    .hero-visual .photo-wrapper.mobile-video-playing .photo-video {
        opacity: 1 !important;
    }

    .hero-visual .photo-sound {
        display: none;
    }

    .hero-visual .mobile-video-playing .photo-sound {
        display: block;
    }

    .hero-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 56px;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
    }

    .photo-play-mobile:not([hidden]) {
        position: relative;
        z-index: 5;
        width: 56px;
        height: 56px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(112, 71, 235, 0.96), rgba(139, 92, 246, 0.96));
        color: #fff;
        font: inherit;
        font-size: 0.9rem;
        cursor: pointer;
        backdrop-filter: blur(12px);
        animation: mobile-video-button-pulse 1.8s ease-in-out infinite;
    }

    .photo-play-mobile i {
        margin-left: 3px;
        font-size: 0.9rem;
    }

    .hero-visual.mobile-video-visible .photo-close-mobile:not([hidden]) {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 6;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 1px;
        background: rgba(9, 10, 14, 0.78);
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
        backdrop-filter: blur(12px);
    }

    .hero-kicker {
        margin-bottom: 12px;
        padding: 7px 0;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .modern-hero-name {
        font-size: clamp(3.15rem, 15vw, 4rem);
        line-height: 0.91;
    }

    .modern-tagline {
        margin-top: 12px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-description {
        margin-top: 8px;
        font-size: 0.84rem;
        line-height: 1.55;
    }

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

    .hero-button {
        min-height: 46px;
        width: 100%;
        padding: 0 10px;
        gap: 7px;
        font-size: 0.76rem;
    }

    .pwa-install-button {
        grid-column: 1 / -1;
    }

    .hero-stats {
        margin-top: 18px;
    }

    .hero-stat {
        padding: 10px 8px 10px 0;
    }

    .hero-stat + .hero-stat {
        padding-left: 8px;
    }

    .hero-stat strong {
        font-size: 1.05rem;
    }

    .hero-stat span {
        font-size: 0.56rem;
    }

    .hero-expertise {
        margin-top: 12px;
        gap: 6px;
    }

    .hero-expertise span {
        padding: 4px 8px;
        font-size: 0.64rem;
    }

    .hero-grid .contact-icons {
        position: fixed;
        top: 21px;
        left: 21px;
        z-index: 1201;
        gap: 4px;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    body.hero-passed .hero-grid .contact-icons,
    body.menu-open .hero-grid .contact-icons {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .hero-grid .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    section {
        width: calc(100% - 32px);
        padding: 76px 0;
    }

    .section-header {
        margin-bottom: 34px;
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .section-header .section-kicker {
        grid-column: 1;
        grid-row: auto;
        margin: 0;
    }

    .section-header h2,
    .section-header .section-intro {
        grid-column: 1;
    }

    h2,
    .section-header h2,
    .cta-title {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .section-intro {
        margin-top: 14px;
        font-size: 0.92rem;
    }

    .about-text {
        padding: 23px;
        font-size: 0.94rem;
    }

    .about-me,
    .skills-container,
    .portfolio-grid,
    .work-facts,
    .platforms-grid,
    .skill-category--media {
        grid-template-columns: 1fr;
    }

    .skill-category,
    .skill-category--media,
    .portfolio-item,
    .portfolio-item:nth-child(n),
    .portfolio-item--featured,
    .portfolio-item--featured:nth-child(n),
    .platform-card,
    .platform-card--featured {
        grid-column: auto;
    }

    .about-item {
        min-height: 0;
    }

    .skill-category {
        min-height: 0;
    }

    .skill-category--media h3 {
        grid-column: auto;
    }

    .platform-card {
        min-height: 116px;
        padding: 40px 17px 17px;
    }

    .platform-card::before {
        left: 17px;
    }

    .job {
        margin: 0;
        padding: 24px 0;
        padding-inline: 18px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .job-title > span:first-child {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0;
    }

    .job-period {
        grid-column: 1;
        grid-row: 2;
    }

    .job ul {
        grid-column: 1;
        grid-row: 3;
        margin-top: 8px;
    }

    .portfolio-item,
    .portfolio-item--featured {
        min-height: 320px;
        padding: 24px;
    }

    .portfolio-item--featured::before {
        right: -8%;
        top: 68%;
        bottom: auto;
        font-size: 9rem;
    }

    .work-fact,
    .work-fact:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .work-fact:nth-child(n + 2) {
        border-top: 1px solid var(--line);
    }

    .cta-section {
        width: calc(100% - 32px);
        margin-bottom: 76px;
        padding: 42px 24px;
        border-radius: 1px;
    }

    footer {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: 1;
    }

    .cookie-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-button,
    .portfolio-item,
    .skill-category,
    .about-item,
    .job,
    .platform-card {
        transition: none;
    }

    .photo-play-mobile {
        animation: none !important;
    }
}

/* Motion layer: restrained, responsive and disabled for reduced motion */
.hero {
    --spot-x: 18%;
    --spot-y: 24%;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(460px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.065), transparent 68%);
    transition: background-position 0.2s ease;
}

body.light-theme .hero::after {
    background: radial-gradient(460px circle at var(--spot-x) var(--spot-y), rgba(99, 72, 190, 0.075), transparent 68%);
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        translate: 0 22px;
        filter: blur(6px);
    }
    to {
        opacity: 1;
        translate: 0 0;
        filter: blur(0);
    }
}

@keyframes hero-photo-in {
    from {
        opacity: 0;
        scale: 0.965;
        clip-path: inset(8% 8% 8% 8% round 8px);
    }
    to {
        opacity: 1;
        scale: 1;
        clip-path: inset(0 0 0 0 round 4px);
    }
}

@keyframes aura-breathe {
    0%, 100% { opacity: 0.78; scale: 0.96; }
    50% { opacity: 1; scale: 1.035; }
}

@keyframes stagger-item-in {
    from {
        opacity: 0;
        translate: 0 20px;
        scale: 0.985;
    }
    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

@keyframes scroll-cue {
    0%, 100% { translate: 0 0; opacity: 0.58; }
    50% { translate: 0 6px; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: hero-content-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .hero-copy > :nth-child(1) { animation-delay: 0.04s; }
    .hero-copy > :nth-child(2) { animation-delay: 0.11s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.18s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.25s; }
    .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
    .hero-copy > :nth-child(6) { animation-delay: 0.39s; }
    .hero-copy > :nth-child(7) { animation-delay: 0.46s; }
    .hero-copy > :nth-child(8) { animation-delay: 0.53s; }

    .hero-visual .photo-outer {
        animation: hero-photo-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }

    .hero-visual::before {
        animation: aura-breathe 7s ease-in-out 1.2s infinite;
    }

    .scroll-down {
        animation: scroll-cue 2.2s ease-in-out 1.4s infinite;
    }

    .motion-ready .animate-on-scroll:not(.visible) .stagger-item {
        opacity: 0;
        translate: 0 20px;
        scale: 0.985;
    }

    .motion-ready .animate-on-scroll.visible .stagger-item {
        animation: stagger-item-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: calc(var(--stagger-index, 0) * 65ms);
    }
}

body.save-data .hero-copy > *,
body.save-data .hero-visual .photo-outer,
body.save-data .hero-visual .photo-outer::before,
body.save-data .hero-visual::before,
body.save-data .scroll-down,
body.save-data .stagger-item {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual .photo-outer::before {
        animation: none;
        opacity: 0.38;
    }
}

/* Install UI */
.pwa-install-button {
    appearance: none;
    font: inherit;
    cursor: pointer;
}

.pwa-install-button[hidden],
.pwa-standalone .pwa-install-button {
    display: none !important;
}

.pwa-dialog {
    width: min(calc(100% - 32px), 460px);
    max-height: calc(100svh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
}

.pwa-dialog::backdrop {
    background: rgba(3, 4, 8, 0.72);
    backdrop-filter: blur(8px);
}

.pwa-dialog__panel {
    position: relative;
    padding: 34px;
}

.pwa-dialog__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(69, 214, 180, 0.24);
    border-radius: 1px;
    background: rgba(69, 214, 180, 0.09);
    color: var(--secondary);
    font-size: 1.15rem;
}

.pwa-dialog h2 {
    margin: 0;
    font-size: clamp(1.65rem, 6vw, 2.2rem);
    letter-spacing: -0.045em;
}

.pwa-dialog ol {
    margin: 22px 0 26px;
    padding-left: 22px;
    color: var(--muted);
}

.pwa-dialog li + li {
    margin-top: 9px;
}

.pwa-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}

.pwa-dialog__confirm {
    width: 100%;
    border: 0;
    cursor: pointer;
}

body.light-theme .pwa-dialog {
    background: #ffffff;
}

.pwa-standalone .main-nav {
    top: calc(18px + env(safe-area-inset-top));
}

.pwa-standalone .theme-toggle {
    top: calc(29px + env(safe-area-inset-top));
}

.pwa-standalone footer {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
    .pwa-dialog__panel {
        padding: 28px 24px 24px;
    }

    .pwa-standalone .main-nav {
        top: calc(12px + env(safe-area-inset-top));
    }

    .pwa-standalone .hero-grid {
        padding-top: calc(88px + env(safe-area-inset-top));
    }

    .pwa-standalone .theme-toggle {
        top: calc(21px + env(safe-area-inset-top));
    }

    .pwa-standalone .hero-grid .contact-icons {
        top: calc(21px + env(safe-area-inset-top));
    }

    .pwa-standalone .hero-visual.mobile-video-visible .photo-close-mobile {
        top: calc(12px + env(safe-area-inset-top));
    }
}

@media (max-width: 340px) {
    .hero-grid .contact-icon:nth-child(4) {
        display: none;
    }
}
