/* =========================================
   ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --yellow: #F59E0B;
    --yellow-hover: #FBBF24;
    --text: #0D315C;
    --text-soft: #6B7280;
    --border: #E5E7EB;

    --red: #EF4444;
    --c-blue: #3B82F6;
    --purple: #8B5CF6;
    --brown: #92400E;
    --green: #10B981;
    --c-yellow: #F59E0B;
    --gray: #6B7280;
    --teal: #14B8A6;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --sh-sm: 0 1px 3px rgba(0,0,0,.06);
    --sh-md: 0 4px 16px rgba(0,0,0,.08);
    --sh-lg: 0 12px 32px rgba(0,0,0,.12);

    --container: 1300px;
    --header-h: 76px;
    --pad: 40px;
    --tr: .25s cubic-bezier(.4,0,.2,1);
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    display: block;
}

/* =========================================
   КОНТЕЙНЕР
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    background: #E9F4FD;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
}

.header__inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 24px;
    width: 100%;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo__text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.03em;
}

.header__slogan {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding-left: 24px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: var(--r-sm);
    transition: var(--tr);
    position: relative;
    white-space: nowrap;
}

.nav__item:hover {
    color: var(--blue);
    background: var(--bg-soft);
}

.nav__item--active {
    color: var(--blue);
    font-weight: 600;
}

.nav__item--active::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -2px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.nav__ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: var(--text-soft);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: var(--tr);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn:hover {
    background: var(--bg-soft);
    color: var(--blue);
}

.icon-btn--user {
    background: var(--blue-light);
    color: var(--blue);
}

.icon-btn--user:hover {
    background: var(--blue);
    color: #fff;
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--r-sm);
    margin-left: auto;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--tr);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 16px 0 0;
    width: 100%;
}

.hero__box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    height: 32vw;
    max-height: 420px;
    background: #1E3A8A;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 44px 60px;
    isolation: isolate;
    width: 100%;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(9, 20, 50, 0.85) 0%,
        rgba(9, 20, 50, 0.55) 25%,
        rgba(9, 20, 50, 0.05) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 640px;
}

.hero__label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.hero__accent {
    color: var(--yellow);
}

.hero__text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin-bottom: 24px;
    max-width: 460px;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: var(--yellow);
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(245,158,11,.4);
    transition: var(--tr);
}

.hero__btn svg {
    width: 18px;
    height: 18px;
    transition: var(--tr);
}

.hero__btn:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245,158,11,.5);
}

.hero__btn:hover svg {
    transform: translateX(4px);
}

.hero__compass {
    position: absolute;
    right: 34%;
    top: 40%;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    color: #fff;
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.hero__compass svg {
    width: 100%;
    height: 100%;
}

/* =========================================
   TOPICS
   ========================================= */
.topics {
    padding: 56px 0 64px;
    width: 100%;
}

.topics__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.topics__small {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 6px;
}

.topics__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.topics__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    transition: var(--tr);
}

.topics__all svg {
    width: 18px;
    height: 18px;
    transition: var(--tr);
}

.topics__all:hover svg {
    transform: translateX(4px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
}

/* =========================================
   CARD
   ========================================= */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

.card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #E5E7EB;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .card__img {
    transform: scale(1.06);
}

.card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: rgba(37,99,235,.3);
    font-size: 3rem;
    font-weight: 800;
}

.card__arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-md);
    transition: var(--tr);
    z-index: 2;
}

.card__arrow svg {
    width: 18px;
    height: 18px;
}

.card:hover .card__arrow {
    background: var(--blue);
    color: #fff;
    transform: translateX(4px);
}

.card__icon {
    position: absolute;
    top: 16px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 2;
}

.card__icon--red    { background: var(--red); }
.card__icon--blue   { background: var(--c-blue); }
.card__icon--purple { background: var(--purple); }
.card__icon--brown  { background: var(--brown); }
.card__icon--green  { background: var(--green); }
.card__icon--yellow { background: var(--c-yellow); }
.card__icon--gray   { background: var(--gray); }
.card__icon--teal   { background: var(--teal); }

.card__body {
    padding: 23px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card__title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card__desc {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* --- Футер карточки: счётчики --- */
.card__footer {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
}

.card__stat-ico {
    width: 16px;
    height: 16px;
    color: var(--blue);
    flex-shrink: 0;
}

.card__stat-num {
    font-weight: 700;
    color: var(--text);
}

.card__stat-label {
    color: var(--text-soft);
}

.card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =========================================
   FOOTER (включая блок «Почему ГеоМир?»)
   ========================================= */
.footer {
    margin-top: auto;
    padding: 36px 0 20px;
    background: #E9F4FD;
    border-top: 1px solid var(--border);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(37,99,235,.12);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer__text {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* --- Левая часть: лого + текст --- */
.why__left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.why__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.why__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.why__desc {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* --- Правая часть: 4 преимущества --- */
.why__features {
    display: flex;
    align-items: center;
    gap: 44px;
    flex-wrap: wrap;
}

.why__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.35;
}

.why__ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.why__ico svg {
    width: 20px;
    height: 20px;
}

/* --- Декор подвала --- */
.why__lines {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: auto;
    color: var(--blue);
    opacity: 0.15;
    pointer-events: none;
}

.why__leaf {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: auto;
    pointer-events: none;
    opacity: .95;
}

/* =========================================
   АДАПТИВ
   ========================================= */

/* ≤1280px — 3 колонки */
@media (max-width: 1280px) {
    :root {
        --pad: 32px;
        --container: 1200px;
    }
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
    .footer__inner {
        gap: 32px;
    }
    .why__features {
        gap: 32px;
    }
    .hero__box {
        height: 34vw;
        max-height: 400px;
        padding: 40px 48px;
    }
}

/* ≤1100px — 2 колонки */
@media (max-width: 1100px) {
    :root {
        --pad: 28px;
        --container: 100%;
    }
    .header__slogan {
        display: none;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__inner {
        gap: 24px;
    }
    .why__features {
        gap: 24px;
    }
    .why__lines {
        display: none;
    }
    .hero__box {
        height: 40vw;
        max-height: 380px;
        min-height: 300px;
        padding: 36px 40px;
    }
    .hero__title {
        font-size: 1.9rem;
    }
    .hero__compass {
        display: none;
    }
}

/* ≤768px — мобильный */
@media (max-width: 768px) {
    :root {
        --pad: 20px;
        --container: 100%;
    }

    .header {
        height: auto;
    }
    .header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
        height: auto;
        min-height: var(--header-h);
        gap: 12px;
    }
    .logo__text {
        font-size: 1.3rem;
    }
    .logo__img {
        width: 80px;
        height: 80px;
    }

    .burger {
        display: flex;
    }

    .nav {
        display: none;
        order: 10;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 0 4px;
        border-top: 1px solid var(--border);
        margin: 0;
    }
    .nav.is-open {
        display: flex;
    }
    .nav__item {
        padding: 12px 10px;
        font-size: 1rem;
        border-radius: var(--r-sm);
    }
    .nav__item--active::after {
        display: none;
    }
    .nav__item--active {
        background: var(--blue-light);
    }

    .header__right {
        margin-left: 0;
        gap: 4px;
    }
    .icon-btn {
        width: 38px;
        height: 38px;
    }

    /* Hero */
    .hero {
        padding: 12px 0 0;
    }
    .hero__box {
        height: auto;
        min-height: 340px;
        max-height: none;
        padding: 32px 24px;
        border-radius: 16px;
    }
    .hero__title {
        font-size: 1.5rem;
    }
    .hero__text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .hero__text br {
        display: none;
    }
    .hero__btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
    .hero__compass {
        display: none;
    }

    /* Topics */
    .topics {
        padding: 40px 0 48px;
    }
    .topics__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Footer */
    .footer {
        padding: 28px 0 16px;
    }
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .why__left {
        gap: 14px;
    }
    .why__logo {
        width: 60px;
        height: 60px;
    }
    .why__features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .why__leaf {
        width: 140px;
        right: -20px;
        bottom: -20px;
        opacity: .5;
    }
    .footer__bottom {
        margin-top: 20px;
        padding-top: 14px;
    }
}

/* ≤420px */
@media (max-width: 420px) {
    :root {
        --pad: 16px;
    }
    .hero__box {
        min-height: 320px;
        padding: 26px 18px;
    }
    .hero__title {
        font-size: 1.35rem;
    }
    .hero__label {
        font-size: 0.72rem;
        padding: 5px 12px;
    }
    .hero__text {
        font-size: 0.85rem;
    }
    .hero__btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }
    .why__features {
        grid-template-columns: 1fr;
    }
    .card__footer {
        gap: 12px;
    }
    .card__stat {
        font-size: 0.75rem;
    }
}

/* =========================================
   LOGIN MODAL
   ========================================= */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-modal.is-open {
    display: flex;
}


/* Затемнение страницы */

.login-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(7, 30, 60, .68);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    animation: loginOverlay .25s ease;
}


/* Основное окно */

.login-modal__window {
    position: relative;
    z-index: 2;

    width: min(680px, 100%);

    min-height: 440px;

    display: grid;
    grid-template-columns: 42% 58%;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25);

    animation: loginWindow .3s cubic-bezier(.2,.8,.2,1);
}


/* =========================================
   CLOSE
   ========================================= */

.login-modal__close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--text);

    background: rgba(255,255,255,.75);

    z-index: 10;

    transition: var(--tr);
}

.login-modal__close svg {
    width: 19px;
    height: 19px;
}

.login-modal__close:hover {
    background: var(--blue-light);
    color: var(--blue);

    transform: rotate(90deg);
}


/* =========================================
   LEFT VISUAL
   ========================================= */

.login-modal__visual {
    position: relative;

    overflow: hidden;

    min-height: 440px;

    background:
        linear-gradient(
            180deg,
            #BFE4FF 0%,
            #DDF2FF 42%,
            #B7DDF4 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    isolation: isolate;
}


/* Декоративные горы */

.login-modal__visual::before {
    content: '';

    position: absolute;

    left: -20%;
    right: -20%;
    bottom: -30px;

    height: 230px;

    background:
        linear-gradient(
            135deg,
            transparent 30%,
            rgba(37,99,235,.75) 31%,
            rgba(37,99,235,.75) 50%,
            transparent 51%
        );

    transform: rotate(-5deg);

    opacity: .35;

    z-index: -1;
}


/* Снег */

.login-modal__visual::after {
    content: '';

    position: absolute;

    left: -20px;
    right: -20px;
    bottom: -80px;

    height: 220px;

    background: #fff;

    border-radius: 50% 50% 0 0;

    opacity: .75;

    z-index: -1;
}


.login-modal__visual-content {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 440px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 1px;

    overflow: hidden;
}


/* Земной шар */

.login-modal__globe {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 58px;

    margin-bottom: 4px;

    filter: drop-shadow(0 5px 8px rgba(0,0,0,.12));
}


/* ГеоМир */

.login-modal__logo {
    font-size: 30px;

    font-weight: 800;

    color: var(--text);

    letter-spacing: -1.2px;
}


.login-modal__slogan {
    margin-top: 3px;

    font-size: 13px;

    color: var(--blue);

    font-weight: 500;
}


/* Горы */

.login-modal__mountains {
    position: absolute;

    bottom: -20px;
    left: -15px;

    width: 115%;

    font-size: 185px;

    line-height: 1;

    transform: rotate(-2deg);

    filter: drop-shadow(
        0 -5px 10px rgba(255,255,255,.4)
    );
}


/* Самолёт */

.login-modal__plane {
    position: absolute;

    top: 230px;
    left: 55px;

    font-size: 31px;

    color: var(--blue);

    transform: rotate(-20deg);

    animation: planeFloat 3s ease-in-out infinite;
}


/* Облака */

.login-modal__cloud {
    position: absolute;

    color: rgba(255,255,255,.85);

    font-size: 40px;

    opacity: .8;
}

.cloud-1 {
    top: 105px;
    left: 18px;
}

.cloud-2 {
    top: 175px;
    right: 20px;

    font-size: 28px;
}


/* =========================================
   RIGHT FORM
   ========================================= */

.login-modal__form {
    background: #fff;

    display: flex;
    align-items: center;

    padding: 42px 42px 34px;
}


.login-form__content {
    width: 100%;
    max-width: 330px;

    margin: 0 auto;
}


.login-form__content h2 {
    color: var(--text);

    font-size: 29px;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 8px;
}


.login-form__description {
    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 24px;
}


/* =========================================
   INPUTS
   ========================================= */

.login-field {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 48px;

    margin-bottom: 12px;

    border: 1px solid #C9DCF2;

    border-radius: 10px;

    background: #fff;

    transition: var(--tr);
}


.login-field:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(37,99,235,.10);
}


.login-field > svg {
    width: 18px;
    height: 18px;

    margin-left: 14px;

    color: #7190B4;

    flex-shrink: 0;
}


.login-field input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    padding: 0 13px;

    color: var(--text);

    background: transparent;

    font-family: inherit;

    font-size: 13px;
}


.login-field input::placeholder {
    color: #8CA4BF;
}


/* =========================================
   SHOW PASSWORD
   ========================================= */

.password-toggle {
    width: 42px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7189A5;

    flex-shrink: 0;
}


.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle:hover {
    color: var(--blue);
}


/* =========================================
   SUBMIT
   ========================================= */

.login-submit {
    width: 100%;

    height: 48px;

    margin-top: 4px;

    border-radius: 10px;

    background: var(--blue);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 6px 16px rgba(37,99,235,.25);

    transition: var(--tr);
}


.login-submit:hover {
    background: var(--blue-dark);

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px rgba(37,99,235,.32);
}


.login-submit:active {
    transform: translateY(0);
}


/* =========================================
   FORGOT
   ========================================= */

.forgot-password {
    display: block;

    margin-top: 12px;

    text-align: center;

    color: var(--blue);

    font-size: 12px;

    font-weight: 500;
}


.forgot-password:hover {
    text-decoration: underline;
}


/* =========================================
   DIVIDER
   ========================================= */

.login-divider {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 18px 0;
}


.login-divider span {
    flex: 1;

    height: 1px;

    background: var(--border);
}


.login-divider strong {
    color: #9AA9BA;

    font-size: 11px;

    font-weight: 500;
}




/* =========================================
   REGISTER
   ========================================= */

.register-text {
    margin-top: 18px;

    text-align: center;

    color: var(--text-soft);

    font-size: 11.5px;
}


.register-text a {
    color: var(--blue);

    font-weight: 600;
}


.register-text a:hover {
    text-decoration: underline;
}


/* =========================================
   ANIMATION
   ========================================= */

@keyframes loginOverlay {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes loginWindow {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


@keyframes planeFloat {

    0%, 100% {
        transform: translate(-3px, 2px) rotate(-20deg);
    }

    50% {
        transform: translate(5px, -5px) rotate(-20deg);
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .login-modal {
        padding: 12px;
    }


    .login-modal__window {
        width: 100%;

        max-width: 430px;

        display: block;

        min-height: auto;

        max-height: 95vh;

        overflow-y: auto;

        border-radius: 18px;
    }


    .login-modal__visual {
        min-height: 155px;

        height: 155px;
    }


    .login-modal__visual-content {
        min-height: 155px;

        padding-top: 1px;
    }


    .login-modal__globe {
        width: 45px;
        height: 45px;

        font-size: 36px;
    }


    .login-modal__logo {
        font-size: 23px;
    }


    .login-modal__slogan {
        font-size: 10px;
    }


    .login-modal__mountains {
        bottom: -55px;

        font-size: 100px;
    }


    .login-modal__plane {
        top: 75px;
        left: 28%;

        font-size: 21px;
    }


    .cloud-1 {
        top: 25px;
        left: 15px;

        font-size: 25px;
    }


    .cloud-2 {
        top: 50px;
        right: 20px;

        font-size: 20px;
    }


    .login-modal__form {
        padding: 28px 22px 25px;
    }


    .login-form__content h2 {
        font-size: 25px;
    }


    .login-form__description {
        font-size: 12px;
    }

}


@media (max-width: 420px) {

    .login-modal__form {
        padding: 25px 18px 22px;
    }

    .login-modal__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

}

.password-toggle {
    width: 42px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    color: #7189A5;

    cursor: pointer;

    flex-shrink: 0;
}

.password-toggle svg {
    width: 18px;
    height: 18px;

    pointer-events: none;
}

.password-toggle:hover {
    color: var(--blue);
}
/* =========================================
   HEADER
   ========================================= */

.header {
    position: relative;
    z-index: 100;
}

.header__inner {
    position: relative;

    min-height: 76px;

    display: flex;
    align-items: center;
}


/* =========================================
   LOGO
   ========================================= */

.header__left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text);
    text-decoration: none;
}

.logo__img {
    width: 75px;
    height: 75px;

    object-fit: contain;
}

.logo__text {
    font-size: 30px;
    font-weight: 800;

    color: var(--text);
}

.header__slogan {
    font-size: 12px;
    color: var(--text-soft);
}


/* =========================================
   NAV
   ========================================= */

.nav {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-left: auto;
    margin-right: 25px;
}

.nav__item {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 10px 13px;

    border-radius: 9px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: var(--tr);
}

.nav__item:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.nav__item--active {
    color: var(--blue);
}

.nav__ico {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}


/* =========================================
   LOGIN
   ========================================= */

.header__right {
    display: flex;
    align-items: center;
    position: relative;
}

.header-login {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fff;
    color: var(--text);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--tr);
}

.header-login svg {
    width: 18px;
    height: 18px;
}

.header-login:hover {
    color: var(--blue);

    border-color: var(--blue);

    background: var(--blue-light);
}


/* =========================================
   BURGER
   ========================================= */

.burger {
    display: none;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    padding: 0;

    border: none;
    border-radius: 9px;

    background: transparent;

    cursor: pointer;
}

.burger span {
    display: block;

    width: 22px;
    height: 2px;

    border-radius: 2px;

    background: var(--text);

    transition: .25s ease;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .header__inner {
        min-height: 68px;
    }

    .header__slogan {
        display: none;
    }

    .header__left {
        gap: 0;
    }

    .logo__img {
        width: 60px;
        height: 60px;
    }

    .logo__text {
        font-size: 24px;
    }


    /* Показываем burger */

    .burger {
        display: flex;

        margin-left: auto;
        margin-right: 8px;
    }


    /* Скрываем обычное меню */

    .nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        margin: 0;

        padding: 12px 16px 16px;

        background: #fff;

        border-top: 1px solid var(--border);

        box-shadow:
            0 12px 25px rgba(0, 0, 0, .08);
    }


    /* Открытое меню */

    .nav.is-open {
        display: flex;
    }


    .nav__item {
        width: 100%;

        padding: 13px 12px;
    }


    /* Вход остаётся справа */

    .header-login {
        width: 40px;
        height: 40px;

        justify-content: center;

        padding: 0;

        border: none;
        background: transparent;
    }

    .header-login span {
        display: none;
    }

    .header-login:hover {
        background: var(--blue-light);
    }


    /* Анимация burger */

    .burger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .burger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* =========================================
   VERY SMALL SCREEN
   ========================================= */

@media (max-width: 420px) {

    .logo__text {
        font-size: 18px;
    }

    .logo__img {
        width: 31px;
        height: 31px;
    }

    .header__inner {
        min-height: 62px;
    }
}
/* ============================================================
   TOPIC PAGE — страница темы (список уроков)
   ============================================================ */

.topic-page {
    padding: 28px 0 80px;
    background: #f7f9fc;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #97a3b6;
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: #2b6ce6;
    text-decoration: none;
    transition: color .15s ease;
}
.breadcrumbs a:hover {
    color: #1a4fb3;
    text-decoration: underline;
}
.breadcrumbs__sep     { color: #c8d1de; }
.breadcrumbs__current { color: #5a6b83; font-weight: 500; }

/* ---------- Hero раздела ---------- */
.topic-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 350px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    box-shadow: 0 18px 40px rgba(20, 40, 80, 0.18);
}
.topic-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topic-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(15, 32, 66, 0.92) 0%,
        rgba(15, 32, 66, 0.72) 45%,
        rgba(15, 32, 66, 0.15) 100%);
}
.topic-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    color: #fff;
}
.topic-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
    margin-bottom: 14px;
}
.topic-hero__label svg { width: 16px; height: 16px; opacity: .9; }

.topic-hero__title {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
}
.topic-hero__desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 520px;
}
.topic-hero__deco {
    position: absolute;
    right: 32px;
    bottom: -10px;
    width: 220px;
    height: 220px;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}
.topic-hero__deco svg { width: 100%; height: 100%; }

/* ---------- Список уроков ---------- */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lessons-empty {
    background: #fff;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    color: #7a879b;
    border: 1px solid #eef1f5;
}

/* ---------- Урок ---------- */
.lesson-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 16px 24px 16px 16px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(20, 40, 80, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lesson-row:hover {
    transform: translateY(-2px);
    border-color: #dbe6f6;
    box-shadow: 0 14px 32px rgba(20, 40, 80, 0.10);
}

/* Картинка */
.lesson-row__media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.lesson-row__img {
    display: block;
    width: 180px;
    height: 120px;
    object-fit: cover;
    background: #eef1f5;
    transition: transform .35s ease;
}
.lesson-row:hover .lesson-row__img { transform: scale(1.05); }

.lesson-row__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8d1de;
    background: linear-gradient(135deg, #eef4ff, #e3ebf9);
}
.lesson-row__img--ph svg { width: 40px; height: 40px; }

/* Тело */
.lesson-row__body { min-width: 0; }

.lesson-row__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.lesson-row__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2b6ce6;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.lesson-row__text { min-width: 0; }

.lesson-row__title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}
.lesson-row__title a {
    color: #1a2332;
    text-decoration: none;
    transition: color .15s ease;
}
.lesson-row__title a:hover { color: #2b6ce6; }

.lesson-row__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #7a879b;
}

/* Мета */
.lesson-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 14px;
}
.lesson-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
}
.lesson-meta svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.lesson-meta__label { color: #93a1b5; }
.lesson-meta__value { color: #1a2332; font-weight: 600; }

.lesson-meta--video svg { color: #2b6ce6; }
.lesson-meta--task  svg { color: #f5a623; }

/* Кнопка */
.lesson-row__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #2b6ce6;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 18px rgba(43, 108, 230, 0.25);
}
.lesson-row__btn svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}
.lesson-row__btn:hover {
    background: #1e5ccc;
    box-shadow: 0 12px 24px rgba(43, 108, 230, 0.35);
}
.lesson-row__btn:hover svg { transform: translateX(3px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .lesson-row {
        grid-template-columns: 150px 1fr;
        grid-template-areas:
            "media body"
            "media btn";
        row-gap: 14px;
    }
    .lesson-row__media { grid-area: media; }
    .lesson-row__body  { grid-area: body; }
    .lesson-row__btn   { grid-area: btn; justify-self: start; }
    .lesson-row__img   { width: 150px; height: 150px; }
}

@media (max-width: 640px) {
    .topic-hero {
        padding: 30px 24px;
        min-height: 220px;
        border-radius: 20px;
    }
    .topic-hero__deco { display: none; }

    .lesson-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "body"
            "btn";
        padding: 16px;
    }
    .lesson-row__img {
        width: 100%;
        height: 180px;
    }
    .lesson-row__meta { gap: 16px; }
    .lesson-row__btn {
        width: 100%;
        justify-content: center;
    }
}
/* Кнопка с именем пользователя в шапке */
.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #eaf2ff;
    color: #2b6ce6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user:hover {
    background: #d9e6ff;
    color: #1e5ccc;
}

.header-user svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* =========================================
   МОБИЛЬНАЯ КНОПКА ВХОДА
   ========================================= */

@media (max-width: 800px) {

    .header__right {
        width: 100%;
        margin: 0;
    }

    .header-login {
        width: 100%;
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 10px;
        padding: 0 14px;

        border-radius: 10px;

        background: #fff;
        color: var(--text);

        font-size: 14px;
        font-weight: 600;
    }

    .header-login svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* ВАЖНО: возвращаем текст "Войти" */
    .header-login span {
        display: inline !important;
    }

    .header-login:hover {
        color: var(--blue);
        border-color: var(--blue);
        background: var(--blue-light);
    }
}

/* ============================================================
   НОВОЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ
   ============================================================ */

.user-menu {
    position: relative;
}

.user-menu__toggle {
    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;
    background: transparent;

    padding: 8px 4px;

    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.user-menu__name {
    display: inline !important;
    white-space: nowrap;
}

.user-menu__arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;

    transition: transform 0.2s ease;
}

.user-menu.is-open .user-menu__arrow {
    transform: rotate(180deg);
}


/* ============================================================
   ВЫПАДАЮЩЕЕ МЕНЮ
   ============================================================ */

.user-menu__dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 200px;

    padding: 8px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 1000;
}

.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ============================================================
   ШАПКА МЕНЮ
   ============================================================ */

.user-menu__head {
    padding: 10px 12px;
}

.user-menu__fullname {
    font-size: 14px;
    font-weight: 700;

    color: var(--text);

    word-break: break-word;
}

.user-menu__login {
    margin-top: 3px;

    font-size: 12px;

    color: var(--muted);
}


/* ============================================================
   РАЗДЕЛИТЕЛЬ
   ============================================================ */

.user-menu__divider {
    height: 1px;

    margin: 6px 0;

    background: var(--border);
}


/* ============================================================
   ПУНКТЫ МЕНЮ
   ============================================================ */

.user-menu__item {
    display: flex;
    align-items: center;

    width: 100%;

    min-height: 40px;

    padding: 0 12px;

    border-radius: 8px;

    color: var(--text);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.user-menu__item:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.user-menu__item--danger {
    color: #dc2626;
}

.user-menu__item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}


/* ============================================================
   КНОПКА ВОЙТИ
   ============================================================ */

.header-login {
    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 8px;

    white-space: nowrap;

    cursor: pointer;
}

.header-login span {
    display: inline !important;
}

.header-login svg {
    width: 19px;
    height: 19px;

    flex-shrink: 0;
}


/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */

@media (max-width: 800px) {

    .header__right {
        width: 100%;
        margin: 0;
    }


    /* Пользователь */

    .user-menu {
        width: 100%;
    }


    .user-menu__toggle {
        width: 100%;

        justify-content: space-between;

        min-height: 46px;

        padding: 0 14px;

        border: 1px solid var(--border);

        border-radius: 10px;

        background: #fff;
    }


    .user-menu__name {
        display: block !important;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        max-width: calc(100% - 30px);
    }


    /* Выпадающее меню */

    .user-menu__dropdown {

        top: auto;
        right: auto;

        width: 100%;

        margin-top: 6px;

        box-shadow: none;

        transform: none;
    }


    .user-menu.is-open .user-menu__dropdown {
        transform: none;
    }


    /* Кнопка входа */

    .header-login {
        width: 100%;

        min-height: 46px;

        justify-content: flex-start;

        padding: 0 14px;

        border: 1px solid var(--border);

        border-radius: 10px;

        background: #fff;

        color: var(--text);

        font-size: 14px;
        font-weight: 600;
    }


    .header-login span {
        display: inline !important;
    }


    .header-login svg {
        display: block !important;

        width: 20px;
        height: 20px;
    }

}

.user-menu {
    position: relative;
}

.user-menu__head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-menu__login {
    color: var(--muted);
    font-size: 12px;
}

.user-menu__item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.user-menu__item:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.user-menu__item--logout {
    border-top: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    color: #c0392b;
}

.login-form__error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f1b8b8;
    border-radius: 8px;
    background: #fff3f3;
    color: #a52828;
    font-size: 13px;
}





/* =========================================
   PROFILE PAGE
   ========================================= */

.profile-page {
    padding: 40px 0 80px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 32px;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.profile-header__subtitle {
    font-size: 1rem;
    color: var(--text-soft);
}

/* Уведомления */
.profile-alert {
    padding: 14px 20px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-alert--success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.profile-alert--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Форма */
.profile-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--sh-sm);
}

.profile-form__section {
    margin-bottom: 36px;
}

.profile-form__section:last-of-type {
    margin-bottom: 24px;
}

.profile-form__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.profile-form__hint {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 16px;
    margin-top: -8px;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
}

.profile-field__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.profile-field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #C9DCF2;
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: var(--tr);
}

.profile-field input[type="password"] {
    padding-right: 48px;
}

.profile-field input::placeholder {
    color: #8CA4BF;
}

.profile-field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

/* Кнопка показа пароля */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8CA4BF;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--blue);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Кнопка сохранения */
.profile-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.profile-form__submit {
    width: auto;
    min-width: 200px;
    padding: 0 32px;
    margin-top: 0;
    height: 48px;
    border-radius: var(--r-sm);
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: var(--tr);
    border: none;
    cursor: pointer;
}

.profile-form__submit:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.32);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
    .profile-page {
        padding: 24px 0 60px;
    }

    .profile-header h1 {
        font-size: 1.6rem;
    }

    .profile-form {
        padding: 24px 20px;
        border-radius: var(--r-md);
    }

    .profile-form__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-form__section {
        margin-bottom: 28px;
    }

    .profile-form__actions {
        justify-content: stretch;
    }

    .profile-form__submit {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding: 16px 0 40px;
    }

    .profile-header h1 {
        font-size: 1.4rem;
    }

    .profile-form {
        padding: 20px 16px;
    }
    
    .profile-form__section-title {
        font-size: 1.05rem;
    }
}