/* -Шрифт- */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Marck+Script&family=Oswald:wght@200..700&family=Pangolin&family=WDXL+Lubrifont+SC&display=swap');

/* -Общие Стили- */
:root {
    --bg-1: #8a2be2;
    --bg-2: #d94bff;
    --bg-3: #b832ff;
    --text: #ffffff;
    --muted: #f0e6ffcc;
    --surface: #1a1026;
    --surface-2: #221233;
    --border: #ffffff1f;
    --accent: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --raw-seinna: hsl(24, 74%, 58%);
    --sizzling-sunrise: hsl(51, 95%, 54%);
    --scarlet: hsl(13, 96%, 47%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
}

::selection {
    background-color: #f3c8ff;
    color: #8a2be2;
}


body {
    margin: 0;
    font-family: "Inter", system-ui, Arial, sans-serif;
    font-size: 21px;
    background: #0b0713;
    color: var(--text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--accent);
}

ul {
    margin: 0;
}

img {
    -webkit-user-select: none;
    -webkit-user-drag: none;

}

.font-1 {
    font-family: "Gloria Hallelujah", sans-serif;
}

.font-2 {
    font-family: "WDXL Lubrifont SC", sans-serif;
}

.font-3 {
    font-family: "Oswald", sans-serif;
}

.font-4 {
    font-family: "Pangolin", sans-serif;
}

.font-5 {
    font-family: "Marck Script", sans-serif;
}


.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1111px;
    margin: 0 auto;
    padding: 0 10px;
}

.btn {
    display: inline-flex;
    padding: 8px 34px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--border);
    cursor: pointer;
    color: var(--text);
    transition: color .2s ease, background .2s ease;
}

.btn:hover {
    background: transparent;
}

/* -Базовая круглая кнопка */
.btn--circle {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #ffffff26;
    padding: 0;
    transition: box-shadow .25s ease, background-color .25s ease, transform .15s ease;
    overflow: visible;
}

.btn--circle:hover {
    background: #ffffff0a;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, .06),
        0 0 16px 4px rgba(137, 90, 255, .35);
    transform: translateY(-1px);
}

.btn--circle img {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
    background: transparent;
}

.btn--glow-wp {
    --wp: #25D366;
}

.btn--glow-tg {
    --tg: #229ED9;
}

.btn--glow-gt {
    --gt: #ffffff;
}

.btn--glow-inst {
    --inst: #ff008c;
}

.btn--glow-wp img {
    filter: drop-shadow(0 0 2px var(--wp));
    transition: filter .25s ease;
}

.btn--glow-wp:hover img {
    filter:
        drop-shadow(0 0 3px var(--wp)) drop-shadow(0 0 8px var(--wp)) drop-shadow(0 0 14px var(--wp));
}

.btn--glow-tg img {
    filter: drop-shadow(0 0 2px var(--tg));
    transition: filter .25s ease;
}

.btn--glow-tg:hover img {
    filter:
        drop-shadow(0 0 3px var(--tg)) drop-shadow(0 0 8px var(--tg)) drop-shadow(0 0 14px var(--tg));
}

.btn--glow-gt img {
    filter: drop-shadow(0 0 2px var(--gt));
    transition: filter .25s ease;
}

.btn--glow-gt:hover img {
    filter:
        drop-shadow(0 0 3px var(--gt)) drop-shadow(0 0 8px var(--gt)) drop-shadow(0 0 14px var(--gt));
}

.btn--glow-inst img {
    filter: drop-shadow(0 0 2px var(--inst));
    transition: filter .25s ease;
}

.btn--glow-inst:hover img {
    filter:
        drop-shadow(0 0 3px var(--inst)) drop-shadow(0 0 8px var(--inst)) drop-shadow(0 0 14px var(--inst));
}

/* -Шапка- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(36, 24, 53, 0.7);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
}

.topbar.scrolled {
    background: rgba(36, 24, 53, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(138, 43, 226, 0.05) 0%, 
        rgba(217, 75, 255, 0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topbar.scrolled::before {
    opacity: 1;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.topbar__logo {
    width: 180px;
    height: auto;
    object-fit: contain;
}

/* -Burger- */

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #140b22;
    box-shadow: var(--shadow);
    cursor: pointer;
    color: var(--text);
}

.icon-burger,
.icon-close {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block
}

.icon-burger::before,
.icon-burger::after,
.icon-close::before,
.icon-close::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .2s ease;
}

.icon-burger::before {
    top: 0;
}

.icon-burger::after {
    bottom: 0;
    box-shadow: 0 -5px 0 var(--text);
}

.icon-close::before {
    top: 5px;
    transform: rotate(45deg);
}

.icon-close::after {
    top: 5px;
    transform: rotate(-45deg);
}

/* -Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    z-index: 50;
    background: linear-gradient(180deg, #1b0f2b 0%, #100a1a 100%);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.sidebar.open {
    transform: translateX(0)
}

.sidebar.open:hover {
    transform: translateX(0)
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand__logo {
    width: 165px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.brand__name b {
    font-weight: 800;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    border: 1px solid transparent;
    transition: background .2s ease;
}

.nav-link:hover {
    background: #ffffff10;
    border-color: var(--border);
}

.sidebar__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    padding-right: 8px;
    border-top: 1px dashed var(--border);
}

/* -Scrim- */
.scrim {
    position: fixed;
    inset: 0;
    background: #ffffff00;
    backdrop-filter: blur(3.5px);
    opacity: 0;
    pointer-events: none;
    z-index: 45;
    transition: opacity .2s;
}

.scrim.visible {
    opacity: 1;
    pointer-events: auto;
}

.section__intro {
    position: relative;
}

/* -Gradient hero- */
.intro {
    padding: auto;
    padding-top: 108px;
    overflow: hidden
}

.intro__gradient {
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 120%;
    background: radial-gradient(1400px 600px at 0% 0%, var(--bg-1) 0%, transparent 60%),
        radial-gradient(1200px 500px at 100% 10%, var(--bg-2) 0%, transparent 60%),
        radial-gradient(2000px 250px at 50% 100%, var(--bg-3) 0%, transparent 60%);
    filter: saturate(120%) blur(20px);
    opacity: .9;
    pointer-events: none;
}

.intro__inner {
    position: relative;
}

.intro__title {
    font-size: 64px;
    line-height: 1.08;
    margin: 0 0 20px;
    font-weight: 700;
}

.intro__subtitle {
    display: inline-block;
    position: relative;
    align-items: center;
    white-space: nowrap;
    font-size: 34px;
    line-height: 1;
    padding-right: 6px;
    color: var(--bg-2);
    text-shadow:
        0 0 10px #8a2be2,
        0 0 20px #8a2be2,
        0 0 30px #8a2be2;
    margin-bottom: 240px;
}

.intro__typed {
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: top;
}

.intro__cursor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 1em;
    rotate: 20deg;
    display: inline-block;
    width: 10px;
    pointer-events: none;
    transition: left 0.10s linear;
    opacity: 1;
}

.intro__cursor::before {
    content: '';
    display: block;
    width: 2px;
    height: 0.95em;
    margin: auto;
    background: var(--bg-2, #d94bff);
    border-radius: 1px;
}

@keyframes cursorBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.intro__cursor {
    animation: cursorBlink 1s steps(2, start) infinite;
}

/* reduced-motion: выключаем анимации */
@media (prefers-reduced-motion: reduce) {
    .intro__cursor {
        animation: none;
        transition: none;
        opacity: 1;
    }
}



.wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 2.6s infinite;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: rotate(0)
    }

    10% {
        transform: rotate(18deg)
    }

    30% {
        transform: rotate(-12deg)
    }

    45% {
        transform: rotate(6deg)
    }
}

.intro__inner .swiper-wrapper {
    display: flex;
}

/* -ANIMATED BACKGROUND- */

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 700px;
    overflow: hidden;
    z-index: -1;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background-color: #ff3cac;
    background-image: linear-gradient(225deg, #ff3cac 0%, #784ba0 50%, #42c3ff 100%);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

.projects {
    padding: 60px 0;
}

.projects__title {
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.projects__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.projects__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projects__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px #d94bff;
}

.projects__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bg-1), var(--bg-2), var(--bg-3));
}

.projects__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.projects__card-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.projects__card-rating {
    text-align: right;
}

.rating-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--sizzling-sunrise);
    margin-bottom: 4px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #444;
    font-size: 16px;
}

.star:nth-child(-n+4) {
    color: var(--sizzling-sunrise);
}

.projects__card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--scarlet);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.projects__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--surface-2);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: background 0.3s ease;
}

.tag:hover {
    background: var(--bg-1);
}

/* -Секция "Обо мне"- */
.about {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about__title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 60px;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__image-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.about__image {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.about__image:hover {
    transform: rotate(0deg) scale(1.05);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.about__text p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.about__text strong {
    color: var(--bg-2);
    font-weight: 600;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bg-1), var(--bg-2), var(--bg-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(217, 75, 255, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card__label {
    font-size: 16px;
    color: var(--muted);
}

.about__skills {
    margin-top: 60px;
}

.about__skills-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-item {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--bg-1);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.3);
}

.skill-item__icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.skill-item__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.skill-item__level {
    font-size: 14px;
    color: var(--muted);
    margin-top: 5px;
}

/* -Секция "Контакты"- */
.contact {
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
}

.contact__title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 60px;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Левая часть - информация */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__info-header h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact__info-header p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    border-color: var(--bg-1);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--border);
    flex-shrink: 0;
}

.contact-card__icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.contact-card--telegram:hover .contact-card__icon {
    background: #229ED9;
}

.contact-card--whatsapp:hover .contact-card__icon {
    background: #25D366;
}

.contact-card--github:hover .contact-card__icon {
    background: #ffffff;
}

.contact-card--github:hover .contact-card__icon img {
    filter: brightness(0) invert(0);
}

.contact-card--instagram:hover .contact-card__icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card__content {
    flex: 1;
}

.contact-card__content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-card__content p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 5px;
}

.contact-card__badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--bg-2);
}

.contact-card__arrow {
    font-size: 24px;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card__arrow {
    transform: translateX(5px);
    color: var(--bg-2);
}

/* Индикатор доступности */
.contact__availability {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(217, 75, 255, 0.1));
    border: 1px solid var(--border);
    border-radius: 12px;
}

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-dot {
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
}

.availability-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Правая часть - форма */
.contact__form-wrapper {
    position: relative;
    align-self: start;
    position: sticky;
    top: 100px;
    max-width: 100%;
    width: 100%;
}

.contact__form {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    max-width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* -Секция "Контакты"- */
.contact {
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
}

.contact__title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 60px;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Левая часть - информация */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__info-header h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact__info-header p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    border-color: var(--bg-1);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--border);
    flex-shrink: 0;
}

.contact-card__icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.contact-card--telegram:hover .contact-card__icon {
    background: #229ED9;
}

.contact-card--whatsapp:hover .contact-card__icon {
    background: #25D366;
}

.contact-card--github:hover .contact-card__icon {
    background: #ffffff;
}

.contact-card--github:hover .contact-card__icon img {
    filter: brightness(0) invert(0);
}

.contact-card--instagram:hover .contact-card__icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card__content {
    flex: 1;
}

.contact-card__content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-card__content p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 5px;
}

.contact-card__badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--bg-2);
}

.contact-card__arrow {
    font-size: 24px;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card__arrow {
    transform: translateX(5px);
    color: var(--bg-2);
}

/* Индикатор доступности */
.contact__availability {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(217, 75, 255, 0.1));
    border: 1px solid var(--border);
    border-radius: 12px;
}

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-dot {
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
}

.availability-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Правая часть - форма */
.contact__form-wrapper {
    position: relative;
    align-self: start;
    position: sticky;
    top: 100px;
    max-width: 100%;
    width: 100%;
}

.contact__form {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    max-width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn--primary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: none;
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3), var(--bg-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.5),
                0 5px 15px rgba(217, 75, 255, 0.3);
}

.btn--primary:hover::after {
    opacity: 1;
}

.btn--primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.btn-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn--primary:hover .btn-icon {
    transform: translateX(5px) rotate(15deg) scale(1.2);
}

.btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn--primary:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25D366;
    color: #25D366;
}

.form-message.error {
    display: block;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #FF3B30;
    color: #FF3B30;
}

/* Footer */
.contact__footer {
    margin-top: 80px;
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s ease;
    width: fit-content;
}

.footer-column a:hover {
    color: var(--bg-2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
}


.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
}
.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
}

/* ============================================
   АДАПТИВНЫЕ СТИЛИ
   ============================================ */

/* Планшеты (от 768px до 1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 19px;
    }

    .container {
        max-width: 95%;
        padding: 0 20px;
    }

    /* Intro секция */
    .intro {
        padding-top: 80px;
    }

    .intro__title {
        font-size: 52px;
    }

    .intro__subtitle {
        font-size: 28px;
        margin-bottom: 180px;
    }

    /* Адаптация градиента */
    .intro__gradient {
        background: radial-gradient(800px 350px at 0% 0%, var(--bg-1) 0%, transparent 60%),
            radial-gradient(700px 300px at 100% 10%, var(--bg-2) 0%, transparent 60%),
            radial-gradient(1200px 150px at 50% 100%, var(--bg-3) 0%, transparent 60%);
        filter: saturate(120%) blur(16px);
    }

    /* Projects секция */
    .projects {
        padding: 50px 0;
    }

    .projects__title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .projects__cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 60px;
    }

    /* About секция */
    .about {
        padding: 60px 0;
    }

    .about__title {
        font-size: 40px;
    }

    .about__content {
        gap: 40px;
    }

    .about__image {
        width: 280px;
        height: 280px;
    }

    .about__image-bg {
        width: 300px;
        height: 300px;
    }

    .about__text p {
        font-size: 17px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Contact секция */
    .contact {
        padding: 60px 0 0 0;
    }

    .contact__title {
        font-size: 40px;
    }

    .contact__content {
        gap: 40px;
    }

    .contact__form-wrapper {
        top: 80px;
    }

    /* Footer */
    .footer-content {
        gap: 40px;
    }
}

/* Мобильные устройства (от 481px до 767px) */
@media (max-width: 767px) {
    body {
        font-size: 17px;
    }

    .container {
        padding: 0 15px;
    }

    /* Topbar */
    .topbar {
        padding: 12px 15px;
    }

    .topbar__logo {
        width: 140px;
    }

    .btn {
        padding: 6px 20px;
        font-size: 14px;
    }

    /* Intro секция */
    .intro {
        padding-top: 60px;
    }

    .intro__title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .intro__subtitle {
        font-size: 22px;
        margin-bottom: 120px;
    }

    /* Адаптация градиента */
    .intro__gradient {
        inset: -8% -8% auto -8%;
        height: 115%;
        background: radial-gradient(500px 220px at 0% 0%, var(--bg-1) 0%, transparent 60%),
            radial-gradient(450px 190px at 100% 10%, var(--bg-2) 0%, transparent 60%),
            radial-gradient(750px 95px at 50% 100%, var(--bg-3) 0%, transparent 60%);
        filter: saturate(120%) blur(14px);
    }

    /* Projects секция */
    .projects {
        padding: 40px 0;
    }

    .projects__title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .projects__cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .projects__card {
        padding: 20px;
    }

    .projects__card-header h3 {
        font-size: 22px;
    }

    .projects__card-stats {
        gap: 15px;
        padding: 12px 0;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* About секция */
    .about {
        padding: 50px 0;
    }

    .about__title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .about__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .about__image {
        width: 250px;
        height: 250px;
    }

    .about__image-bg {
        width: 270px;
        height: 270px;
    }

    .about__text {
        gap: 15px;
    }

    .about__text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-card__number {
        font-size: 36px;
    }

    .stat-card__label {
        font-size: 14px;
    }

    .about__skills {
        margin-top: 40px;
    }

    .about__skills-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    .skill-item {
        padding: 18px;
    }

    .skill-item__icon {
        font-size: 34px;
    }

    /* Contact секция */
    .contact {
        padding: 50px 0 0 0;
    }

    .contact__title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .contact__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .contact__info-header h3 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .contact__info-header p {
        font-size: 15px;
    }

    .contact__methods {
        gap: 12px;
    }

    .contact-card {
        padding: 18px;
        gap: 15px;
    }

    .contact-card__icon {
        width: 45px;
        height: 45px;
    }

    .contact-card__icon img {
        width: 24px;
        height: 24px;
    }

    .contact-card__content h4 {
        font-size: 16px;
    }

    .contact-card__content p {
        font-size: 13px;
    }

    .contact-card__badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .contact__form-wrapper {
        position: static;
        top: auto;
    }

    .contact__form {
        padding: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn--primary {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* Footer */
    .contact__footer {
        margin-top: 60px;
        padding: 40px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 13px;
        padding: 6px 0;
    }

    .footer-bottom {
        padding-top: 25px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    /* Sidebar */
    .sidebar {
        width: min(300px, 90vw);
    }

    .btn--circle {
        width: 50px;
        height: 50px;
    }

    .btn--circle img {
        width: 24px;
        height: 24px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 12px;
    }

    /* Topbar */
    .topbar {
        padding: 10px 12px;
    }

    .topbar__logo {
        width: 120px;
    }

    .btn {
        padding: 5px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    /* Intro секция */
    .intro {
        padding-top: 50px;
    }

    .intro__title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .intro__subtitle {
        font-size: 18px;
        margin-bottom: 100px;
    }

    .intro__cursor {
        width: 8px;
    }

    /* Адаптация градиента */
    .intro__gradient {
        inset: -6% -6% auto -6%;
        height: 110%;
        background: radial-gradient(350px 150px at 0% 0%, var(--bg-1) 0%, transparent 60%),
            radial-gradient(300px 125px at 100% 10%, var(--bg-2) 0%, transparent 60%),
            radial-gradient(500px 65px at 50% 100%, var(--bg-3) 0%, transparent 60%);
        filter: saturate(120%) blur(12px);
    }

    /* Animated background circles */
    .circles {
        height: 500px;
    }

    .circles li {
        width: 15px;
        height: 15px;
    }

    .circles li:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .circles li:nth-child(4) {
        width: 45px;
        height: 45px;
    }

    .circles li:nth-child(6) {
        width: 80px;
        height: 80px;
    }

    .circles li:nth-child(7) {
        width: 100px;
        height: 100px;
    }

    .circles li:nth-child(10) {
        width: 100px;
        height: 100px;
    }

    /* Projects секция */
    .projects {
        padding: 35px 0;
    }

    .projects__title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .projects__cards {
        gap: 18px;
        margin-bottom: 40px;
    }

    .projects__card {
        padding: 18px;
    }

    .projects__card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .projects__card-rating {
        text-align: left;
    }

    .projects__card-header h3 {
        font-size: 20px;
    }

    .rating-value {
        font-size: 18px;
    }

    .star {
        font-size: 14px;
    }

    .projects__card-stats {
        gap: 12px;
        padding: 10px 0;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* About секция */
    .about {
        padding: 40px 0;
    }

    .about__title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .about__subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .about__content {
        gap: 25px;
        margin-bottom: 35px;
    }

    .about__image {
        width: 220px;
        height: 220px;
        border-radius: 25px;
    }

    .about__image-bg {
        width: 240px;
        height: 240px;
    }

    .about__text {
        gap: 12px;
    }

    .about__text p {
        font-size: 15px;
        line-height: 1.65;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .stat-card {
        padding: 22px 18px;
    }

    .stat-card__number {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .stat-card__label {
        font-size: 13px;
    }

    .about__skills {
        margin-top: 35px;
    }

    .about__skills-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }

    .skill-item {
        padding: 16px;
        border-radius: 12px;
    }

    .skill-item__icon {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .skill-item__name {
        font-size: 14px;
    }

    .skill-item__level {
        font-size: 12px;
    }

    /* Contact секция */
    .contact {
        padding: 40px 0 0 0;
    }

    .contact__title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .contact__subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .contact__content {
        gap: 25px;
        margin-bottom: 50px;
    }

    .contact__info {
        gap: 25px;
    }

    .contact__info-header h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .contact__info-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .contact__methods {
        gap: 10px;
    }

    .contact-card {
        padding: 16px;
        gap: 12px;
        border-radius: 14px;
    }

    .contact-card__icon {
        width: 42px;
        height: 42px;
    }

    .contact-card__icon img {
        width: 22px;
        height: 22px;
    }

    .contact-card__content h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .contact-card__content p {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .contact-card__badge {
        font-size: 10px;
        padding: 2px 7px;
    }

    .contact-card__arrow {
        font-size: 20px;
    }

    .contact__availability {
        margin-top: 15px;
        padding: 12px 16px;
    }

    .availability-dot {
        width: 10px;
        height: 10px;
    }

    .availability-text {
        font-size: 13px;
    }

    .contact__form {
        padding: 20px;
        border-radius: 18px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn--primary {
        padding: 13px 24px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-message {
        margin-top: 15px;
        padding: 12px;
        font-size: 13px;
    }

    /* Footer */
    .contact__footer {
        margin-top: 50px;
        padding: 35px 0 20px;
    }

    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-brand {
        gap: 12px;
    }

    .footer-logo {
        width: 130px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-column a {
        font-size: 12px;
        padding: 5px 0;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Sidebar */
    .sidebar {
        width: min(280px, 92vw);
        padding: 14px;
        gap: 14px;
    }

    .sidebar__header {
        padding: 4px 2px;
    }

    .brand__logo {
        width: 145px;
    }

    .sidebar__nav {
        gap: 5px;
        padding: 6px 0;
    }

    .nav-link {
        padding: 11px 12px;
        font-size: 15px;
        border-radius: 10px;
    }

    .sidebar__footer {
        padding-top: 6px;
        padding-right: 6px;
    }

    .btn--circle {
        width: 46px;
        height: 46px;
    }

    .btn--circle img {
        width: 22px;
        height: 22px;
    }
}

/* Очень маленькие устройства (до 360px) */
@media (max-width: 360px) {
    body {
        font-size: 15px;
    }

    .intro__title {
        font-size: 24px;
    }

    .intro__subtitle {
        font-size: 16px;
        margin-bottom: 80px;
    }

    /* Адаптация градиента */
    .intro__gradient {
        inset: -5% -5% auto -5%;
        height: 105%;
        background: radial-gradient(280px 120px at 0% 0%, var(--bg-1) 0%, transparent 60%),
            radial-gradient(240px 100px at 100% 10%, var(--bg-2) 0%, transparent 60%),
            radial-gradient(400px 50px at 50% 100%, var(--bg-3) 0%, transparent 60%);
        filter: saturate(120%) blur(10px);
    }

    .projects__title,
    .about__title,
    .contact__title {
        font-size: 24px;
    }

    .about__image,
    .about__image-bg {
        width: 200px;
        height: 200px;
    }

    .stat-card__number {
        font-size: 28px;
    }

    .contact__info-header h3 {
        font-size: 22px;
    }

    .topbar__logo {
        width: 100px;
    }

    .footer-logo {
        width: 110px;
    }
}