/* css/pages/service.css */
.page-service {
  --home-slate: #384b60;
  --home-red: #cc0000;
  --home-green: #29ce90;
  --home-cyan: #19a9ec;
  --home-footer: #838f9e;
  color: #384b60;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.page-service main { min-height: 0; padding-top: 80px; }
.page-service .container { width: min(calc(100% - 64px), 1080px); }
.page-service .button { min-height: 52px; border-radius: 13px; font-size: 15px; }
.page-service .button--primary { background: linear-gradient(100deg, var(--home-green), var(--home-cyan)); }

.service-breadcrumbs { padding-top: 7px; color: #6f7986; font-size: 16px; }
.service-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-breadcrumbs li { display: flex; align-items: center; }
.service-breadcrumbs li + li::before { content: "/"; padding: 0 12px; color: #a2a8ae; }
.service-breadcrumbs a { color: #4e5d6d; text-decoration: none; }
.service-breadcrumbs a:hover { color: #cc0000; }
.service-breadcrumbs a:focus-visible { border-radius: 3px; outline: 3px solid #3483ca; outline-offset: 4px; }

.service-empty-content { min-height: 122px; }

.service-hero h1 {
  margin: 75px 0;
  color: #384b60;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 56px;
}

.page-service-sliv .service-hero,
.page-service-sliv .service-faq { width: min(calc(100% - 64px), 1200px); }

.service-hero__picture { display: block; }
.service-hero__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  transition: border-radius 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-hero__image:hover {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgb(0 0 0 / 15%);
    transform: scale(1.02) translateY(-5px);
  }
}

.service-faq {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 40px;
  border-radius: 12px;
  background: #f7f7f7;
}

.service-faq h2 {
  margin: 0 0 10px;
  color: #384b60;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.service-faq__reassurance {
  margin: 30px 0;
  padding: 20px;
  border-left: 4px solid #29ce90;
  border-radius: 10px;
  background: #efefef;
  color: #384b60;
  font-size: 1.2em;
  line-height: 1.4;
}

.service-faq__reassurance p { margin: 0; }
.service-faq__phone { color: #384b60; font-size: 1.05em; font-weight: 600; text-decoration: none; }
.service-faq__phone:hover { color: #29ce90; }
.service-faq__phone:focus-visible { border-radius: 3px; outline: 3px solid #3483ca; outline-offset: 4px; }

.service-faq__item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  transition: border-color 0.3s ease;
}
.service-faq__item:last-of-type { border-bottom: 0; }
.service-faq__item:hover { border-bottom-color: #29ce90; }
.service-faq__item h3 { margin: 0; font-size: inherit; }
.service-faq__item button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 1fr 35px;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #384b60;
  cursor: pointer;
  font: inherit;
  font-size: 1.2em;
  font-weight: 600;
  text-align: left;
}
.service-faq__item button::after {
  color: #29ce90;
  content: "+";
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}
.service-faq__item button[aria-expanded="true"]::after { content: "−"; }
.service-faq__item button:focus-visible { border-radius: 5px; outline: 3px solid #3483ca; outline-offset: 4px; }

.service-faq__answer {
  padding-right: 15px;
  color: #4a5568;
  line-height: 1.7;
}
.service-faq__answer[hidden] { display: none; }
.service-faq__answer p { margin: 0 0 12px; }
.service-faq__answer ol,
.service-faq__answer ul { margin: 0 0 12px; padding-left: 22px; }
.service-faq__answer li { margin-bottom: 10px; padding-left: 5px; font-size: 1.05em; }
.service-faq__subtitle {
  margin: 0 auto 30px;
  color: #5c5c5c;
  font-size: 1.05em;
  line-height: 1.5;
}

.page-service .floating-actions { bottom: 150px; }
.page-service .home-footer { padding-top: 35px; }
.page-service .home-footer__phone { font-size: 23px; white-space: nowrap; }
.page-service[data-stitch-fragment] .floating-actions,
.page-service[data-stitch-fragment] .cookie-banner { display: none; }
.page-service[data-stitch-fragment] { padding-bottom: 48px; }
.page-service[data-stitch-fragment] .home-header { position: absolute; }

@media (max-width: 1100px) {
  .page-service .container { width: min(calc(100% - 48px), 1080px); }
  .page-service-sliv .service-hero,
  .page-service-sliv .service-faq { width: min(calc(100% - 48px), 1200px); }
}

@media (max-width: 900px) {
  .page-service main { padding-top: 72px; }
}

@media (min-width: 621px) and (max-width: 900px) {
  .page-service .home-footer__grid { grid-template-columns: 1fr; }
  .page-service .home-footer__card { width: 100%; }
  .page-service .home-footer__logo { width: 294px; margin-inline: auto; }
  .page-service .home-footer__phone,
  .page-service .home-footer__card > .button,
  .page-service .home-footer__rating { width: 314px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .page-service { font-size: 14px; }
  .page-service .container { width: calc(100% - 20px); }
  .page-service-sliv .service-hero,
  .page-service-sliv .service-faq { width: calc(100% - 20px); }
  .page-service main { padding-top: 64px; }
  .service-breadcrumbs { padding-top: 22px; font-size: 14px; }
  .service-empty-content { min-height: 100px; }
  .service-hero h1 { margin: 25px 0; font-size: 24px; letter-spacing: 1px; line-height: 30px; }
  .service-faq { width: calc(100% - 20px); padding: 20px; }
  .service-faq h2 { font-size: 24px; }
  .service-faq__reassurance { padding: 16px; font-size: 1.05em; }
  .service-faq__item button { font-size: 1.1em; }
  .page-service .home-footer { padding-top: 33px; }
  .page-service .home-footer .container { width: calc(100% - 10px); }
  .page-service .home-footer__card { padding: 32px 20px 18px; }
  .page-service .home-footer__logo { width: calc(100% - 18px); min-height: 157px; margin-inline: auto; }
  .page-service .floating-actions { right: 9px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .page-service .floating-action { width: 45px; height: 45px; }
}

@media (max-width: 370px) {
  .page-service .container { width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero__image,
  .service-faq__item,
  .service-article-card,
  .service-hero__image:hover { transform: none; }
}
