/* p_eco theme overrides — local fixes on top of verstka styles. */

/* Admin left sidebar (admin_toolbar module) must sit above the fixed navbar (z-index 1030).
   #admin-toolbar uses z-index: var(--admin-toolbar-z-index) where the variable
   is set on the same element via [data-drupal-admin-styles] selector. */
#admin-toolbar[data-drupal-admin-styles] {
  --admin-toolbar-z-index: 1100;
}

/* Drupal admin top-bar (.top-bar): horizontal admin toolbar rendered by the
   Navigation module on entity pages for logged-in admins. It defaults to
   position:fixed;top:0 which the site navbar (#navigation, z-index 1030)
   completely covers and hides. Put it back in the document flow so it sits
   above the navbar (64px) and scrolls away naturally; the navbar then sticks
   to top:0 via jquery.sticky.js once the top-bar scrolls off-screen.
   Body class is added by p_eco_preprocess_html() on entity.*.canonical routes. */
body.has-admin-top-bar .top-bar {
  position: relative !important;
}

/* Mobile menu: Bootstrap (defaults.css) sets .nav-collapse.collapse{height:0;overflow:hidden}
   on <=1024px and it wins over .collapse.in{height:auto}. When the burger toggles the .in
   class (via scripts.js), the menu stays at height:0 and is invisible. Restore height/overflow
   for the open state. */
@media only screen and (max-width: 1024px) {
  .nav-collapse.collapse.in {
    height: auto !important;
    overflow: visible !important;
  }
}

html, body {
  height: auto;
  min-height: 100%;
}

#fullscreen-slider,
#fullscreen-slider.slick-slider,
#fullscreen-slider .slick-list,
#fullscreen-slider .slick-track,
#fullscreen-slider .slick-slide {
  height: 720px;
}

@media (min-width: 768px) {
  #fullscreen-slider,
  #fullscreen-slider.slick-slider,
  #fullscreen-slider .slick-list,
  #fullscreen-slider .slick-track,
  #fullscreen-slider .slick-slide {
    height: 100vh;
  }
}

#fullscreen-slider .slick-slide > .node {
  height: 100%;
  width: 100%;
}

/* Partners: square cells like verstka (150x150 on desktop), logos centered & scaled to fit */
#partners-box .feature.high {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 10px;
  box-sizing: border-box;
}

/* All partner logos share one height (E4): the source PNGs came in wildly
   different sizes (116x65 next to 140x140), which made the strip look
   ragged. Width follows the aspect ratio, so logos stay undistorted. */
#partners-box .feature.high img {
  display: block;
  max-width: 100%;
  height: 64px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  #partners-box .feature.high {
    width: 120px;
    height: 120px;
  }

  #partners-box .feature.high img {
    height: 46px;
  }
}

/* News: cards */
.modular-row.features.news .news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 20px;
}
.modular-row.features.news .news-item .pic-box {
  overflow: hidden;
  margin-bottom: 10px;
}
.modular-row.features.news .news-item .pic-box img {
  display: block;
  width: 100%;
  height: auto;
}
.modular-row.features.news .news-item .date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

/* Contacts: map height follows the feedback-form column height */
.contacts {
  padding-bottom: 50px;
}

/* Contacts block: phone, e-mail, requisites and hours live in the hero block
   (/contacts), right under the lead text.

   The global rule gives every <p> a 10/15 padding — inside the hero that
   added ~25px of dead space to each line. Here the padding is reset and the
   rhythm is set by the grid gap: two columns (channels | company), items
   6px apart, columns 32px apart. */
.blog-header--contacts .lead > p {
  padding: 0;
  margin: 0 0 18px;
}

.contacts-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 6px;
  max-width: 580px;
}

.contacts-info__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-info p {
  margin: 0;
  padding: 0;
  line-height: 1.45;
}

/* Hierarchy: the phone is the primary action, requisites are quieter. */
.contacts-info .adress-phone a {
  font-size: 22px;
  line-height: 1.25;
}

.contacts-info .contacts-info__meta {
  color: #6c737a;
  font-size: 14.4px;
}

@media (max-width: 767px) {
  .contacts-info {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
}

/* White plate with the office address over the map — it must not cover the
   map itself, so only the heading and the address live there. */
.contacts .adress-block {
  z-index: 2;
  max-width: 300px;
  padding: 0 25px 15px 20px;
}

.contacts .adress-block h2 {
  font-size: 30px;
  padding-bottom: 8px;
}

.contacts .adress-block p {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.contacts .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.contacts .row > [class*="col-"]:first-child {
  display: flex;
  flex-direction: column;
}

#map_canvas {
  height: 100% !important;
  margin-bottom: 0 !important;
  flex: 1 1 auto;
  min-height: 400px;
}

#map_canvas iframe {
  height: 100% !important;
  display: block;
}

/* Карта на JavaScript API 2.1: скрипт рисует карту в этом контейнере.
   Высота наследуется от #map_canvas, который тянется по высоте соседней
   колонки с формой. */
#map_canvas .p-eco-map {
  width: 100%;
  height: 100% !important;
  min-height: 400px;
  display: block;
}

/* Stacked (below md): no sibling to define height → use fixed height */
@media (max-width: 991px) {
  #map_canvas {
    flex: 0 0 auto;
    height: 420px !important;
  }
}

/* Wide-slider (related products): floated slick-slides wrap into multiple rows
   because the track width (inline) exceeds the list width. Force single-row
   flex layout so slides line up horizontally as slick expects. */
.wide-slider .slick-track {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  height: auto !important;
}

.wide-slider .slick-list {
  height: auto !important;
}

/* Section with wide-slider: keep gap to footer (matches verstka spacing) */
.modular-row.features.news:last-child {
  padding-bottom: 50px;
}

/* Footer links: body.news (root_path body class) leaks .news .row div a
   (style.css:345) into the footer — all links get display:block + 50px margin.
   Reset to intended footer spacing. */
.footer .row div a {
  margin-bottom: 10px;
}
.footer .row .social a {
  display: inline-block;
  margin: 0 10px 0 0;
}

/* Footer contacts: the desktop rule with line-height lives inside
   @media (max-width: 767px) (style.css:1946), so on wide screens the block
   inherits the tiny body line-height (6.2px) and plain-text lines overlap.
   Also drop the font-weight: 500 (style.css:1283) — the rest of the footer
   (links, address, copyright) is 400, and the contacts looked heavy. */
.footer .contact-box {
  line-height: 1.6em;
  font-weight: 400;
}

/* Footer contacts: the phone is the primary action, the rest is quieter. */
.footer .contact-box .tel {
  font-size: 20px;
  line-height: 1.3;
}

.footer .contact-box__meta {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.4px;
  line-height: 1.6;
}

.footer .footer-company {
  color: rgba(255, 255, 255, 0.72);
}

/* Footer height: on wide screens the footer was 493px tall — mostly the
   190px empty gap before the copyright row (style.css:1294) plus generous
   container padding. Trim it down by ~14%. Mobile keeps its own spacing
   (style.css, @media max-width: 767px). */
@media (min-width: 768px) {
  .footer .container {
    padding-top: 50px;
    padding-bottom: 30px;
  }
  .footer .sub {
    padding-top: 135px;
  }
}

/* ==========================================================================
   Раздел «Услуги»
   Карточки услуг используют класс .news-item — те же стили, что у карточек
   новостей на главной (картинка → серая подпись → заголовок → текст).
   Собственных правил карточкам услуг не нужно: всё берётся из общих
   стилей .news-item.
   ========================================================================== */

/* ==========================================================================
   Drupal system elements styling
   style.css applies a global reset (border:0, background:transparent) and then
   styles all inputs with white-on-transparent (for dark sections). These overrides
   provide proper styling for Drupal forms, buttons, tabs, messages etc. on
   white-background pages (login, edit forms, search, admin pages).
   Dark section forms (.contacts, .inbox, .box) keep their original look.
   ==========================================================================

/* --- Form elements on light backgrounds ---
   style.css:1120 styles ALL inputs as transparent/white. Override for contexts
   outside the themed dark sections (.contacts, .inbox, .box, .footer). */

#body input[type="text"],
#body input[type="email"],
#body input[type="date"],
#body input[type="password"],
#body input[type="number"],
#body input[type="search"],
#body input[type="tel"],
#body input[type="url"],
#body select,
#body textarea {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  padding: 8px 12px;
  height: auto;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#body input[type="text"]:focus,
#body input[type="email"]:focus,
#body input[type="password"]:focus,
#body input[type="number"]:focus,
#body input[type="search"]:focus,
#body input[type="tel"]:focus,
#body input[type="url"]:focus,
#body select:focus,
#body textarea:focus {
  border-color: #666;
  border-bottom: 1px solid #666;
  outline: none;
}

/* Keep textarea auto-size */
#body textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

/* Keep select native height */
#body select {
  height: 40px;
}

/* --- Dark section form inputs: restore original verstka styling ---
   The #body input rules above (specificity 1-0-2) override the verstka
   .contacts/.inbox rules (specificity 0-1-2). These selectors add #body
   to raise specificity (2-1-2) and restore the transparent/white look
   that matches the dark background of these sections. */

#body .contacts input[type="text"],
#body .contacts input[type="email"],
#body .contacts input[type="date"],
#body .contacts input[type="password"],
#body .contacts select,
#body .contacts textarea,
#body .inbox input[type="text"],
#body .inbox input[type="email"],
#body .inbox input[type="date"],
#body .inbox input[type="password"],
#body .inbox select,
#body .inbox textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #A7B7BE;
  color: #A7B7BE;
  height: 48px;
  padding: 8px 0 7px;
  line-height: 1.8em;
}

#body .inbox input[type="text"],
#body .inbox input[type="email"],
#body .inbox textarea {
  border-bottom: 1px solid #fff;
  color: #fff;
}

#body .contacts input[type="text"]:focus,
#body .contacts input[type="email"]:focus,
#body .contacts input[type="password"]:focus,
#body .contacts textarea:focus,
#body .contacts select:focus {
  border-bottom: 1px solid #222D39;
  color: #222D39;
}

#body .inbox input[type="text"]:focus,
#body .inbox input[type="email"]:focus,
#body .inbox textarea:focus {
  border-bottom: 1px solid #fff;
  color: #fff;
}

#body .contacts textarea,
#body .inbox textarea {
  height: 136px;
  resize: none;
}

#body .contacts select {
  height: 39px;
}

/* --- Form items (labels, descriptions, wrappers) --- */

#body .form-item,
#body .js-form-item {
  margin-bottom: 16px;
}

#body .form-item__label,
#body label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

#body .form-item__description,
#body .form-required {
  color: #666;
  font-size: 0.85em;
}

#body .form-required {
  color: #e93735;
}

#body fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

#body legend {
  font-weight: 700;
  padding: 0 8px;
}

/* --- Drupal buttons ---
   Only style Drupal form submit buttons (.form-submit), NOT the verstka
   .button class which is used by designer buttons (.button.boxed,
   .button.primary.large.green, .button.primary.medium.lightgreen, etc.)
   in the contact form popup and contacts page. */

#body .form-submit,
#body input[type="submit"].form-submit {
  background: #222D39;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  height: auto;
  line-height: 1.5;
  margin: 0 4px 0 0;
  transition: background 0.2s;
}

#body .form-submit:hover {
  background: #2c3e50;
}

#body .form-submit.button--primary {
  background: #5a9e3e;
}

#body .form-submit.button--primary:hover {
  background: #4d8a35;
}

#body .form-submit.button--danger {
  background: #c0392b;
}

#body .form-submit.button--danger:hover {
  background: #a93226;
}

/* Drupal action links as .button (Add content etc.) — only outside designer forms */
#body > .layout-main .action-links a,
#body > .layout-main .action-links .button {
  background: transparent;
  color: #5a9e3e;
  border: 1px solid #5a9e3e;
  border-radius: 4px;
  padding: 8px 16px;
}

#body > .layout-main .action-links a:hover {
  background: #5a9e3e;
  color: #fff;
}

/* --- Restore verstka designer buttons in contact forms ---
   #body .form-submit rules above don't target <button class="button">, but
   global resets + Drupal core can still affect them. Ensure they match verstka. */

.contact_form .button,
#contact .button,
.contacts .button {
  background: transparent;
  border: none;
  border-radius: 0;
  color: #fff;
}

.contact_form .button.boxed,
#contact .button.boxed {
  border: 1px solid #fff;
}

/* lightgreen / green designer buttons on contacts page */
.contact_form .button.lightgreen,
.contacts .button.lightgreen {
  background: #5a9e3e;
  color: #fff;
}

.contact_form .button.lightgreen:hover,
.contacts .button.lightgreen:hover {
  background: #4d8a35;
}

/* --- Restore verstka checkboxes in contact forms ---
   Drupal core may set display:inline-block on checkboxes; verstka expects
   block with native 13px sizing. */

.contact_form input[type="checkbox"],
#contact input[type="checkbox"],
.contacts input[type="checkbox"] {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

/* --- Local tasks (tabs: View / Edit / Delete etc.) --- */

#body .tabs,
#body .local-tasks {
  margin: 0 0 20px;
}

#body .tabs ul,
#body .local-tasks ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #222D39;
  padding: 0;
  margin: 0;
}

#body .tabs li,
#body .local-tasks li {
  margin: 0;
}

#body .tabs a,
#body .local-tasks a {
  display: block;
  padding: 8px 16px;
  color: #555;
  font-size: 0.9em;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  margin-bottom: -2px;
}

#body .tabs a:hover,
#body .local-tasks a:hover {
  color: #222D39;
  background: #f5f5f5;
}

#body .tabs .is-active a,
#body .tabs a.is-active,
#body .local-tasks .is-active a {
  color: #222D39;
  font-weight: 600;
  border-color: #222D39;
  background: #fff;
}

/* --- Messages (status/warning/error) --- */

#body .messages {
  background: #f5f5f5;
  border-left: 4px solid #999;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
  color: #333;
}

#body .messages--status {
  border-left-color: #5a9e3e;
  background: #f0faf0;
}

#body .messages--warning {
  border-left-color: #f39c12;
  background: #fef9f0;
}

#body .messages--error {
  border-left-color: #c0392b;
  background: #fdf2f0;
}

/* --- Account menu (Login / Register / My account / Log out) --- */

.block-system-menu-block--account ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.block-system-menu-block--account li {
  margin: 0;
}

.block-system-menu-block--account a {
  color: #555;
  font-size: 0.85em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0;
}

.block-system-menu-block--account a:hover {
  color: #222D39;
  text-decoration: underline;
}

/* --- Pager --- */

#body .pager {
  margin: 20px 0;
}

#body .pager ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}

#body .pager li {
  margin: 0;
}

#body .pager a,
#body .pager .pager__item--current {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
}

#body .pager a:hover {
  background: #f5f5f5;
}

#body .pager .pager__item--current,
#body .pager .is-active a {
  background: #222D39;
  color: #fff;
  border-color: #222D39;
}

/* --- Breadcrumbs --- */

#body .breadcrumb {
  padding: 0;
  margin-bottom: 16px;
  font-size: 0.85em;
  color: #999;
}

#body .breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

#body .breadcrumb li {
  margin: 0;
}

#body .breadcrumb li::after {
  content: " /";
  margin: 0 4px;
  color: #ccc;
}

#body .breadcrumb li:last-child::after {
  content: "";
}

#body .breadcrumb a {
  color: #5a9e3e;
  text-decoration: none;
}

/* --- Page title for system pages --- */

#body h1.page-title {
  font-size: 2em;
  padding-bottom: 20px;
  color: #222D39;
}

/* --- Login / register / password pages: constrain width --- */

.page-user main,
.user-login-form,
.user-pass,
.user-register-form {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- Checkbox / radio alignment --- */

#body input[type="checkbox"],
#body input[type="radio"] {
  width: auto;
  margin-right: 6px;
  display: inline-block;
}

/* --- Table styling for admin-ish pages --- */

#body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#body th,
#body td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

#body th {
  background: #f5f5f5;
  font-weight: 700;
}

#body tr:nth-child(even) {
  background: #fafafa;
}

/* --- Vertical tabs (node edit sidebar) --- */

#body .vertical-tabs {
  border: 1px solid #ddd;
  border-radius: 4px;
}

#body .vertical-tabs__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#body .vertical-tabs__menu-item a {
  padding: 10px 14px;
  display: block;
  color: #333;
}

#body .vertical-tabs__menu-item.is-selected a {
  font-weight: 700;
}

/* ==========================================================================
   P-Eco contact form (rendered via Form API by p_eco_contact module).
   Drupal core adds .form-submit / .form-text classes that the generic
   #body rules above would override (blue Drupal button, white input bg).
   These rules restore the verstka .contact_form look with high specificity
   and add inline validation error highlighting.
   ========================================================================== */

/* --- Inputs/textareas: dark verstka style (transparent + bottom line).
   Default = white text/line (dark cards: .box, #contact modal).
   .contacts section overrides to grey text/line below. --- */

#body .contact_form input[type="text"],
#body .contact_form input[type="email"],
#body .contact_form input[type="tel"],
#body .contact_form input[type="password"],
#body .contact_form textarea,
#contact .contact_form input[type="text"],
#contact .contact_form input[type="email"],
#contact .contact_form input[type="tel"],
#contact .contact_form input[type="password"],
#contact .contact_form textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #fff;
  color: #fff;
  height: 48px;
  padding: 8px 0 7px;
  line-height: 1.8em;
  margin-bottom: 10px;
  box-shadow: none;
}

#contact .contact_form textarea,
#body .contact_form textarea {
  height: 136px;
  resize: none;
  display: block;
  width: 100%;
}

/* Contacts section: fields sit on a light section, so use grey text/line. */
#body .contacts .contact_form input[type="text"],
#body .contacts .contact_form input[type="email"],
#body .contacts .contact_form input[type="tel"],
#body .contacts .contact_form input[type="password"],
#body .contacts .contact_form textarea {
  border-bottom: 1px solid #A7B7BE;
  color: #A7B7BE;
}

#body .contacts .contact_form input[type="text"]:focus,
#body .contacts .contact_form input[type="email"]:focus,
#body .contacts .contact_form input[type="tel"]:focus,
#body .contacts .contact_form textarea:focus {
  border-bottom: 1px solid #222D39;
  color: #222D39;
}

/* --- Placeholders ---
   defaults.css forces ::placeholder { color:#999 } globally — unreadable on
   the green modal background. Match the verstka intent: white at ~0.5 opacity
   on dark/green cards, muted grey on the light .contacts section. The
   :placeholder-shown opacity (verstka style.css) is preserved below. */

#body .contact_form input::placeholder,
#body .contact_form textarea::placeholder,
#contact .contact_form input::placeholder,
#contact .contact_form textarea::placeholder {
  color: #fff;
  opacity: 0.72;
}

#body .contacts .contact_form input::placeholder,
#body .contacts .contact_form textarea::placeholder {
  color: #A7B7BE;
  opacity: 1;
}

#body .contact_form input:placeholder-shown,
#body .contact_form textarea:placeholder-shown,
#contact .contact_form input:placeholder-shown,
#contact .contact_form textarea:placeholder-shown {
  opacity: 0.72;
}

#body .contacts .contact_form input:placeholder-shown,
#body .contacts .contact_form textarea:placeholder-shown {
  opacity: 1;
}

/* --- Checkboxes on green/modal background ---
   The native checkbox renders black on the green overlay; scale it up and
   whiten it via accent-color so it matches the white-on-green UI. The light
   .contacts section keeps the default dark accent. */

#body .contact_form input[type="checkbox"],
#contact .contact_form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 4px 8px 0 0;
  vertical-align: top;
  accent-color: #fff;
}

#body .contacts .contact_form input[type="checkbox"] {
  accent-color: #5a9e3e;
}

/* --- Submit button: restore verstka .button look (per variant).
   #body .form-submit (1-1-0) is overridden by these (1-3-1). --- */

#body .contact_form input[type="submit"].form-submit,
#contact .contact_form input[type="submit"].form-submit {
  background: transparent;
  border: none;
  border-radius: 0;
  color: #fff;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  height: auto;
  line-height: 40px;
  margin: 20px 0 0;
  padding: 0 30px 2px;
  transition: none;
}

/* Modal / dark card variant: boxed (transparent + white outline). */
#body .contact_form input[type="submit"].form-submit.boxed,
#contact .contact_form input[type="submit"].form-submit.boxed {
  border: 1px solid #fff;
  font-size: 1.1em;
  padding: 0 40px;
}

/* Inline (contacts section) variant: green button. */
#body .contact_form input[type="submit"].form-submit.lightgreen,
.contacts .contact_form input[type="submit"].form-submit.lightgreen {
  background: #5a9e3e;
  color: #fff;
  font-size: 1em;
  min-width: 100px;
  margin: 10px 0 0;
  padding: 0 40px 2px;
}

#body .contact_form input[type="submit"].form-submit.lightgreen:hover,
.contacts .contact_form input[type="submit"].form-submit.lightgreen:hover {
  background: #4d8a35;
}

/* --- Consent checkbox + label ---
   Wrapped in .consent-row (via #prefix/#suffix) for a stable flex layout. */

.contact_form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1em;
  line-height: 1.4em;
}

.contact_form .consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 4px 0 0;
  cursor: pointer;
}

.contact_form .consent-row label {
  flex: 1 1 auto;
  color: #fff;
  font-weight: normal;
  cursor: pointer;
}

/* Contacts section: dark label text on light background. */
#body .contacts .contact_form .consent-row label {
  color: #000;
}

/* --- Inline validation errors (Drupal adds .error to failed fields) --- */

.contact_form input.error,
.contact_form textarea.error {
  border-bottom: 2px solid #e93735 !important;
  background: rgba(233, 55, 53, 0.08) !important;
}

.contact_form input[type="checkbox"].error {
  outline: 2px solid #e93735;
  outline-offset: 2px;
  border-bottom: none !important;
  background: transparent !important;
}

/* Highlight the consent label when its checkbox failed validation. */
#body .contact_form .consent-row input[type="checkbox"].error ~ label,
#contact .contact_form .consent-row input[type="checkbox"].error ~ label {
  color: #e93735 !important;
}

/* --- Status messages inside the contact form AJAX wrapper ---
   Drupal 11 renders messages WITHOUT .messages classes — the structure is
   [data-drupal-messages] > div[role=contentinfo] > [div[role=alert]] > ul.
   Error messages wrap content in an extra <div role="alert">; status/success
   do not. We style via :has() on that child to differentiate. */

.p-eco-contact-wrapper [data-drupal-messages] {
  margin: 0 0 14px;
}

.p-eco-contact-wrapper [data-drupal-messages] > div {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: none;
  border-radius: 4px;
  border-left: 4px solid #5a9e3e;
  background: #f4f9f0;
  color: #2d4a23;
  font-size: 0.95em;
  line-height: 1.5;
  box-shadow: none;
  overflow: hidden;
}

/* Success icon (check). */
.p-eco-contact-wrapper [data-drupal-messages] > div::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 18px;
  color: #5a9e3e;
  line-height: 1;
}

.p-eco-contact-wrapper [data-drupal-messages] > div a {
  color: #4d8a35;
}

.p-eco-contact-wrapper [data-drupal-messages] ul {
  margin: 0;
  padding-left: 18px;
}

.p-eco-contact-wrapper [data-drupal-messages] ul li {
  margin: 2px 0;
}

.p-eco-contact-wrapper [data-drupal-messages] h2.visually-hidden {
  /* Keep accessible but hidden visually. */
}

/* Error variant: the message box contains a [role="alert"] child. */
.p-eco-contact-wrapper [data-drupal-messages] > div:has([role="alert"]) {
  border-left-color: #e93735;
  background: #fdf2f2;
  color: #7a1f1d;
}

.p-eco-contact-wrapper [data-drupal-messages] > div:has([role="alert"])::before {
  content: "\f071";
  color: #e93735;
}

.p-eco-contact-wrapper [data-drupal-messages] > div:has([role="alert"]) a {
  color: #c0392b;
}

/* --- Success message (replaces form after AJAX submit) --- */

.p-eco-contact-wrapper .contact-success {
  padding: 20px 16px;
  text-align: center;
}

.p-eco-contact-wrapper .contact-success h4 {
  margin: 0 0 8px;
  color: #5a9e3e;
  font-size: 1.4em;
}

.p-eco-contact-wrapper .contact-success p {
  margin: 0;
  color: #555;
}

/* ==========================================================================
   Personal-data page (/personal-data)
   Plain (imageless) variant of the .blog-header hero used on about/contacts.
   Keeps the same structure (dark band + #blog container) but drops the
   background image and the offset lead box.
   ========================================================================== */

.blog-header--plain {
  background-image: none !important;
  background-color: #222D39;
  min-height: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
  padding: 70px 0;
  display: block;
}

.blog-header--plain .container.no-padding {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.blog-header--plain .lead {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.blog-header--plain .lead h1 {
  color: #fff;
  margin: 0;
  font-size: 2.4em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}
/* ==========================================================================
   Единая палитра (пункт C4)
   Один акцентный зелёный — для CTA, счётчиков и ссылок.
   Один нейтральный тёмный — для второстепенных кнопок.
   Второй оттенок зелёного (#5a9e3e / #85BC3A) больше не используется.
   ========================================================================== */

:root {
  --peco-accent: #6DC300;
  --peco-accent-dark: #48a63e;
  --peco-neutral: #222D39;
  --peco-neutral-light: #2c3e50;
}

.counters .count {
  color: var(--peco-accent);
}

/* Заголовок преимущества на главной: тот же уровень, что на /about. */
.counter-grid h3 {
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1.3;
  padding-bottom: 8px;
  margin: 0;
}

/* Длинные значения счётчиков (например, «15 000») не должны переноситься
   на две строки в узкой колонке — уменьшаем кегль только на узких экранах. */
@media (max-width: 767px) {
  .counters .count {
    font-size: 2.5em;
    white-space: nowrap;
  }
}

/* Второстепенные кнопки — нейтральный цвет, а не второй оттенок зелёного. */
.contact_form .button.lightgreen,
.contacts .button.lightgreen,
#body .contact_form input[type="submit"].form-submit.lightgreen,
.contacts .contact_form input[type="submit"].form-submit.lightgreen {
  background: var(--peco-neutral);
  color: #fff;
}

.contact_form .button.lightgreen:hover,
.contacts .button.lightgreen:hover,
#body .contact_form input[type="submit"].form-submit.lightgreen:hover,
.contacts .contact_form input[type="submit"].form-submit.lightgreen:hover {
  background: var(--peco-neutral-light);
}

/* ==========================================================================
   Полноэкранный слайдер (пункты C8, D3)
   Фон — обычный <img> внутри <picture>: у него есть размеры (нет CLS) и
   srcset, а URL подставляется скриптом только для активного слайда.
   ========================================================================== */

.home-slider {
  position: relative;
}

#fullscreen-slider .slick-slide > .node {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#fullscreen-slider .slide-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#fullscreen-slider .slide-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Заголовок слайда: h1 у первого слайда, h2 у остальных.
   Стили задаём по классу с id-префиксом: в style.css есть
   .div-align-center h1 (4.2em) и .div-align-center h2 (2.5em + margin),
   и без повышения специфичности слайды выглядели бы по-разному —
   заголовок у второго и третьего слайда был в полтора раза мельче,
   а снизу появлялся лишний отступ. */
#fullscreen-slider .div-align-center .slide-title {
  font-size: 4.2em;
  color: #fff;
  display: inline-block;
  margin: 0 auto;
  padding: 0 0 8px;
  position: relative;
  text-align: left;
  vertical-align: middle;
  text-transform: none;
  line-height: 1em;
  letter-spacing: 0;
}

/* Подзаголовок — уровень h2 в макете, описание — уровень p. */
#fullscreen-slider .slide-subtitle {
  font-size: 2.5em;
  color: #fff;
  line-height: 1.15em;
  padding: 0;
  margin: 0 0 10px;
  opacity: 1;
  max-width: 720px;
}

#fullscreen-slider .slide-description {
  font-size: 1.6em;
  color: #fff;
  line-height: 1.3em;
  margin: 8px 0;
  padding: 0;
  max-width: 640px;
  opacity: 1;
}

.slide-cta {
  margin-top: 16px;
}

/* Планшет — размеры слайда как в макете (style.css, @media 1024px). */
@media only screen and (max-width: 1024px) {
  #fullscreen-slider .div-align-center .slide-title {
    font-size: 2.8em;
    padding: 0 0 10px;
  }

  #fullscreen-slider .slide-subtitle {
    font-size: 1.8em;
  }

  #fullscreen-slider .slide-description {
    font-size: 1.7em;
  }
}

/* Значок-подсказка «вниз» вместо второй кнопки «Узнать больше». */
.link-more {
  bottom: 0;
  font-size: 1.6em;
  text-align: center;
}

.link-more i {
  display: inline-block;
  animation: pEcoScrollHint 2s ease-in-out infinite;
}

@keyframes pEcoScrollHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Появление блоков при прокрутке (плитки каталога, счётчики преимуществ)
   Раньше эффект «прилёт сбоку» делал jQuery-плагин appear.js: он отслеживал
   скролл и анимировал opacity/left. Плагин не работал: класс no-js на <html>
   не снимался, а правило .no-js .element_from_left { opacity: 1 } показывало
   блоки сразу, минуя анимацию.

   Теперь состояние и переход описаны в CSS, JS (js/scripts.js) только
   добавляет класс .is-visible, когда блок попал в кадр. Класс pEco-anim
   ставит инлайн-скрипт в templates/layout/html.html.twig — без JS блоки
   видны сразу.

   На экранах ≤1024px эффект отключён — как в исходном макете
   (style.css, @media max-width 1024px: opacity 1, left 0).
   ========================================================================== */

.element_from_left,
.element_from_right,
.element_from_top,
.element_from_bottom,
.element_fade_in {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (min-width: 1025px) {
  .pEco-anim .element_from_left {
    left: 0;
    opacity: 0;
    transform: translate3d(-80px, 0, 0);
  }

  .pEco-anim .element_from_right {
    right: 0;
    opacity: 0;
    transform: translate3d(80px, 0, 0);
  }

  .pEco-anim .element_from_top {
    top: 0;
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }

  .pEco-anim .element_from_bottom {
    bottom: 0;
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }

  .pEco-anim .element_fade_in {
    opacity: 0;
  }

  .pEco-anim .element_from_left.is-visible,
  .pEco-anim .element_from_right.is-visible,
  .pEco-anim .element_from_top.is-visible,
  .pEco-anim .element_from_bottom.is-visible,
  .pEco-anim .element_fade_in.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Пользователь просил меньше движения — показываем блоки сразу. */
@media (prefers-reduced-motion: reduce) {
  .element_from_left,
  .element_from_right,
  .element_from_top,
  .element_from_bottom,
  .element_fade_in {
    transition: none;
  }

  .pEco-anim .element_from_left,
  .pEco-anim .element_from_right,
  .pEco-anim .element_from_top,
  .pEco-anim .element_from_bottom,
  .pEco-anim .element_fade_in {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Каталог «Мы производим» (пункты B1, C1, C3)
   Вёрстка — как в исходном макете: коллаж плиток разной ширины (col-lg-8 /
   col-lg-4 / col-lg-6) со сдвигами switched, subheader-left/right и
   подзаголовком «Продукция». Здесь только то, чего нет в style.css:
   <picture> вместо <img> и снятие вылета за левый край на телефоне.
   ========================================================================== */

.production .subheader-box picture {
  display: block;
  width: 100%;
}

.production .subheader-box img {
  display: block;
  width: 100%;
  height: auto;
}

.production-cta {
  padding-top: 4px;
}

.production-cta .button {
  display: inline-block;
  padding: 12px 26px;
}

/* ==========================================================================
   Карта на мобильном (пункт B3)
   Раньше бесплатный виджет Яндекса перекрывал рекламой половину карты,
   поэтому на телефоне вместо карты была ссылка на Яндекс Карты.
   Теперь карта нарисована через JavaScript API 2.1 — рекламы в ней нет,
   поэтому карта показывается на всех экранах, а ссылка осталась
   быстрым способом открыть маршрут в приложении Яндекс Карт.
   ========================================================================== */

.map-mobile {
  display: none;
}

@media (max-width: 767px) {
  /* Карта на телефоне: фиксированная высота, как и на планшете. */
  #map_canvas.map-desktop {
    display: block;
    height: 420px !important;
    min-height: 420px;
  }

  #map_canvas .p-eco-map {
    height: 100% !important;
    min-height: 420px;
  }

  /* «Офис» с адресом на телефоне не дублируется: адрес уже есть в блоке
     «Контакты» выше. */
  .contacts--page .adress-block {
    display: none;
  }

  /* На главной адрес в футере, а плашка на карте — единственное его
     упоминание в этой секции. Уменьшаем её, чтобы не закрывать карту. */
  .contacts:not(.contacts--page) .adress-block {
    max-width: 220px;
    padding: 0 16px 10px 14px;
  }

  .contacts:not(.contacts--page) .adress-block h2 {
    font-size: 21px;
    padding-bottom: 4px;
  }

  .contacts:not(.contacts--page) .adress-block p {
    font-size: 13px;
    line-height: 1.4;
  }

  .map-mobile {
    display: block;
    /* Отступ от карты сверху и от формы снизу — ссылка не должна
       прилипать ни к тому, ни к другому. */
    margin: 20px 0 34px;
  }

  .map-link {
    display: inline-block;
    padding: 14px 20px;
    border: 1px solid #A7B7BE;
    color: var(--peco-neutral);
    text-decoration: none;
    font-weight: 600;
  }

  .map-link:hover {
    border-color: var(--peco-neutral);
  }
}

/* ==========================================================================
   Мобильная вёрстка (пункт B2)
   Карточки не должны вылезать за левый край экрана на 390px.
   ========================================================================== */

@media (max-width: 767px) {
  /* Коллаж: плитки не должны вылезать за левый край экрана на 390px. */
  .production .subheader-left,
  .production .subheader-right {
    margin-left: 0;
    margin-right: 0;
  }

  /* Мобильные размеры слайда — как в макете (style.css, @media 767px). */
  #fullscreen-slider .div-align-center .slide-title {
    font-size: 3em;
  }

  #fullscreen-slider .slide-subtitle {
    font-size: 2em;
  }

  #fullscreen-slider .slide-description {
    font-size: 1.5em;
  }
}

/* ==========================================================================
   Формы: видимые подписи, подсказки и тексты ошибок (пункт E3)
   ========================================================================== */

#body .contact_form label,
#contact .contact_form label,
.contact_form label {
  display: block;
  color: #fff;
  opacity: 0.75;
  font-size: 0.85em;
  font-weight: 400;
  margin: 0 0 6px;
  padding: 0;
}

/* Секция контактов — светлый фон, подписи приглушённого серого. */
#body .contacts .contact_form label {
  color: #A7B7BE;
  opacity: 1;
}

.contact_form .form-item__description,
.contact_form .description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8em;
  font-weight: 400;
  margin: -2px 0 10px;
  padding: 0;
}

#body .contacts .contact_form .form-item__description,
#body .contacts .contact_form .description {
  color: #8998a1;
}

.contact_form .form-item--error-message,
.contact_form .error-message,
.contact_form .messages--error {
  color: #ffd9d6;
  font-size: 0.85em;
  font-weight: 400;
  margin: 6px 0 0;
  padding: 0;
}

#body .contacts .contact_form .form-item--error-message,
#body .contacts .contact_form .error-message {
  color: #c0392b;
}

/* С подписью над полем между заголовком и полем нужен воздух. */
.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"],
.contact_form textarea {
  margin-bottom: 16px;
}

/* ==========================================================================
   Контейнер без внутреннего отступа (пункт B2)
   У .row отрицательный отступ -15px, поэтому в контейнере без padding
   содержимое уезжало за левый край экрана (x = −16 на 390px).
   ========================================================================== */

@media (max-width: 767px) {
  /* .row внутри контейнера без padding уезжал за левый край экрана
     (x = −16 на 390px): у .row отрицательный отступ −15px, который
     без padding у контейнера никем не компенсировался. */
  .container.no-padding > .row,
  .container.no-padding .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   Формы: фирменный шрифт
   Браузер по умолчанию рисует поля и кнопки системным Arial — в блоке
   формы это выглядит как чужеродная вставка. Наследуем шрифт темы.
   Размер остаётся прежним (font-size: 100% из defaults.css).
   ========================================================================== */

input,
textarea,
select,
button {
  font-family: inherit;
}

/* ==========================================================================
   Списки: нормальный интерлиньяж
   Bootstrap (defaults.css) задаёт li { line-height: 20px } — для текста
   16px это тесные 1.25. Возвращаем 1.5, как у соседних абзацев.
   Списки в навигации и подвале переопределены собственными правилами.
   ========================================================================== */

li {
  line-height: 1.5;
}

/* ==========================================================================
   Страница «О компании» (/about)
   Структура: hero → «Компания в цифрах» → текст + форма →
   «Наши преимущества» → фотоблок «Производство и монтаж».
   ========================================================================== */

/* --- Типографика ---------------------------------------------------------
   В теме h1 и h2 были одного кегля (48px) — иерархия страницы не читалась.
   Теперь: h1 — заголовок страницы, h2 — заголовок секции, h3 — подзаголовок.
   ---------------------------------------------------------------------- */

.page-about h1 {
  font-size: 3em;
  line-height: 1.1;
  padding-bottom: 18px;
}

.page-about h2 {
  font-size: 2em;
  line-height: 1.25;
  padding-bottom: 16px;
}

.page-about h3 {
  font-size: 1.25em;
  line-height: 1.35;
  font-weight: 500;
  padding-bottom: 8px;
}

/* --- Hero ----------------------------------------------------------------
   Фото производства во всю ширину, поверх — белая карточка с лидом.
   ---------------------------------------------------------------------- */

.page-about .about-hero {
  background-size: cover;
  background-position: center 45%;
  min-height: 560px;
  margin-bottom: 0;
}

.page-about .about-hero .lead {
  padding: 60px 56px 56px;
}

.page-about .about-hero .lead h1 {
  margin: 0 0 18px;
  padding: 0;
}

.page-about .about-hero .lead p {
  font-size: 1.05em;
  line-height: 1.6;
  padding: 0 0 16px;
  opacity: 1;
  color: var(--peco-neutral);
}

.page-about .about-hero .lead p.accent {
  font-size: 1.25em;
  line-height: 1.45;
  font-weight: 500;
  padding: 0;
  color: var(--peco-neutral);
}

/* --- Текст страницы ------------------------------------------------------
   Вертикальный ритм: отступ между абзацами задаёт margin, а не padding
   у каждого абзаца (в теме у p были padding 10px сверху и 15px снизу).
   ---------------------------------------------------------------------- */

.page-about .about-content p {
  font-size: 1em;
  line-height: 1.65;
  margin: 0 0 18px;
  padding: 0;
  opacity: 1;
  color: #333;
}

.page-about .about-content p.accent {
  font-size: 1.15em;
  line-height: 1.55;
  font-weight: 500;
  color: var(--peco-neutral);
  margin-bottom: 28px;
}

.page-about .about-content h2 {
  margin: 40px 0 18px;
}

.page-about .about-content ul {
  margin: 0 0 20px;
}

/* Список городов — компактной строкой, а не столбиком из 14 пунктов. */
.page-about .about-content ul.about-content__cities,
.page-about .about-geo__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-content ul.about-content__cities li,
.page-about .about-geo__cities li {
  padding: 6px 12px 6px 22px;
  margin: 0;
  font-size: .95em;
  line-height: 1.3;
  color: var(--peco-neutral);
  background: #F2F4F3;
  border-radius: 2px;
}

.page-about .about-content ul.about-content__cities li:before,
.page-about .about-geo__cities li:before {
  left: 10px;
  top: 14px;
  background: var(--peco-accent);
}

/* --- Форма обратной связи ------------------------------------------------
   Панель формы на странице — тёмная, как полоса «Компания в цифрах» и
   подвал. На зелёном фоне плейсхолдеры были почти нечитаемы.
   ---------------------------------------------------------------------- */

.page-about .about-form__title {
  font-size: 1.35em;
  line-height: 1.3;
  font-weight: 500;
  padding-bottom: 18px;
}

.page-about #contact.overlay {
  background: var(--peco-neutral);
  border-radius: 2px;
  padding: 30px 34px 34px;
}

.page-about #contact .box {
  padding-top: 0;
}

.page-about #contact .about-form__title {
  color: #fff;
}

.page-about #contact .contact_form input::placeholder,
.page-about #contact .contact_form textarea::placeholder {
  color: rgba(255, 255, 255, .62);
  opacity: 1;
}

.page-about #contact .contact_form input:placeholder-shown,
.page-about #contact .contact_form textarea:placeholder-shown {
  opacity: 1;
}

/* Кнопка на тёмной панели: зелёная, иначе сливается с фоном. */
.page-about #contact .contact_form .button,
.page-about #contact .contact_form input[type="submit"].form-submit {
  background: var(--peco-accent);
  border-color: var(--peco-accent);
  color: #fff;
}

.page-about #contact .contact_form .button:hover,
.page-about #contact .contact_form input[type="submit"].form-submit:hover {
  background: var(--peco-accent-dark);
  border-color: var(--peco-accent-dark);
}

/* --- Секции страницы: общая ширина и вертикальные отступы --------------- */

.page-about .about-numbers,
.page-about .about-advantages,
.page-about .about-gallery {
  padding: 76px 0;
}

.page-about .about-numbers .container,
.page-about .about-advantages .container,
.page-about .about-gallery .container {
  width: 1200px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about .about-numbers__head,
.page-about .about-advantages__head,
.page-about .about-gallery__head {
  max-width: 780px;
  margin-bottom: 44px;
}

.page-about .about-numbers__lead,
.page-about .about-advantages__lead,
.page-about .about-gallery__lead {
  font-size: 1.05em;
  line-height: 1.6;
  padding: 0;
  opacity: 1;
  color: #555;
}

/* --- «Компания в цифрах» -------------------------------------------------
   Тёмная полоса-техпаспорт: цифра, единица измерения и подпись.
   ---------------------------------------------------------------------- */

.page-about .about-numbers {
  background-color: var(--peco-neutral);
}

.page-about .about-numbers h2 {
  color: #fff;
  padding-bottom: 12px;
}

.page-about .about-numbers__lead {
  color: rgba(255, 255, 255, .62);
}

.page-about .about-numbers__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-numbers__item {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 16px;
}

.page-about .about-numbers__value {
  font-size: 2.9em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--peco-accent);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.page-about .about-numbers__label {
  font-size: .95em;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
  margin: 10px 0 0;
  padding: 0;
}

/* --- «Наши преимущества» ------------------------------------------------- */

.page-about .about-advantages__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-advantages__icon {
  display: block;
  margin-bottom: 14px;
}

.page-about .about-advantages__title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--peco-neutral);
}

.page-about .about-advantages__text {
  font-size: .95em;
  line-height: 1.6;
  color: #555;
  margin: 0;
  padding: 0;
  opacity: 1;
}

/* --- Фотоблок «Производство и монтаж» ------------------------------------
   Сетка CSS Grid: одно крупное фото слева и два меньших справа.
   ---------------------------------------------------------------------- */

.page-about .about-gallery {
  padding-bottom: 90px;
}

.page-about .about-gallery__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
  aspect-ratio: 1200 / 640;
  margin: 0;
}

.page-about .about-gallery__item {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
}

/* Крупное фото занимает обе строки левой колонки. */
.page-about .about-gallery__item--large {
  grid-row: 1 / span 2;
}

.page-about .about-gallery__item img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.page-about .about-gallery__item figcaption {
  flex: 0 0 auto;
  padding-top: 12px;
  font-size: .85em;
  line-height: 1.45;
  color: #8d9aa3;
}

/* --- Секция «География работ»: карта России с точками городов ---------
   Карта — SVG из scripts/build_geo_map.py (границы регионов Natural
   Earth), точки — HTML-слой поверх: координаты в процентах от карты,
   подписи доступны скринридеру.
   ---------------------------------------------------------------------- */

.page-about .about-geo {
  padding: 76px 0;
}

.page-about .about-geo .container {
  width: 1200px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about .about-geo__head {
  max-width: 780px;
  margin-bottom: 40px;
}

.page-about .about-geo__lead {
  font-size: 1.05em;
  line-height: 1.6;
  padding: 0;
  opacity: 1;
  color: #555;
}

.page-about .about-geo__map {
  position: relative;
  margin: 0;
}

.page-about .about-geo__map img {
  display: block;
  width: 100%;
  height: auto;
}

.page-about .about-geo__points {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-about .about-geo__point {
  position: absolute;
  width: 0;
  height: 0;
}

.page-about .about-geo__dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--peco-accent);
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(34, 45, 57, .28);
}

.page-about .about-geo__name {
  position: absolute;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
  color: var(--peco-neutral);
  background: rgba(255, 255, 255, .88);
  padding: 2px 5px;
  border-radius: 2px;
}

.page-about .about-geo__point--top .about-geo__name {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.page-about .about-geo__point--bottom .about-geo__name {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.page-about .about-geo__point--right .about-geo__name {
  left: 16px;
  top: -9px;
}

.page-about .about-geo__point--left .about-geo__name {
  right: 16px;
  top: -9px;
}

.page-about .about-geo__cities {
  margin-top: 28px;
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-about .about-numbers .container,
  .page-about .about-advantages .container,
  .page-about .about-gallery .container {
    padding: 0 7%;
  }

  .page-about .about-hero {
    min-height: 0;
    padding-top: 66.67%;
    background-size: 100% auto;
    background-position: center top;
  }

  /* На планшете карточка уходит под фото: иначе она перекрывает правую
     часть кадра и фото приходится обрезать по высоте. */
  .page-about .about-hero .lead {
    width: 100%;
    margin: 0;
    padding: 34px 7% 38px;
    background: #fff;
  }
}

  /* На планшете три колонки преимуществ слишком узкие — две. */
  .page-about .about-advantages__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 36px;
  }

  .page-about .about-geo {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .page-about .about-numbers,
  .page-about .about-advantages,
  .page-about .about-gallery {
    padding: 52px 0;
  }

  /* На телефоне фото показывается целиком: ширина блока равна ширине фото
     (3:2), а padding-top в процентах даёт под него ровно нужную высоту.
     Раньше background-size: cover обрезал кадр по вертикали. */
  .page-about .about-hero .lead {
    padding: 30px 20px 34px;
  }

  .page-about h1 {
    font-size: 2.4em;
  }

  .page-about h2 {
    font-size: 1.75em;
  }

  .page-about .about-numbers__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .page-about .about-numbers__value {
    font-size: 1.9em;
  }

  .page-about .about-numbers__label {
    font-size: .9em;
  }

  .page-about .about-advantages__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
  }

  .page-about .about-advantages__text {
    font-size: .9em;
  }

  .page-about .about-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    aspect-ratio: auto;
    gap: 22px;
  }

  .page-about .about-gallery__item--large {
    grid-row: auto;
  }

  .page-about .about-gallery__item img {
    flex: none;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  /* На телефоне подписи на карте нечитаемы — названия городов идут списком
     под картой, точки остаются как ориентиры. */
  .page-about .about-geo__dot {
    left: -5px;
    top: -5px;
    width: 10px;
    height: 10px;
  }

  .page-about .about-geo__name {
    display: none;
  }
}
