* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mts: #E30611;
    --beeline: #FFB800;
    --megafon: #00B956;
    --t2: #1F2229;
    --yota: #00BFFF;
    --bg: #f5f6fa;
    --text: #2d2d2d;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.header__title span {
    color: var(--mts);
}

.header__nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.header__nav a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    text-align: center;
    padding: 56px 24px 40px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* Cards Grid */
.cards {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card__accent {
    height: 6px;
    width: 100%;
}

.card__body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.card__name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card__desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

.card__btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
}

.card__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Operator-specific colors */
.card--mts .card__accent,
.card--mts .card__logo,
.card--mts .card__btn { background: var(--mts); }

.card--beeline .card__accent,
.card--beeline .card__logo,
.card--beeline .card__btn { background: var(--beeline); }
.card--beeline .card__btn { color: var(--text); }

.card--megafon .card__accent,
.card--megafon .card__logo,
.card--megafon .card__btn { background: var(--megafon); }

.card--t2 .card__accent,
.card--t2 .card__logo,
.card--t2 .card__btn { background: var(--t2); }

.card--yota .card__accent,
.card--yota .card__logo,
.card--yota .card__btn { background: var(--yota); }

/* FAQ Section */
.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.faq__title {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
}

.faq__item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq__question {
    width: 100%;
    border: none;
    background: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}

.faq__question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq__icon {
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-light);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid #e8e8e8;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* Operator Page */
.page-header {
    padding: 32px 0;
    color: var(--white);
}

.page-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header__back {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.page-header__back:hover {
    color: var(--white);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.page-header p {
    font-size: 16px;
    opacity: 0.85;
    margin-top: 8px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.page-content__placeholder {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 32px;
    text-align: center;
}

.page-content__placeholder p {
    font-size: 18px;
    color: var(--text-light);
}

.page-content__placeholder .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Instruction Content */
.instruction {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    margin-bottom: 24px;
}

.instruction h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
}

.instruction h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.instruction p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.instruction ul,
.instruction ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.instruction li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.instruction strong {
    color: var(--text);
}

/* Requirements Box */
.req-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.req-box__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--text);
}

.req-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-box li {
    font-size: 15px;
    color: var(--text-light);
    padding: 4px 0 4px 24px;
    position: relative;
}

.req-box li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--megafon);
    font-weight: 700;
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 48px;
    border-bottom: 1px solid var(--bg);
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.steps li:last-child {
    border-bottom: none;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accent step numbers per operator */
.steps--mts li::before { background: var(--mts); color: var(--white); }
.steps--beeline li::before { background: var(--beeline); color: var(--text); }
.steps--megafon li::before { background: var(--megafon); color: var(--white); }
.steps--t2 li::before { background: var(--t2); color: var(--white); }
.steps--yota li::before { background: var(--yota); color: var(--white); }

/* Info Box */
.info-box {
    background: #eef6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
}

/* Warning Box */
.warn-box {
    background: #fef9ee;
    border-left: 4px solid var(--beeline);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

/* Video Section */
.video-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    margin-bottom: 24px;
}

.video-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-placeholder:hover {
    background: #2a2a2a;
}

.video-placeholder__btn {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.video-placeholder:hover .video-placeholder__btn {
    transform: scale(1.1);
    background: #fff;
}

.video-placeholder__btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #e30611;
    margin-left: 4px;
}

a.video-placeholder {
    text-decoration: none;
    flex-direction: column;
    gap: 12px;
}

a.video-placeholder::after {
    content: "Смотреть на VK Видео";
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--bg);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.video-link:hover {
    background: #e8e9ee;
}

/* Source link */
.source-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.source-link a {
    color: #3b82f6;
    text-decoration: none;
}

.source-link a:hover {
    text-decoration: underline;
}

/* Step Screenshots (inline under step) */
.steps li img {
    display: block;
    max-width: 360px;
    width: 100%;
    margin: 16px 0 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header__nav {
        display: none;
    }

    .hero h1 {
        font-size: 26px;
    }

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

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

    .faq__title {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}
