/* ==========================================================================
   Storage Station — site.css
   Only what the design (d590eec) does not have: the consent box and form
   answers, the SEO block before the footer, the FAQ accordion and the
   template pages (page / branch / branches / article / guides).
   Built from base.css tokens; loaded after the page css. No rule here
   targets a class of the design, so design pages look exactly as before.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Consent + form answers (lead form, quote form)
   -------------------------------------------------------------------------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--color-gray);
  text-align: right;
  cursor: pointer;
}
.consent__box {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-blue-form);
  cursor: pointer;
}
.consent a { color: var(--color-blue-dark); text-decoration: underline; }
.consent__req { white-space: nowrap; }
.lead-form--lg .consent { font-size: clamp(14px, 0.9vw, 17px); }

.form-status {
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--color-blue-dark);
}
.form-status--error { color: #A1251B; }
.form-status a { text-decoration: underline; font-weight: var(--fw-bold); }
.quote-form__status.form-status--error { color: #A1251B; }

/* --------------------------------------------------------------------------
   2. Prose (Markdown body) + FAQ accordion
   -------------------------------------------------------------------------- */
.prose {
  max-width: 900px;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--color-text);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 1.6em;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-blue-dark);
}
.prose h3 {
  margin-top: 1.4em;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-blue-dark);
}
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }
.prose ul,
.prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--color-main); }
.prose a {
  color: var(--color-blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--color-main); }
.prose strong { font-weight: var(--fw-bold); }
.prose blockquote {
  padding: 16px 24px;
  border-inline-start: 4px solid var(--color-main);
  background: var(--color-bg-tint);
  border-radius: var(--radius-md);
}
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-blue-dark);
}
.prose th {
  padding: 12px 14px;
  background: var(--color-blue-dark);
  color: var(--color-bg-tint);
  font-weight: var(--fw-bold);
  text-align: right;
}
.prose td {
  padding: 12px 14px;
  background: var(--color-bg-tint);
  border-bottom: 1px solid var(--color-blue-dark);
  text-align: right;
  vertical-align: top;
}
.prose hr { border: 0; border-top: 1px solid var(--color-secondary); }

.faq { max-width: 900px; }
.prose + .faq { margin-top: clamp(40px, 4vw, 72px); }
.faq__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-blue-dark);
}
.faq__list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.faq__q {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 16px 24px 16px 56px;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--color-blue-dark);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {                       /* chevron on the left (RTL end) */
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background-color: var(--color-main);
  -webkit-mask: url("../assets/common/icon-chevron-down.svg") center / contain no-repeat;
          mask: url("../assets/common/icon-chevron-down.svg") center / contain no-repeat;
  transition: transform var(--transition);
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__q:hover { color: var(--color-main); }
.faq__a {
  padding: 0 24px 20px;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--color-gray);
}
.faq__a a { color: var(--color-blue-dark); text-decoration: underline; }

/* --------------------------------------------------------------------------
   3. SEO block before the footer (design pages)
   -------------------------------------------------------------------------- */
.seo-block {
  padding-block: var(--section-space);
  background: var(--color-white);
}
.seo-block__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seo-block__inner > * { width: 100%; max-width: 1075px; }
.seo-block .prose { max-width: 1075px; }
.seo-block .faq { max-width: 1075px; }
.seo-block__answer {
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-blue-dark);
}

/* --------------------------------------------------------------------------
   4. Template pages
   -------------------------------------------------------------------------- */
.tpl-hero { padding-block: clamp(24px, 3vw, 56px) clamp(32px, 3.5vw, 64px); }
.tpl-hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.tpl-crumbs .breadcrumb { font-size: clamp(15px, 1.05vw, 20px); }
.tpl-crumbs .breadcrumb a { text-decoration: underline; text-decoration-color: var(--color-secondary); text-underline-offset: 3px; }
.tpl-hero__title {
  max-width: 1100px;
  margin-top: clamp(14px, 1.4vw, 26px);
  font-size: clamp(34px, 3.6vw, 68px);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-blue-dark);
  text-wrap: balance;
}
.tpl-hero__meta { margin-top: 10px; font-size: 15px; color: var(--color-gray); }
.tpl-answer {
  max-width: 900px;
  margin-top: clamp(18px, 1.6vw, 30px);
  padding: clamp(18px, 1.6vw, 28px) clamp(18px, 1.8vw, 32px);
  background: var(--color-white);
  border-inline-start: 6px solid var(--color-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text);
}

.tpl-section { padding-block: clamp(24px, 2.6vw, 48px); }
.tpl-section--faq { padding-bottom: 0; }
.tpl-section__title {
  margin-bottom: clamp(16px, 1.5vw, 28px);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-blue-dark);
}
.tpl-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.tpl-note { max-width: 900px; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--color-blue-dark); }
.tpl-price-block .tpl-actions { margin-top: 24px; }

.tpl-form { display: flex; justify-content: center; }

/* Price table (same look as the home table of the design) */
.tpl-prices { max-width: 1075px; overflow-x: auto; }
.tpl-prices .price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  color: var(--color-blue-dark);
}
.tpl-prices .price-table thead tr { background: var(--color-blue-dark); }
.tpl-prices .price-table tbody tr { background: var(--color-bg-tint); }
.tpl-prices .price-table th {
  height: 57.67px;
  padding: 6px 12px;
  font-size: 18.83px;
  font-weight: var(--fw-bold);
  color: var(--color-bg-tint);
}
.tpl-prices .price-table td {
  height: 77.68px;
  padding: 6px 20px;
  border-bottom: 1.18px solid var(--color-blue-dark);
  font-size: 16.48px;
  line-height: 1.2;
}

/* Branch points: photo + facts */
.tpl-points { display: flex; flex-direction: column; gap: 24px; }
.tpl-point {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 2.5vw, 48px);
  align-items: center;
  padding: clamp(16px, 1.6vw, 28px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 24px;
}
.tpl-point__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.tpl-point__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-blue-dark);
}
.tpl-facts { display: grid; gap: 12px; margin: 16px 0 0; }
.tpl-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.tpl-facts dt { font-weight: var(--fw-bold); color: var(--color-blue-dark); }
.tpl-facts dd { margin: 0; color: var(--color-text); }
.tpl-facts a { color: var(--color-blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Branch photos: square thumbnails, large photo in a dialog (js/gallery.js) */
.tpl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tpl-gallery__item { display: block; border-radius: var(--radius-md); overflow: hidden; }
.tpl-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition);
}
.tpl-gallery__item:hover img { transform: scale(1.03); }
.tpl-gallery__item:focus-visible { outline: 3px solid var(--color-main); outline-offset: 2px; }
@media (max-width: 768px) {
  .tpl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 56px 16px 16px;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 100%; }
.lightbox__img { max-width: min(100%, 1200px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox__caption { font-size: 15px; text-align: center; }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 8px; left: 8px; }
.lightbox__prev { top: 50%; right: 8px; transform: translateY(-50%); }
.lightbox__next { top: 50%; left: 8px; transform: translateY(-50%); }
.tpl-facts__line { display: block; }
.tpl-facts--card {
  max-width: 900px;
  margin: 0 0 32px;
  padding: clamp(18px, 1.8vw, 32px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-body-lg);
}

/* Cards (branches) */
.tpl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
}
.tpl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.tpl-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tpl-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 18px 20px 20px; }
.tpl-card__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: 1.2; color: var(--color-blue-dark); }
.tpl-card__text { font-size: 16px; line-height: 1.4; color: var(--color-gray); }
.tpl-card__btn { align-self: flex-start; margin-top: auto; }
.tpl-card__body .tpl-card__text + .tpl-card__btn { margin-top: 12px; }

/* Guides list */
.tpl-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(16px, 1.5vw, 28px); }
.tpl-guide {
  padding: clamp(18px, 1.6vw, 28px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.tpl-guide__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: 1.25; color: var(--color-blue-dark); }
.tpl-guide__title a { text-decoration: underline; text-decoration-color: var(--color-secondary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tpl-guide__title a:hover { color: var(--color-main); }
.tpl-guide__text { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--color-gray); }

/* Article CTA band (gradient of the design) */
.tpl-cta {
  max-width: 1075px;
  padding: clamp(24px, 2.6vw, 48px);
  background: var(--gradient-band);
  border-radius: var(--radius-xl);
  color: var(--color-white);
}
.tpl-cta__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.15; }
.tpl-cta__text { max-width: 720px; margin-top: 10px; font-size: var(--fs-body-lg); line-height: 1.5; }
.tpl-cta .tpl-actions { margin-top: 20px; }

/* --------------------------------------------------------------------------
   5. Mobile (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .lead-form .consent { margin-top: 17px; font-size: 14px; }
  .lead-form .form-status { margin-top: 12px; }

  /* quote: the consent row joins the mobile grid between the card and the submit */
  .quote-hero__inner {
    grid-template-areas:
      "title   title"
      "text    text"
      "f1      media"
      "f2      media"
      "f3      media"
      "consent consent"
      "submit  submit"
      "status  status";
  }
  .quote-form__consent { grid-area: consent; margin-top: 18px; }

  .prose { font-size: 16px; }
  .faq__q { padding: 14px 16px 14px 48px; font-size: 17px; }
  .faq__q::after { left: 16px; width: 18px; height: 18px; margin-top: -9px; }
  .faq__a { padding: 0 16px 16px; font-size: 16px; }

  .tpl-hero__title { font-size: 34px; line-height: 1.1; }
  .tpl-answer { font-size: 16px; }
  .tpl-point { grid-template-columns: 1fr; }
  .tpl-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .tpl-cards,
  .tpl-guides { grid-template-columns: 1fr; }
  .tpl-actions .btn { width: 100%; }

  .tpl-prices { overflow-x: visible; }
  .tpl-prices .price-table { min-width: 0; table-layout: auto; }
  .tpl-prices .price-table th { height: auto; padding: 10px 6px; font-size: 13px; line-height: 1.25; }
  .tpl-prices .price-table td { height: auto; padding: 10px 6px; font-size: 13px; line-height: 1.3; }
}
