@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/Inter_Variable_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  --default: #000000;
  --ink: #172b45;
  --muted: #697991;
  --blue: #2864d7;
  --blue-dark: #1e52b8;
  --line: #e7ebf1;
  --surface: #ffffff;
  --soft: #f4f7fc;
  --content-width: 1160px;
  --pill: 9999px;

  --font-default: 16px;
  --font-default-mobile: 11px;

  --font-cards: 1em;

  --font-h1: 2.2em;
  --font-h1-mobile: 2.1em;
  --font-h2: 1.1em;
  --font-h2-mobile: 1.0em;
  --font-h3: 1.0em;
  --font-h4: 1.2em;

  --font-intro: 3em;
  --font-intro-desc: 1.25em;

  --font-quote: 1.25em;
  --font-quote-mark: 3em;
  --font-quote-mark-mobile: 2.2em;

  --font-about-label: .8125em;
  --font-footer: .75em;

  --font-tab-mobile: .75em;
  --font-quote-mobile: clamp(1.25em, 5vw, 1.625em);
  --font-footer-mobile: .55em;

  --carousel-width: 40%;
  --showcase-gap: 1em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--font);
}

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;

  background: var(--surface);
  color: var(--ink);

  font-size: var(--font-default);
  font-weight: 450;
  line-height: 1.55;
}

button,
input,
textarea,
select {
  font: inherit;
}

button { color: inherit; }
a { 
  color: inherit; 
  text-decoration: none;
  transition: .18s ease, color .18s ease;
}
a:hover {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: bold;
}

.header-base {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(3px);
}

.header-container {
  margin: .5em 0;
  display: grid;
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 80px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

.header-logo {
  display: inline-flex;
  width: fit-content;
  height: 65px;
  align-items: center;
}

.header-logo img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 100%;
  object-fit: contain;
}

.header-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
}

.header-tabs .tab {
  min-height: 42px;
  max-width: 280px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-default);
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.header-tabs .tab:hover { 
  border-color: var(--blue);
  background: var(--soft);
}

.header-tabs .tab[aria-selected="true"] {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--surface);
}
.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-phone-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-phone {
  padding: 4px 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.header-phone[hidden] {
  display: none;
}

.tab:focus-visible,
a:focus-visible {
  outline: 3px solid #aac4ff;
  outline-offset: 3px;
}

.page-content {
  flex: 1;
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.tab-panel[hidden] { display: none !important; }

.tab-panel:not([hidden]) { animation: panel-in .22s ease-out both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { letter-spacing: 0; }

h1 {
  margin-bottom: 16px;
  font-size: var(--font-h1);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: var(--font-h2);
  font-weight: 650;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: var(--font-h3);
  font-weight: 650;
  line-height: 1.4;
}

h4 {
  margin: 0;
  font-size: var(--font-h4);
  font-weight: 500;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 0;
  border-radius: var(--pill);
  background: var(--blue);
  color: var(--surface);
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  color: var(--soft);
}

/* ## page-intro */
.page-intro {
  padding-block: 2em .5em;
}
.page-intro > .image {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5em;
}
.page-intro > .image > img {
  display: block;
  max-height: 300px;
  object-fit: contain;
}
.page-intro > h1 { 
  max-width: 95%; 
  font-size: var(--font-intro);
}
.page-intro > h2 { 
  font-size: var(--font-intro-desc);
  color: var(--muted);
  font-weight: 500;
}
.page-intro > p {
  margin-bottom: 0;
  font-size: var(--font-intro-desc);
  color: var(--muted);
}
/* center */
.page-intro.center,
.page-block.center
{
  text-align: center;
}
.page-block.center > h1,
.page-block.center > h2,
.page-block.center > p,
.page-intro.center > h1,
.page-intro.center > h2,
.page-intro.center > p
{
  margin-inline: auto;
}
.page-block.center > h1,
.page-intro.center > h1 {
  max-width: 95%;
}
.page-intro.center > .quote {
  margin-inline: auto;
}
.page-block.center > .button,
.page-intro.center > .button {
  margin-inline: auto;
}
/* quote */
.page-intro > .quote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .5em;

  width: fit-content;
  max-width: 100%;
  margin: 2em 0;
  padding: 1.2em 1.4em;

  border-radius: 1em;
  background: var(--soft);
  color: var(--ink);
  font-size: var(--font-quote);
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.page-intro > .quote::before,
.page-intro > .quote::after {
  position: static;
  color: var(--blue);
  font-size: var(--font-quote-mark);
  font-weight: 700;
  line-height: .7;
  pointer-events: none;
}

.page-intro > .quote::before {
  content: "“";
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  opacity: .25;
}

.page-intro > .quote::after {
  content: "”";
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  opacity: .15;
  transform: translateY(.6em);
}


.page-intro > .quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 100, 215, .1);
}

/* ## page-intro */


/* ## page-block */
.page-block {
  padding: 32px 36px;
}
.page-block > h1 {
  max-width: 95%;
}
.page-block > p, a {
  margin-bottom: 0;
}
.page-block > ul {
  margin: 1em 0 0;
  padding-inline-start: 1.4em;
}
.page-block > ul > li + li {
  margin-top: .4em;
}
.page-block > ul > li::marker {
  color: var(--muted);
}
/* ## partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3em 2em;
  margin-top: 48px;
  padding-block: 8px;
}
.partners img {
  display: block;
  width: auto;
  max-width: 140px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .22s ease, opacity .22s ease, transform .22s ease;
}
.partners img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
/* Мобильная версия */
@media (max-width: 560px) {
  .partners {
    gap: 24px 32px;
    margin-top: 32px;
  }

  .partners img {
    max-width: 100px;
    height: 32px;
  }
}
/* second */
.page-block.second {
  background: var(--soft);
  border-radius: 18px;
  padding: 32px 36px;
}
/* ## page-block */

/* about-list + about-row */
.about-list {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}
/* horizontal */
.about-list.horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.about-list.horizontal > .about-row {
  width: auto;
  margin: 0;
}

.about-list.horizontal > .about-row + .about-row {
  border-top: 0;
  border-left: 1px solid var(--line);
}
.about-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 17px 20px;
}
.about-row + .about-row { border-top: 1px solid var(--line); }
.about-row h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.about-row p {
  margin: 0;
  overflow-wrap: anywhere;
}
.about-row > a {
  display: block;
}
/* horizontal */
.about-row.horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.about-row.horizontal h3 {
  flex: 0 0 auto;
}

.about-row.horizontal p {
  min-width: 0;
}

/* end about-list + about-row */

/* equipment */
.equipment-showcase {
  display: grid;
  grid-template-columns:
    minmax(0, calc(100% - var(--carousel-width) - var(--showcase-gap)))
    minmax(0, var(--carousel-width));
  align-items: center;
  gap: var(--showcase-gap);
  margin-top: 24px;
}
.equipment-showcase--image-left .equipment-showcase__text {
  order: 2;
}
.equipment-showcase--image-left .equipment-carousel {
  order: 1;
}
.equipment-showcase--image-left {
  grid-template-columns:
    minmax(0, var(--carousel-width))
    minmax(0, calc(100% - var(--carousel-width) - var(--showcase-gap)));
}
.equipment-showcase__text h2 {
  margin-bottom: 12px;
}
.equipment-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px auto 40px minmax(0, 1fr);
  grid-template-areas:
    "slides slides slides slides slides"
    ". prev dots next .";
  align-items: center;
  gap: 1em;
  min-width: 0;
  overflow: hidden;
  padding: 1em;
}
.equipment-carousel__slides {
  display: flex;
  grid-area: slides;
  min-width: 0;
  transition: transform .3s ease;
}
.equipment-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 250px;
  margin: 0;
}
.equipment-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.equipment-carousel__button {
  display: grid;
  width: 2em;
  height: 2em;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
}
.equipment-carousel__button--prev {
  grid-area: prev;
}
.equipment-carousel__button--next {
  grid-area: next;
}
.equipment-carousel__dots {
  display: flex;
  grid-area: dots;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
}
.equipment-carousel__dot {
  width: .5em;
  height: .5em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  opacity: .3;
  cursor: pointer;
}
.equipment-carousel__dot[aria-current="true"] {
  background: var(--ink);
  opacity: 1;
}
@media (max-width: 700px) {
  .equipment-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .equipment-showcase--image-left .equipment-showcase__text,
  .equipment-showcase--image-left .equipment-carousel {
    order: initial;
  }
  .equipment-carousel__slide {
    height: 260px;
  }
}
/* end equipment */

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: flex;
  width: min(var(--content-width), calc(100% - 1em));
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--font-footer);
}

.footer-inner a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .header-container {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    padding-block: 10px;
  }
  .header-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .header-contacts {
    display: contents;
  }
  .header-contacts .email_text {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .header-contacts .phone_number {
    grid-column: 3;
    grid-row: 1;
  }
  .header-phone {
    padding: 4px 0;
  }
  .header-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }
}


@media (max-width: 560px) {
  body {
    font-size: var(--font-default-mobile);
  }

  .header-container,
  .page-content,
  .footer-inner {
    width: calc(100% - 32px);
  }
  .header-container {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .header-logo { 
    height: 40px; 
  }
  .header-logo img { 
    max-width: 125px; 
  }
  .header-phone { 
    padding: 9px 12px; 
  }
  .header-tabs { 
    width: 100%;
  }
  .header-tabs .tab { 
    max-width: 100%;
    padding-inline: 12px;
    font-size: var(--font-default-mobile);
  }
  h1 { 
    font-size: var(--font-h1-mobile); 
  }
  h2 { 
    font-size: var(--font-h2-mobile);
  }
  .page-intro { 
    padding-block: 40px 26px; 
  }
  .content-section { 
    padding-block: 28px 42px; 
  }
  .footer-inner { 
    min-height: 58px; 
  }
  .page-intro > .quote {
    margin: 24px 0;
    padding: 22px 18px;
    column-gap: .3em;
    border-radius: 14px;
    font-size: var(--font-quote-mobile);
  }
  .page-intro > .quote::before,
  .page-intro > .quote::after {
    font-size: var(--font-quote-mark-mobile);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* Компактная шапка телефона в горизонтальной ориентации */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .header-container {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    min-height: 0;
    margin-block: 4px;
    padding-block: 0;
  }

  .header-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    height: 34px;
  }

  .header-logo img {
    max-width: 90px;
  }

  .header-contacts {
    display: contents;
  }

  .header-contacts .email_text {
    display: none;
  }

  .header-phone-list {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 10px;
  }

  .header-phone {
    padding: 2px 0;
    font-size: 12px;
  }

  .header-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-tabs::-webkit-scrollbar {
    display: none;
  }

  .header-tabs .tab {
    flex: 0 0 auto;
    min-height: 30px;
    max-width: none;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Форма */
.feedback-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 24px auto 0;
  text-align: left;
}
.feedback-form label {
  font-weight: 600;
}
.feedback-form input:not([type="hidden"]),
.feedback-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.feedback-form textarea {
  resize: vertical;
}
.feedback-form :focus-visible {
  outline: 3px solid #aac4ff;
  outline-offset: 2px;
}
.feedback-form .button {
  justify-self: start;
  cursor: pointer;
}
.feedback-form .button:disabled {
  cursor: wait;
  opacity: .65;
}
.feedback-status {
  min-height: 1.5em;
  margin: 0;
}
.feedback-panel > .page-block.second {
  width: min(100%, 760px);
  margin: auto;
}
.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 24px auto 0;
  text-align: left;
}
.feedback-form > label,
.feedback-form > input,
.feedback-form > textarea,
.feedback-form > #feedback-status {
  grid-column: 1 / -1;
}
.feedback-form .button {
  width: 100%;
  justify-self: stretch;
  cursor: pointer;
}
