/* Preserve the original art direction while stabilizing layout and controls. */
html { scroll-padding-top: 140px; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, input, textarea { user-select: text; -webkit-user-select: text; }
a:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #25a4da;
  outline-offset: 4px;
}
.content { padding-inline: 24px; }
h1, h2, h3, p, .contacts a { overflow-wrap: anywhere; letter-spacing: 0; }
.s1 h1 { line-height: 0.98; }
.s1 p { line-height: 1.75; }
.s4 .inner-box { min-width: 0; }
.s4 .inner-box li { cursor: pointer; line-height: 1.5; padding-block: 8px; }
.s4 .inner-box h3 { line-height: 1.25; }
.s4 .inner-box p { line-height: 1.75; }
.header-block .nav li:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.header-block .nav li:focus-within ul a { opacity: 1; font-size: 14px; padding: 10px 15px; }
.footer-block .contacts a { overflow-wrap: anywhere; }
.footer-block input, .footer-block textarea { font-size: 16px; }
@media (max-width: 1280px) {
  html { scroll-padding-top: 90px; }
  .header-block__pc { max-width: min(360px, 100%); overscroll-behavior: contain; }
  .header-block__pc .nav li.open:not(.expanded) ul a { font-size: 0; padding: 0 15px; opacity: 0; }
  .header-block__pc .nav li.open:not(.expanded) ul { padding: 0 0 0 20px; }
  .header-block__pc .nav li.expanded ul a { font-size: 14px; padding: 10px 15px; opacity: 1; }
  .header-block__pc .nav li.expanded ul { padding: 8px 0 8px 20px; }
  .header-block__pc .nav > ul > li > a { min-height: 44px; }
  .s1 { height: auto; min-height: 600px; padding-block: 64px; }
  .s1 .content:before, .s4 .content:before { display: none; }
  .s2 .tab-nav { display: flex; flex-wrap: wrap; gap: 16px; }
  .s2 .tab-nav h2 { margin: 0; padding: 8px 12px; }
  .s2.white .white .img { margin-inline: 0; overflow-x: auto; overscroll-behavior-x: contain; }
  .s2.white .white .img #anim { width: 100%; min-width: 900px; }
  .s4 .inner-box, .s4 .inner-box:last-child { padding: 32px 0; }
  .s4 .bg-img { left: 0; right: 0; }
  .s4 .inner-box:last-child { padding-inline: 24px; }
}
@media (max-width: 950px) {
  .content { padding-inline: 20px; }
  .s1 { min-height: 540px; }
  .s2 { padding-block: 72px; }
  .s2 .inner { padding-inline: 0; }
  .decor-plus { width: 32px; height: 32px; }
  .decor-plus.tl, .decor-plus.tr { top: -52px; }
  .decor-plus.bl, .decor-plus.br { bottom: -40px; }
  .footer-block .inner-box { overflow: visible; max-height: none; }
  .footer-block form { padding-bottom: 24px; }
  #map { height: 320px; }
}
@media (max-width: 600px) {
  .s1 { min-height: 520px; padding-block: 48px; }
  .s1 h1 { font-size: 40px; padding-inline: 0; }
  .s1 .circles, .s1 p { padding-inline: 0; }
  .s1 p { max-width: 32ch; }
  .s2 h2 { font-size: 22px; }
  .s2 .tab-nav { gap: 8px; padding-left: 16px; margin-inline: 0; }
  .s2 .tab-nav:before { width: 10px; }
  .s4 .row { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .s4 .title { min-height: 68px; }
  .s4 .inner-box:last-child { min-height: 320px; }
  .s4 .inner-box h2, .s4 .inner-box h3 { font-size: 24px; }
  .s6 h2 { font-size: 36px; line-height: 1.1; }
  .footer-block .half-box { display: block; width: 100%; }
}
@media (max-width: 360px) {
  .s1 h1 { font-size: 34px; }
  .s6 h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
