/* Mobile Figma 5788:7877, Frame 15474, 390px (13 October 2026).
   Keep approved copy and artwork; the frame includes a 44px OS status bar,
   which is intentionally not rendered by the website. */
@media (max-width:960px) {
  :root {--isto-heading-size:30px;--isto-heading-spacing:-.03em;}
  html {-webkit-text-size-adjust:100%;}

  /* The logo stays at the original left guide; icons keep their artwork size. */
  .header {box-sizing:border-box;width:100%;min-height:74px;padding:18px 16px;}
  .header .burger_button {position:absolute;top:18.5px;right:11px;width:44px;height:44px;}
  .header .burger_button::before,.header .burger_button::after,.header .burger_button .inner {left:4px;width:36px;}
  .header .burger_button:not(.active)::before {top:13px;}
  .header .burger_button:not(.active)::after {bottom:13px;}
  .header .burger_button.active::before,.header .burger_button.active::after {inset:0;margin:auto;}
  .header .language_desctop + .mobile_phones {display:none;}
  .header .logo {width:120px;max-width:calc(100% - 60px);height:auto;}
  .header .logo .isto-logo {width:120px;height:auto;}
  .header .mobile_phones_icon {display:grid;place-items:center;width:44px;height:44px;}
  .header .mobile_phones_icon svg {width:24px;height:24px;}
  .header .mobile_phones_content {box-sizing:border-box;max-width:calc(100vw - 48px);}
  .header .mobile_phones_content a {display:flex;align-items:center;min-height:44px;margin:0;}
  .header .burger_menu__overlay {overflow-y:auto;overscroll-behavior:contain;padding:104px 0 32px;background:#181515;backdrop-filter:none;-webkit-backdrop-filter:none;}
  .header .burger_menu__overlay .overlay__inner {width:auto;margin:0 16px;}
  .header .burger_menu__overlay .language {margin:0 0 56px;}
  .header .burger_menu__overlay .site_nav {width:100%;}
  .header .burger_menu__overlay .menu {gap:12px;}
  .header .burger_menu__overlay .site_nav a {display:flex;align-items:center;min-height:44px;font-size:24px;line-height:1.1;font-weight:400;}
  /* Language labels share the navigation's left guide. */
  .header .burger_menu__overlay .isto-language__trigger {padding-left:0;}
  .header .burger_menu__overlay .isto-language__options {padding-left:0;}
  /* Light-page menus retain the existing white background with readable controls. */
  .header:is(.pr,.fixed) .burger_menu__overlay {background:var(--isto-paper);}
  .header:is(.pr,.fixed):has(.burger_menu__overlay.open) .logo .isto-logo {filter:none;color:#000;}
  .header:is(.pr,.fixed):has(.burger_menu__overlay.open) .isto-language {--isto-language-color:var(--isto-ink);--isto-language-muted:var(--isto-muted);--isto-language-hover:var(--isto-ink);}
  .header:is(.pr,.fixed):has(.burger_menu__overlay.open) .burger_button.active::before,
  .header:is(.pr,.fixed):has(.burger_menu__overlay.open) .burger_button.active::after {background:var(--isto-ink);}
  .header .isto-language__trigger {min-height:44px;}
  .header .isto-language__options {top:44px;}
  .header .isto-language__options li,.header .isto-language__options .isto-language__link {height:44px;}
  .header .isto-language__options .isto-language__link {padding-top:13px;padding-bottom:13px;}

  /* Lower the complete title/action group without hard-coded line breaks. */
  .home .hero .slider_item_content {box-sizing:border-box;left:16px;right:16px;top:auto;bottom:91px;width:auto;max-width:none;height:auto;margin:0;padding:0;justify-content:flex-end;align-items:flex-start;gap:40px;}
  .home .hero .content__inner_title {padding-left:0;min-width:0;width:100%;}
  .home .hero .slider_title {font-size:34px;line-height:37px;font-weight:400;max-width:none;text-wrap:pretty;}
  .home .hero .slider_description {font-size:14px;line-height:14px;margin-bottom:16px;}
  .home .hero .slick-slide.slick-current.slick-active .slider_description {color:var(--isto-muted);opacity:1;}
  .home .hero .b-main-slider__button-wrapper {width:100%;margin-bottom:0;}
  .home .hero .hero_slider .button {max-width:100%;transform:none;}
  .home .hero_slider_item::before {height:100%;background-color:rgb(0 0 0 / 35%);}

  /* Remove the old reveal translation, which displaced photos by 50px. */
  .home .content_block .content_block_item {padding:80px 16px;}
  .home .content_block_inner {margin:0;max-width:none;transform:none;}
  .home .content_block .section_toptitle {font-size:14px;line-height:14px;}
  .home .content_block .section_title {font-size:30px;line-height:30px;margin-bottom:32px;}
  .home .content_block .content_block_description {font-size:16px;line-height:21px;margin-bottom:48px;}
  .home .content_block :is(.section_toptitle,.section_title,.content_block_description,.section_button) {transform:none;opacity:1;}
  .home .content_block_picture,.home .content_block_picture.animated {transform:none;}
  .footer {margin-top:0;}
}

@media (max-width:960px) {
  /* Use one shared text guide instead of mixing the old 5% and 20px insets. */
  .isto-editorial,.isto-service-links,.isto-related,.site-main {padding-left:24px;padding-right:24px;}
  .isto-editorial>.isto-service-links {padding-left:0;padding-right:0;}
  .contacts .layout {min-height:0;}
  .contacts .layout__main {flex:0 0 auto;}
  .projects {box-sizing:border-box;padding:112px 24px 48px;max-width:none;}
  .awards,.media {width:calc(100% - 48px);max-width:none;margin-top:112px;}
  .about {padding-top:112px;}
  .about :is(.about_top_content,.about_second,.about_end) {width:calc(100% - 48px);max-width:none;}
  .about .isto-about-intro {padding-top:0;}
  .about .about_top_right {width:100%;}
  .about .team {width:calc(100% - 48px);margin-left:24px;margin-right:24px;}
  .vacancy .vacancy_content {box-sizing:border-box;width:calc(100% - 48px);padding-top:112px;gap:40px;}
  .vc {margin:48px 24px;font:400 16px/1.3 var(--isto-font);letter-spacing:-.03em;text-transform:none;text-align:left;align-items:flex-start;}
  .vc .for-reviews-email {font-weight:400;overflow-wrap:anywhere;}
  .projects .projects__nav {flex-direction:row;flex-wrap:wrap;gap:8px 24px;}
  .projects .projects__nav .nav__link {display:flex;align-items:center;min-height:44px;}
  .projects .projects_content_list {margin-top:40px;}
  .projects .projects_content_list .projects_item_content {display:block;}
  .projects .projects_item_description {gap:16px;}
  .projects .description_item:last-child {margin-right:0;}
  .awards .awards_items {gap:48px;}
  .awards .awards_item {flex-direction:column;gap:24px;padding-bottom:40px;}
  .awards .awards_item_right {width:100%;}
  .media .section_title {margin-bottom:32px;}
  .isto-service-links__heading {flex-wrap:wrap;align-items:flex-start;}
  .isto-service-links__heading a {white-space:normal;}

  .home .content_block_picture {height:clamp(400px,128.205vw,620px);}
  .home .know.isto-partners {padding:60px 0;}
  .home .know.isto-partners .know_title {margin:0 16px 36px;font-size:30px;line-height:30px;}
  .isto-partners__row {display:flex;align-items:center;justify-content:flex-start;gap:0;height:90px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline-start:8px;scrollbar-width:none;padding-inline:8px 16px;}
  .isto-partners__row::-webkit-scrollbar {display:none;}
  .isto-partners__row:focus-visible {outline:2px solid var(--isto-muted);outline-offset:4px;}
  .isto-partners__cell,.isto-partners__cell--amazing {display:flex;align-items:center;justify-content:center;flex:0 0 142px;height:90px;scroll-snap-align:start;}
  .isto-partners__cell img {position:static;max-width:none!important;max-height:90px;transform:none!important;object-fit:contain;}
  .isto-partners__cell--liv img {width:160px;height:90px;}
  .isto-partners__cell--best-of-year img {width:50px;height:89px;}
  .isto-partners__cell--sbid img {width:66px;height:51px;}
  .isto-partners__cell--commercial img {width:94px;height:34px;}
  .isto-partners__cell--adpro img {width:103px;height:27px;}
  .isto-partners__cell--amazing img {width:147px;height:26px;}
  .isto-showcase__row {align-items:center;}
  .isto-showcase__trigger {min-height:50px;}
  .isto-showcase {grid-template-columns:1fr;min-height:0;}
  .isto-showcase__content {padding:80px 16px;background:#fff;}
  .isto-showcase h2 {font-size:30px;line-height:30px;margin-bottom:40px;}
  .isto-showcase__list {gap:40px;}
  .isto-showcase__number {font-size:14px;line-height:14px;color:var(--isto-muted);}
  .isto-showcase__title {font-size:24px;line-height:24px;}
  .isto-showcase__row {grid-template-columns:minmax(0,1fr) 44px;gap:8px;}
  .isto-showcase__arrow-link {width:44px;height:44px;}
  .isto-showcase__arrow-link svg {width:28px;height:28px;}
  .isto-showcase__title .isto-label-wrap {display:inline;}
  .isto-showcase__list {max-width:none;}
  .isto-showcase__visual {height:420px;grid-row:1;}

  .callback {padding:80px 16px;min-height:0;}
  .callback::before {width:849px;height:1054px;left:40px;top:-51px;background-size:1318px 1241px;background-position:-235px -187px;}
  .callback_wrap,.contacts .callback_wrap {grid-template-columns:minmax(0,1fr);gap:40px;margin:0;}
  .callback .callback_title {width:240px;max-width:100%;font-size:30px;line-height:30px;}
  .callback_form .isto-form-fields {gap:22px;}
  .callback_form :is(input:not([type='submit']):not([type='checkbox']),textarea) {font-size:14px;line-height:21px;height:44px;min-height:44px;padding:12px 0 10px;}
  .callback .callback_form textarea.wpcf7-textarea {height:44px;min-height:44px;}
  .callback_form :is(input,textarea)::placeholder {color:#aaa7a6;}
  .callback .form-notice {font-size:14px;font-weight:400;line-height:14px;margin-top:46px;}
  .callback .form-notice input[type='checkbox'] {flex-basis:16px;width:16px;min-width:16px;height:16px;min-height:16px;}
  .callback .form-notice label {gap:8px;}
  .callback .form-button {margin-top:44px;}
  .footer {display:grid;padding:80px 16px;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-areas:'addresses' 'enquiries' 'procurement' 'social' 'nav';gap:32px;}
  .footer .cont-info {position:static;grid-area:addresses;grid-template-columns:1fr;gap:28px;margin:0;}
  .footer .cont-info .cont-item:nth-child(n) {text-align:left;}
  .footer .cont-location {font-size:16px;margin-bottom:16px;}
  .footer .footer-enquiries {position:static;grid-area:enquiries;}
  .footer .footer-procurement {position:static;grid-area:procurement;text-align:left;}
  .footer .social-icons {position:static;grid-area:social;width:100%;max-width:343px;transform:none;margin:auto;}
  .footer-desctop-menu {position:static;grid-area:nav;transform:none;}
  .footer .cont-item {font-size:16px;line-height:21px;}
  .footer .cont-link {font-size:16px;overflow-wrap:anywhere;}
  .footer .social-icons {height:44px;}
  .footer .b-social a {display:grid;place-items:center;width:44px;height:44px;}
  .footer .b-social a img {width:28px;height:28px;object-fit:contain;}
  .footer-desctop-menu a {display:flex;align-items:center;min-height:44px;font-size:14px;}
  .footer-desctop-menu .menu {flex-wrap:wrap;justify-content:center;gap:4px 20px;}

  .team .team_slider_item_title {box-sizing:border-box;position:static;transform:none;opacity:1;padding:16px 0;color:var(--isto-ink)!important;}
  .team .team_slider_item_title :is(.team_slider_name,.team_slider_position) {color:inherit;}
  .team .team_slider_item:hover .team_slider_item_title {transform:none;}
  .team>.team_content {padding-bottom:0;}
  .modal .modal_content {width:calc(100% - 48px);max-width:none;max-height:calc(100dvh - 48px);top:24px;padding:24px;}
  .modal .modal_close {top:4px;right:4px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;}
}
@media (max-width:480px) {
  .isto-showcase__visual {height:340px;}
}
/* Very short viewports still keep all title lines and the action below the header. */
@media (max-width:960px) and (max-height:620px) {
  .home .hero .slider_item_content {bottom:91px;gap:24px;}
  .home .hero .slider_title {font-size:clamp(28px,4.8svh,34px);line-height:1.08;}
}
@media (max-width:960px) {
  .button,.layout .button,.hero .hero_slider .button,.home .section_button .button,.callback .form-button .button {
    width:100%;min-width:0;height:52px;min-height:52px;padding:0 16px;font-size:14px;font-weight:700;
  }
  .isto-partners__title-desktop {display:none;}
  .isto-partners__title-mobile {display:inline;}
  .isto-whatsapp {right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));width:60px;height:60px;border-radius:50%;background:#181515;mix-blend-mode:normal;box-shadow:0 2px 12px rgb(0 0 0 / 12%);}
  .isto-whatsapp img {width:36px;height:36px;filter:invert(1);}
  .isto-whatsapp.is-visible:is(:hover,:focus-visible) {background:#373736;opacity:1;}
  body:has(.grecaptcha-badge) .isto-whatsapp {bottom:calc(16px + env(safe-area-inset-bottom));}
  .callback .iti__selected-country {padding-block:12px 10px;}
  .callback .iti__selected-dial-code {font-size:14px;line-height:21px;}
}

@media(max-width:960px) {
 /* Dots follow the shared CTA in normal flow; only their common panel is anchored. */
 .home .hero {position:relative;min-height:580px;}
 .home .hero .isto-hero-controls {position:absolute;z-index:3;left:16px;right:16px;bottom:calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:12px;}
 .home .hero .isto-hero-mobile-cta {box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:52px;padding:0 16px;font-size:14px;font-weight:700;line-height:1.1;letter-spacing:0;color:#f3f3f2;background:rgb(255 255 255 / 15%);border:1px solid rgb(206 199 180 / 40%);backdrop-filter:blur(7.7px);-webkit-backdrop-filter:blur(7.7px);transform:none;}
 .home .hero .isto-hero-mobile-cta:is(:hover,:focus-visible) {background:rgb(231.25 230.625 230.625 / 32%);}
 .home .hero .isto-hero-pagination {display:block;}
 .home .hero .isto-hero-pagination .slick-dots {position:static;display:flex;width:100%;height:44px;gap:0;margin:0;justify-content:center;align-items:center;}
 .home .hero .slick-dots li,.home .hero .slick-dots li button {width:24px;height:44px;margin:0;padding:0;}
 .home .hero .slick-dots li button {display:grid;place-items:center;border:0;background:none;}
 .home .hero .slick-dots .custom-dot {margin:0;}
 .home .hero .slick-dots li button:focus-visible {outline:1px solid #fff;outline-offset:-3px;}
 .home .hero .b-main-slider__button-wrapper {display:none;}
 .home .hero .slider_item_content {bottom:calc(var(--isto-hero-controls-height,108px) + 64px + env(safe-area-inset-bottom));gap:0;}
 .home .hero .slick-slide,.home .hero .slick-slide > div,.home .hero_slider_item,.home .hero .hero_slider_img {min-height:580px;}
 .isto-whatsapp {right:calc(24px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));width:56px;height:56px;}
 .isto-whatsapp img {width:34px;height:34px;}
 body:has(.grecaptcha-badge) .isto-whatsapp {bottom:calc(20px + env(safe-area-inset-bottom));}
 .isto-partners__row {padding-inline:0;}
 .isto-partners__group {gap:20px;padding-right:20px;}
 .isto-partners__group .isto-partners__cell,.isto-partners__group .isto-partners__cell--amazing {width:142px;min-width:142px;flex:0 0 auto;}
}
