.tn-atom__video-play-link {
    display: none !important;
}

/* Igor will add his own video later. Keep the prepared portrait slot, but do
   not expose the transferred video's play control or a non-working CTA. */
#rec2769695301 [data-elem-id="1785978396378000016"] {
    display: none !important;
}

/* The transferred logo artwork contains the former initials. Keep the exact
   header geometry and replace only its visible identity with live text. */
#rec2849317501 .tn-elem[data-elem-id="1785986493652"] .tn-atom {
    position: relative;
}

#rec2849317501 .tn-elem[data-elem-id="1785986493652"] img {
    visibility: hidden;
}

#rec2849317501 .tn-elem[data-elem-id="1785986493652"] a::before {
    content: "И.В.";
    position: absolute;
    inset: 0 auto auto 0;
    color: #347f7b;
    font-family: "Vasek", cursive;
    font-size: 42px;
    line-height: 1;
}

#rec2849317501 .tn-elem[data-elem-id="1785986493652"] a::after {
    content: "Пинус Игорь Владимирович\A репетитор по математике";
    position: absolute;
    top: 3px;
    left: 80px;
    width: 205px;
    color: #1f1f1f;
    font-family: "TildaSans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.15;
    white-space: pre;
}

.t-menu-base__logo a,
.t-menu-popover__leftwrapper .t-menu-base__logo a {
    position: relative;
}

.t-menu-base__imglogo[src*="tild3062-6638-4232-a162-376364386534"],
.t-menu-popover__leftwrapper img[src*="tild6639-6231-4235-b234-353632356530"] {
    visibility: hidden;
}

.t-menu-base__logo a::before,
.t-menu-popover__leftwrapper .t-menu-base__logo a::before {
    content: "И.В.";
    position: absolute;
    left: 0;
    top: 50%;
    color: #347f7b;
    font-family: "Vasek", cursive;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
}

/* The source template had TikTok in this contact slot. Igor uses the slot for
   his location instead, so no unconfirmed social profile is advertised. */
.t-sociallinks__item_tiktok {
    display: none !important;
}

img[data-original*="/Tiktok.svg"] {
    visibility: hidden;
}

a[href="#contacts"]:has(img[data-original*="/Tiktok.svg"])::after {
    content: "📍";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 23px;
    line-height: 1;
}

/* Tilda calculates a zero intrinsic height for this remote SVG, while the
   other contact icons keep their expected 30px box. */
.tn-elem[data-elem-id="1786220101045000008"],
.tn-elem[data-elem-id="1786220101045000008"] .tn-atom,
.tn-elem[data-elem-id="1786220101045000008"] img {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
}

/* The exported Tilda textures are raster blue, while portraits and content
   photos are separate layers. Shift only those background blocks to Tiffany. */
.tn-elem[data-elem-id="1785888473192"] .tn-atom,
.tn-elem[data-elem-id="1785999777176"] .tn-atom,
.tn-elem[data-elem-id="1786064007386000002"] .tn-atom,
.tn-elem[data-elem-id="1786216021181"] .tn-atom {
    filter: hue-rotate(-37deg) saturate(1.18);
}

/* The imported review cases belong to the reference site's previous owner.
   Hide them and render Igor's own published reviews in the custom section. */
#rec2805498201,
#rec2822539801,
#rec2827303401,
#rec2808774701,
#rec2828978401,
#rec2835494801,
#rec2837700501 {
    display: none !important;
}

.igor-reviews {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 40px));
    margin: 34px auto 96px;
    color: #1f1f1f;
    font-family: "TildaSans", Arial, sans-serif;
}

.igor-reviews__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
}

.igor-reviews__summary > div,
.igor-reviews__summary > a {
    display: flex;
    min-height: 92px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    padding: 18px 24px;
    border: 1px solid rgba(52, 127, 123, 0.36);
    border-radius: 14px;
    background: #fff;
    color: #347f7b;
    text-decoration: none;
}

.igor-reviews__summary strong {
    font-size: 34px;
    line-height: 1;
}

.igor-reviews__summary span {
    margin-top: 7px;
    font-size: 14px;
}

.igor-reviews__summary > a {
    align-items: center;
    min-width: 210px;
    background: #347f7b;
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: transform .2s ease, background-color .2s ease;
}

.igor-reviews__summary > a:hover,
.igor-reviews__summary > a:focus-visible {
    background: #286965;
    transform: translateY(-2px);
}

.igor-reviews__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
}

.igor-reviews__toolbar span {
    margin-right: 3px;
    color: #5d6867;
    font-size: 14px;
}

.igor-reviews__toolbar button,
.igor-reviews__more {
    border: 1px solid #347f7b;
    border-radius: 999px;
    background: #fff;
    color: #347f7b;
    cursor: pointer;
    font: 600 14px/1.2 "TildaSans", Arial, sans-serif;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.igor-reviews__toolbar button {
    padding: 10px 15px;
}

.igor-reviews__toolbar button[aria-pressed="true"],
.igor-reviews__toolbar button:hover,
.igor-reviews__toolbar button:focus-visible,
.igor-reviews__more:hover,
.igor-reviews__more:focus-visible {
    background: #347f7b;
    color: #fff;
}

.igor-reviews__toolbar button:focus-visible,
.igor-reviews__more:focus-visible,
.igor-reviews__summary > a:focus-visible {
    outline: 3px solid rgba(52, 127, 123, 0.28);
    outline-offset: 3px;
}

.igor-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.igor-review-card {
    display: flex;
    min-height: 280px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(52, 127, 123, 0.32);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f2fbfa 100%);
    box-shadow: 0 14px 38px rgba(28, 82, 79, 0.08);
}

.igor-review-card time {
    color: #347f7b;
    font-size: 13px;
    font-weight: 600;
}

.igor-review-card p {
    flex: 1;
    margin: 18px 0 24px;
    font-size: 16px;
    line-height: 1.55;
}

.igor-review-card strong {
    color: #347f7b;
    font-size: 17px;
}

.igor-review-card span {
    margin-top: 4px;
    color: #687574;
    font-size: 13px;
    line-height: 1.35;
}

.igor-reviews__more {
    display: block;
    min-width: 250px;
    margin: 28px auto 0;
    padding: 13px 24px;
}

.igor-reviews__noscript {
    text-align: center;
}

#rec2802444601::before {
    content: "Пробное занятие · 30 минут · бесплатно";
    display: block;
    box-sizing: border-box;
    width: min(540px, calc(100% - 40px));
    margin: 0 auto 28px;
    padding: 14px 20px;
    border: 1px dashed #347f7b;
    border-radius: 999px;
    color: #347f7b;
    background: #f2fbfa;
    font-family: "TildaSans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

img[src*="/assets/tutor/igor-hero-cutout.png"] {
    object-fit: contain !important;
    object-position: center bottom !important;
}

img[src*="/assets/tutor/igor-itmo.jpg"],
img[src*="/assets/tutor/igor-event.jpg"],
img[src*="/assets/tutor/igor-online-lesson.jpg"],
img[src*="/assets/tutor/igor-podcast.jpg"] {
    object-fit: cover !important;
}

@media (max-width: 959px) {
    .igor-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .igor-reviews {
        width: min(100% - 28px, 560px);
        margin-top: 24px;
        margin-bottom: 70px;
    }

    .igor-reviews__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .igor-reviews__summary > a {
        grid-column: 1 / -1;
        min-height: 56px;
    }

    .igor-reviews__grid {
        grid-template-columns: 1fr;
    }

    .igor-review-card {
        min-height: 0;
        padding: 22px;
    }

    .igor-reviews__toolbar {
        align-items: stretch;
    }

    .igor-reviews__toolbar span {
        width: 100%;
    }

    .igor-reviews__toolbar button {
        flex: 1 1 210px;
    }

    #rec2802444601::before {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .igor-reviews *,
    .igor-reviews *::before,
    .igor-reviews *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 479px) {
    #rec2960405501 .tn-elem[data-elem-id="1785886859115"] {
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    #rec2960405501 .tn-elem[data-elem-id="1785886859115"] .tn-atom {
        font-size: 40px !important;
        line-height: 1.18 !important;
    }

    #rec2960405501 .tn-elem[data-elem-id="1785888712279000001"] {
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    #rec2960405501 .tn-elem[data-elem-id="1785888712279000001"] .tn-atom {
        white-space: normal !important;
        font-size: 39px !important;
    }

    #rec2960405501 .tn-elem[data-elem-id="1785888634067"] {
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }
}

/* Personal photo system: one approved image per slot, consistent Tiffany
   treatment, and no legacy white silhouette behind the cutouts. */
#rec2960405501 .tn-elem[data-elem-id="1786520298458"],
#rec2739838201 .tn-elem[data-elem-id="1786580375381000002"],
#rec2849329501 .tn-elem[data-elem-id="1786590465500"],
#rec2849330001 .tn-elem[data-elem-id="1786590817193000002"] {
    display: none !important;
}

img[src*="/assets/tutor/igor-hero-outlined.webp"],
img[src*="/assets/tutor/igor-footer-outlined.webp"] {
    object-fit: contain !important;
    object-position: center bottom !important;
    filter: none !important;
}

#rec2960405501 .tn-elem[data-elem-id="1786584469107"],
#rec2739838201 .tn-elem[data-elem-id="1786584859591"],
#rec2849329501 .tn-elem[data-elem-id="1786590362251"],
#rec2849330001 .tn-elem[data-elem-id="1786590817193000003"] {
    z-index: 6 !important;
    pointer-events: none !important;
}

#rec2960405501 .tn-elem[data-elem-id="1786584469107"] .tn-atom,
#rec2739838201 .tn-elem[data-elem-id="1786584859591"] .tn-atom {
    background-image: url("/assets/tutor/igor-hero-outlined.webp") !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

#rec2849329501 .tn-elem[data-elem-id="1786590362251"] .tn-atom,
#rec2849330001 .tn-elem[data-elem-id="1786590817193000003"] .tn-atom {
    background-image: url("/assets/tutor/igor-footer-outlined.webp") !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

#rec2960405501 .tn-elem[data-elem-id="1786584469107"] img,
#rec2739838201 .tn-elem[data-elem-id="1786584859591"] img,
#rec2849329501 .tn-elem[data-elem-id="1786590362251"] img,
#rec2849330001 .tn-elem[data-elem-id="1786590817193000003"] img {
    opacity: 0 !important;
}

#rec2769695301 .tn-elem[data-elem-id="1785977606109000026"] .tn-atom,
#rec2769695301 .tn-elem[data-elem-id="1785977128421"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786047316382000001"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048701981000006"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786047734346000003"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048825298000007"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048832596000009"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048280822000002"] .tn-atom {
    overflow: hidden !important;
    border: 1px solid rgba(52, 127, 123, 0.24) !important;
    border-radius: 18px !important;
    background-color: #dcefed !important;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: 0 14px 34px rgba(25, 83, 79, 0.13) !important;
    filter: none !important;
}

/* These three source blocks carry text over the picture. The restrained
   overlay preserves contrast without hiding the portrait. */
#rec2790372901 .tn-elem[data-elem-id="1786048825298000007"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048832596000009"] .tn-atom,
#rec2790372901 .tn-elem[data-elem-id="1786048280822000002"] .tn-atom {
    background-color: rgba(27, 91, 87, 0.58) !important;
    background-blend-mode: multiply !important;
}

.igor-results {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 40px));
    margin: 72px auto 84px;
    color: #1f1f1f;
    font-family: "TildaSans", Arial, sans-serif;
}

.igor-results__heading {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
}

.igor-results__heading > span {
    display: block;
    margin-bottom: 8px;
    color: #347f7b;
    font-family: "Vasek", cursive;
    font-size: 38px;
    line-height: 1.1;
}

.igor-results__heading h2 {
    margin: 0;
    color: #347f7b;
    font-size: clamp(34px, 4.1vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.igor-results__heading p {
    max-width: 680px;
    margin: 18px auto 0;
    color: #536360;
    font-size: 17px;
    line-height: 1.55;
}

.igor-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.igor-result-card {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(52, 127, 123, 0.28);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #edf9f8 100%);
    box-shadow: 0 18px 42px rgba(25, 83, 79, 0.11);
}

.igor-result-card > a {
    display: grid;
    min-height: 330px;
    padding: 16px;
    place-items: center;
    background: #e6f4f2;
}

.igor-result-card img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.igor-result-card figcaption {
    display: flex;
    padding: 20px 22px 22px;
    flex-direction: column;
}

.igor-result-card strong {
    color: #347f7b;
    font-size: 26px;
    line-height: 1.05;
}

.igor-result-card span {
    margin-top: 7px;
    color: #60706d;
    font-size: 14px;
    line-height: 1.35;
}

.igor-results__note {
    margin: 20px 0 0;
    color: #657572;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

/* Tilda's source coordinates left several headings touching or crossing
   neighbouring text. These narrow overrides preserve the blocks and only
   add the missing breathing room. */
#rec2960405501 .tn-elem[data-elem-id="1785888712279000001"] {
    margin-top: 18px !important;
}

#rec2739838201 .tn-elem[data-elem-id="1785888712279000001"] {
    margin-top: 12px !important;
}

#rec2776882001 .tn-elem[data-elem-id="1786000109373000001"] {
    margin-top: 10px !important;
}

#rec2769695301 .tn-elem[data-elem-id="1785977711914000029"],
#rec2769695301 .tn-elem[data-elem-id="1785977865729000039"] {
    margin-left: 12px !important;
}

@media (max-width: 959px) {
    #rec2742114201 .tn-elem[data-elem-id="1785903629421000002"],
    #rec2790400901 .tn-elem[data-elem-id="1785903629421000002"],
    #rec2798142501 .tn-elem[data-elem-id="1785903629421000002"],
    #rec2805473201 .tn-elem[data-elem-id="1785903629421000002"],
    #rec2809534901 .tn-elem[data-elem-id="1785903629421000002"] {
        margin-top: 12px !important;
    }

    #rec2788892401 .tn-elem[data-elem-id="1786000109373000001"] {
        margin-top: 10px !important;
    }
}

@media (min-width: 960px) and (max-width: 979px) {
    #rec2788892401 .tn-elem[data-elem-id="1785999984012000001"],
    #rec2788892401 .tn-elem[data-elem-id="1786000109373000001"] {
        left: calc(50% - 210px) !important;
        width: 420px !important;
    }

    #rec2788892401 .tn-elem[data-elem-id="1785999984012000001"] .tn-atom {
        font-size: 42px !important;
        line-height: 1.15 !important;
    }

    #rec2788892401 .tn-elem[data-elem-id="1786000109373000001"] .tn-atom {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 767px) {
    .igor-results {
        margin-top: 54px;
        margin-bottom: 64px;
    }

    .igor-results__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .igor-result-card > a {
        min-height: 300px;
    }

    .igor-result-card img {
        height: min(76vw, 380px);
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    #rec2788892401 .tn-elem[data-elem-id="1785999984012000001"],
    #rec2788892401 .tn-elem[data-elem-id="1786000109373000001"] {
        left: 16px !important;
        width: calc(100% - 32px) !important;
        text-align: center !important;
    }
}

@media (max-width: 479px) {
    #rec2739838201 .tn-elem[data-elem-id="1785886859115"],
    #rec2739838201 .tn-elem[data-elem-id="1785888712279000001"],
    #rec2739838201 .tn-elem[data-elem-id="1785888634067"] {
        /* Tilda applies an inline zoom to every 320 px element.  Reset it for
           the text column so viewport-based sizing is not scaled twice. */
        left: 20px !important;
        width: calc(100vw - 40px) !important;
        zoom: 1 !important;
    }

    #rec2739838201 .tn-elem[data-elem-id="1785886859115"] {
        display: block !important;
    }

    #rec2739838201 .tn-elem[data-elem-id="1785886859115"] .tn-atom {
        box-sizing: border-box !important;
        font-size: 34px !important;
        line-height: 1.12 !important;
        width: 100% !important;
    }

    #rec2739838201 .tn-elem[data-elem-id="1785888712279000001"] .tn-atom {
        white-space: normal !important;
        font-size: 35px !important;
    }

    #rec2788892401 .tn-elem[data-elem-id="1785999984012000001"],
    #rec2788892401 .tn-elem[data-elem-id="1786000109373000001"] {
        left: 16px !important;
        width: calc(100% - 32px) !important;
        text-align: center !important;
    }

    .igor-results {
        width: calc(100% - 28px);
    }

    .igor-results__heading > span {
        font-size: 31px;
    }

    .igor-results__heading p {
        font-size: 15px;
    }
}

@media (min-width: 360px) and (max-width: 419px) {
    #rec2739838201 .tn-elem[data-elem-id="1785886859115"] {
        font-size: 38px !important;
    }

    #rec2739838201 .tn-elem[data-elem-id="1785886859115"] .tn-atom {
        font-size: 38px !important;
    }
}

@media (min-width: 420px) and (max-width: 479px) {
    #rec2739838201 .tn-elem[data-elem-id="1785886859115"] .tn-atom {
        font-size: 40px !important;
    }
}
