
:root {
    --black: #000000;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --yellow: #FDE047;
    --yellow-bg: #FEF9C3;
    --yellow-border: #FACC15;
    --blue: #2563EB;
    --blue-bright: #3B82F6;
    --blue-bg: #EFF6FF;
    --blue-border: #93C5FD;
    --wa: #25D366;
    --wa-hover: #1DA851;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.45;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-anchor: none;
}
body.lightbox-open {
    overflow: hidden;
}
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}
.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.logo-block {
    display: flex;
    align-items: center;
}
.logo-img-wide {
    height: 40px;
    width: auto;
    display: block;
}
.progress-wrap {
    height: 4px;
    background: var(--gray-100);
    position: sticky;
    top: 69px;
    z-index: 99;
}
.progress-bar {
    height: 100%;
    background: var(--blue);
    transition: width 0.35s ease;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}
.screen {
    display: none;
    padding: 48px 0 100px;
    min-height: calc(100vh - 80px);
}
.screen.active { display: block; }
.section-tag {
    display: inline-block;
    background: var(--gray-900);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.screen-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.screen-lead {
    font-size: 19px;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 32px;
}
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.mini-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-top: 36px;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid var(--yellow);
}
p {
    margin-bottom: 16px;
    color: var(--gray-900);
    font-size: 17px;
}
ul, ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
li {
    margin-bottom: 8px;
    color: var(--gray-900);
}
.author-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 20px 20px 24px;
    background: var(--gray-50);
    border-radius: 16px;
    margin: 20px 0 32px;
    border: 1px solid var(--gray-200);
    position: relative;
}
.author-photo-btn {
    background: none;
    border: none;
    padding: 0;
    margin: -24px 6px -24px -20px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s;
    position: relative;
    z-index: 2;
}
.author-photo-btn:hover {
    transform: scale(1.03) rotate(-2deg);
}
.author-photo-btn:active {
    transform: scale(0.98);
}
.author-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--yellow);
    object-fit: cover;
    object-position: center 15%;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    background: var(--white);
}
.author-info {
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.author-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}
.author-role {
    font-size: 14px;
    color: var(--gray-700);
    margin-top: 4px;
}
.insight-box {
    background: var(--yellow-bg);
    border: 2px solid var(--yellow-border);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 32px 0;
    position: relative;
}
.insight-label {
    display: inline-block;
    background: var(--black);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.insight-box p {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
}
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0 32px;
}
.criterion-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px 20px 18px;
    position: relative;
    transition: border-color 0.15s, transform 0.15s;
}
.criterion-card:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}
.criterion-num {
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--black);
    color: var(--yellow);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    z-index: 1;
}
.criterion-icon {
    font-size: 32px;
    line-height: 1;
    margin-top: 4px;
    margin-bottom: 12px;
}
.criterion-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.criterion-text {
    font-size: 16px;
    color: var(--gray-900);
    line-height: 1.35;
}
.criterion-text strong {
    font-weight: 700;
    color: var(--gray-900);
}
.rating-block {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 14px;
    margin: 20px 0 16px;
}
.rating-score {
    display: flex;
    align-items: center;
    gap: 16px;
}
.rating-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -0.02em;
}
.rating-stars {
    font-size: 18px;
    color: var(--yellow);
    letter-spacing: 2px;
    line-height: 1;
}
.rating-count {
    font-size: 14px;
    color: var(--gray-300);
    margin-top: 4px;
    line-height: 1.3;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 32px;
}
.review-thumb {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-900);
    border: 1px solid var(--gray-200);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: block;
    width: 100%;
}
.review-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--black);
    box-shadow: var(--shadow-md);
}
.review-thumb:active {
    transform: scale(0.98);
}
.review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.review-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 16px 8px 8px;
    text-align: center;
}
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
}
.lightbox.is-open {
    display: flex;
    animation: lb-fade-in 0.2s ease;
}
@keyframes lb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 60px);
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: lb-zoom-in 0.25s ease;
}
@keyframes lb-zoom-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-family: inherit;
    padding: 0;
    padding-bottom: 4px;
    transition: background 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-close:active {
    background: rgba(255, 255, 255, 0.4);
}
.table-hint {
    font-size: 14px;
    color: var(--gray-700);
    text-align: center;
    padding: 10px 12px;
    background: var(--blue-bg);
    border-radius: 8px;
    margin: 12px 0 4px !important;
    display: none;
    line-height: 1.35;
    border: 1px solid var(--blue-border);
}
.table-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    margin: 20px -8px 24px;
    padding: 0 8px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
    isolation: isolate;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 14px;
    background: var(--white);
    min-width: 560px;
    table-layout: fixed;
}
.data-table col,
.data-table thead th,
.data-table tbody th,
.data-table tbody td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.data-table thead th {
    background: var(--gray-900);
    color: var(--white);
    text-align: left;
    padding: 12px 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--black);
    vertical-align: top;
    line-height: 1.2;
    width: 22%;
}
.data-table thead th.th-crit {
    background: var(--gray-800);
    width: 27%;
    min-width: 110px;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 4px 0 6px -3px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}
.data-table tbody th {
    text-align: left;
    padding: 12px 12px;
    background: var(--gray-50);
    font-weight: 700;
    color: var(--gray-900);
    font-size: 14px;
    border-top: 1px solid var(--gray-200);
    vertical-align: top;
    line-height: 1.25;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 4px 0 6px -3px rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    width: 27%;
    min-width: 110px;
}
.data-table td {
    padding: 12px 12px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-900);
    vertical-align: top;
    line-height: 1.3;
    font-size: 14px;
    background: var(--white);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.data-table .footnote-row td {
    text-align: center;
    background: var(--yellow-bg);
    padding: 10px 12px;
    font-style: italic;
    color: var(--gray-800);
    font-size: 13px;
    border-top: 1px solid var(--yellow-border);
    position: static;
    box-shadow: none;
}
.data-table .footnote-row td em { font-style: italic; }
/* Строка "Рейтинги вузов" — th объединён rowspan=2, у неё сдвинут vertical-align центрально */
.data-table tbody tr:has(> th[rowspan="2"]) th {
    vertical-align: middle;
}
.check-list {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 20px;
}
.check-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 17px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.guarantee-block {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 28px 26px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.guarantee-block::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}
.guarantee-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    position: relative;
}
.guarantee-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    position: relative;
}
.guarantee-text {
    font-size: 17px;
    line-height: 1.4;
    color: var(--gray-100);
    margin: 0 0 14px;
    position: relative;
}
.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
    position: relative;
}
.guarantee-list li {
    padding-left: 28px;
    position: relative;
    color: var(--gray-100);
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 10px;
}
.guarantee-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}
.guarantee-list li strong {
    color: var(--yellow);
    font-weight: 700;
}
.guarantee-text strong { color: var(--yellow); font-weight: 700; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, box-shadow 0.15s;
    font-family: inherit;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-height: 48px;
    position: relative;
    z-index: 1;
}
.btn-primary {
    background: var(--black);
    color: var(--yellow);
}
.btn-primary:hover {
    background: var(--gray-800);
    box-shadow: var(--shadow-md);
}
.btn-primary:active {
    background: var(--gray-800);
    transform: scale(0.98);
}
.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--gray-300);
    font-size: 14px;
    padding: 10px 18px;
    min-height: 42px;
}
.btn-secondary:hover {
    border-color: var(--gray-700);
    background: var(--gray-50);
}
.btn-secondary:active {
    background: var(--gray-100);
}
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    min-height: 80px;
}
.nav-btn-back-slot,
.nav-btn-next-slot {
    display: flex;
    align-items: center;
}
.nav-btn-back-slot { flex: 0 0 auto; }
.nav-btn-next-slot { flex: 0 0 auto; margin-left: auto; }
.btn-appear {
    animation: appear 0.25s ease both;
}
@keyframes appear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.lead-form {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}
.field { margin-bottom: 16px; }
.field-label {
    display: block;
    font-size: 13px;
    color: var(--gray-800);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.input:focus {
    outline: none;
    border-color: var(--black);
}
.input::placeholder { color: var(--gray-400); }
.btn-whatsapp {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    background: var(--gray-400);
    border: none;
    border-radius: 12px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
    margin-top: 6px;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}
.btn-whatsapp:not(:disabled) {
    background: var(--wa);
    cursor: pointer;
}
.btn-whatsapp:not(:disabled):hover {
    background: var(--wa-hover);
    box-shadow: var(--shadow-md);
}
.btn-whatsapp:not(:disabled):active {
    background: var(--wa-hover);
    transform: scale(0.98);
}
.form-note {
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    margin: 14px 0 0;
    line-height: 1.45;
}
.site-footer {
    padding: 24px 0 32px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}
.site-footer p {
    color: var(--gray-500);
    font-size: 13px;
    margin: 0;
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header-inner { padding: 10px 20px; }
    .logo-img-wide { height: 32px; }
    .criteria-grid { grid-template-columns: 1fr; gap: 20px 12px; }
    .progress-wrap { top: 53px; }
    .table-hint { display: block; }
}
@media (max-width: 640px) {
    .screen { padding: 32px 0 80px; }
    .screen-title { font-size: 30px; }
    .screen-lead { font-size: 17px; }
    .section-title { font-size: 23px; }
    .mini-heading { font-size: 20px; margin-top: 28px; margin-bottom: 20px; }
    .guarantee-title { font-size: 21px; }
    .guarantee-block { padding: 24px 22px; }
    .author-block {
        gap: 12px;
        padding: 18px 18px 18px 22px;
    }
    .author-photo {
        width: 118px;
        height: 118px;
        border-width: 3px;
    }
    .author-photo-btn {
        margin: -22px 4px -22px -18px;
    }
    .author-name { font-size: 18px; }
    .btn { padding: 12px 20px; font-size: 15px; }
    .btn-secondary { padding: 9px 14px; font-size: 13px; }
    .reviews-grid { gap: 8px; }
    .rating-value { font-size: 36px; }
    .form-cta { font-size: 16px; padding: 14px 16px; }
    .modal-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
*:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 4px;
}
::selection {
    background: var(--yellow);
    color: var(--black);
}
.form-cta {
    background: var(--yellow-bg);
    border: 2px solid var(--yellow-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0 8px;
    font-size: 17px;
    line-height: 1.4;
    color: var(--gray-900);
}
.form-cta strong { font-weight: 700; }

/* Модалка успеха */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
}
.modal.is-open {
    display: flex;
    animation: lb-fade-in 0.2s ease;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}
.modal-panel {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 26px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.28);
    animation: lb-zoom-in 0.25s ease;
}
.modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--wa);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.modal-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.modal-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--gray-700);
    margin: 0 0 22px;
}
.modal-btn {
    width: 100%;
    min-height: 48px;
}
body.modal-open {
    overflow: hidden;
}
