@media (min-width: 769px) {
  .header {
    top: min(93px, calc(102px / var(--scale)));
    height: min(56px, calc(62px / var(--scale)));
    left: calc(50% + 14px);
    transform: translateX(-50%);
    width: min(1488px, calc(1640px / var(--scale)));
  }
  .header .brand,
  .header .brand img {
    width: min(184px, calc(204px / var(--scale)));
    height: auto;
  }
  .header nav {
    width: auto;
    gap: min(43px, calc(48px / var(--scale)));
    font-size: min(25px, calc(28px / var(--scale)));
  }
  .header nav a:not(.contact-link) { width: auto; }
  .header nav .contact-link {
    width: min(200px, calc(220px / var(--scale)));
    min-height: min(44px, calc(49px / var(--scale)));
    padding: 6px 10px;
    background: white;
    color: black;
  }
}

.page:has(.catalog-tabs) .hero > .photo img { filter: brightness(.62); }
.hero > [data-figma="2:4"] img { filter: brightness(.85); }

.site-footer { background: #0c0f0c; color: white; padding: 52px 150px 32px; }
.site-footer-main { display: flex; justify-content: space-between; gap: 32px; }
.site-footer-logo { display: block; width: 239px; height: auto; }
.site-footer p { margin: 16px 0; font-size: 28px; }
.site-footer nav { display: flex; align-self: center; align-items: center; gap: 36px; font-size: 24px; white-space: nowrap; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer-social { display: flex; gap: 16px; }
.site-footer-social a.fig { position: static !important; width: 48px !important; height: 44px !important; }
.site-footer-social img { display: block; width: 100%; height: 100%; }
.site-footer small { display: block; border-top: 1px solid #ffffff99; margin-top: 24px; padding-top: 16px; font-size: 19px; }

.section.form-section {
  height: auto !important;
  padding: 24px 24px 96px;
}
.form-section #contact-form {
  position: static;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 36px;
}
#contact-form .fields, #contact-form .choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
#contact-form .field { gap: 7px; }
#contact-form .field, #contact-form legend, #contact-form .message-field {
  font-size: 18px;
  line-height: 1.4;
}
#contact-form .field input, #contact-form textarea {
  border: 1px solid #899787;
  border-radius: 0;
  background: white;
  color: #0c0f0c;
  font-size: 18px;
  padding: 12px 14px;
}
#contact-form .field input { height: 52px; }
#contact-form fieldset { min-width: 0; margin-top: 22px; }
#contact-form .choices { margin-top: 10px; gap: 8px 16px; }
#contact-form .choices label {
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c3cfc0;
  background: #f5f7f3;
  font-size: 17px;
  line-height: 1.35;
}
#contact-form .choices input {
  appearance: auto;
  width: 20px;
  height: 20px;
  accent-color: #257b28;
}
#contact-form .choices input::after { content: none; }
#contact-form .choices label:has(input:checked) {
  border-color: #257b28;
  background: #e6f1e4;
  color: #194d1b;
}
@media (hover: hover) {
  #contact-form .choices label:hover { border-color: #257b28; }
}
@media (prefers-reduced-motion: no-preference) {
  #contact-form :is(.field input, textarea, .choices label) {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }
}
#contact-form :is(input, textarea, button):focus-visible {
  outline: 3px solid #257b28;
  outline-offset: 3px;
}
#contact-form .message-field { margin-top: 22px; }
#contact-form textarea { height: 120px; margin-top: 7px; }
#contact-form .submit {
  margin-top: 20px;
  min-height: 46px;
  width: auto;
  padding-inline: 32px;
  border-radius: 0;
  background: #257b28;
  font-size: 18px;
}
#contact-form .submit:hover { background: #1d6420; }

.faq { padding: 293px 211px 232px 141px; }
.faq-list { display: grid; gap: 41px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 106px;
  padding: 18px 70px 18px 61px;
  border-radius: 20px;
  background: #ededed;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-radius: 20px 20px 0 0; }
.faq summary img { flex: none; object-fit: contain; }
.faq details[open] summary img { transform: rotate(180deg); }
.faq details p {
  display: grid;
  align-content: center;
  min-height: var(--answer-height);
  margin: 0;
  padding: 28px 102px;
  border-radius: 0 0 20px 20px;
  background: #2e9831;
  color: white;
  font-size: 24px;
  line-height: 1.22;
}

.technician-card {
  position: absolute;
  outline: 2px solid #819a7b;
  box-shadow: 0 6px 20px #15250f24;
}
.technician-card > a.text:hover { text-decoration: underline; }
@media (min-width: 769px) {
  .technician-card { scale: .8; transform-origin: top left; }
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary img { transition: transform 220ms ease; }
  .faq details[open] p { animation: answer-in 220ms ease-out; }
  .technician-card { transition: transform 220ms ease, box-shadow 220ms ease; }
  .technician-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #15250f38;
  }
  @media (hover: hover) {
    .technician-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px #15250f38;
    }
  }
}

@keyframes answer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 260ms ease, content-visibility 260ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 768px) {
  .section.form-section { padding: 12px 20px 40px; }
  .form-section #contact-form { padding: 18px; }
  #contact-form .fields, #contact-form .choices { grid-template-columns: minmax(0, 1fr); }
  #contact-form .field, #contact-form legend, #contact-form .message-field,
  #contact-form .field input, #contact-form textarea, #contact-form .choices label { font-size: 16px; }
  #contact-form .submit { width: 100%; }
  .site-footer { padding: 28px 24px 22px; }
  .site-footer-main { flex-direction: column; gap: 14px; }
  .site-footer-logo { width: 145px; }
  .site-footer p { font-size: 17px; }
  .site-footer nav { align-self: stretch; flex-wrap: wrap; gap: 12px 18px; font-size: 15px; }
  .site-footer small { margin-top: 18px; font-size: 12px; }
  .hero > [data-figma="66:485"] .text { white-space: normal !important; }
  .faq { padding: 36px 24px; }
  .faq-list { gap: 16px; }
  .faq summary { min-height: 64px; padding: 12px 16px; font-size: 17px; }
  .faq summary img { width: 40px; height: 36px; }
  .faq details p { min-height: 0; padding: 20px 16px; font-size: 16px; }
  .technician-directory { display: grid; gap: 24px; padding: 24px; }
  .technician-card {
    display: grid;
    gap: 12px;
    position: static;
    width: 100% !important;
    height: auto !important;
    min-width: 0;
    padding: 24px;
    overflow-wrap: anywhere;
  }
  .technician-card > .icon { display: none; }
  .technician-card > .action { justify-self: start; }
}
