/* Cookie banner: lifted above the bottom edge on mobile */
@media screen and (max-width:980px){
  .t886{bottom:96px !important;left:0 !important;right:0 !important;}
  .t886__wrapper{width:calc(100% - 20px) !important;margin:0 10px !important;border-radius:12px !important;padding:12px 16px !important;}
}
/* Section headings of standard blocks (T859 «Форматы обучения»): 38/34/30/26/22 at the breakpoint widths and growing with the window like the Zero block headings (upscale=window) */
.t859 .t-section__title{font-size:3.1667vw !important;line-height:1.2 !important;}
@media screen and (max-width:1199px){.t859 .t-section__title{font-size:3.5417vw !important;}}
@media screen and (max-width:959px){.t859 .t-section__title{font-size:4.6875vw !important;}}
@media screen and (max-width:639px){.t859 .t-section__title{font-size:5.4167vw !important;}}
@media screen and (max-width:479px){.t859 .t-section__title{font-size:6.875vw !important;}}
/* Footer menu: bold on hover (1794780000000000001 = «Родителям»; its id also exists in tariff blocks, so only the link is targeted) */
.tn-elem[data-elem-id="1772022274939000007"] .tn-atom:hover,
.tn-elem[data-elem-id="1494854124396"] .tn-atom:hover,
.tn-elem[data-elem-id="1772022164459000003"] .tn-atom:hover,
.tn-elem[data-elem-id="1772022207337000005"] .tn-atom:hover,
.tn-elem[data-elem-id="1772022236428000006"] .tn-atom:hover,
.tn-elem[data-elem-id="1794780000000000001"] a.tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000003"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000004"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000005"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000006"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000007"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000008"] .tn-atom:hover,
.tn-elem[data-elem-id="1794710000000000009"] .tn-atom:hover{font-weight:700 !important;}
/* Subject hero signup form: name + class side by side on mobile */
@media screen and (max-width:639px){
  .tn-elem[data-elem-id="1794800000000000003"] .t-form__inputsbox_inrow{display:flex !important;flex-wrap:wrap !important;column-gap:10px !important;}
  .tn-elem[data-elem-id="1794800000000000003"] .t-input-group_nm,
  .tn-elem[data-elem-id="1794800000000000003"] .t-input-group_sb{width:calc(50% - 5px) !important;flex:0 0 calc(50% - 5px) !important;}
  .tn-elem[data-elem-id="1794800000000000003"] .t-checkbox__control{font-size:13px !important;}
}
/* Subject cards («ПРЕДМЕТЫ»): blue outline (#93d2ff, as in the section above) on hover */
.tn-elem[data-elem-id="1769110746033000004"] .tn-atom,
.tn-elem[data-elem-id="1769111010327000024"] .tn-atom,
.tn-elem[data-elem-id="1769111041803000029"] .tn-atom,
.tn-elem[data-elem-id="1769111064796000035"] .tn-atom,
.tn-elem[data-elem-id="1769111083865000040"] .tn-atom,
.tn-elem[data-elem-id="1769111176184000046"] .tn-atom{transition:box-shadow .2s ease-in-out !important;}
.tn-elem[data-elem-id="1769110746033000004"] .tn-atom:hover,
.tn-elem[data-elem-id="1769111010327000024"] .tn-atom:hover,
.tn-elem[data-elem-id="1769111041803000029"] .tn-atom:hover,
.tn-elem[data-elem-id="1769111064796000035"] .tn-atom:hover,
.tn-elem[data-elem-id="1769111083865000040"] .tn-atom:hover,
.tn-elem[data-elem-id="1769111176184000046"] .tn-atom:hover{box-shadow:inset 0 0 0 3px #93d2ff !important;}
/* Card labels and icons let the hover and click pass through to the card */
.tn-elem[data-elem-id="1769110746033000005"],
.tn-elem[data-elem-id="1769111010327000025"],
.tn-elem[data-elem-id="1769111041803000030"],
.tn-elem[data-elem-id="1769111064796000036"],
.tn-elem[data-elem-id="1769111083865000041"],
.tn-elem[data-elem-id="1769111176184000047"],
.tn-elem[data-elem-id="1769111568708000061"],
.tn-elem[data-elem-id="1769111618819000063"],
.tn-elem[data-elem-id="1769111064796000037"],
.tn-elem[data-elem-id="1769111083865000042"],
.tn-elem[data-elem-id="1771592867098000001"],
.tn-elem[data-elem-id="1769111176184000048"]{pointer-events:none !important;}
/* Desktop menu (T1272): logo, items and icons always in one row; gaps shrink with the window width */
@media screen and (min-width:981px){
  .t1272 .t-menu-base__maincontainer{flex-wrap:nowrap !important;align-items:center !important;column-gap:clamp(16px,3vw - 10px,50px) !important;}
  .t1272 .t-menu-base__list{flex-wrap:nowrap !important;column-gap:clamp(14px,3vw - 10px,34px) !important;}
  .t1272 .t-menu-base__list-item,.t1272 .t-menu__link-item{white-space:nowrap !important;}
  .t1272 .t-menu-base__logowrapper,.t1272 .t-menu-base__rightwrapper{flex-shrink:0 !important;}
  .t1272 .t-menu-base__rightwrapper,.t1272 .t-menu-base__additionalwrapper{flex-wrap:nowrap !important;align-items:center !important;}
}
/* Autolayout Zero blocks: scale content with the window like the other Zero blocks.
   Tilda already scales their padding and gaps by --zoom, so zoom only the top-level elements and groups; height follows the content. */
.t396__artboard[data-artboard-flexdirection][data-artboard-upscale="window"]{height:auto !important;}
.t396__artboard[data-artboard-flexdirection][data-artboard-upscale="window"]>.t396__elem,
.t396__artboard[data-artboard-flexdirection][data-artboard-upscale="window"]>.t396__group{zoom:var(--zoom,1);}

/* ===== Style guide v1 (САМ РЕШУ) ===== */
/* Fonts: one family everywhere, forms included */
.t396 .t-input,.t396 .t-select,.t396 .t-submit,.t396 .t-input-title,.t396 .t-checkbox__control,.t396 .t-radio__control,.t396 .t-input-error,.t396 .t-form__errorbox-text,.t396 .t-form__successbox{font-family:'Ruda',Arial,sans-serif !important;}
/* Main CTA buttons on light backgrounds (tariffs, comparison, teachers, «Запишись на пробное», all Zero forms):
   black, lowercase, bold; hover = violet #9371eb with black text */
.tn-elem[data-elem-id="1794780000000000122"] .tn-atom,
.tn-elem[data-elem-id="1794780000000000222"] .tn-atom,
.tn-elem[data-elem-id="1795200000000000210"] .tn-atom,
.tn-elem[data-elem-id="1794770004000000060"] .tn-atom,
.tn-elem[data-elem-id="1772190635500000001"] .tn-atom,
.t396 .t-submit{background-color:#000000 !important;color:#ffffff !important;border-color:#000000 !important;text-transform:lowercase !important;font-weight:700 !important;transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out !important;}
.tn-elem[data-elem-id="1794780000000000122"] .tn-atom:hover,
.tn-elem[data-elem-id="1794780000000000222"] .tn-atom:hover,
.tn-elem[data-elem-id="1795200000000000210"] .tn-atom:hover,
.tn-elem[data-elem-id="1794770004000000060"] .tn-atom:hover,
.tn-elem[data-elem-id="1772190635500000001"] .tn-atom:hover,
.t396 .t-submit:hover{background-color:#9371eb !important;border-color:#9371eb !important;color:#000000 !important;}
.tn-elem[data-elem-id="1794780000000000122"] .tn-atom *,
.tn-elem[data-elem-id="1794780000000000222"] .tn-atom *,
.tn-elem[data-elem-id="1795200000000000210"] .tn-atom *,
.tn-elem[data-elem-id="1794770004000000060"] .tn-atom *,
.tn-elem[data-elem-id="1772190635500000001"] .tn-atom *,
.tn-elem[data-elem-id="1794790000000000203"] .tn-atom *,
.tn-elem[data-elem-id="1772022042217000001"] .tn-atom *,
.t396 .t-submit *{color:inherit !important;}
/* Group-lesson button sits on the black price card: lime by the «on black = lime» rule */
.tn-elem[data-elem-id="1794790000000000203"] .tn-atom{background-color:#d3ff1c !important;color:#000000 !important;border-color:#d3ff1c !important;text-transform:lowercase !important;font-weight:700 !important;transition:background-color .2s ease-in-out,color .2s ease-in-out !important;}
.tn-elem[data-elem-id="1794790000000000203"] .tn-atom:hover{background-color:#9371eb !important;border-color:#9371eb !important;color:#000000 !important;}
/* Footer (black card): sign-up button white, Telegram lime; both 240x44; hover = violet with black text */
.tn-elem[data-elem-id="1772022042217000001"] .tn-atom{background-color:#ffffff !important;color:#000000 !important;text-transform:lowercase !important;font-weight:700 !important;transition:background-color .2s ease-in-out,color .2s ease-in-out !important;}
.tn-elem[data-elem-id="1772022042217000001"] .tn-atom:hover,
.tn-elem[data-elem-id="1772022562535000017"] .tn-atom:hover{background-color:#9371eb !important;color:#000000 !important;}
.tn-elem[data-elem-id="1772022562535000017"] .tn-atom{transition:background-color .2s ease-in-out !important;}
/* Palette clean-up: second pink #ed2ad7 -> #ee00a1, dark blue #3e08cf -> #489dff (inline text styles) */
.t396 [style*="background-color: rgb(237, 42, 215)"]{background-color:#ee00a1 !important;}
.t396 [style^="color: rgb(237, 42, 215)"],.t396 [style*="; color: rgb(237, 42, 215)"]{color:#ee00a1 !important;}
.t396 [style*="color:#3e08cf"],.t396 [style^="color: rgb(62, 8, 207)"],.t396 [style*="; color: rgb(62, 8, 207)"]{color:#489dff !important;}
/* Form error text: Ruda 14, regular, pink */
.t396 .t-input-error,.t396 .t-form__errorbox-text{color:#ee00a1 !important;font-size:14px !important;font-weight:400 !important;}
/* Forms: fields with 2px lilac border; all hints and helper words grey #8c8496 (what the visitor types stays black) */
.t396 input.t-input:not(.t-input-phonemask):not([type="hidden"]),.t396 .t-select,.t396 .t-input-phonemask__wrap{border-width:2px !important;border-style:solid !important;border-color:#c880ea !important;}
.t396 .t-input::placeholder,.t396 .t-input-phonemask::placeholder{color:#8c8496 !important;opacity:1 !important;}
.t396 .t-select,.t396 .t-input-phonemask__select-code,.t396 .t-input-title,.t396 .t-input-subtitle,.t396 .t-checkbox__control,.t396 .t-checkbox__labeltext{color:#8c8496 !important;}
.t396 .t-input-phonemask__select-triangle{border-top-color:#8c8496 !important;}
.t396 .t-checkbox__control a,.t396 .t-checkbox__labeltext a{color:#8c8496 !important;text-decoration:underline !important;text-underline-offset:2px;}
.t396 .t-checkbox__indicator{border-color:#8c8496 !important;border-width:2px !important;}
.t396 .t-checkbox:checked+.t-checkbox__indicator{border-color:#8c8496 !important;}
.t396 .t-checkbox__indicator:after{border-color:#000000 !important;}

/* ===== Menu v3 (approved) ===== */
/* Mobile menu (T2091): open panel buttons full width, 46px; first reads «записаться на пробное»; Telegram with a paper-plane icon */
[data-record-type="2091"] .t1362__additional .t-menu-base__buttons{display:flex !important;flex-direction:column !important;gap:10px !important;width:100% !important;max-width:320px;margin:0 auto !important;}
[data-record-type="2091"] .t1362__additional .t-menu-base__button{width:100% !important;margin:0 !important;}
[data-record-type="2091"] .t1362__additional .t-menu-base__button .t-btn{width:100% !important;height:46px !important;justify-content:center !important;border-radius:30px !important;font-size:16px !important;font-weight:700 !important;}
[data-record-type="2091"] .t1362__additional .t-menu-base__button:first-child .t-btnflex__text{font-size:0 !important;}
[data-record-type="2091"] .t1362__additional .t-menu-base__button:first-child .t-btnflex__text:after{content:"записаться на пробное";font-size:16px;}
[data-record-type="2091"] .t1362__additional .t-menu-base__button:nth-child(2) .t-btn:before{content:"";display:inline-block;width:18px;height:18px;margin-right:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.4 3.6 2.9 10.7c-1.3.5-1.2 1.3-.2 1.6l4.7 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.9-.4l2.3-2.2 4.7 3.5c.9.5 1.5.2 1.7-.8l3.1-14.5c.3-1.3-.5-1.9-1.4-1.6ZM9.6 14.1l8.6-7.7c.4-.3-.1-.5-.6-.2L7.9 13.3' fill='%23000'/%3E%3C/svg%3E") no-repeat center/contain;}
[data-record-type="2091"] .t-menu__link-item{letter-spacing:.3px;}
/* Desktop menu (T1367): subject submenu in lowercase like the other items; sign-up button larger (48px, 17px text) */
[data-record-type="1367"] .t-menusub__link-item{text-transform:lowercase !important;}
@media screen and (min-width:981px){
  [data-record-type="1367"] .t-menu-base__button .t-btn{height:48px !important;padding:0 26px !important;font-size:17px !important;}
  [data-record-type="1367"] .t-menu-base__button .t-btn .t-btnflex__text{font-size:17px !important;}
}

/* ===== FAQ (T585), approved accordion style ===== */
/* transparent section (page background shows through), questions on white rounded plates as wide as the other sections (960 of 1200, grows with the window); black plus -> pink cross when open; hover = violet */
.r[data-record-type="585"],.r[data-record-type="585"] .t585{background-color:transparent !important;}
.t585 .t585__accordion{max-width:960px;margin:0 auto 10px !important;background:#ffffff;border-radius:24px;padding:0 24px;box-sizing:border-box;border:0 !important;}
@media screen and (min-width:1200px){.t585 .t585__accordion{max-width:80vw;}}
@media screen and (min-width:960px) and (max-width:1199px){.t585 .t585__accordion{max-width:87.5vw;}}
.t585 .t585__wrapper,.t585 .t585__header{border:0 !important;}
.t585 .t585__trigger-button{padding-top:20px !important;padding-bottom:20px !important;}
.t585 .t585__title{font-size:20px !important;font-weight:700 !important;line-height:1.3 !important;color:#000000 !important;}
.t585 .t585__text{font-size:16px !important;line-height:1.5 !important;color:#000000 !important;}
.t585 .t585__textwrapper{padding-bottom:22px !important;}
.t585 .t585__circle{background-color:#000000 !important;}
.t585 .t585__lines svg *{stroke:#ffffff !important;}
.t585 .t585__icon-hover .t585__circle{background-color:#9371eb !important;}
.t585 .t585__icon-hover .t585__lines svg *{stroke:#000000 !important;}
.t585 .t585__opened .t585__circle{background-color:#ee00a1 !important;}
.t585 .t585__opened .t585__lines svg *{stroke:#000000 !important;}
@media screen and (max-width:639px){
  .t585 .t585__accordion{padding:0 16px;border-radius:20px;margin-bottom:8px !important;}
  .t585 .t585__title{font-size:17px !important;}
  .t585 .t585__text{font-size:15px !important;}
  .t585 .t585__trigger-button{padding-top:16px !important;padding-bottom:16px !important;}
}

/* ===== Mobile v2 (approved phone mockups) ===== */
/* Mobile header (T2091): no black bar — logo on the left in black, only the burger in a black circle on the right; the logo fades out once the page is scrolled */
@media screen and (max-width:980px){
  [data-record-type="2091"] .t-menu-popover__maincontainer{background:transparent !important;box-shadow:none !important;}
  [data-record-type="2091"] .t-menu-popover__leftwrapper{display:none !important;}
  [data-record-type="2091"] .t-menu-popover__mainwrapper{justify-content:space-between !important;}
  [data-record-type="2091"] .t-menu-popover__centerwrapper{position:static !important;transform:none !important;left:auto !important;flex:1 1 auto !important;justify-content:flex-start !important;margin:0 !important;}
  [data-record-type="2091"] .t-menu-base__logowrapper{justify-content:flex-start !important;text-align:left !important;}
  [data-record-type="2091"] .t-menu-base__logo,[data-record-type="2091"] .t-menu-base__logo a{color:#000000 !important;font-weight:900 !important;transition:opacity .2s ease;}
  body.sr-scrolled [data-record-type="2091"] .t-menu-base__logo{opacity:0;pointer-events:none;}
  [data-record-type="2091"] .t-menu-burger{width:44px !important;height:44px !important;border-radius:50% !important;background:#000000 !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:0 !important;}
  [data-record-type="2091"] .t-menu-burger__icon{width:22px !important;height:16px !important;}
}
/* Home hero on phones: heading line «с нуля до сотки» on the lime marker, first line without the white plate */
@media screen and (max-width:639px){
  #rec1787183291 .tn-elem[data-elem-id="1470210011265"] .tn-atom span{background-color:transparent !important;}
  #rec1787183291 .tn-elem[data-elem-id="1470210011265"] .tn-atom span:last-of-type{background-color:#d3ff1c !important;padding:0 4px;-webkit-box-decoration-break:clone;box-decoration-break:clone;}
}
/* Articles and «Политика» (T1152 text pages) on phones: the site's fixed lilac grid behind, the text on a white sticker card */
@media screen and (max-width:479px){
  body:has(.t1152){background:transparent !important;}
  body:has(.t1152)::before{content:"";position:fixed;inset:0;z-index:-1;background-color:#efd1ff;background-image:linear-gradient(#ffffff 2px,transparent 2px),linear-gradient(90deg,#ffffff 2px,transparent 2px);background-size:66px 66px;background-position:center top;}
  body:has(.t1152) #allrecords{background:transparent !important;}
  .t1152{padding-top:76px !important;padding-bottom:30px !important;}
  .t1152 .js-block-header .t-col{padding:0 14px !important;}
  .t1152 .js-block-header .t-title{text-align:left !important;font-weight:800 !important;text-transform:uppercase;font-size:24px !important;line-height:1.15 !important;}
  .t1152 .js-block-header .t-descr{text-align:left !important;font-size:14px !important;}
  .t1152>.t-container:not(.js-block-header)>.t-col{box-sizing:border-box;width:calc(100% - 20px) !important;margin:0 10px !important;padding:22px 16px 24px !important;background:#ffffff;border:3px solid #000000;border-radius:20px;box-shadow:4px 4px 0 #000000;}
  .t1152 .t-text{font-size:15px !important;line-height:1.55 !important;}
}
