/* Основные стили для всего сайта */
:root {
    --neon-purple: #8a2be2;
    --neon-purple-light: #9d4edd;
    --neon-purple-dark: #6a0dad;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --white: #ffffff;
    --font-main: 'Arial', sans-serif;

    /* ─────────────── Отступы ─────────────── */
    --space-4: 16px;
    --space-5: 24px;

    /* ─────────────── Акцент (кнопка «Вверх», градиенты) ─────────────── */
    --gradient-accent: linear-gradient(135deg, var(--neon-purple), var(--neon-purple-light));
    --color-accent-hover: var(--neon-purple-light);
    --shadow-accent: 0 4px 15px rgba(138, 43, 226, 0.4);

    /* ─────────────── Анимации ─────────────── */
    --dur: 0.3s;
    --ease: ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-works {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-neon {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--neon-purple);
    color: var(--white);
    border: 2px solid var(--neon-purple);
}

.btn-primary:hover {
    background: var(--neon-purple-light);
    border-color: var(--neon-purple-light);
    transform: translateY(-2px);
}

/* Заголовки */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* Секции */
.section {
    padding: 80px 0;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px var(--neon-purple); }
    50% { box-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.glow {
    animation: glow 2s infinite;
}

/* Header */
.header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.header-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('../assets/images/header-bg.jpg') center/cover;
    z-index: -1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 10;
}

.header-content-additional {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 20px;
    z-index: 10;
}

.header-content-additional > .logo {
    justify-self: start;
}

.header-content-additional > .main-nav {
    justify-self: center;
}

.header-content-additional > div:last-child {
    justify-self: end;
}

.logo h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 5px;
}

.logo h1 a {
    color: var(--white);
    text-decoration: none;
}

.logo p {
    color: var(--neon-purple);
    font-size: 0.9rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--neon-purple);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-purple);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.8rem;
    color: var(--neon-purple);
    text-transform: capitalize;
}

.btn-call {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--neon-purple);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-call:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.header-hero {
    text-align: center;
    z-index: 5;
    position: relative;
}

.header-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.header-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Карусели */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--white);
    border: 2px solid var(--neon-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

.carousel-btn.prev {
    left: 0px;
}

.carousel-btn.next {
    right: 0px;
}

.carousel-reviews-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--white);
    border: 2px solid var(--neon-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-reviews-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

.carousel-reviews-btn.prev {
    left: 0px;
}

.carousel-reviews-btn.next {
    right: 0px;
}

/* Карточки курсов */
.course-card {
    position: relative;
    min-width: 300px;
    height: 450px;
    margin: 0 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.course-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.course-description {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* О школе */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Причины выбора */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.reason-card {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.reason-icon {
    font-size: 3rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.reason-card p {
    color: var(--light-gray);
}

/* Форма захвата */
.form-container-capture {
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
}

.form-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form input {
    width: 100%;
    padding: 15px;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.lead-form input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input {
    width: auto;
}

.privacy-link {
    color: var(--neon-purple);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--neon-purple);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--neon-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Стили для карточек курсов */
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 0.9rem;
}

.course-price {
    color: #f1c40f;
    font-weight: bold;
    font-size: 1.1rem;
}

.course-teacher {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.course-teacher i {
    margin-right: 5px;
}

.course-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.course-stats i {
    margin-right: 5px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Индикаторы загрузки */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--light-gray);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-gray);
}

.empty-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.error-message {
    color: #e74c3c;
}

/* Звезды рейтинга */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #f1c40f;
    font-size: 0.8rem;
}

.review-rating {
    margin-top: 8px;
}

/* Затемнение фона */
.work-overlay .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.8);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.work-overlay .btn-play:hover {
    background: var(--neon-purple);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Карусель */
.courses-carousel,
.teachers-carousel,
.reviews-carousel,
.works-carousel {
    position: relative;
    overflow: hidden;
}

.courses-container,
.teachers-container,
.reviews-container,
.works-grid {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 50px;
}

.reviews-container {
    margin: 0 50px;
}

.teachers-container {
    margin: 0 100px;
}

.teacher-card {
    cursor:pointer;
}

.course-card,
.teacher-card {
    flex-shrink: 0;
    width: calc(20% - 20px);
    margin: 0 10px;
}

.review-card {
    flex-shrink: 0;
    width: 30%;
    margin: 0 20px;
}

@media (max-width: 992px) {
    .course-card,
    .teacher-card,
    .review-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .course-card,
    .teacher-card,
    .review-card {
        width: calc(100% - 20px);
    }
}

.review-video video {
	width: 100%;
}

.teacher-image img {
	width: 100%;
}

/* Иконка MAX */
.fa-max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.fa-max svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* Для социальных ссылок */
.social-links a .fa-max {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-links a .fa-max svg {
    fill: #ffffff;
    transition: none;
}

/* Запрещаем изменение цвета при наведении */
.social-links a:hover .fa-max svg {
    fill: #ffffff !important;
}

/* ------------------------- */

.work-card {
    flex-shrink: 0;
    width: 30%;
    margin: 0 20px;
}

.work-card video {
    width: 100%;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
}

.nav-junior-sticker-wrap {
    position: relative;
}
.main-nav a.nav-junior-sticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #ffd93d;
    color: #1a1a1a !important;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px 14px 4px 14px;
    transform: rotate(-4deg);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.4), 0 0 15px rgba(255, 217, 61, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.main-nav a.nav-junior-sticker:hover {
    transform: rotate(2deg) scale(1.08);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.4), 0 0 25px rgba(255, 217, 61, 0.9);
    color: #1a1a1a !important;
}
.sticker-emoji {
    font-size: 1rem;
    line-height: 1;
}

/* ─────────────── Кнопка «Вверх» ─────────────── */
.to-top {
    position: fixed;
    right: var(--space-5);
    bottom: var(--space-5);
    z-index: 60;

    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease),
                background var(--dur) var(--ease);
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}
.to-top:active { transform: translateY(0); }

@media (max-width: 700px) {
    .to-top {
        right: var(--space-4);
        bottom: var(--space-4);
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .to-top { transition: opacity var(--dur) var(--ease); }
    .to-top.is-visible { transform: none; }
    html { scroll-behavior: auto; }
}

.footer-section p {
    margin-top: 15px;
}

/* ─────────────── Новости (главная) ─────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.news-overlay h3 {
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-lead {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-content .btn-small {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-overlay h3 {
        font-size: 1rem;
    }
}

/* ============================================================================
   AUTOFILL FIX — глобальное переопределение браузерной подсветки
   автозаполнения (Chrome/Edge/Blink + Firefox).

   Проблема: браузеры накладывают свой фон (жёлто-голубой #e8f3ff в Chrome)
   и цвет текста на input:-webkit-autofill, игнорируя background из CSS.

   Решение:
     - box-shadow с inset «перекрывает» фон браузера (внутренняя тень
       рисуется поверх его background);
     - -webkit-text-fill-color принудительно задаёт цвет текста;
     - transition с огромной задержкой гасит мигание в старых версиях;
     - для Firefox — правило без префикса :autofill.

   Светлая/тёмная тема подхватывается автоматически через var(--black) /
   var(--white). Если в проекте появится светлая тема публичной части —
   достаточно переопределить эти переменные.
   ============================================================================ */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
    box-shadow: 0 0 0 1000px var(--black) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* :focus — объединяем inset-тень с внешним свечением из .lead-form input:focus,
   иначе inset перекрывает внешний box-shadow и подсветка фокуса пропадает. */
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
    box-shadow:
        0 0 0 1000px var(--black) inset,
        0 0 10px rgba(138, 43, 226, 0.3);
    transition: background-color 5000s ease-in-out 0s;
}

/* Firefox */
input:autofill {
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
    box-shadow: 0 0 0 1000px var(--black) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Страница оплаты счёта */
.pay-page {
    min-height: calc(100vh - 200px);
    padding: 120px 20px 60px;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.pay-container {
    max-width: 720px;
    margin: 0 auto;
}
.pay-error,
.pay-summary {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}
.pay-error { text-align: center; }
.pay-error i { font-size: 3rem; color: #e74c3c; margin-bottom: 16px; display: block; }
.pay-error h1 { margin: 0 0 12px; font-size: 1.4rem; }
.pay-error p { color: rgba(255,255,255,0.7); margin: 8px 0; }

.pay-summary__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pay-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.pay-summary__row span { color: rgba(255,255,255,0.6); }
.pay-summary__row strong { color: #fff; font-weight: 600; }

.pay-form-wrap { margin-top: 8px; }

@media (max-width: 640px) {
    .pay-page { padding: 90px 12px 40px; }
    .pay-summary, .pay-error { padding: 20px; }
}