/* Page-specific layout for /oge-po-matematike.
   Shared OGE components (benefits, format, stories, universities,
   comparison, FAQ, common typography and containers) live in /oge/oge.css. */

.oge-math-page{background:#fff;color:#101e31;font-family:Cygre,Arial,sans-serif}

/* ============================================================
   HERO — rec1855866781
   ============================================================ */
.oge-math-hero{padding-top:34px}
.oge-math-hero__stage{position:relative;width:1160px;max-width:100%;height:471px}
.oge-math-hero__copy{position:absolute;left:0;top:0;width:600px;height:430px}
.oge-math-hero__main{position:absolute;left:0;top:60px;width:600px}
.oge-math-hero__main h1{margin:0;width:600px;color:#101e31;font-size:42px;font-weight:400;line-height:1.2;text-transform:uppercase}
.oge-math-hero__main p{margin:30px 0 0;width:519px;color:#3f5064;font-size:20px;font-weight:400;line-height:1.55}
.oge-math-hero__button{position:absolute;left:0;top:319px;width:340px;height:51px;box-sizing:border-box;font-size:20px}
.oge-math-hero__desktop-art{position:absolute;left:660px;top:0;width:543px;height:471px;background:url('/oge-po-matematike/images/tild3562-3335-4936-b436-323232626462__photo.png') 0 0/106.524% auto no-repeat}
.oge-math-hero__mobile-art{display:none}

/* ============================================================
   INTRO — rec2031706561 + rec2032206631
   ============================================================ */
.oge-math-about__grid{width:1160px;height:370px;display:grid;grid-template-columns:442px 658px;gap:60px;align-items:stretch}
.oge-math-about__lead{box-sizing:border-box;height:370px;padding:20px 30px 30px;border-radius:6px;background:#eee3dd;color:#101e31;font-size:18px;line-height:1.55}
.oge-math-about__features{display:grid;grid-template-columns:repeat(2,300px);grid-auto-rows:170px;gap:40px;width:658px}
.oge-math-feature{position:relative;width:300px;box-sizing:border-box;padding:0;margin:0}
.oge-math-feature h3{position:relative;margin:0 0 16px;padding-left:32px;color:#101e31;font-size:16px;font-weight:400;line-height:1.4;text-transform:uppercase}
.oge-math-feature h3::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;background:url('/oge-po-matematike/images/tild3930-6338-4139-a631-346465396435__frame_761.svg') center/contain no-repeat}
.oge-math-feature h3::after{content:"";position:absolute;left:0;right:0;bottom:-16px;height:1px;background:#bdc8d5}
.oge-math-feature p{margin:32px 0 0;color:#3f5064;font-size:15px;font-weight:400;line-height:1.4}

/* ============================================================
   EXAM STRUCTURE — rec2032763021 + rec2032765321
   ============================================================ */
.oge-math-exam__panel{position:relative;width:1160px;height:592px}
.oge-math-exam__intro{position:absolute;left:0;top:0;width:100%;margin:0;color:#3f5064;font-size:18px;line-height:1.55}
.oge-math-exam__box{position:absolute;left:0;top:58px;width:1160px;height:534px;box-sizing:border-box;padding:30px;border-radius:4px;background:#e7eaf1 url('/oge-po-matematike/images/tild6330-3438-4334-a534-343736343263__frame_260.png') center/cover no-repeat;color:#3f5064}
.oge-math-exam__box>p{margin:0;font-size:18px;line-height:1.55}
.oge-math-exam__box>p+p{margin-top:10px}
.oge-math-exam__box b{color:#101e31;font-weight:400}
.oge-math-exam__parts{position:absolute;left:30px;right:30px;top:116px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.oge-math-exam__parts article{box-sizing:border-box;min-height:184px;padding:20px;border-radius:4px;background:#fff}
.oge-math-exam__parts header{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 16px;border-radius:4px;background:#e7eaf1}
.oge-math-exam__parts header b{font-size:18px;line-height:1.55;text-transform:uppercase}
.oge-math-exam__parts header em{color:#3f5064;font-size:16px;font-style:normal;line-height:1.4;white-space:nowrap}
.oge-math-exam__parts article p{margin:20px 0 0;color:#3f5064;font-size:16px;line-height:1.4}
.oge-math-exam__score-title{position:absolute!important;left:30px;top:320px;margin:0!important}
.oge-math-exam__grades{position:absolute;left:30px;right:30px;top:368px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.oge-math-exam__grades article{box-sizing:border-box;min-height:122px;padding:20px;border:1px solid #fff;border-radius:4px;background:#e7eaf1}
.oge-math-exam__grades b{display:inline-flex;width:max-content;box-sizing:border-box;align-items:center;padding:4px 16px;border-radius:4px;background:#fff;font-size:16px;line-height:1.4;text-transform:uppercase}
.oge-math-exam__grades p{margin:20px 0 0;color:#3f5064;font-size:16px;line-height:1.4}

/* ============================================================
   TEACHERS — rec1919668801
   ============================================================ */
.oge-math-teachers__stage{position:relative;width:1160px;height:1486px;box-sizing:border-box;border-radius:10px;background:#f3f5f8;padding-top:44px}
.oge-math-teachers__head{position:relative;width:1040px;height:96px;margin:0 auto;display:flex;align-items:flex-end;gap:30px}
.oge-math-teachers__head h2{width:340px;margin:0;color:#101e31;font-size:34px;font-weight:400;line-height:1.4;text-transform:uppercase}
.oge-math-teachers__head p{width:400px;margin:0;color:#3f5064;font-size:20px;line-height:1.55}
.oge-math-teachers__head::after{content:"";position:absolute;right:0;bottom:0;width:45px;height:45px;background:url('/oge-po-matematike/images/tild6562-3137-4463-b834-343432393836__group_7.svg') center/contain no-repeat}
.oge-math-teachers__list{width:1041px;margin:50px auto 0;display:flex;flex-direction:column;gap:21px}
.oge-math-teacher{width:1041px;height:617px;box-sizing:border-box;padding:40px;display:flex;gap:40px;align-items:flex-start;border-radius:8px;background:#fff}
.oge-math-teacher:nth-child(2){height:594px}
.oge-math-teacher__photo{display:block;width:309px;height:514px;flex:0 0 309px;border-radius:4px;object-fit:cover;object-position:center}
.oge-math-teacher--reverse .oge-math-teacher__photo{order:2}
.oge-math-teacher--reverse .oge-math-teacher__info{order:1}
.oge-math-teacher__info{width:610px;display:flex;flex-direction:column;gap:64px}
.oge-math-teacher:nth-child(2) .oge-math-teacher__info{gap:46px}
.oge-math-teacher__intro h3{margin:0;color:#101e31;font-size:30px;font-weight:400;line-height:1.55}
.oge-math-teacher__intro p{width:436px;margin:20px 0 0;color:#3f5064;font-size:20px;line-height:1.4}
.oge-math-teacher__intro span{display:inline-block;margin-top:30px;padding:6px 10px 4px;border-radius:4px;background:#e1eedd;color:#101e31;font-size:18px;line-height:1.55;text-transform:uppercase}
.oge-math-teacher__stats{display:grid;grid-template-columns:repeat(2,300px);gap:10px}
.oge-math-teacher__stats>div{box-sizing:border-box;min-height:136px;padding:20px;border-radius:10px;background-color:#e7eaf1;background-position:center center;background-size:cover;background-repeat:no-repeat}
.oge-math-teacher__stats>div:nth-child(1){background-image:url('/oge-po-matematike/images/tild3534-3462-4535-a661-363165653337__frame_26.png')}
.oge-math-teacher__stats>div:nth-child(2){background-image:url('/oge-po-matematike/images/tild3964-3639-4838-b666-353064663631__frame_26.png')}
.oge-math-teacher__stats>div:nth-child(3){background-image:url('/oge-po-matematike/images/tild3164-6462-4533-a564-626535393738__frame_26.png')}
.oge-math-teacher__stats>div:nth-child(4){background-image:url('/oge-po-matematike/images/tild3231-6361-4662-b131-643431383132__frame_26.png')}
.oge-math-teacher__stats b{display:block;color:#101e31;font-size:20px;font-weight:400;line-height:1.55;text-transform:uppercase}
.oge-math-teacher__stats p{margin:40px 0 0;color:#3f5064;font-size:16px;line-height:1.55}

/* Current published page uses the same corrected FAQ cross as /oge. */
.oge-math-page .oge-faq summary span{font-size:0;position:relative}
.oge-math-page .oge-faq summary span::before,.oge-math-page .oge-faq summary span::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:1px;background:#b5c0ce;transform:translate(-50%,-50%);transition:background-color .2s ease,transform .2s ease}
.oge-math-page .oge-faq summary span::after{transform:translate(-50%,-50%) rotate(90deg)}
.oge-math-page .oge-faq details[open] summary span{transform:none}
.oge-math-page .oge-faq details[open] summary span::after{transform:translate(-50%,-50%) rotate(0deg)}
.oge-math-page .oge-faq summary:hover span{background:#e7eaf1}
.oge-math-page .oge-faq summary:hover span::before,.oge-math-page .oge-faq summary:hover span::after{background:#537294}

/* ============================================================
   960–1199
   ============================================================ */
@media(min-width:960px) and (max-width:1199px){
 .oge-math-hero__stage{width:940px;height:479px}
 .oge-math-hero__copy{width:521px;height:430px}
 .oge-math-hero__main{width:521px}
 .oge-math-hero__main h1{width:521px}
 .oge-math-hero__main p{width:521px}
 .oge-math-hero__button{top:296px;width:384px}
 .oge-math-hero__desktop-art{left:541px;width:579px;height:479px;background-size:100% 100%}

 .oge-math-about__grid{width:940px;height:436px;grid-template-columns:350px 560px;gap:30px}
 .oge-math-about__lead{height:436px;padding:20px 24px;font-size:18px}
 .oge-math-about__features{width:560px;grid-template-columns:repeat(2,265px);grid-auto-rows:198px;gap:40px 30px}
 .oge-math-feature{width:265px}
 .oge-math-feature h3{font-size:16px}
 .oge-math-feature p{font-size:15px}

 .oge-math-exam__panel{width:940px;height:604px}
 .oge-math-exam__box{width:940px;height:546px;padding:20px}
 .oge-math-exam__parts{left:20px;right:20px;top:102px;grid-template-columns:repeat(2,1fr)}
 .oge-math-exam__parts article{padding:20px}
 .oge-math-exam__score-title{left:20px;top:320px}
 .oge-math-exam__grades{left:20px;right:20px;top:368px}

 .oge-math-teachers__stage{width:940px;height:1511px}
 .oge-math-teachers__head{width:840px;height:96px;margin-left:50px;gap:30px}
 .oge-math-teachers__head h2{width:354px}
 .oge-math-teachers__head p{width:423px}
 .oge-math-teachers__head::after{display:none}
 .oge-math-teachers__list{width:840px;margin-top:50px;gap:40px}
 .oge-math-teacher{width:840px;height:602px;padding:40px;gap:30px}
 .oge-math-teacher:nth-child(2){height:626px}
 .oge-math-teacher__photo{width:309px;height:522px;flex-basis:309px}
 .oge-math-teacher:nth-child(2) .oge-math-teacher__photo{height:549px}
 .oge-math-teacher__info{width:431px;gap:46px}
 .oge-math-teacher__intro p{width:100%;font-size:20px}
 .oge-math-teacher__stats{grid-template-columns:repeat(2,210px);gap:10px}
 .oge-math-teacher__stats>div{min-height:139px}
 .oge-math-teacher__stats p{margin-top:30px}
}

/* ============================================================
   MOBILE
   ============================================================ */
@media(max-width:959px){
 .oge-math-hero{padding-top:20px}
 .oge-math-hero__stage{width:300px;height:480px}
 .oge-math-hero__copy{width:300px;height:480px}
 .oge-math-hero__main{top:44px;width:300px}
 .oge-math-hero__main h1{width:300px;font-size:28px;line-height:1.2}
 .oge-math-hero__main p{width:300px;margin-top:16px;font-size:14px;line-height:1.55}
 .oge-math-hero__button{top:427px;width:300px;height:47px;min-height:47px;font-size:12px}
 .oge-math-hero__desktop-art{display:none}
 .oge-math-hero__mobile-art{display:block;position:absolute;left:0;top:210px;width:300px;height:197px;background:url('/oge-po-matematike/images/tild3638-6538-4464-a665-623566376334__photo.png') 0 0/100.769% auto no-repeat}

 .oge-math-about__grid{width:300px;height:567px;display:flex;flex-direction:column;gap:20px}
 .oge-math-about__lead{width:300px;height:auto;min-height:151px;padding:14px 16px 16px;font-size:12px;line-height:1.55}
 .oge-math-about__features{width:300px;display:grid;grid-template-columns:300px;grid-auto-rows:auto;gap:20px}
 .oge-math-feature{width:300px;min-height:79px}
 .oge-math-feature h3{margin-bottom:8px;padding-left:24px;font-size:12px;line-height:1.4}
 .oge-math-feature h3::before{top:0;width:14px;height:14px}
 .oge-math-feature h3::after{bottom:-8px}
 .oge-math-feature p{margin-top:16px;font-size:10px;line-height:1.4}

 .oge-math-exam__panel{width:300px;height:689px}
 .oge-math-exam__intro{font-size:12px;line-height:1.55}
 .oge-math-exam__box{top:58px;width:300px;height:631px;padding:14px;background-size:auto 100%}
 .oge-math-exam__box>p{font-size:12px;line-height:1.4}
 .oge-math-exam__box>p+p{margin-top:6px}
 .oge-math-exam__parts{left:14px;right:14px;top:74px;display:flex;flex-direction:column;gap:10px}
 .oge-math-exam__parts article{min-height:99px;padding:8px}
 .oge-math-exam__parts header{gap:8px;padding:4px 8px}
 .oge-math-exam__parts header b{font-size:12px;line-height:1.4}
 .oge-math-exam__parts header em{font-size:10px;line-height:1.4}
 .oge-math-exam__parts article p{margin-top:16px;font-size:10px;line-height:1.4}
 .oge-math-exam__score-title{left:14px;top:320px;font-size:12px!important}
 .oge-math-exam__grades{left:14px;right:14px;top:359px;display:flex;flex-direction:column;gap:10px}
 .oge-math-exam__grades article{min-height:84px;padding:8px;border-radius:4px}
 .oge-math-exam__grades b{padding:4px 8px;font-size:10px;line-height:1.4}
 .oge-math-exam__grades p{margin-top:16px;font-size:10px;line-height:1.4}

 .oge-math-teachers__stage{width:300px;height:1764px;padding-top:20px}
 .oge-math-teachers__head{width:268px;height:123px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
 .oge-math-teachers__head h2{width:268px;font-size:20px;line-height:1.4}
 .oge-math-teachers__head p{width:268px;font-size:12px;line-height:1.4}
 .oge-math-teachers__head::after{display:none}
 .oge-math-teachers__list{width:268px;margin:30px auto 0;gap:20px}
 .oge-math-teacher,.oge-math-teacher:nth-child(2){width:268px;height:776px;padding:14px;display:flex;flex-direction:column;gap:20px}
 .oge-math-teacher--reverse{flex-direction:column-reverse}
 .oge-math-teacher--reverse .oge-math-teacher__photo,.oge-math-teacher--reverse .oge-math-teacher__info{order:initial}
 .oge-math-teacher__photo,.oge-math-teacher:nth-child(2) .oge-math-teacher__photo{width:240px;height:260px;flex:0 0 260px;object-position:center center}
 .oge-math-teacher__info,.oge-math-teacher:nth-child(2) .oge-math-teacher__info{width:240px;gap:30px}
 .oge-math-teacher__intro h3{font-size:16px;line-height:1.4}
 .oge-math-teacher__intro p{width:240px;margin-top:10px;font-size:12px;line-height:1.4}
 .oge-math-teacher__intro span{margin-top:10px;padding:3px 6px 2px;font-size:10px;line-height:1.4}
 .oge-math-teacher__stats{display:flex;flex-direction:column;width:240px;gap:10px}
 .oge-math-teacher__stats>div{width:240px;min-height:69px;padding:12px;border-radius:4px}
 .oge-math-teacher__stats b{font-size:12px;line-height:1.4}
 .oge-math-teacher__stats p{margin-top:10px;font-size:10px;line-height:1.4}
}

/* ============================================================
   v5 — FAQ по опубликованной Tilda (rec1855867041/rec1855867051).

   У Tilda заголовок не центрирован целиком:
   1-я строка начинается по левому краю колонки FAQ,
   2-я строка сдвинута вправо.
   Вопросы имеют вертикальные отступы 40px и типографику 20px,
   границы #6a829e.
   ============================================================ */

.oge-math-page .oge-faq {
    padding-top: 150px;
}

.oge-math-page .oge-title--faq {
    width: 100%;
    height: 106px;
    box-sizing: border-box;

    margin: 0 0 60px;
    padding-left: 100px;

    text-align: left;
    font-size: 34px;
    line-height: 1.55;
}

.oge-math-page .oge-title--faq span {
    display: block;
    margin-top: 0;
    margin-left: 224px;
}

.oge-math-page .oge-faq details {
    border-top-color: #6a829e;
}

.oge-math-page .oge-faq details:last-child {
    border-bottom-color: #6a829e;
}

.oge-math-page .oge-faq summary {
    padding-top: 40px;
    padding-bottom: 40px;

    font-size: 20px;
    line-height: 1.55;
}

.oge-math-page .oge-faq__answer {
    font-size: 18px;
    line-height: 1.55;
}

@media (min-width: 960px) and (max-width: 1199px) {
    .oge-math-page .oge-title--faq {
        padding-left: 80px;
    }

    .oge-math-page .oge-title--faq span {
        margin-left: 247px;
    }
}

@media (max-width: 959px) {
    .oge-math-page .oge-faq {
        padding-top: 150px;
    }

    .oge-math-page .oge-title--faq {
        height: 56px;
        margin-bottom: 30px;
        padding-left: 0;

        font-size: 20px;
        line-height: 1.4;
    }

    .oge-math-page .oge-title--faq span {
        margin-left: 19px;
    }

    .oge-math-page .oge-faq summary {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 479px) {
    .oge-math-page .oge-title--faq {
        font-size: 18px;
        line-height: 1.55;
    }

    .oge-math-page .oge-faq summary {
        font-size: 12px;
    }

    .oge-math-page .oge-faq__answer {
        font-size: 11px;
    }
}
