.lg-home main section h2 {
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
  max-width: 31ch;
}

.lg-home .home-logo { display: block; width: 148px; height: auto; }
.lg-home .top .home-header-cta { min-height: 40px; padding: 8px 12px; white-space: nowrap; }
.lg-home .top .nav { gap: clamp(10px, 1.25vw, 20px); }
.lg-home .top .nav a { white-space: nowrap; }
.lg-home .bar > .logo { flex: none; }

.lg-home .lg-hero {
  background: radial-gradient(ellipse at 90% 42%, #edf3f9, transparent 72%), #f7f9fc;
  padding-block: clamp(24px, 4vw, 56px);
}
.lg-home .lg-hero-grid { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); }
.lg-home .home-hero-copy { gap: 20px; }
.lg-home .lg-hero h1 { font-size: 44px; line-height: 1.13; letter-spacing: -.04em; }
.home-hero-copy h1 span { white-space: nowrap; }
.home-hero-photo { display: block; min-width: 0; }
.home-hero-photo img { display: block; width: 100%; height: auto; }
.home-benefits { display: grid; gap: 9px; margin: 0; padding-left: 1.2em; }
.home-hero-copy .home-benefits { list-style: none; padding: 0; }
.home-hero-copy .home-benefits li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.home-benefits svg, .home-service svg { flex: none; color: #194164; }

.home-services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lg-home .home-service {
  position: relative;
  grid-column: span 3;
  text-decoration: none;
  padding-bottom: 44px;
  transition: transform 160ms ease-out;
}
.lg-home .home-service:nth-child(n+5) { grid-column: span 4; }
.lg-home .home-service:hover { transform: translateY(-3px); }
.home-service-arrow { position: absolute; right: 18px; bottom: 12px; font-size: 20px; color: #194164; }
.lg-home #calculator { background: #e9f2fc; font-variant-numeric: tabular-nums; }
.home-calc-intro { margin-bottom: 22px; }

.home-cabinet-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.lg-home .home-cabinet-tabs [aria-selected="true"] { background: #194164; color: white; }
.home-cabinet-panel:not([hidden]) { animation: home-reveal 220ms cubic-bezier(.22,1,.36,1); }
.home-cabinet-panel > p { margin-bottom: 16px; }
.home-cabinet-screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.home-cabinet-screens a { min-width: 0; }
.home-cabinet-screens img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: var(--lg-depth);
}
@keyframes home-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.lg-home #team .lg-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 6vw, 88px); }
.home-faq-heading { position: sticky; top: 92px; align-self: start; }
.home-faq-grid details[open] p { animation: home-reveal 220ms cubic-bezier(.22,1,.36,1); }
.lg-home .lead-form button { white-space: normal; }

@media (max-width: 1160px) {
  .lg-home .top .nav { display: none; }
  .lg-home .top .burger { display: block; margin-left: auto; }
  .lg-home .top .phone { margin-left: auto; }
}
@media (max-width: 1023px) {
  .lg-home main section h2 { font-size: 32px; line-height: 1.2; }
  .lg-home .lg-hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .lg-home main section h2 { font-size: 26px; line-height: 1.22; }
  .lg-home .lg-hero h1 { font-size: 28px; }
  .lg-home .lg-hero-grid, .lg-home .lg-contact-grid, .home-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero-photo { width: min(100%, 450px); justify-self: center; }
  .home-faq-heading { position: static; }
  .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lg-home .home-service:nth-child(n) { grid-column: span 1; }
  .lg-home .home-service:last-child { grid-column: 1 / -1; }
  .lg-home #team .lg-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lg-home .top .home-header-cta { display: none; }
  .home-cabinet-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-home .home-cabinet-tabs button { white-space: normal; padding-inline: 8px; }
  .home-desktop-shot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-home .home-service { transition: none; }
  .home-cabinet-panel:not([hidden]), .home-faq-grid details[open] p { animation: none; }
}

.home-media-link { width: fit-content; font-weight: 700; }
.home-media-dialog {
  width: min(1060px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  color: var(--lg-ink);
  background: #fff;
}
.home-media-dialog::backdrop { background: #0e2236b8; }
.home-media-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f3f6f9;
  font-weight: 700;
}
.home-media-body { padding: 12px; text-align: center; }
.home-media-body img { display: block; max-width: 100%; max-height: calc(100dvh - 125px); margin-inline: auto; object-fit: contain; }
.lg-home #team .lg-team-card > img { height: auto; }

@media (min-width: 355px) and (max-width: 600px) {
  .lg-home .top .home-header-cta { display: inline-flex; margin-left: auto; }
  .lg-home .top .bar { gap: 10px; }
  .lg-home .top .home-logo { width: 110px; }
  .lg-home .top .burger { margin-left: 0; }
}

.lg-home .lg-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.lg-home .lg-options legend { padding: 0; margin-bottom: 8px; }
.lg-home .lg-options label { position: relative; }
.lg-home .lg-options input { position: absolute; opacity: 0; }
.lg-home .lg-options label span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: linear-gradient(#fff, #f1f6fb);
  color: #194164;
}
.lg-home .lg-options input:checked + span { border-color: #a26813; background: #fff3d6; }
.lg-home .lead-form .lg-options input:checked + span { border-color: #3973a0; background: #e3effb; }

@media (forced-colors: active) {
  .lg-home .lg-options input:checked + span {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

.lg-home .lg-options input:focus-visible + span { outline: 2px solid #194164; outline-offset: 2px; }

.home-device-switch { display: flex; gap: 4px; margin-bottom: 16px; }
.lg-home .home-device-switch [aria-pressed="true"] { background: #e3effb; border-color: #3973a0; }
.home-mobile-shot { display: none; width: min(100%, 350px); justify-self: center; }
#app[data-device="mobile"] .home-desktop-shot { display: none; }
#app[data-device="mobile"] .home-mobile-shot { display: block; }
#app[data-device="desktop"] .home-desktop-shot { display: block; }
@media (max-width: 600px) {
  #app:not([data-device]) .home-mobile-shot { display: block; }
}
.lg-home .lg-section-link .key { text-decoration: none; }

.home-faq-grid summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.home-faq-grid summary::-webkit-details-marker { display: none; }
.home-faq-grid summary::after {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #cfdeec;
  border-radius: 50%;
  background: linear-gradient(#20577f, #20577f) center / 12px 2px no-repeat,
    linear-gradient(#20577f, #20577f) center / 2px 12px no-repeat, #f2f7fc;
  transition: transform 220ms ease;
}
.home-faq-grid details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .home-faq-grid summary::after { transition: none; }
}
