/* ============================================================
   landing.css - sections of index.html: about, services (collapsible
   callouts), best works wall, renovation calculator, contacts.
   ============================================================ */

/* ===== About (dark section) ===== */

/* Two columns: the portrait card on the left spans both right-column
   rows, so it always matches the height of the text card plus the
   facts - the facts sit right under the card with no dead gap. */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas:
    "photo text"
    "photo facts";
  gap: 40px;
}

/* Both about panels share the standard dark card look used across the
   site: surface fill, hairline frame, one radius. */
.about__photo,
.about__text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about__photo {
  grid-area: photo;
  padding: 18px;
  min-height: 0;
  display: flex;
  perspective: 1200px;
}

.about__text {
  grid-area: text;
  padding: 28px;
}

/* ----- Portrait flip card -----
   The front is the founder's photo with a quiet "О руководителе"
   button pinned to the bottom; the back carries his words in quotes
   plus the "ОК" button. A tap anywhere on the card flips it (see
   setupAboutFlip in js/main.js). */

.about__flip-inner {
  position: relative;
  flex: 1;
  min-height: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.about__flip.is-flipped .about__flip-inner {
  transform: rotateY(180deg);
}

.about__flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front: the portrait fills the card, cropped to the top so the face
   stays in view even when the card is shorter than the photo. */
.about__flip-face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Back: the director's words on a plain dark panel. */
.about__flip-face--back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px;
  background: #2b3344;
  overflow-y: auto;
}

.about__flip-quote {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
}

.about__flip-signature {
  margin: 0;
  font-size: 14px;
  color: #aab2c0;
}

/* The calm outline button used on both faces of the card. */
.about__flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 19, 28, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.about__flip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* On the photo the button floats over the bottom edge; on the back
   face it is just another centered element. */
.about__flip-face--front .about__flip-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

/* The arrow is the desktop hint; a tap badge (mobile only, see
   responsive.css) replaces it on phones. */
.about__flip-arrow-char {
  font-weight: 400;
}

.about__flip-arrow-icon {
  display: none;
}

/* Facts: key numbers, the one place the accent works on the block. */
.about__facts {
  grid-area: facts;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about__text-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.about__lead {
  color: #dfe3ea;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.about__subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a93a5;
  margin: 0 0 10px;
}

/* The "Чем мы отличаемся" bullets: quiet gray dots, no accent noise. */
.about__text-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.about__text-list li {
  position: relative;
  padding-left: 16px;
  color: #cfd4dd;
  font-size: 15px;
  line-height: 1.55;
}

.about__text-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a93a5;
}

.about__facts strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.about__facts li {
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #cfd4dd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .about__facts li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }
}

/* ===== Services: collapsible callouts =====
   Native <details> holds the state; the smooth open/close animation
   is driven by js/main.js (the attribute flips only after the height
   animation ends, otherwise closing would be instant). */

/* Shared section eyebrow: quiet gray small caps, no accent - keeps
   the accent for the rare, meaningful moments only. */
.services-heading__eyebrow,
.best-works-title__eyebrow {
  display: block;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: #8a93a5;
  margin-bottom: 8px;
}

/* Shared section heading: one size and weight across the whole page
   so every section reads at the same pitch. */
.services-heading,
.best-works-title,
.calculator-title,
.reviews-head__title,
.section__title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
}

.services-heading {
  margin-bottom: 32px;
}

.best-works-title {
  margin-bottom: 32px;
}

.best-works-title__eyebrow--center {
  text-align: center;
}

.callouts-list {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* The service/FAQ cards are split into two independent columns by
   js/main.js (setupCalloutColumns): each column is its own stack, so
   opening a card shifts only the cards below it in its own column -
   the other column never moves. */
.callouts-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* A slight lift on hover (desktop only, so it doesn't stick on touch). */
@media (hover: hover) {
  .callout:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

/* The card is a <details>/<summary> pair: the wide photo on top and
   the title bar below it are the whole clickable head, so a tap or
   click anywhere on the card opens it. */
.callout__head {
  display: block;
  list-style: none; /* hide the native summary marker */
  cursor: pointer;
  user-select: none;
}

.callout__head::-webkit-details-marker {
  display: none;
}

/* Wide-format service photo: fills the card width, 16:9, cropped to
   stay flat and calm even while the card is closed. */
.callout__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2c3442;
}

/* Title bar under the photo: title on the left, toggle arrow on the
   right, the same padding as the rest of the dark cards. */
.callout__head-text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
}

.callout__head-text h3 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.callout__arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: #8a93a5;
  transition: transform 0.3s ease;
}

.callout.is-open .callout__arrow {
  transform: rotate(180deg);
}

/* The body is a height-animated wrapper; padding lives on the inner
   box so both <p> and lists sit neatly. */
.callout__body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.callout__body-inner {
  padding: 0 22px 22px;
}

/* Bullet list inside callouts: quiet gray dots, even gaps. */
.callout__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.callout__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: #cfd4dd;
}

.callout__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a93a5;
}

/* ===== Best works wall =====
   Top works from /api/works, rendered by js/best-works.js. A tile
   always shows the title; on hover the image gets an overlay with a
   short info snippet parsed from the work and a link to the specific
   work (work.html?id=...). */

.best-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.best-works-title {
  display: block;
}

.best-work {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .best-work:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

.best-work__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--placeholder);
}

.best-work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.best-work__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a93a5;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Hover overlay: info snippet + link to the specific work. */
.best-work__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(10, 14, 22, 0.94) 15%,
    rgba(10, 14, 22, 0.35) 65%,
    transparent
  );
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.best-work:hover .best-work__overlay {
  opacity: 1;
}

.best-work__overlay-info {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e6ec;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-work__overlay-link,
.best-work__link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.best-work__body {
  padding: 14px 18px 18px;
}

.best-work__title {
  font-size: 17px;
  color: #fff;
}

/* The info snippet and link live in the body; on desktop they are
   hidden (hover overlay takes over), on touch they are shown. */
.best-work__info,
.best-work__link {
  display: none;
}

/* Touch devices have no hover: show the info and link statically
   under the title instead of the overlay. */
@media (hover: none) {
  .best-work__overlay {
    display: none;
  }

  .best-work__info,
  .best-work__link {
    display: block;
  }

  .best-work__info {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #aab2c0;
  }
}

.best-works__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Calm outline pill linking to the full works list: the same quiet
   style as the "Все отзывы" link, so secondary CTAs match. */
.best-works__more-link {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.best-works__more-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* ===== Renovation cost calculator =====
   Full-width card with object/type/area inputs; the result replaces
   the form inside the card. Multipliers live in js/calculator.js
   (the CALC object). */

/* The card and the decorative photo sit side by side; the card stays
   compact (single column, up to 620px). When the result is shown the
   layout gains .is-result: the photo fades/shrinks away while the card
   flex-grows to fill the freed space. */
.calculator-layout {
  display: flex;
  align-items: stretch;
  gap: 40px;
  transition: gap 0.35s ease;
}

.calculator-layout.is-result {
  gap: 0;
}

.calc-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 1 620px;
  min-width: 0;
  /* The standard dark card look, like about/works cards. */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, flex-grow 0.35s ease;
}

.calculator-layout.is-result .calc-card {
  flex-grow: 1;
}

@media (hover: hover) {
  .calc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

.calc-card .section__title {
  margin-bottom: 4px;
}

/* Footnote asterisk in the card title and in the disclaimer under the
   form: bigger and raised so it is clearly visible. */
.calc-note-mark {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  vertical-align: super;
  margin-left: 4px;
}

/* ===== Calculator on the dark section =====
   The muted labels/notes use the same light grays as the about text on
   the dark background, and the outlined button flips to light. */
#calculator .calc__label,
#calculator .calc__unit,
#calculator .calc-note,
#calculator .calc-result__caption,
#calculator .calc-result__value .price-label {
  color: #b7c0cc;
}

#calculator .calc-result__reset {
  color: #b7c0cc;
  border-color: rgba(255, 255, 255, 0.25);
}

#calculator .calc-result__reset:hover {
  color: #fff;
  border-color: var(--accent);
}

#calculator .calc__precise {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

#calculator .calc__precise:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.calc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* The buttons stretch to fill the whole action row: they used to
   stop short of the card edge, leaving a dead gap next to the photo.
   flex-basis auto keeps the wrap logic on the buttons' real text
   widths, so narrow cards fall back to full-width stacked rows. */
.calc__actions .btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* The disclaimer: gray, smaller, italic. */
.calc-note {
  font-style: italic;
  font-size: 13px;
  color: #aab2c0;
  margin-top: 4px;
  text-align: center;
}

/* Outlined "precise estimate" button that opens the contact popup,
   next to the accent submit button. */
.calc__precise {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
  white-space: nowrap; /* the label must never wrap mid-phrase */
}

.calc__precise:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aab2c0;
}

.calc__input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  transition: border-color 0.2s;
}

.calc__input:focus-within {
  border-color: var(--accent);
  outline: none;
}

/* custom "Объект" dropdown — replaces the native <select> */
.calc-drop {
  position: relative;
}

.calc-drop__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-drop__trigger:hover,
.calc-drop.is-open .calc-drop__trigger {
  border-color: var(--accent);
}

.calc-drop__caret {
  flex: none;
  color: #b7c0cc;
  transition: transform 0.2s;
}

.calc-drop.is-open .calc-drop__caret {
  transform: rotate(180deg);
}

.calc-drop__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  list-style: none;
  padding: 6px;
  background: #20262f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.calc-drop.is-open .calc-drop__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calc-drop__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.calc-drop__option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.calc-drop__option.is-selected {
  color: var(--accent);
  font-weight: 600;
}

/* Renovation scale: filter-style pills with an info icon per option. */
.calc-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-scale__item {
  position: relative;
}

.calc-scale__pill {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

.calc-scale__pill:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.calc-scale__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #b7c0cc;
  background: none;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.calc-scale__btn:hover {
  color: #fff;
}

/* Info icon sits inside the pill after the label; on hover it fills
   with the accent like a button. */
.calc-scale__info {
  display: grid;
  place-items: center;
  width: 38px;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.2s;
}

.calc-scale__info:hover {
  background: var(--accent);
}

.calc-scale__info-icon {
  display: block;
  width: 15px;
  height: 15px;
}

.calc-scale__item.is-active .calc-scale__pill {
  background: var(--accent);
  border-color: var(--accent);
}

.calc-scale__item.is-active .calc-scale__btn {
  color: var(--dark);
}

/* Scale info popup content: the modal frame is shared with the
   contact popup (.contact-popup__dialog), only the bullet list and
   the OK button below are calculator-specific. */
.calc-scale__tip-list {
  list-style: none;
}

.calc-scale__tip-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #dfe3ea;
}

/* Airy spacing — the list sits inside a full modal popup now. */
.calc-scale__tip-list li + li {
  margin-top: 10px;
}

.calc-scale__tip-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* OK button: full-width accent bar at the bottom of the dialog,
   matching the contact popup's action row. */
.calc-scale__tip-ok {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-scale__tip-ok:hover {
  background: #f4b65e;
}

/* Inline validation message under the area field. */
.calc__error {
  font-size: 12.5px;
  color: #c0392b;
  text-align: left;
}

/* The area input is a bordered shell wrapping the bare input plus
   the "m2" unit suffix. */
.calc__input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.calc__input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 0 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: transparent;
}

.calc__input input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.calc__unit {
  padding: 0 14px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #b7c0cc;
  white-space: nowrap;
}

.calc__submit {
  height: 48px;
  padding: 0 34px;
  border-radius: 10px;
  white-space: nowrap;
}

/* The result replaces the form inside the card; when the image is
   hidden, the freed right column shows the selected options as chips. */
.calc-result {
  text-align: center;
  padding: 10px 0 4px;
}

/* Smooth swap on "Рассчитать": the form fades out (class added by
   js/calculator.js) and the result fades in with a slight rise. */
.calc {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calc--fade-out {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.calc-result,
.calc-result__options {
  animation: calc-result-in 0.35s ease-out;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calc-result__options {
  animation-delay: 0.05s;
  animation-fill-mode: backwards;
}

/* Reset direction (the "Рассчитать заново" button): the result fades
   out with the class added by js/calculator.js, then the form fades
   back in with the same keyframes. */
.calc-result--fade-out,
.calc-result__options--fade-out {
  animation: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.calc--fade-in {
  animation: calc-result-in 0.35s ease-out;
}

@keyframes calc-result-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Chips with the selected options (object, scale, area): a wrapping
   row under the price inside the result block. */
.calc-result__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.calc-result__chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #b7c0cc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
  text-align: center;
}

.calc-result__caption {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aab2c0;
  margin-bottom: 10px;
}

/* The price range: "from ... / to ..." on two lines with muted labels. */
.calc-result__value {
  font-size: 46px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.calc-result__value .price-from,
.calc-result__value .price-to {
  display: block;
  white-space: nowrap;
}

.calc-result__value .price-label {
  font-size: 18px;
  font-weight: 400;
  color: #aab2c0;
  margin-right: 8px;
}

.calc-result__reset {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #aab2c0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: 0.2s;
}

.calc-result__reset:hover {
  color: #fff;
  border-color: var(--accent);
}

/* Decorative photo beside the card (pure decoration, hidden on
   phones). While media/calculator.jpg is missing, only the caption
   is visible. */
.calc-visual {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--placeholder);
  border: 1px solid var(--line);
  min-height: 360px;
  transition: flex-grow 0.35s ease, opacity 0.35s ease;
}

.calculator-layout.is-result .calc-visual {
  flex-grow: 0;
  opacity: 0;
  pointer-events: none;
}

.calc-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Diagonal-striped placeholder shown until the photo is added. */
.calc-visual__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #aab2c0;
  text-transform: uppercase;
  letter-spacing: 1px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.35) 12px,
      rgba(255, 255, 255, 0.35) 24px
    ),
    var(--placeholder);
}

/* ===== Contacts ===== */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Desktop only: on touch a tap sticks to hover and the scaled card
   would blow past the viewport. */
@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

.contact-card__icon {
  width: 36px;
  height: 36px;
}

/* Phone and link cards hold buttons/links, not the whole card link:
   the default pointer cursor would suggest a single link. */
.contact-card--phone,
.contact-card--links {
  cursor: default;
}

.contact-card--links .contact-card__btn {
  text-decoration: none;
}

.contact-card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aab2c0;
}

.contact-card__value {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

/* Pill button inside a card: copy phone, open Telegram/VK. */
.contact-card__btn {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.contact-card__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.contacts-note {
  text-align: center;
  color: #aab2c0;
}

/* Work-hours note: outlined pill under the contact grid. */
.contacts-note--badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .contacts-note--badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
}
/* ===== How we work (stages timeline) =====
   Six stages on one horizontal line (sketch in ./graph): a numbered
   dot per stage sits on the line, the labels alternate above (visits
   and documents) and below (communication and construction). */

.how-we-work {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-we-work::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.28) 12%,
    rgba(255, 255, 255, 0.28) 88%,
    rgba(255, 255, 255, 0)
  );
}

.how-we-work__step {
  position: relative;
  min-height: 180px;
  text-align: center;
}

/* The dot: 40px circle centred on the line (line top 90px = dot
   centre). The step icon (icons/timeline/N.svg) sits inside the
   circle, 26px on top of the 40px accent fill. */
.how-we-work__dot {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

/* On hover the dot grows slightly; no glow - the accent is contained. */
@media (hover: hover) {
  .how-we-work__step:hover .how-we-work__dot {
    transform: translateX(-50%) scale(1.12);
  }
}

.how-we-work__dot img {
  width: 26px;
  height: 26px;
}

.how-we-work__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
}

/* Odd stages (1, 3, 5) sit below the line, even stages above it.
   Both rows keep the same gap to the line (the line spans y 90..92,
   the dots y 70..110): the bottom labels are pinned top: 120px, the
   top ones bottom: 120px, so one- and two-line labels sit equally
   far - 28px from the line, ~10px from the dots. */
.how-we-work__step:nth-child(odd) .how-we-work__label {
  top: 120px;
}

.how-we-work__step:nth-child(even) .how-we-work__label {
  bottom: 120px;
}

/* ===== FAQ (compact callouts) =====
   The same collapsible <details> cards as the services, minus the
   photo: a single row with the question on the left and the arrow on
   the right, a slightly smaller question and a tighter body. The
   arrow and the height animation are shared with the service
   callouts. */

.callout--compact {
  background: var(--surface);
  border-color: var(--line);
}

/* The shared hover lift also brightens the card background. */
@media (hover: hover) {
  .callout--compact:hover {
    background-color: #2b3344;
  }
}

/* No photo here, so the head becomes a plain row: the question
   stretches to fill the width and the arrow hugs the right edge. */
.callout--compact .callout__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.callout--compact .callout__head h3 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.callout--compact .callout__body-inner {
  padding: 0 18px 16px;
}

.callout--compact .callout__body-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #dfe3ea;
}
