.student-calendar {
    max-width: 1200px;
    margin: 40px auto;
    font-family: inherit;
}

.student-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.student-calendar-title {
    font-size: 32px;
    font-weight: 700;
}

.student-calendar-week {
    color: #6b7280;
    font-weight: 500;
}

.student-calendar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.student-calendar-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.student-calendar-nav a:hover {
    background: #e5e7eb;
}

.student-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.student-calendar-day-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    min-height: 220px;
}

.student-calendar-day-title {
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.student-slot-free {
    background: #dcfce7;
    color: #166534;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
}

.student-slot-lesson {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
}

.student-slot-later,
.student-slot-empty {
    background: #f3f4f6;
    color: #9ca3af;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

.student-slot-time {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .student-calendar {
        overflow-x: auto;
    }

    .student-calendar-days {
        min-width: 1000px;
    }

    .student-calendar-title {
        font-size: 24px;
    }
}

.student-calendar-grid-view {
    display: grid;
    position: relative;
    grid-template-columns: 80px repeat(7, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.student-calendar-corner,
.student-calendar-grid-day-header {
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    font-weight: 700;
    text-align: center;
}

.student-calendar-time-column {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.student-calendar-time-row {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.student-calendar-grid-day {
    position: relative;
    border-right: 1px solid #e5e7eb;
    background: #fff;
}

.student-calendar-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #e5e7eb;
    pointer-events: none;
}

.student-slot-positioned {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    overflow: hidden;
}

.student-slot-positioned.student-slot-free,
.student-slot-positioned.student-slot-lesson,
.student-slot-positioned.student-slot-later,
.student-slot-positioned.student-slot-empty {
    margin-bottom: 0;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .student-calendar {
        overflow-x: auto;
    }

    .student-calendar-grid-view {
        min-width: 1000px;
    }
}
.sp-teacher-block-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.sp-teacher-block-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.sp-teacher-block-form input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.sp-teacher-block-form button {
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.45);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.sp-modal.open {
    display: flex;
}

.sp-modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    width: min(420px, 92vw);
    position: relative;
}

.sp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.sp-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-modal-content label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.sp-modal-content input {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.sp-modal-content button[type="submit"] {
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sp-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

/* Хорошо заметные крестики во всех окнах Student Portal. */
.sp-modal-close,
[id$="-modal"] > div > button[type="button"]:first-of-type,
button[type="button"][onclick*="CloseModal"],
button[type="button"][id$="-close"] {
    color: #111827 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.student-slot-google-event {
    background: #ede9fe;
    color: #5b21b6;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid #c4b5fd;
    box-sizing: border-box;
    overflow: hidden;
}

.student-slot-google-event {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fbbf24 !important;
}

.student-calendar .student-slot-google-event {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fbbf24 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 6 !important;
}

.student-slot-open-exception {
    background: #f3f4f6;
    color: #374151;
    border: 1px dashed #9ca3af;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.student-dashboard-lesson {
    display: block;
    padding: 14px 18px;
    margin-bottom: 12px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    text-decoration: none !important;
    color: inherit;

    box-shadow: 0 2px 8px rgba(0,0,0,.04);

    transition: all .2s ease;
}

.student-dashboard-lesson:hover {
    background: #f8fafc;
    border-color: #93c5fd;

    box-shadow: 0 6px 18px rgba(59,130,246,.15);
}

/* =========================
   Личный кабинет ученика
   ========================= */

.sp-student-dashboard {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: #1e293b;
}

.sp-student-dashboard *,
.sp-student-dashboard *::before,
.sp-student-dashboard *::after {
    box-sizing: border-box;
}

.sp-student-dashboard .student-dashboard-card {
    margin: 0 0 18px !important;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.sp-student-dashboard h3 {
    margin: 0 0 16px;
    color: #172033;
    font-size: 25px;
    line-height: 1.25;
}

.sp-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.sp-dashboard-summary > div {
    min-width: 0;
    padding: 14px 16px !important;
    border-radius: 16px !important;
}

.sp-dashboard-summary strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #64748b;
}

.sp-dashboard-summary span,
.sp-dashboard-summary a {
    font-size: 16px;
    line-height: 1.4;
}

.sp-dashboard-lessons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sp-dashboard-lesson {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none !important;
    line-height: 1.5;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sp-dashboard-lesson:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.09);
}

.sp-dashboard-lesson > strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.35;
}

.sp-dashboard-subscription-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.sp-dashboard-subscription-stats > div {
    padding: 13px 14px !important;
    border-radius: 15px !important;
}

.sp-dashboard-subscription-stats strong {
    font-size: 22px !important;
}

.sp-dashboard-freeze {
    margin: 0 0 18px;
}

.sp-dashboard-freeze .student-dashboard-card {
    margin: 0 !important;
}

.sp-dashboard-navigation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sp-dashboard-navigation-grid > a,
.sp-dashboard-navigation-grid > div {
    min-width: 0;
    padding: 16px !important;
    border: 1px solid #e2e8f0;
    border-radius: 17px !important;
    background: #f8fafc !important;
    line-height: 1.45;
}

.sp-dashboard-navigation-grid > a {
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.sp-dashboard-navigation-grid > a:hover {
    border-color: #93c5fd;
}

.sp-dashboard-navigation-grid strong {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .sp-dashboard-summary,
    .sp-dashboard-subscription-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-dashboard-lessons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-dashboard-navigation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sp-student-dashboard .student-dashboard-card {
        padding: 16px;
        border-radius: 18px;
    }

    .sp-student-dashboard h3 {
        font-size: 21px;
    }

    .sp-dashboard-summary {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sp-dashboard-summary > div {
        padding: 12px !important;
    }

    .sp-dashboard-summary strong {
        font-size: 12px;
    }

    .sp-dashboard-summary span,
    .sp-dashboard-summary a {
        font-size: 14px;
    }

    .sp-dashboard-lessons {
        grid-template-columns: 1fr;
    }

    .sp-dashboard-subscription-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sp-dashboard-navigation-grid {
        grid-template-columns: 1fr;
    }
}

/* Раскрывающиеся блоки кабинета */

.sp-dashboard-details,
.sp-freeze-request-details {
    width: 100%;
}

.sp-dashboard-details > summary,
.sp-freeze-request-details > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sp-dashboard-details > summary::-webkit-details-marker,
.sp-freeze-request-details > summary::-webkit-details-marker {
    display: none;
}

.sp-dashboard-details > summary::after,
.sp-freeze-request-details > summary::after {
    content: '⌄';
    flex: 0 0 auto;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sp-dashboard-details[open] > summary::after,
.sp-freeze-request-details[open] > summary::after {
    transform: rotate(180deg);
}

.sp-dashboard-details > summary > span {
    color: #172033;
    font-size: 24px;
    font-weight: 700;
}

.sp-dashboard-details > summary > small {
    margin-left: auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.sp-dashboard-details[open] > summary {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-freeze-request-details {
    margin-top: 16px;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
    overflow: hidden;
}

.sp-freeze-request-details > summary {
    padding: 13px 16px;
    color: #1d4ed8;
    font-weight: 700;
}

.sp-freeze-request-details[open] > summary {
    border-bottom: 1px solid #dbeafe;
    background: #eff6ff;
}

.sp-freeze-request-details > form,
.sp-freeze-request-details > p {
    margin-right: 16px;
    margin-left: 16px;
}

.sp-freeze-request-details > form {
    padding-top: 4px;
}

.sp-freeze-request-details input,
.sp-freeze-request-details select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.sp-freeze-request-details button[type='submit'] {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .sp-dashboard-details > summary {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .sp-dashboard-details > summary > span {
        font-size: 21px;
    }

    .sp-dashboard-details > summary > small {
        width: calc(100% - 34px);
        margin-left: 0;
    }
}

/* Страница правил уроков */

.sp-rules {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: #24324a;
}

.sp-rules *,
.sp-rules *::before,
.sp-rules *::after {
    box-sizing: border-box;
}

.sp-rules-hero {
    padding: 44px;
    border-radius: 30px;
    background: linear-gradient(135deg, #eef5ff 0%, #f7f2ff 100%);
    border: 1px solid #dbeafe;
}

.sp-rules-eyebrow,
.sp-rules-final > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-rules-hero h2 {
    max-width: 760px;
    margin: 0 0 14px;
    color: #172033;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.08;
}

.sp-rules-hero p {
    max-width: 760px;
    margin: 0;
    color: #52627a;
    font-size: 18px;
    line-height: 1.65;
}

.sp-rules-nav {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    gap: 8px;
    margin: 18px 0;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
    backdrop-filter: blur(12px);
}

.sp-rules-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.sp-rules-nav a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.sp-rules-section {
    scroll-margin-top: 90px;
    margin-top: 18px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
}

.sp-rules-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.sp-rules-number {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.sp-rules-section h3,
.sp-rules-final h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 27px;
    line-height: 1.2;
}

.sp-rules-section-heading p,
.sp-rules-final p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.sp-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-rules-card {
    padding: 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sp-rules-card h4 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 18px;
}

.sp-rules ul {
    margin: 0;
    padding-left: 21px;
}

.sp-rules li {
    margin: 7px 0;
    line-height: 1.55;
}

.sp-rules-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
}

.sp-rules-formats span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 700;
}

.sp-rules-note {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.sp-rules-note strong {
    display: block;
    margin-bottom: 5px;
}

.sp-rules-note p {
    margin: 0;
    line-height: 1.55;
}

.sp-rules-note--blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.sp-rules-note--warm {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.sp-rules-note--red {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.sp-rules-footnote,
.sp-rules-friendly {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 15px;
    background: #f8fafc;
    color: #52627a;
    line-height: 1.55;
}

.sp-rules-details {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 17px;
    background: #fff;
}

.sp-rules-details summary {
    position: relative;
    padding: 15px 50px 15px 18px;
    cursor: pointer;
    list-style: none;
    color: #24324a;
    font-weight: 800;
}

.sp-rules-details summary::-webkit-details-marker {
    display: none;
}

.sp-rules-details summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 24px;
}

.sp-rules-details[open] summary::after {
    content: '−';
}

.sp-rules-details-body {
    padding: 0 18px 18px;
    color: #52627a;
    line-height: 1.6;
}

.sp-rules-checklist {
    display: grid;
    gap: 10px;
    padding: 0 !important;
    list-style: none;
}

.sp-rules-checklist li {
    position: relative;
    margin: 0;
    padding: 13px 15px 13px 44px;
    border-radius: 15px;
    background: #f8fafc;
}

.sp-rules-checklist li::before {
    content: '✓';
    position: absolute;
    top: 12px;
    left: 15px;
    color: #16a34a;
    font-weight: 900;
}

.sp-rules-timeline {
    display: grid;
    gap: 10px;
}

.sp-rules-timeline > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 15px 17px;
    border-left: 4px solid #60a5fa;
    border-radius: 0 15px 15px 0;
    background: #f8fafc;
}

.sp-rules-final {
    margin-top: 18px;
    padding: 36px;
    border-radius: 26px;
    background: #172033;
    color: #fff;
}

.sp-rules-final h3 {
    color: #fff;
}

.sp-rules-final p {
    margin-top: 12px;
    color: #dbe7f7;
}

@media (max-width: 700px) {
    .sp-rules-hero {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .sp-rules-hero p {
        font-size: 16px;
    }

    .sp-rules-nav {
        top: 6px;
        border-radius: 16px;
    }

    .sp-rules-section {
        padding: 21px 17px;
        border-radius: 20px;
    }

    .sp-rules-grid {
        grid-template-columns: 1fr;
    }

    .sp-rules-section h3,
    .sp-rules-final h3 {
        font-size: 23px;
    }

    .sp-rules-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .sp-rules-timeline > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .sp-rules-final {
        padding: 26px 21px;
        border-radius: 20px;
    }
}

/* Страница «Уроки и цены» */

.sp-prices {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: #24324a;
}

.sp-prices *,
.sp-prices *::before,
.sp-prices *::after {
    box-sizing: border-box;
}

.sp-prices-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 18px;
}

.sp-prices-hero-copy,
.sp-prices-hero-card {
    border-radius: 30px;
}

.sp-prices-hero-copy {
    padding: 48px;
    background: linear-gradient(135deg, #eaf3ff 0%, #f4efff 100%);
    border: 1px solid #dbeafe;
}

.sp-prices-eyebrow,
.sp-prices-section-heading > span,
.sp-prices-trial > div:first-child > span {
    display: inline-block;
    margin-bottom: 9px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-prices-hero h2 {
    max-width: 720px;
    margin: 0 0 16px;
    color: #172033;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}

.sp-prices-hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: #52627a;
    font-size: 18px;
    line-height: 1.65;
}

.sp-prices-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.sp-prices-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sp-prices-button:hover {
    box-shadow: 0 8px 20px rgba(40,100,232,.2);
}

.sp-prices-button--primary {
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(37,99,235,.2);
}

.sp-prices-button--light {
    background: rgba(255,255,255,.8);
    border: 1px solid #dbe3ef;
    color: #24324a !important;
}

.sp-prices-button--violet {
    background: #7c3aed;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(124,58,237,.18);
}

.sp-prices-button--dark {
    background: #172033;
    color: #fff !important;
}

.sp-prices-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: #172033;
    color: #fff;
}

.sp-prices-hero-card > span {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-prices-hero-card > strong {
    margin: 8px 0;
    font-size: 29px;
}

.sp-prices-hero-card p {
    margin: 0 0 20px;
    color: #cbd5e1;
    line-height: 1.55;
}

.sp-prices-hero-card a {
    color: #fff;
    font-weight: 800;
}

.sp-prices-included,
.sp-prices-formats {
    margin-top: 20px;
    padding: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
}

.sp-prices-section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.sp-prices-section-heading h3,
.sp-prices-urgent h3,
.sp-prices-trial h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 30px;
    line-height: 1.15;
}

.sp-prices-section-heading p,
.sp-prices-trial p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.sp-prices-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sp-prices-benefits article {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
}

.sp-prices-benefits article > span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.sp-prices-benefits strong {
    display: block;
    margin: 9px 0 6px;
}

.sp-prices-benefits p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.sp-prices-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sp-prices-format-card {
    padding: 26px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 24px;
}

.sp-prices-format-card--blue {
    background: linear-gradient(180deg, #f1f7ff, #fff 48%);
}

.sp-prices-format-card--violet {
    background: linear-gradient(180deg, #f7f2ff, #fff 48%);
}

.sp-prices-format-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sp-prices-format-header > div > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.sp-prices-format-header h4 {
    margin: 3px 0 0;
    color: #172033;
    font-size: 28px;
}

.sp-prices-format-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    font-weight: 900;
}

.sp-prices-format-description {
    min-height: 78px;
    margin: 18px 0;
    color: #52627a;
    line-height: 1.55;
}

.sp-prices-options {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.sp-prices-options > div,
.sp-prices-urgent-prices > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #f8fafc;
}

.sp-prices-options > div.is-featured {
    background: #eaf2ff;
    outline: 1px solid #bfdbfe;
}

.sp-prices-options strong,
.sp-prices-urgent-prices strong {
    color: #172033;
    font-size: 23px;
}

.sp-prices-format-card > .sp-prices-button {
    width: 100%;
}

.sp-prices-caption {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.sp-prices-urgent {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr);
    gap: 28px;
    margin-top: 20px;
    padding: 36px;
    border-radius: 28px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.sp-prices-urgent-copy > p {
    color: #7c4a2d;
    line-height: 1.6;
}

.sp-prices-urgent-copy ul {
    margin: 18px 0 0;
    padding-left: 21px;
}

.sp-prices-urgent-copy li {
    margin: 7px 0;
}

.sp-prices-urgent-prices {
    display: grid;
    gap: 8px;
    align-content: start;
}

.sp-prices-urgent-prices > div {
    background: rgba(255,255,255,.75);
}

.sp-prices-trial {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr) auto;
    align-items: center;
    gap: 22px;
    margin-top: 20px;
    padding: 30px;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    background: #eff6ff;
}

.sp-prices-trial-formats {
    display: grid;
    gap: 7px;
}

.sp-prices-trial-formats span {
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.sp-prices-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 24px 28px;
    border-radius: 22px;
    background: #172033;
    color: #fff;
}

.sp-prices-footer-note p {
    margin: 4px 0 0;
    color: #cbd5e1;
}

.sp-prices-footer-note a {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 900px) {
    .sp-prices-hero,
    .sp-prices-urgent {
        grid-template-columns: 1fr;
    }

    .sp-prices-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-prices-trial {
        grid-template-columns: 1fr;
    }

    .sp-prices-trial > .sp-prices-button {
        justify-self: start;
    }
}

@media (max-width: 650px) {
    .sp-prices-hero-copy,
    .sp-prices-hero-card {
        padding: 27px 21px;
        border-radius: 22px;
    }

    .sp-prices-hero-copy > p {
        font-size: 16px;
    }

    .sp-prices-included,
    .sp-prices-formats,
    .sp-prices-urgent,
    .sp-prices-trial {
        padding: 22px 17px;
        border-radius: 21px;
    }

    .sp-prices-benefits,
    .sp-prices-format-grid {
        grid-template-columns: 1fr;
    }

    .sp-prices-format-description {
        min-height: 0;
    }

    .sp-prices-footer-note {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .sp-prices-button {
        width: 100%;
    }
}

/* Страница FAQ */

.sp-faq {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: #24324a;
}

.sp-faq *,
.sp-faq *::before,
.sp-faq *::after {
    box-sizing: border-box;
}

.sp-faq-hero {
    padding: 44px;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    background: linear-gradient(135deg, #eef5ff 0%, #f7f2ff 100%);
}

.sp-faq-hero > span,
.sp-faq-contact > div > span {
    display: inline-block;
    margin-bottom: 9px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sp-faq-hero h2 {
    margin: 0 0 14px;
    color: #172033;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
}

.sp-faq-hero > p {
    max-width: 720px;
    margin: 0;
    color: #52627a;
    font-size: 18px;
    line-height: 1.6;
}

.sp-faq-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.sp-faq-hero-links a {
    padding: 10px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.sp-faq-nav {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    gap: 8px;
    margin: 18px 0;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
    backdrop-filter: blur(12px);
}

.sp-faq-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.sp-faq-nav a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.sp-faq-groups {
    display: grid;
    gap: 16px;
}

.sp-faq-group {
    scroll-margin-top: 90px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
}

.sp-faq-group-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.sp-faq-group-heading > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.sp-faq-group-heading h3,
.sp-faq-contact h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 26px;
    line-height: 1.2;
}

.sp-faq-group-heading p,
.sp-faq-contact p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.sp-faq-items {
    display: grid;
    gap: 9px;
}

.sp-faq-item {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.sp-faq-item summary {
    position: relative;
    padding: 16px 52px 16px 18px;
    cursor: pointer;
    list-style: none;
    color: #24324a;
    font-weight: 800;
    line-height: 1.4;
}

.sp-faq-item summary::-webkit-details-marker {
    display: none;
}

.sp-faq-item summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 24px;
    font-weight: 500;
}

.sp-faq-item[open] {
    background: #fff;
    border-color: #bfdbfe;
}

.sp-faq-item[open] summary {
    color: #1d4ed8;
}

.sp-faq-item[open] summary::after {
    content: '−';
}

.sp-faq-answer {
    padding: 0 18px 18px;
    color: #52627a;
    line-height: 1.65;
}

.sp-faq-answer p {
    margin: 0;
}

.sp-faq-answer a {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-weight: 800;
}

.sp-faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 30px;
    border-radius: 25px;
    background: #172033;
    color: #fff;
}

.sp-faq-contact h3 {
    color: #fff;
}

.sp-faq-contact p {
    color: #cbd5e1;
}

.sp-faq-contact > a {
    flex: 0 0 auto;
    padding: 12px 19px;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-weight: 800;
    text-decoration: none !important;
}

@media (max-width: 650px) {
    .sp-faq-hero {
        padding: 28px 21px;
        border-radius: 22px;
    }

    .sp-faq-hero > p {
        font-size: 16px;
    }

    .sp-faq-nav {
        top: 6px;
        border-radius: 16px;
    }

    .sp-faq-group {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .sp-faq-group-heading h3,
    .sp-faq-contact h3 {
        font-size: 22px;
    }

    .sp-faq-group-heading > span {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .sp-faq-contact {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .sp-faq-contact > a {
        width: 100%;
        text-align: center;
    }
}

/* Панель преподавателя */

.sp-teacher-tools {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.sp-teacher-tools > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 52px 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sp-teacher-tools > summary::-webkit-details-marker {
    display: none;
}

.sp-teacher-tools > summary::after {
    content: '⌄';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 25px;
    transition: transform 0.2s ease;
}

.sp-teacher-tools[open] > summary::after {
    transform:
        translateY(-50%)
        rotate(180deg);
}

.sp-teacher-tools > summary > span {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.sp-teacher-tools > summary > small {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.sp-teacher-tools[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sp-teacher-tools-content {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.sp-teacher-tools-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    background: #f0fdf4;
    color: #166534;
}

.sp-teacher-tools-hint strong {
    flex: 0 0 auto;
}

.sp-teacher-tools-content > form {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(130px, 1fr));
    gap: 10px 12px;
    margin: 0 !important;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
    color: #334155;
    font-weight: 400;
}

.sp-teacher-tools-content > form::before {
    grid-column: 1 / -1;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.sp-teacher-tools-content > form:nth-of-type(1)::before {
    content: 'Добавить постоянный слот';
}

.sp-teacher-tools-content > form:nth-of-type(2)::before {
    content: 'Рассчитать абонемент';
}

.sp-teacher-tools-content > form:nth-of-type(3)::before {
    content: 'Добавить слот только на месяц';
}

.sp-teacher-tools-content form label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.sp-teacher-tools-content form input,
.sp-teacher-tools-content form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 14px;
}

.sp-teacher-tools-content form button {
    align-self: end;
    min-height: 42px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.sp-teacher-tools-content > div:not(
    .sp-teacher-tools-hint
) {
    padding: 16px !important;
    border: 1px solid #e2e8f0;
    border-radius: 17px !important;
    background: #f8fafc !important;
}

@media (max-width: 900px) {
    .sp-teacher-tools-content > form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sp-teacher-tools > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .sp-teacher-tools-content > form {
        grid-template-columns: 1fr;
    }

    .sp-teacher-tools-hint {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Подключение календаря ученика */

.sp-calendar-sync {
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid #c7dafe;
    border-radius: 22px;
    background: linear-gradient(135deg, #f4f8ff 0%, #f8f5ff 100%);
    color: #24324a;
}

.sp-calendar-sync *,
.sp-calendar-sync *::before,
.sp-calendar-sync *::after {
    box-sizing: border-box;
}

.sp-calendar-sync-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sp-calendar-sync-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(37,99,235,.1);
    font-size: 22px;
}

.sp-calendar-sync h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 23px;
}

.sp-calendar-sync-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.sp-calendar-sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.sp-calendar-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.sp-calendar-sync-button--apple {
    background: #172033;
    color: #fff !important;
}

.sp-calendar-sync-button--copy {
    background: #2563eb;
    color: #fff;
}

.sp-calendar-sync-button--google {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155 !important;
}

.sp-calendar-sync-help {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: rgba(255,255,255,.72);
}

.sp-calendar-sync-help summary {
    position: relative;
    padding: 13px 48px 13px 15px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.sp-calendar-sync-help summary::-webkit-details-marker {
    display: none;
}

.sp-calendar-sync-help summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 22px;
}

.sp-calendar-sync-help[open] summary::after {
    content: '−';
}

.sp-calendar-sync-help > div {
    padding: 0 16px 16px;
    color: #52627a;
    font-size: 14px;
    line-height: 1.55;
}

.sp-calendar-sync-help p {
    margin: 12px 0 5px;
}

.sp-calendar-sync-help ol {
    margin: 0;
    padding-left: 20px;
}

.sp-calendar-sync-warning {
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
}

.sp-calendar-sync-reset {
    margin: 12px 0 0;
}

.sp-calendar-sync-reset button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

@media (max-width: 650px) {
    .sp-calendar-sync {
        padding: 17px;
        border-radius: 18px;
    }

    .sp-calendar-sync-actions {
        display: grid;
    }

    .sp-calendar-sync-button {
        width: 100%;
    }
}

    /* Праздничный режим расписания */

.sp-holiday-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 18px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid #bae6d3;
    border-radius: 20px;
    background:
        radial-gradient(circle at 94% 10%, rgba(255,255,255,.85) 0 4px, transparent 5px),
        radial-gradient(circle at 88% 34%, rgba(255,255,255,.65) 0 3px, transparent 4px),
        linear-gradient(135deg, #ecfdf5 0%, #eff6ff 55%, #fff7ed 100%);
    color: #14532d;
}

.sp-holiday-notice::after {
    content: '✦  ❄  ✦';
    position: absolute;
    top: 12px;
    right: 18px;
    color: rgba(37,99,235,.24);
    font-size: 20px;
    letter-spacing: 8px;
}

.sp-holiday-notice-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 8px 20px rgba(15,118,110,.1);
    font-size: 23px;
}

.sp-holiday-notice strong {
    display: block;
    margin-bottom: 5px;
    padding-right: 100px;
    color: #14532d;
    font-size: 17px;
}

.sp-holiday-notice p {
    max-width: 820px;
    margin: 0;
    color: #3f6253;
    line-height: 1.55;
}

.student-calendar-grid-day.sp-holiday-day {
    background:
        radial-gradient(circle at 18px 22px, rgba(255,255,255,.9) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 54px, rgba(255,255,255,.78) 0 2px, transparent 3px),
        linear-gradient(180deg, #f0fdf4 0%, #fff 52%, #eff6ff 100%);
}

.sp-holiday-day-label {
    position: absolute;
    top: 7px;
    right: 7px;
    left: 7px;
    z-index: 12;
    padding: 7px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    background: rgba(255,255,255,.9);
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 650px) {
    .sp-holiday-notice {
        padding: 16px;
        border-radius: 17px;
    }

    .sp-holiday-notice::after {
        display: none;
    }

    .sp-holiday-notice strong {
        padding-right: 0;
    }
}
.sp-dashboard-learning-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sp-dashboard-learning-grid>div,.sp-dashboard-learning-grid>a{display:flex;min-height:125px;padding:17px;border-radius:17px;background:#f8fafc;color:inherit!important;text-decoration:none!important;flex-direction:column}.sp-dashboard-learning-grid span{font-size:23px;margin-bottom:14px}.sp-dashboard-learning-grid strong{line-height:1.3}.sp-dashboard-learning-grid small{margin-top:5px;color:#64748b}.sp-dashboard-learning-grid>a{background:#eff6ff;border:1px solid #bfdbfe}.sp-class-next-lesson{margin-top:16px;padding:15px;border-radius:15px;background:#eff6ff}.sp-class-next-lesson>span{display:block;color:#64748b;font-size:13px}.sp-class-next-lesson strong{display:block;margin-top:4px}.sp-class-next-lesson p{margin:3px 0 0;color:#475569}@media(max-width:850px){.sp-dashboard-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.sp-dashboard-learning-grid{grid-template-columns:1fr}}
.sp-modern-footer-active .site-footer,.sp-modern-footer-active .elementor-location-footer,.sp-elementor-footer-active .site-footer,.sp-elementor-footer-active .elementor-location-footer{display:none!important}.sp-site-footer{margin-top:64px;padding:34px 24px;background:#17233a;color:#dbe7f7}.sp-site-footer-inner{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;max-width:1180px;margin:0 auto}.sp-site-footer-brand{display:flex;flex-direction:column;gap:4px}.sp-site-footer-brand strong{color:#fff;font-size:19px}.sp-site-footer-brand span,.sp-site-footer small{color:#94a3b8}.sp-site-footer nav{display:flex;gap:20px;flex-wrap:wrap;justify-content:flex-end}.sp-site-footer a{color:#dbeafe!important;text-decoration:none!important;font-weight:700}.sp-site-footer a:hover{color:#fff!important;text-decoration:underline!important}.sp-site-footer small{grid-column:1/-1;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}@media(max-width:700px){.sp-site-footer-inner{grid-template-columns:1fr}.sp-site-footer nav{justify-content:flex-start}.sp-site-footer small{grid-column:auto}}
.student-calendar .student-slot-google-event{background:#f1f5f9!important;color:#475569!important;border-color:#cbd5e1!important}

/* Do not place the theme's floating arrow over the shared "Нужна помощь?" block. */
#ast-scroll-top,
.ast-scroll-top-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.sp-teacher-avatar-photo,.sp-class-avatar-image,img.sp-user-avatar,.sp-student-avatar-photo{display:block!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;overflow:hidden!important;padding:0!important}

/* 2.7.2: one consistent footer on every public page. */
.sp-elementor-site-footer{display:grid;gap:20px;width:min(1240px,calc(100% - 32px));margin:24px auto;padding:32px;border-radius:24px;background:#172033;color:#fff}
.sp-elementor-site-footer-brand{display:grid;gap:4px}.sp-elementor-site-footer-brand strong{font-size:22px}.sp-elementor-site-footer-brand span,.sp-elementor-site-footer small{color:#cbd5e1}
.sp-elementor-site-footer nav{display:flex;gap:10px 22px;flex-wrap:wrap}.sp-elementor-site-footer a,.sp-elementor-site-footer button{padding:0;border:0;background:none;color:#fff;font:inherit;text-decoration:underline;cursor:pointer}

/* Hover may change colour or shadow, but interactive elements must stay in place. */
.sp-elementor-site-footer a:hover,.sp-elementor-site-footer a:focus-visible,.sp-elementor-site-footer button:hover,.sp-elementor-site-footer button:focus-visible,.sp-site-footer a:hover,.sp-site-footer a:focus-visible,.sp-home-button--primary:hover,.sp-dashboard-lesson:hover,.sp-dashboard-navigation-grid a:hover,.sp-dashboard-learning-grid a:hover,.sp-teacher-sections a:hover,.sp-teacher-student-list>a:hover,.sp-teacher-books-grid article:hover,.sp-teacher-books-grid>a:hover,.sp-exercise-template-grid>:where(button,a):hover,:where(.sp-teacher-primary,.sp-auth-submit,.sp-register-submit,.sp-prices-button--primary):hover{transform:none!important;translate:none!important}
@media(max-width:650px){.sp-elementor-site-footer{width:calc(100% - 20px)}.sp-elementor-site-footer nav{display:grid}}
