* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'gothampro', 'gunterz', sans-serif;
    list-style: none;
    transition: .3s;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFEF5;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* медиа никогда не шире своего контейнера — защита от горизонтального переполнения */
img,
iframe,
video {
    max-width: 100%;
}

@font-face {
    font-family: 'gothampro';
    src: url(../fonts/gothampro.ttf);
}

@font-face {
    font-family: 'gunterz';
    src: url(../fonts/Gunterz-Medium.otf);
}

a {
    text-decoration: none;
    color: #000;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    width: 130px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 1em;
    background-color: #CBF3FC;
    border-radius: 40px;
    padding: 13px 9px 13px 16px;
    height: 45px;
    cursor: pointer;
}

.login-btn p {
    font-size: 13px;
}

.login-btn-arrow {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn-arrow img {
    width: 22px;
    height: 22px;
    transform: rotate(225deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover .login-btn-arrow img {
    transform: rotate(225deg) translate(0px, 6px);
}

nav {
    border-radius: 40px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    width: 700px;
    height: 45px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFCBE8;
    border-radius: 40px;
    padding: 14px 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
}

.logout-btn:hover {
    background-color: #CBF3FC;
    transform: translateY(-2px);
}

.home-page main {
    z-index: 20;
    position: relative;
}

.home-page .flow-1,
.home-page .flow-2 {
    transition: transform 0.05s linear;
    will-change: transform;
    pointer-events: none;
}

.home-page .flow-1 {
    position: fixed;
    right: -10px;
    top: 140px;
    z-index: -1;
    opacity: 1;
    width: auto;
    max-width: 300px;
    transform: rotate(45deg);

}

.home-page .flow-2 {
    position: fixed;
    left: -60px;
    top: 660px;
    z-index: 10;
    opacity: 1;
    width: auto;
    max-width: 300px;

}

.home-page .banner {
    display: flex;
    gap: 2em;
    z-index: 2;
}

.home-page .banner-title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5em 2.5em;
}

.home-page h1 {
    font-family: 'gunterz';
    font-weight: 100;
    font-size: clamp(2rem, 9vw, 80px);
    line-height: 101%;
    z-index: 3;
}

.home-page .banner-image {
    height: 80vh;
}

.home-page .banner-text {
    font-size: 28px;
    padding-top: 1em;
    font-weight: 100;
}

.home-page .probnik-btn-arrow img {
    width: 38px;
    height: 38px;
    transform: rotate(225deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.home-page .probnik-btn-arrow {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page .probnik-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 1em;
    background-color: #FFCBE8;
    border-radius: 40px;
    padding: 13px 13px 13px 16px;
    height: 72px;
    width: 410px;
    margin-top: 5em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-page .probnik-btn p {
    font-size: 19px;
}

.home-page .probnik-btn:hover .probnik-btn-arrow img {
    transform: rotate(225deg) translate(0px, 10px);
}

/* стрелки в кнопках — декоративные, фиксированного размера: не сжимать и не масштабировать */
.probnik-btn-arrow,
.login-btn-arrow {
    flex-shrink: 0;
}

.probnik-btn-arrow img,
.login-btn-arrow img {
    flex-shrink: 0;
    max-width: none;
}

.home-page .advantages {
    padding: 80px 40px;
    margin-top: 2em;
}

.home-page .advantages__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.home-page .advantages__label {
    font-size: 14px;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .4;
    margin-bottom: 20px;
}

.home-page .advantages__title {
    font-family: 'gunterz';
    font-weight: 100;
    font-size: clamp(1.75rem, 6vw, 60px);
    line-height: 101%;
    text-transform: uppercase;
    max-width: 700px;
}

.home-page .advantages__text {
    max-width: 400px;
    font-size: 18px;
    line-height: 1.6;
    opacity: .6;
}

.home-page .advantages__grid {
    display: flex;
    gap: 20px;
    height: 520px;
}

.home-page .card {
    position: relative;
    flex: 1;
    border-radius: 15px;
    padding: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: flex .7s cubic-bezier(.22, 1, .36, 1), transform .4s ease, box-shadow .4s ease;
}

.home-page .card__top,
.home-page .card__content {
    position: relative;
    z-index: 5;
}

.home-page .advantages__grid:hover .card {
    flex: .8;
}

.home-page .advantages__grid .card:hover {
    flex: 2.4;
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.home-page .blue {
    background: url('../images/card_app_1.jpg') center center/cover no-repeat;
}

.home-page .pink {
    background: url('../images/card_app_2.jpg') center center/cover no-repeat;
}

.home-page .yellow {
    background: url('../images/card_app_3.jpg') center center/cover no-repeat;
}

.home-page .green {
    background: url('../images/card_app_4.jpg') center center/cover no-repeat;
}

.home-page .card__top {
    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 2;
}

.home-page .card__number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, .4);
    backdrop-filter: blur(10px);
}

.home-page .card__content {
    position: relative;
    z-index: 2;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 320px;
    min-width: 320px;
}

.home-page .blue::after,
.home-page .pink::after,
.home-page .yellow::after,
.home-page .green::after {
    content: '';
    position: absolute;

    left: 20px;
    bottom: 20px;

    width: 180px;
    height: 180px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    pointer-events: none;
    z-index: 2;
}

.home-page .blue::after {
    background-image: url('../images/card_app_detail_1.png');
}

.home-page .pink::after {
    background-image: url('../images/card_app_detail_2.png');
}

.home-page .yellow::after {
    background-image: url('../images/card_app_detail_3.png');
}

.home-page .green::after {
    background-image: url('../images/card_app_detail_4.png');
}

.home-page .blue::after,
.home-page .pink::after,
.home-page .yellow::after,
.home-page .green::after {
    width: 240px;
    height: 240px;
left: 140px;
    bottom: -50px;
}

.home-page .card__top,
.home-page .card__content{
    position: relative;
    z-index: 5;
}

.home-page .card__title {
    font-size: 50px;
    line-height: .95;
    font-weight: 800;
    width: 320px;
    margin-bottom: 90px;
    min-height: 170px;
}

.home-page .card__text-wrap {
    overflow: hidden;
}

.home-page .card__text {
    font-size: 18px;
    line-height: 1.6;
    width: 320px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
}

.home-page .card:hover .card__text {
    opacity: 1;
    transform: translateY(0);
}

.home-page .card::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    top: -80px;
    right: -80px;
    filter: blur(20px);
}

.home-page .blue::after,
.home-page .pink::after,
.home-page .yellow::after,
.home-page .green::after {
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.home-page .card:hover::after {
    transform: translate(250px, -80px) scale(1.2) rotate(8deg);
}

.home-page .teachers {
    padding: 100px 20px;
    background: #FFFEF5;
    margin-top: 2em;
}

.home-page .teachers__header {
    text-align: center;
    margin-bottom: 60px;
}

.home-page .teachers__label {
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 20px;
}

.home-page .teachers__title {
    font-family: 'gunterz', sans-serif;
    font-weight: 100;
    font-size: clamp(1.9rem, 6.5vw, 60px);
    line-height: 101%;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-page .teachers__subtitle {
    font-size: 18px;
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

.home-page .teachers__grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.home-page .teacher-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.home-page .teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CBF3FC 0%, #FFCBE8 50%, #CBF3FC 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.home-page .teacher-card:hover::before {
    transform: scaleX(1);
}

.home-page .teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.home-page .teacher-card__image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #CBF3FC 0%, #FFCBE8 100%);
    position: relative;
}

.home-page .teacher-card__image::after {

    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 32px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.home-page .teacher-card:hover .teacher-card__image::after {
    opacity: 0.9;
    transform: translateX(0);
}

.home-page .teacher-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-page .teacher-card:hover .teacher-card__image img {
    transform: scale(1.05);
}

.home-page .teacher-card__content {
    padding: 28px 24px 32px;
    background: white;
}

.home-page .teacher-card__name {
    font-family: 'gunterz', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Стаж — как стикер */
.home-page .teacher-card__experience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffaee720 0%, #FFCBE820 100%);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.home-page .teacher-card__experience::before {
    content: '⏱️';
    font-size: 14px;
}

.home-page .teacher-card__experience strong {
    font-weight: 700;
    color: #000;
    margin-left: 4px;
}

.home-page .teacher-card__bio {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.75;
    margin-bottom: 24px;
}

/* Кнопка как в абонементах */
.home-page .teacher-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a1a1a;
}

.home-page .teacher-card__button:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    gap: 12px;
}

.home-page .teacher-card__button::after {
    content: '→';
    transition: transform 0.2s ease;
}

.home-page .teacher-card__button:hover::after {
    transform: translateX(4px);
}
.home-page .gallery {
    padding: 80px 20px;
    background: #FFFEF5;
}

.home-page .gallery__container {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.home-page .gallery__info {
    flex: 1;
    min-width: 280px;
}

.home-page .gallery__label {
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 20px;
}

.home-page .gallery__title {
    font-family: 'gunterz', sans-serif;
    font-weight: 100;
    font-size: clamp(1.9rem, 6.5vw, 60px);
    line-height: 101%;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-page .gallery__text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 40px;
}

.home-page .gallery__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.home-page .stat {
    display: flex;
    flex-direction: column;
}

.home-page .stat__number {
    font-family: 'gunterz', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.home-page .teachers {
    padding: 100px 20px;
    background: url('/images/teachers_bg.png') center/cover no-repeat;
    margin-top: 4em;
    position: relative;
}

/* Затемнение для читаемости текста (опционально) */
.home-page .teachers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 254, 245, 0.5); */
    z-index: 0;
}

/* Чтобы весь контент был поверх затемнения */
.home-page .teachers .container {
    position: relative;
    z-index: 1;
}

.home-page .stat__label {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 8px;
}

.home-page .gallery__slider {
    flex: 1.2;
    min-width: 300px;
}

.home-page .slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Вертикальный скролл страницы остаётся нативным, горизонтальный свайп ловим сами */
    touch-action: pan-y;
}

.home-page .slider-container img {
    /* Чтобы долгое нажатие/перетаскивание картинки не срывало свайп */
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.home-page .slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.home-page .slide {
    flex-shrink: 0;
    width: 100%;
}

.home-page .slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.home-page .slider-btn {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.home-page .slider-btn-prev {
    left: 20px;
}

.home-page .slider-btn-next {
    right: 20px;
    transform: rotate(180deg);
}

.home-page .slider-btn-next:hover {
    transform: rotate(180deg);
}

.home-page .slider-btn-next img {
    transform: rotate(180deg);
}

.home-page .slider-btn img {
    width: 20px;
    height: 20px;
}

.home-page .slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.home-page .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-page .dot.active {
    width: 28px;
    border-radius: 5px;
    background: #000;
}

.home-page .dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.profile-page,
.admin-page {
    padding: 60px 0;
    min-height: 100vh;
}

/* ---- ЗАЯВКИ НА ЗАНЯТИЯ (преподаватель) ---- */
.pending-lessons {
    margin-bottom: 40px;
}

.pending-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pending-head .section-title {
    margin-bottom: 0;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 9px;
    border-radius: 30px;
    background: #FFB020;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pending-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pending-card:hover {
    transform: translateY(-3px);
    border-color: #CBF3FC;
}

.pending-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pending-student {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pending-student strong {
    font-size: 17px;
    line-height: 1.2;
    word-break: break-word;
}

.pending-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 30px;
    font-size: 11px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.pending-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #f7fbfd;
    border-radius: 14px;
    padding: 6px 4px;
}

.pending-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
}

.pending-info__label {
    font-size: 13px;
    color: #8a94a6;
}

.pending-info__value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

.pending-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.pending-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.pending-btn--accept {
    background: #99FF96;
    color: #0c3d0a;
}

.pending-btn--accept:hover {
    background: #7df079;
}

.pending-btn--reject {
    background: #ffe1e1;
    color: #a40000;
}

.pending-btn--reject:hover {
    background: #ffcfcf;
}

@media (max-width: 600px) {
    .pending-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- ВКЛАДКИ ПРОФИЛЯ (преподаватель) ---- */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-tab {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: 0.25s ease;
}

.profile-tab:hover {
    color: #1a1a1a;
}

.profile-tab.active {
    background: #CBF2FC;
    color: #0a5b6e;
}

.profile-tabpanel {
    display: none;
}

.profile-tabpanel.active {
    display: block;
}

/* ---- СЕТКА ДОСТУПНОСТИ ---- */
.availability-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.availability-head .section-title {
    margin-bottom: 6px;
}

.availability-hint {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: #8a94a6;
}

.availability-table .avail-cell {
    width: 100%;
    min-width: 42px;
    height: 38px;
    border: 1.5px dashed #d7dde6;
    border-radius: 10px;
    background: #fbfdff;
    cursor: pointer;
    transition: 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.availability-table .avail-cell:hover {
    border-color: #9fd9ea;
    background: #f0fafe;
}

.avail-cell__check {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transition: 0.18s ease;
}

.availability-table .avail-cell.slot-on {
    background: #99FF96;
    border: 1.5px solid #5fd65b;
}

.avail-cell.slot-on .avail-cell__check {
    color: #0c3d0a;
    opacity: 1;
}

/* ---- ПОДСВЕТКА НЕАКТИВНОГО АБОНЕМЕНТА В СПИСКЕ УЧЕНИКОВ ---- */
.student-option--inactive {
    color: #c0392b;
}

.student-sub-warning {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    font-size: 13px;
}
/* затемнение фона */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(6px);
}

.modal.active {
    display: flex;
}

/* сама карточка */
.modal-content {
    width: 420px;
    max-width: 92vw;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modalIn .2s ease-out;
    font-family: inherit;
}

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

/* header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* крестик */
.modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    transition: .2s;
}

.modal-close:hover {
    color: #000;
}

/* контейнер слотов */
#freeSlotsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* карточка слота */
.free-slot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fafafa;
    transition: .2s;
}

.free-slot-row:hover {
    border-color: #6c5ce7;
    background: #f5f3ff;
}

/* дата + время */
.free-slot-row strong {
    display: block;
    font-size: 14px;
    color: #111;
}

.free-slot-row div {
    font-size: 13px;
    color: #666;
}

.dates-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.date-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: .2s;
}

.date-pill:hover {
    background: #ffcbe876;
}

.date-pill.active {
    background: #FFCBE8;
    color: #fff;

}

/* слоты */
.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #555;
    text-decoration: underline;
}

.admin-menu-link {
    height: 48px;
    padding: 0 24px;
    background: none;
    border: 1px solid #000000;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.profile-title a img {
    width: 20px;
    height: 20px;
    transform: translateY(-10%);
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1.6px solid #000;
    background: #fff;
}

.profile-name {
    font-size: 36px;
    font-family: 'gunterz', sans-serif;
    line-height: 1.2;
    margin-bottom: 10px;
}

.profile-info p {
    font-size: 15px;
    margin-bottom: 5px;
}

.dates-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.date-pill {
    background: #ffffff;
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    min-width: 70px;
    text-align: center;
    transition: 0.2s;
}

.date-pill.active {
    background: #FFCBE8;
    color: #fff;
}

.slots-list {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
    gap: 10px;
}

.slot-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
}

.teacher-box,
.subscription-box {
    padding: 10px 16px;
    border-radius: 16px;
    width: fit-content;
    margin-top: 12px;
    font-size: 14px;
}

.teacher-box {
    background: none;
    border: 1px solid black;
}

.subscription-box {
    background: #CBF3FC;
    display: inline-block;
}

.birthday-banner,
.warning-banner {
    background: #FFFD96;
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title,
.admin-page h2:not(.modal-content h2) {
    font-family: 'gunterz', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 100;
}

.section-title,
.admin-page h1:not(.modal-content h1) {
    font-family: 'gunterz', sans-serif;
    font-size: 28px;

    font-weight: 100;
}

.lesson-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lesson-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.lesson-card:hover {
    transform: translateY(-3px);
    border-color: #CBF3FC;
}

.lesson-status {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 15px;
}

.lesson-past {
    background: #eee;
}

.lesson-future {
    background: #99FF96;
}

.lesson-date {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lesson-time {
    font-size: 18px;
    margin-bottom: 15px;
}
.lesson-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.lesson-studio {
    margin-bottom: 15px;
    font-size: 15px;
}
.lesson-rejected {
    background: #ffdddd;
    color: #a40000;
    border: 1px solid #ff5c5c;
}

.lesson-comment {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
    font-size: 14px;
}

.schedule-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.schedule-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.schedule-table th:not(:first-child),
.schedule-table td:not(:first-child) {
    width: auto;
}

.schedule-table th:first-child,
.schedule-table .time-column,
.schedule-table .time-cell {
    width: 95px !important;
    min-width: 85px !important;
    max-width: 95px !important;
    background: #FFCBE8 !important;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 10px 4px !important;
    white-space: nowrap;
}

.schedule-table th {
    background: #CBF3FC;
    border-radius: 12px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.schedule-table td {
    background: #f9f9f9;
    border-radius: 12px;
    height: auto;
    min-height: 85px;
    vertical-align: middle;
    padding: 6px;
}

.lesson-table-card {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
}

.lesson-mini-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #000;
    flex-shrink: 0;
}

.lesson-table-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.lesson-table-info strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-table-info span {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-lesson {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.schedule-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #000;
    flex-shrink: 0;
}

.schedule-lesson>div {
    min-width: 0;
    flex: 1;
}

.schedule-lesson strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-lesson p {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-btn,
.delete-lesson-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none;
    background: #CBF3FC;
    cursor: pointer;
    font-size: 10px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-lesson-btn {
    background: #ff4d4d;
    color: #fff;
}

.comment-btn:hover,
.delete-lesson-btn:hover {
    transform: translateY(-1px);
}

.action-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.add-lesson-btn {
    width: 100%;
    height: 100%;
    min-height: 75px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    width: 100%;
    max-width: 300px;
}

.dropdown-btn {
    background-color: #CBF3FC;
    color: #000;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.3s ease;
}

.dropdown-arrow {
    font-size: 18px;
    margin-left: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid #eee;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background-color: #CBF3FC;
}

.dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.show-dropdown {
    display: block;
}

.student-profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-form {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 500px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    height: 44px;
    border-radius: 14px;
    border: 1px solid #ddd;
    padding: 0 15px;
    background: #fff;
    font-size: 14px;
    width: 100%;
}

/* Стили чекбоксов и радиокнопок вынесены в конец файла — см. блок "ФИКС ДЛЯ iOS" */

.form-group textarea {
    height: auto;
    padding: 10px;
}

.save-btn {
    height: 48px;
    padding: 0 24px;
border: none;

    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #CBF2FC;
}

.edit-profile-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 40px;
    background: #111;
    color: #fff;
    font-size: 13px;
    transition: 0.3s;
}

.edit-profile-btn:hover {
    background: #333;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFEF5;
    padding: 20px;
}

.auth-container {
    max-width: 800px;
    width: 100%;
}

.auth-card {
    border: 1.5px solid #000;
    border-radius: 15px;
    padding: 48px 40px;
    background: transparent;
}

.auth-title {
    font-family: 'gunterz', sans-serif;
    font-size: 48px;
    font-weight: 100;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

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

.auth-btn {
    background: #FFCBE8;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-family: 'gothampro', sans-serif;
}

.auth-btn:hover {
    background: #CBF2FC;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
}

.auth-footer a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: #FFFEF5;
    border-radius: 24px;
    padding: 25px;
    margin: 20px;
}

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

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 0;
}

.modal-close {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.footer {
    margin-top: 120px;
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.footer__top {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    flex-wrap: wrap;
}

.footer__brand {
    max-width: 420px;
}

.footer__logo {
    width: 140px;
    margin-bottom: 24px;
}

.footer__description {
    font-size: 16px;
    line-height: 1.7;
    opacity: .65;
}

.footer__links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .18em;
    opacity: .4;
    margin-bottom: 10px;
}

.footer__column a {
    font-size: 16px;
    color: #111;
    transition: .3s ease;
}

.footer__column a:hover {
    opacity: .5;
}

.footer__bottom {
    max-width: 1340px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__bottom p {
    font-size: 14px;
    opacity: .45;
}

.lesson-actions {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    flex-direction: row;
    align-items: end;
}

.subscriptions-section {
    padding: 1em 0;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.subscription-card {
    border-radius: 32px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: .3s;
}

.subscription-card.first {
    background: url('../images/bg.png');
    background-size: cover;
}

.subscription-card.second {
    background: url('../images/bg2.png');
    background-size: cover;
}

.subscription-card.third {
    background: url('../images/bg3.png');
    background-size: cover;
}

.subscription-card:hover {
    transform: translateY(-8px);
}

.subscription-top h3 {
    font-size: 34px;
    margin-bottom: 20px;
}

.subscription-price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.subscription-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.5;
}

.subscription-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #ffcc00;
}

.subscription-btn {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.subscription-btn:hover {
    opacity: 0.8;
}

.gift-section {
    padding: 140px 0;
}

.gift-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid black;
    overflow: hidden;
}

.gift-content {
    width: 50%;
}

.gift-subtitle {
    display: inline-block;
    margin-bottom: 20px;
    color: #888;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gift-title {
    margin-bottom: 25px;
    font-size: 56px;
    line-height: 1.1;
}

.gift-text {
    margin-bottom: 35px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.7;
}

.gift-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.gift-benefit {
    font-size: 17px;
}

.gift-benefit::before {
    content: '✦';
    color: #ffcc00;
}

.gift-btn {
    width: 260px;
    height: 60px;
    border: none;
    border-radius: 180px;
    background: #FFCBE8;
    color: #000;
    font-size: 16px;
    font-weight: 100;
    cursor: pointer;
    transition: .3s;
}

.gift-btn:hover {
    transform: translateY(-3px);
}

.gift-image {
    width: 40%;
}

.gift-image img {
    width: 100%;
    display: block;
}

.map-section {
    padding: 100px 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.contacts {
    flex: 1 1 320px;
    min-width: 0;
}

.map-wrapper {
    flex: 1 1 420px;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
}

.map-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 442px;
    border: 0;
    border-radius: 20px;
}

.map-text {
    margin-bottom: 35px;
    font-size: 18px;
    line-height: 1.8;
}

.map-text strong {
    font-weight: 700;
}

.gift-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.gift-submit {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 18px;
    background: #FFCBE8;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.admin-notifications {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.delete-week-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 20px;
    transition: 0.2s;
}

.delete-week-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.notification-card {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.notification-birthday {
    background: #D4EDDA !important;
    color: #155724 !important;
}

.notification-danger {
    background: #F8D7DA !important;
    color: #721C24 !important;
}

.notification-warning {
    background: #FFF3CD !important;
    color: #856404 !important;
}

.warning-banner {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
}

.danger-banner {
    background: #F8D7DA;
    border-left: 4px solid #DC3545;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #721C24;
}

.success-banner {
    background: #D4EDDA;
    border-left: 4px solid #28A745;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #155724;
}

.admin-section {
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.admin-link {
    display: inline-block;
    background: #eef2f5;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.admin-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-action-btn {
    background: none;
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid #000;
}

.prices-form {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.price-input-group {
    display: inline-block;
    margin-right: 20px;
}

.gallery-item,
.teacher-edit-card {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 16px;
}

.gallery-list {
    display: flex;
}

.delete-btn {
    background: #ed5b5b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 1400px) {
    .container {
        max-width: calc(100% - 60px);
        padding: 0;
    }
}
@media (max-width: 1200px) {
    .container {
        max-width: calc(100% - 80px);
    }
}
@media (max-width: 1100px) {
    .home-page .advantages__grid {
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    .home-page .card {
        min-height: auto;
        padding: 20px;
    }

    .home-page .advantages__grid:hover .card,
    .home-page .advantages__grid .card:hover {
        flex: 1;
        transform: translateY(-2px);
    }

    .home-page .card__title {
        font-size: 32px;
        min-height: auto;
        margin-bottom: 12px;
    }

    .home-page .card__content {
        min-height: auto;
    }

    .home-page .card__text {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    /* меню сужается до контента, чтобы шапка не переносилась */
    header nav {
        width: auto;
        gap: 14px;
        padding: 12px 18px;
    }

    header nav a {
        font-size: 14px;
    }

    .profile-name {
        font-size: 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .schedule-table {
        min-width: 700px;
    }

    .home-page .gallery__container {
        flex-direction: column;
        gap: 40px;
    }

    .home-page .gallery__info {
        text-align: center;
    }

    .home-page .gallery__stats {
        justify-content: center;
    }

    .home-page .gallery__title {
        font-size: 48px;
    }
}
@media (max-width: 992px) {
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }

    .container {
        max-width: calc(100% - 60px);
    }
}
@media (max-width: 900px) {
    .home-page .teachers__title {
        font-size: 48px;
    }

    .home-page .teachers__grid {
        gap: 20px;
    }

    .home-page .teacher-card__image {
        height: 280px;
    }

    /* баннер перестраивается в столбик уже на планшетах */
    .home-page .banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .home-page .banner-title {
        padding: 1.5em 1em;
        align-items: center;
    }

    .home-page .banner-image {
        height: auto;
        width: 100%;
        max-width: 460px;
        order: -1;
    }

    .home-page .probnik-btn {
        margin: 20px auto 0 !important;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: calc(100% - 40px);
    }

    .profile-page,
    .admin-page {
        padding: 40px 0;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .back-link {
        font-size: 14px;
    }

    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
    }

    .profile-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .profile-name {
        font-size: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .lesson-cards,
    .students-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form {
        width: 100%;
        padding: 20px;
    }

    .schedule-wrapper {
        padding: 10px;
    }

    .schedule-table {
        min-width: 650px;
    }

    .schedule-table th:first-child,
    .schedule-table .time-column,
    .schedule-table .time-cell {
        width: 75px !important;
        min-width: 75px !important;
        font-size: 12px;
        padding: 8px 2px !important;
    }

    .schedule-table th {
        font-size: 11px;
        padding: 8px 4px;
    }

    .lesson-mini-avatar {
        width: 28px !important;
        height: 28px !important;
    }

    .schedule-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    .lesson-table-info strong,
    .schedule-lesson strong {
        font-size: 10px;
    }

    .lesson-table-info span,
    .schedule-lesson p {
        font-size: 9px;
    }

    .footer {
        padding: 50px 20px 24px;
    }

    .footer__top {
        gap: 50px;
    }

    .footer__links {
        flex-direction: column;
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo img {
        width: 100px;
    }

    nav {
        display: none !important;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }

    .burger-menu span {
        width: 100%;
        height: 3px;
        background-color: #000;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #FFFEF5;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px;
        transition: top 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-nav.active {
        top: 70px;
    }

    .mobile-nav nav {
        display: flex !important;
        flex-direction: column;
        border: none;
        width: 100%;
        height: auto;
        padding: 0;
        gap: 15px;
        background: none;
    }

    .mobile-nav nav a {
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: block;
    }

    .mobile-nav .header-user {
        margin-top: 20px;
        justify-content: flex-start;
        display: flex;
        gap: 15px;
    }

    .mobile-nav .login-btn {
        margin-top: 20px;
        justify-content: center;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .overlay.active {
        display: block;
    }

    .home-page .banner {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .home-page .banner-title {
        order: 0;
        padding: 2em 1em !important;
        align-items: center;
    }

    .home-page .banner-image {
        order: 1;
        height: auto !important;
        width: 100%;
    }

    .home-page .banner-text {
        order: 2;
        text-align: center;
    }

    .home-page .probnik-btn {
        order: 3;
        margin: 20px auto !important;
        width: 90%;
        max-width: 280px;
        justify-content: center;
    }

    .home-page .flow-1,
    .home-page .flow-2 {
        display: none;
    }

    .home-page .gallery__stats {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 40px;
    }

    .gift-section {
        padding: 60px 0;
    }

    .gift-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 40px;
        padding: 40px 20px;
        text-align: center;
    }

    .gift-content {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gift-benefits {
        align-items: center;
        width: 100%;
    }

    .gift-benefit {
        text-align: center;
    }

    .gift-image {
        width: 60% !important;
        display: flex;
        justify-content: center;
    }

    .gift-section .probnik-btn {
        margin: 20px auto !important;
        justify-content: center;
        width: 90%;
        max-width: 280px;
    }

    .profile-user {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto !important;
    }

    .profile-name {
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }

    .teacher-box,
    .subscription-box {
        margin: 12px auto;
        text-align: center;
    }

    .profile-title {
        justify-content: center;
    }

    .edit-profile-btn {
        display: inline-block;
        margin: 10px auto;
    }

    .lesson-cards {
        grid-template-columns: 1fr;
    }

    .save-btn {
        width: 100%;
    }

    .home-page .advantages {
        padding: 40px 16px;
        margin-top: 0;
    }

    .home-page .advantages__header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 30px;
    }

    .home-page .advantages__title {
        font-size: 32px;
        max-width: 100%;
    }

    .home-page .advantages__text {
        max-width: 100%;
        font-size: 14px;
    }

    .home-page .advantages__grid {
        gap: 12px;
    }

    .home-page .card {
        padding: 16px;
        border-radius: 12px;
    }

    .home-page .card__title {
        font-size: 28px;
        min-height: auto;
    }

    .home-page .card__number {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .home-page .card__text {
        font-size: 13px;
    }

    .home-page .teachers {
        padding: 60px 16px;
    }

    .home-page .teachers__title {
        font-size: 27px;
    }

    .home-page .teachers__subtitle {
        font-size: 16px;
    }

    .home-page .teacher-card {
        min-width: 100%;
    }

    .home-page .teacher-card__image {
        height: 260px;
    }

    .home-page .teacher-card__name {
        font-size: 28px;
    }

    .home-page .gallery {
        padding: 60px 16px;
    }

    .home-page .gallery__title {
        font-size: 36px;
    }

    .home-page .gallery__text {
        font-size: 16px;
    }

    .home-page .slide img {
        height: 300px;
    }

    .home-page .slider-btn {
        width: 40px;
        height: 40px;
    }

    .home-page .stat__number {
        font-size: 36px;
    }

    .modal-content {
        width: calc(100% - 40px);
        max-width: none;
        margin: 20px;
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-close {
        font-size: 24px;
    }

    .lesson-actions {
        flex-direction: row !important;
        gap: 5px !important;
        margin-top: 8px !important;
    }

    .schedule-lesson .comment-btn,
    .schedule-lesson .delete-lesson-btn {
        padding: 4px 6px !important;
        font-size: 8px !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }

    .schedule-lesson {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .schedule-avatar {
        width: 28px !important;
        height: 28px !important;
    }

    .schedule-lesson>div {
        width: 100%;
    }

    .schedule-lesson strong {
        font-size: 11px !important;
    }

    .schedule-lesson p {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }

    .action-icon {
        width: 16px;
        height: 16px;
    }

    .comment-btn,
    .delete-lesson-btn {
        padding: 8px;
    }
}
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 36px;
    }
}
@media (max-width: 576px) {
    .container {
        max-width: calc(100% - 30px);
    }

    .modal-content {
        width: calc(100% - 30px);
        padding: 18px;
    }

    .modal-header h2 {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .schedule-table {
        min-width: 550px;
    }

    .schedule-table th:first-child,
    .schedule-table .time-column,
    .schedule-table .time-cell {
        width: 70px !important;
        min-width: 70px !important;
        font-size: 11px;
    }

    .container {
        max-width: calc(100% - 20px);
    }

    .home-page .banner {
        flex-direction: column;
    }

    .home-page .banner-image img {
        width: 100%;
    }

    .home-page .banner-title {
        padding: 3em 1em;
    }

    .home-page h1 {
        font-size: 48px;
    }

    .home-page .probnik-btn {
        width: 100%;
        height: 60px;
    }

    .home-page .flow-1,
    .home-page .flow-2 {
        display: none;
    }

    .home-page h1 {
        font-size: 32px !important;
    }

    .home-page .banner-text {
        font-size: 16px !important;
    }

    .home-page .gallery__stats {
        gap: 20px !important;
    }

    .stat__number {
        font-size: 28px !important;
    }

    .stat__label {
        font-size: 11px !important;
    }

    .gift-image {
        width: 80% !important;
    }

    .home-page .advantages__title {
        font-size: 28px;
    }

    .home-page .card__title {
        font-size: 24px;
    }

    .home-page .card__text {
        font-size: 12px;
    }

    .modal-content {
        width: calc(100% - 20px);
        padding: 15px;
        border-radius: 16px;
    }

    .modal-header {
        margin-bottom: 15px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .form-group {
        gap: 8px;
        margin-bottom: 15px;
    }

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

    .form-group input,
    .form-group select {
        height: 45px;
        font-size: 14px;
        padding: 0 12px;
    }

    .gift-submit {
        height: 48px;
        font-size: 14px;
    }

    .lesson-actions {
        gap: 4px !important;
    }

    .schedule-lesson .comment-btn,
    .schedule-lesson .delete-lesson-btn {
        padding: 3px !important;
        font-size: 7px !important;
    }
}
@media (max-width: 380px) {
    .lesson-actions {
        flex-direction: row !important;
        gap: 4px !important;
    }

    .schedule-lesson .comment-btn,
    .schedule-lesson .delete-lesson-btn {
        width: 100%;
        padding: 5px !important;
        font-size: 10px !important;
    }
}
@media (max-width: 360px) {
    .modal-content {
        width: calc(100% - 16px);
        padding: 12px;
    }

    .modal-header h2 {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        height: 40px;
        font-size: 13px;
    }
}
@media (min-width: 769px) {

    .burger-menu,
    .mobile-nav,
    .overlay {
        display: none !important;
    }
}

/* =========================================================
   ADMIN PANEL — общий апгрейд внешнего вида
   (расписание не затрагивается)
   ========================================================= */

/* акцент под заголовком страницы */
.admin-page .profile-header h1 {
    position: relative;
}

/* .admin-page .profile-header h1::after {
    content: '';
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #CBF3FC 0%, #FFCBE8 100%);
} */

/* единая карточка-панель */
.admin-card {
    background: #fff;
    border: 1px solid #f1ece0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1ece0;
}

.admin-card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .admin-card-head h2::before {
    content: '';
    width: 6px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, #CBF3FC 0%, #FFCBE8 100%);
} */

.admin-card-head p {
    font-size: 13px;
    color: #9a9486;
    margin-top: 6px;
}

/* сетка: форма + сводка */
.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

.admin-grid .admin-form {
    max-width: none;
    margin: 0;
}

/* карточка пользователя */
.student-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-profile-name {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.student-profile-email {
    color: #6f6a60;
    font-size: 15px;
}

.student-profile-bdate {
    color: #9a9486;
    font-size: 14px;
}

.role-badge {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-student { background: #CBF3FC; color: #0b6b86; }
.role-teacher { background: #FFCBE8; color: #9c2c66; }
.role-admin   { background: #1a1a1a; color: #fff; }

/* статус абонемента */
.status-badge {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-on  { background: #D4EDDA; color: #1d6b32; }
.status-off { background: #F8D7DA; color: #a52834; }

/* KPI-карточки абонемента */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border-radius: 18px;
    background: #FFFEF5;
    border: 1px solid #f1ece0;
}

.stat-card .stat-value {
    font-family: 'gunterz', sans-serif;
    font-size: 30px;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 11px;
    color: #9a9486;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-used { background: #FFF7FB; border-color: #FFE1F0; }
.stat-left { background: #F2FCFF; border-color: #CFEFF8; }

.stat-progress {
    height: 10px;
    margin-top: 24px;
    border-radius: 999px;
    background: #f1ece0;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #CBF3FC 0%, #FFCBE8 100%);
    transition: width 0.4s ease;
}

.stat-progress-text {
    margin-top: 10px;
    font-size: 12px;
    color: #9a9486;
    text-align: center;
}

/* мелкая полировка общих элементов админки */
.admin-action-btn:hover,
.admin-menu-link:hover {
    background: #1a1a1a;
    color: #fff;
}

.dropdown-btn:hover {
    background: #b8eefa;
}

.save-btn:hover {
    background: #b4ebf9;
    transform: translateY(-2px);
}

.prices-form h3 {
    font-family: 'gunterz', sans-serif;
    font-weight: 400;
    margin-bottom: 16px;
}

.prices-form form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 0;
}

.price-input-group label {
    font-size: 13px;
    font-weight: 600;
}

.price-input-group input {
    width: 150px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
}

.notification-card {
    border-left: 4px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {

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

    .student-profile-name {
        justify-content: flex-start;
    }

    .admin-card {
        padding: 22px;
    }
}

/* =========================================================
   ADMIN SLIDER & TEACHERS — единый стиль
   ========================================================= */

/* раскладка «сайдбар + контент» */
.admin-grid--wide {
    grid-template-columns: 360px 1fr;
}

/* две колонки (ученики/преподаватели) — стопкой на узких экранах */
.admin-columns {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
}

.admin-columns > .admin-section {
    flex: 1 1 260px;
    min-width: 0;
}

.admin-columns .admin-dropdown {
    max-width: none;
}

/* заголовок секции (вне карточки) */
.admin-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0 20px;
}

.admin-section-title::before {
    content: '';
    width: 6px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, #CBF3FC 0%, #FFCBE8 100%);
}

/* пустое состояние */
.admin-empty {
    padding: 30px;
    text-align: center;
    color: #9a9486;
    font-size: 14px;
    background: #FFFEF5;
    border: 1px dashed #e3ddcf;
    border-radius: 18px;
}

/* кнопка удаления (общая) */
.delete-btn {
    background: #ff5b6e;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.delete-btn:hover {
    background: #e84a5d;
    transform: translateY(-2px);
}

.save-btn.small,
.delete-btn.small {
    padding: 8px 18px;
    font-size: 13px;
    height: auto;
}

/* файловый инпут аккуратнее */
.form-group input[type="file"] {
    height: auto;
    padding: 11px 14px;
}

/* ---- ГАЛЕРЕЯ (slider) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1ece0;
    background: #FFFEF5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-card .gallery-card-del {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: 0.25s ease;
}

.gallery-card:hover .gallery-card-del {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card .gallery-card-del .delete-btn {
    padding: 7px 14px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---- ПРЕПОДАВАТЕЛИ НА ГЛАВНОЙ ---- */
.teachers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
}

.teacher-card-edit {
    background: #fff;
    border: 1px solid #f1ece0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.teacher-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1ece0;
}

.teacher-edit-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.6px solid #000;
    background: #fff;
}

.teacher-card-title h3 {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 600;
}

.teacher-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.teacher-status.visible {
    background: #D4EDDA;
    color: #1d6b32;
}

.teacher-status.hidden {
    background: #F8D7DA;
    color: #a52834;
}

.form-row {
    display: flex;
    gap: 18px;
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

/* алерты валидации/успеха */
.alert {
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.alert-danger {
    background: #F8D7DA;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left-color: #28a745;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
}

.form-group .is-invalid {
    border-color: #dc3545 !important;
}

@media (max-width: 768px) {

    .admin-grid--wide {
        grid-template-columns: 1fr;
    }

    .teachers-list {
        grid-template-columns: 1fr;
    }

    .teacher-card-header {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-btn.small,
    .delete-btn.small {
        width: 100%;
    }
}

/* =========================================================
   Декоративные «цветы» (flow-1 / flow-2) на мобильных
   ========================================================= */
@media (max-width: 768px) {

    .home-page .flow-1,
    .home-page .flow-2 {
        display: block;
        position: absolute;
        height: auto;
        z-index: 5;
        opacity: 0.95;
        pointer-events: none;
        will-change: transform;
    }

    .home-page .flow-1 {
        top: 40px;
        right: -42px;
        left: auto;
        width: 150px;
        max-width: 150px;
        animation: flowFloatA 6s ease-in-out infinite;
    }

    .home-page .flow-2 {
        top: auto;
        bottom: 10px;
        left: -28px;
        right: auto;
        width: 180px;
        max-width: 180px;
        animation: flowFloatB 7.5s ease-in-out infinite;
    }
}

@keyframes flowFloatA {
    0%, 100% { transform: scaleX(-1) rotate(16deg) translateY(0); }
    50%      { transform: scaleX(-1) rotate(24deg) translateY(-12px); }
}

@keyframes flowFloatB {
    0%, 100% { transform: rotate(-14deg) translateY(0); }
    50%      { transform: rotate(-22deg) translateY(11px); }
}

/* =========================================================
   ФИКС ДЛЯ iOS (WebKit): чекбоксы и радиокнопки
   ---------------------------------------------------------
   На iPhone все браузеры (Safari, Яндекс, Chrome) работают на WebKit.
   Общее правило .form-group input { width: 100%; height: 44px }
   растягивало чекбоксы и радиокнопки на всю ширину, и они налезали
   на текст. WebKit к тому же игнорирует width/height у нативных
   контролов, пока не задан -webkit-appearance: none.

   Правило намеренно вынесено в САМЫЙ КОНЕЦ файла и помечено !important,
   чтобы гарантированно перебить любые width/height выше по каскаду,
   включая правила внутри @media. Не переносить выше по файлу.
   ========================================================= */
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid #999 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    background-image: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: none !important;
}

input[type="radio"] {
    border-radius: 50% !important;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    border-color: #111 !important;
    background-color: #111 !important;
}

/* Белое кольцо внутри — остаётся тёмная точка по центру */
input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3px #fff !important;
}

/* Галочка — фоновой картинкой, а не через ::after:
   WebKit ненадёжно отрисовывает псевдоэлементы на <input> */
input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.5 3.5L13 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
}
