/*
Theme Name: PAG-1FP
Author: Demir
Description: Кастомная тема для лендинга ПАГ-1ФП
Version: 1.0
*/

/* ===== Переменные ===== */
:root {
  --color-bg-dark: #0B0C0E;
  --color-bg-dark-secondary: #1C1D1F;
  --color-blue: #2654EA;
  --color-blue-hover: #305EF4;
  --color-blue-active: #1240D6;
  --color-text-white: #FFFFFF;
  --color-text-gray: #B9B9B9;
  --color-green: #2DD34B;
  --color-divider: #666666;
  --font-main: 'Onest', system-ui, -apple-system, sans-serif;
  --container-max: 1240px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Контейнер ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 28px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-text-white);
}
.btn--primary:hover { background: var(--color-blue-hover); }
.btn--primary:active { background: var(--color-blue-active); }

/* ===== HERO ===== */
.hero {
  background: var(--color-bg-dark);
  padding: 80px 0 60px;
  color: var(--color-text-white);
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 560px;
}

.hero__content {
  max-width: 505px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.16;
  color: var(--color-text-white);
}

.hero__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-gray);
  max-width: 400px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__price-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-gray);
  opacity: 0.5;
}

.hero__price-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-white);
}

.hero__pluses {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg-dark-secondary);
  border-radius: 8px;
  flex-wrap: wrap;
}

.hero__plus {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-white);
}

.hero__plus + .hero__plus {
  padding-left: 16px;
  border-left: 1px solid var(--color-divider);
}

.hero__plus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}

.hero__image {
  flex-shrink: 0;
  max-width: 715px;
}

/* Адаптив hero */
@media (max-width: 1200px) {
  .hero__title { font-size: 44px; }
  .hero__image { max-width: 500px; }
}

@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column-reverse;
    text-align: left;
    min-height: auto;
    gap: 24px;
  }
  .hero__content { align-items: flex-start; max-width: 100%; }
  .hero__title { font-size: 40px; }
  .hero__desc { max-width: 100%; }
  .hero__cta { justify-content: flex-start; }
  .hero__image { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero { padding: 32px 0; }
  .hero__content { gap: 24px; }
  .hero__title { font-size: 40px; line-height: 1.16; }
    .hero__desc {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
  }
  .hero__price {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .hero__price-label,
  .hero__price-value { font-size: 20px; line-height: 1.4; }
  .hero .btn { width: 100%; padding: 20px 28px; }
  .hero__pluses {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: 12px;
    width: 100%;
  }
  .hero__plus {
    font-size: 13px;
    gap: 6px;
    padding: 0;
    flex: 1 1 50%;
    white-space: nowrap;
  }
  .hero__plus:first-child {
    padding-right: 8px;
    border-right: 1px solid var(--color-divider);
  }
  .hero__plus + .hero__plus {
    padding-left: 8px;
    border-left: none;
    padding-top: 0;
    border-top: none;
    width: auto;
  }
  .hero__plus-dot { width: 5px; height: 5px; flex-shrink: 0; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-bg-dark);
  padding: 24px 0;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.site-header__logo {
  flex-shrink: 0;
  display: inline-block;
  width: 104px;
  height: 21px;
  font-family: 'Onest', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 21px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header__logo:hover {
  opacity: 0.7;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-grow: 1;
  justify-content: center;
}

.site-header__nav a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-white);
  transition: opacity 0.2s ease;
}

.site-header__nav a:hover { opacity: 0.7; }

.site-header__phone {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-white);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.site-header__phone:hover { opacity: 0.7; }

.site-header__burger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  padding: 6px 2px;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .site-header__nav,
  .site-header__phone { display: none; }
  .site-header__burger { display: flex; }
}

/* ===== SECTION: ABOUT ===== */
.about {
  background: #FFFFFF;
  padding: 100px 0;
}

.about .container {
  padding: 0;
  max-width: 1242px;
}

.about__inner {
  position: relative;
  width: 100%;
  min-height: 567px;
}

.about__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 1242px;
  height: 567px;
  pointer-events: none;
  z-index: 3;
}

.about__title-block {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #6B6B6B;
}

.about__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__lead {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #191919;
}

.about__paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

.about__media {
  position: absolute;
  left: 367px;
  top: 30px;
  width: 505px;
  height: 537px;
  z-index: 2;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.about__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2654EA;
  z-index: 4;
}

.about__dot--1 { left: 242px; top: 347px; }
.about__dot--2 { left: 390px; top: 442px; }

.about__dot-line { display: none; }

.about__cards {
  position: absolute;
  left: 944px;
  top: 161px;
  width: 298px;
  display: flex;
  flex-direction: column;
  gap: 127px;
  z-index: 2;
}

.about__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #F5F5F5;
  border-radius: 12px;
}

.about__card-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #D9D9D9;
}

.about__card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #191919;
}

.about__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

/* Адаптив about (планшет) */
@media (max-width: 1200px) {
  .about .container { padding: 0 20px; }
  .about__inner { min-height: auto; }
  .about__lines,
  .about__dot { display: none; }
  .about__title-block,
  .about__media,
  .about__cards {
    position: static;
    width: auto;
  }
  .about__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
  }
  .about__title-block { flex: 0 0 100%; max-width: 600px; }
  .about__media {
    flex: 1 1 400px;
    max-width: 505px;
    height: auto;
  }
  .about__cards {
    flex: 0 0 298px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about { padding: 60px 0; }
  .about__h2 { font-size: 30px; }
  .about__lead { font-size: 16px; }
  .about__inner { flex-direction: column; }
  .about__media { max-width: 100%; }
  .about__cards {
    flex: 0 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .about__card { flex: 0 0 298px; }
}

@media (max-width: 480px) {
  .about__cards { flex-direction: column; align-items: stretch; }
  .about__card { flex: 0 0 auto; }
}

/* ===== ABOUT: мобильный (≤600px) ===== */
@media (max-width: 600px) {
  .about { padding: 60px 8px; }

  .about__title-block {
    gap: 12px;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
  }

  .about__h2 {
    font-size: 26px;
    line-height: 1.16;
  }

  .about__text { gap: 16px; }

  .about__lead {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.3;
    color: #191919;
    width: 100%;
    max-width: 100%;
    letter-spacing: 0;
    white-space: pre-line;
  }

  .about__paragraph {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #717171;
    width: 100%;
    max-width: 100%;
    letter-spacing: 0;
    white-space: pre-line;
  }

  .about__inner {
    flex-direction: column;
    gap: 32px;
  }

  .about__media {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    display: block;
    overflow: visible;
  }

  .about__image {
    width: 100%;
    height: auto;
    display: block;
  }

  .about__dot {
    display: block;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    overflow: visible;
  }

  .about__dot-line {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    overflow: visible;
    pointer-events: none;
  }

  .about__dot--1 { left: 49%; top: 65%; }
  .about__dot--2 { left: 80%; top: 82%; }

  .about__cards {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    flex: 0 0 auto;
    justify-content: space-between;
    left: auto;
    top: auto;
  }

  .about__card {
    flex: 1 1 calc(50% - 5px);
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
  }

  .about__card-img { width: 64px; height: 64px; }
  .about__card-text { gap: 2px; }
  .about__card-title { font-size: 16px; line-height: 1.3; }
  .about__card-desc { font-size: 15px; line-height: 1.3; }
}

/* ===== SECTION: USED ===== */
.used {
  background: #F2F2F2;
  padding: 100px 0 120px;
}

.used .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.used__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.used__label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #6B6B6B;
}

.used__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
  text-align: center;
}

.used__cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.used__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 12px;
  width: 400px;
  flex: 0 0 400px;
}

.used__card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #D9D9D9;
}

.used__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.used__card-title {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.06;
  color: #191919;
}

.used__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

.used__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 610px;
  text-align: center;
}

.used__cta-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #191919;
  text-align: center;
}

.used__cta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.used__cta-text {
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #717171;
}

@media (max-width: 1280px) {
  .used__cards { flex-wrap: wrap; }
}

@media (max-width: 800px) {
  .used { padding: 80px 0 90px; }
  .used .container { gap: 40px; padding: 0 16px; }
  .used__header { gap: 12px; }
  .used__h2 { font-size: 28px; line-height: 1.16; }
  .used__cards { flex-direction: column; align-items: center; gap: 20px; }
  .used__card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 16px;
    gap: 12px;
  }
  .used__card-img { height: 300px; border-radius: 10px; }
  .used__card-text { gap: 4px; }
  .used__card-title { font-size: 20px; line-height: 1.06; }
  .used__card-desc { font-size: 15px; line-height: 1.3; }
  .used__cta { max-width: 100%; padding: 0 40px; gap: 16px; }
  .used__cta-title { font-size: 24px; line-height: 1.3; }
  .used__cta-bottom { gap: 24px; }
  .used__cta-text { font-size: 16px; line-height: 1.4; }
  .used__cta .btn { width: 100%; padding: 20px 28px; }
}

/* ===== SECTION: SPECS ===== */
.specs {
  background: #FFFFFF;
  padding: 100px 0;
}

.specs .container {
  max-width: 1242px;
  padding: 0;
}

.specs__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.specs__label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #6B6B6B;
}

.specs__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
}

.specs__table-wrap {
  background: #F1F1F1;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
  overflow-x: auto;
}

.specs__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.specs__table th,
.specs__table td {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.3;
  vertical-align: middle;
}

.specs__table th {
  font-weight: 400;
  color: #717171;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(185, 185, 185, 0.2);
}

.specs__table td {
  font-weight: 500;
  color: #191919;
  padding: 12px 0;
  border-bottom: 1px solid rgba(185, 185, 185, 0.5);
}

.specs__table tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

.specs__table th:first-child,
.specs__table td:first-child { width: 600px; }

.specs__table th:not(:first-child),
.specs__table td:not(:first-child) { width: 260px; }

.specs__btn-wrap {
  display: flex;
  justify-content: center;
}

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
  padding: 16px 28px;
  gap: 6px;
}

.btn--outline:hover {
  background: var(--color-blue);
  color: #FFFFFF;
}

.btn--outline img,
.btn--outline svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .specs .container { padding: 0 20px; }
}

@media (max-width: 800px) {
  .specs { padding: 80px 0; }
  .specs .container { padding: 0 16px; }
  .specs__header {
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 40px;
  }
  .specs__label { text-align: center; }
  .specs__h2 { font-size: 28px; line-height: 1.16; text-align: center; }

  .specs__table-wrap {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow-x: visible;
  }

  .specs__table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .specs__table th,
  .specs__table td {
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 0;
  }

  .specs__table th {
    font-size: 12px;
    color: #717171;
    padding: 8px 0;
    border-bottom: 1px solid rgba(185, 185, 185, 0.2);
  }

  .specs__table td {
    font-size: 12px;
    padding: 8px 0;
  }

  .specs__table tr:last-child td { padding-bottom: 0; }

  .specs__table th:first-child,
  .specs__table td:first-child {
    width: 50%;
    padding-right: 8px;
  }

  .specs__table th:not(:first-child),
  .specs__table td:not(:first-child) {
    width: 25%;
    text-align: right;
    padding-left: 6px;
  }

  .specs__btn-wrap { justify-content: center; }

  .specs__btn-wrap .btn {
    width: 100%;
    max-width: 358px;
    padding: 20px 28px;
  }
}

/* Иконка PDF в кнопке — цвета */
.btn--outline .btn-icon__bg { fill: #2654EA; transition: fill 0.2s ease; }
.btn--outline .btn-icon__fold { stroke: #FFFFFF; transition: stroke 0.2s ease; }
.btn--outline .btn-icon__text { fill: #FFFFFF; transition: fill 0.2s ease; }

.btn--outline:hover .btn-icon__bg { fill: #FFFFFF; }
.btn--outline:hover .btn-icon__fold { stroke: #2654EA; }
.btn--outline:hover .btn-icon__text { fill: #2654EA; }

/* ===== SECTION: PHOTO (Gallery) ===== */
.photo {
  background: #FFFFFF;
  padding: 100px 0;
}

.photo .container {
  max-width: 1240px;
  padding: 0;
}

.photo__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 48px;
}

.photo__label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

.photo__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
}

.photo__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo__row {
  display: flex;
  gap: 20px;
  height: 360px;
}

.photo__item {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #D9D9D9;
}

.photo__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo__item--w505 { flex-basis: 505px; }
.photo__item--w400 { flex-basis: 400px; }
.photo__item--w295 { flex-basis: 295px; }

/* Слайдер и пагинация — по умолчанию скрыты */
.photo__slider,
.photo__pagination { display: none; }

@media (max-width: 1280px) {
  .photo .container { padding: 0 20px; }
}

@media (max-width: 1024px) {
  .photo__row {
    flex-wrap: wrap;
    height: auto;
  }
  .photo__item {
    flex-basis: calc(50% - 10px) !important;
    height: 280px;
  }
}

@media (max-width: 600px) {
  .photo { padding: 60px 0; }
  .photo .container { padding: 0 16px; }

  .photo__header {
    gap: 12px;
    margin-bottom: 40px;
  }
  .photo__label { text-align: center; }
  .photo__h2 { font-size: 28px; line-height: 1.16; text-align: center; }

  /* Скрываем сетку 3x3 */
  .photo__gallery { display: none; }

  /* Показываем слайдер */
  .photo__slider {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
  }

  .photo__slider::-webkit-scrollbar { display: none; }

  .photo__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 330px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #D9D9D9;
  }

  .photo__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Пагинация */
  .photo__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .photo__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #F1F1F1;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
  }

  .photo__dot.is-active { background: #2654EA; }
}

/* ===== SECTION: PLACES (Преимущества) ===== */
.places {
  background: #F1F1F1;
  padding: 100px 0 120px;
}

.places .container {
  max-width: 1240px;
  padding: 0;
}

.places__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.places__label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

.places__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
}

.places__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.places__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 12px;
}

.places__card-icon {
  width: 60px;
  height: 60px;
  display: block;
}

.places__card-num {
  position: absolute;
  top: 32px;
  right: 41px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #B9B9B9;
}

.places__card-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.places__card-title {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #191919;
}

.places__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #717171;
}

@media (max-width: 1280px) {
  .places .container { padding: 0 20px; }
}

@media (max-width: 900px) {
  .places { padding: 80px 0 90px; }
  .places .container { padding: 0 16px; }
  .places__header { gap: 16px; margin-bottom: 40px; }
  .places__h2 { font-size: 28px; line-height: 1.16; }

  .places__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .places__card {
    padding: 16px;
    gap: 16px;
    border-radius: 12px;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .places__card-icon { width: 60px; height: 60px; }

  .places__card-text {
    gap: 8px;
    height: auto;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .places__card-title { font-size: 20px; line-height: 1.06; }

  .places__card-desc {
    font-size: 16px;
    line-height: 1.3;
    height: auto;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
  }

  .places__card-num { top: 16px; right: 16px; font-size: 16px; }
}

/* ===== SECTION: CTA (От сообщения до отправки) ===== */
.cta-final {
  background: #FFFFFF;
  padding: 60px 0 0;
}

.cta-final .container {
  max-width: 1240px;
  padding: 0;
}

.cta-final__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 408px;
}

.cta-final__content {
  flex: 0 0 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-final__title {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
}

.cta-final__desc {
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #717171;
}

.cta-final__btn-wrap { margin-top: 0; }

.cta-final__media {
  position: relative;
  flex: 0 0 712px;
  height: 408px;
}

.cta-final__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 1280px) {
  .cta-final .container { padding: 0 20px; }
}

@media (max-width: 1100px) {
  .cta-final { padding: 80px 0 0; }
  .cta-final .container { padding: 0 16px; }
  .cta-final__inner {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
    min-height: auto;
  }
  .cta-final__content {
    flex: 0 0 auto;
    width: 100%;
    gap: 16px;
  }
  .cta-final__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    order: 4;
    line-height: 0;
    font-size: 0;
  }
}

@media (max-width: 700px) {
    .cta-final__title {
    font-size: 28px;
    line-height: 1.16;
    white-space: pre-line;
  }
  .cta-final__desc { font-size: 18px; line-height: 1.4; }
  .cta-final__btn-wrap { width: 100%; }
  .cta-final__btn-wrap .btn { width: 100%; padding: 20px 28px; }
  .cta-final__image {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0B0C0E;
  padding: 60px 0;
  color: #FFFFFF;
  position: relative;
  z-index: 10; /* Приподнимаем футер над скрытым баннером */
}

.site-footer .container {
  max-width: 1240px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo    nav     phone"
    "privacy .       email"
    "copy    .       city";
  align-items: center;
  gap: 20px 40px;
}

.site-footer__logo {
  grid-area: logo;
  display: inline-block;
  width: 104px;
  height: 21px;
  font-family: 'Onest', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 21px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer__logo:hover {
  opacity: 0.7;
}

.site-footer__nav {
  grid-area: nav;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.site-footer__nav a {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}

.site-footer__nav a:hover { opacity: 0.7; }

.site-footer__phone {
  grid-area: phone;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
  transition: opacity 0.2s ease;
}

.site-footer__phone:hover { opacity: 0.7; }

.site-footer__privacy {
  grid-area: privacy;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 10; /* Приподнимаем ссылку над всем */
}

.site-footer__privacy:hover { opacity: 0.7; }

.site-footer__email {
  grid-area: email;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #2654EA;
  justify-self: end;
  transition: opacity 0.2s ease;
}

.site-footer__email:hover { opacity: 0.8; }

.site-footer__copy {
  grid-area: copy;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
  color: #717171;
}

.site-footer__city {
  grid-area: city;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
  justify-self: end;
}

@media (max-width: 1280px) {
  .site-footer .container { padding: 0 20px; }
}

@media (max-width: 800px) {
  .site-footer { padding: 60px 0; }

  .site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    max-width: 100%;
  }

  /* Скрываем десктопное меню */
  .site-footer__nav { display: none; }

  /* Порядок по макету */
  .site-footer__logo { order: 1; }

  .site-footer__phone {
    order: 2;
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
    justify-self: auto;
  }

  .site-footer__email {
    order: 3;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    justify-self: auto;
  }

  .site-footer__city {
    order: 4;
    font-size: 14px;
    line-height: 1.3;
    color: #B9B9B9;
    text-align: center;
    justify-self: auto;
  }

  .site-footer__privacy {
    order: 5;
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    position: relative;
    z-index: 10;
  }

  .site-footer__copy {
    order: 6;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }
}

/* ===== Глобальный фикс overflow на мобилке ===== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 900px) {
  .hero__image {
    width: 100%;
    max-width: 100%;
  }
  .hero__image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0B0C0E;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-menu.is-open { display: block; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 20px 16px 40px;
}

.mobile-menu__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 56px;
}

.mobile-menu__logo {
  display: inline-block;
  width: 104px;
  height: 21px;
  font-family: 'Onest', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 21px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-menu__logo:hover {
  opacity: 0.7;
}

.mobile-menu__close {
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  padding: 0;
  display: block;
}

.mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #2654EA;
  border-radius: 2px;
}

.mobile-menu__close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 66px;
}

.mobile-menu__nav a {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
  text-align: center;
  transition: opacity 0.2s ease;
}

.mobile-menu__nav a:hover { opacity: 0.7; }

.mobile-menu__divider {
  width: 260px;
  height: 1px;
  background: #666666;
  opacity: 0.5;
  margin-bottom: 60px;
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-menu__city {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #B9B9B9;
  text-align: center;
}

.mobile-menu__phone {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  text-align: center;
}

.mobile-menu__email {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #B9B9B9;
  text-align: center;
}

.mobile-menu__btn {
  width: 100%;
  max-width: 358px;
  padding: 20px 28px;
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ===== PAGE (для страницы политики и других) ===== */
.page-content {
  background: #FFFFFF;
  padding: 100px 0 120px;
}

.page-content .container {
  max-width: 900px;
  padding: 0 20px;
}

.page-content__title {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
  margin-bottom: 32px;
}

.page-content__body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #191919;
}

.page-content__body p {
  margin-bottom: 16px;
}

.page-content__body h2 {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #191919;
}

.page-content__body ul,
.page-content__body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.page-content__body li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .page-content { padding: 60px 0 80px; }
  .page-content__title { font-size: 28px; margin-bottom: 24px; }
  .page-content__body { font-size: 15px; }
}

/* Неактивная кнопка PDF (когда файл не загружен) */
.btn--outline.is-disabled,
.btn--outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner[hidden] {
  display: none !important; /* Жестко скрываем из верстки */
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 344px;
  max-width: calc(100vw - 48px);
  padding: 32px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 9998;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
  
  /* Скрываем баннер от кликов, пока он невидим */
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  
  /* Включаем клики, когда баннер появился */
  visibility: visible;
  pointer-events: auto;
}

.cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cookie-banner__close:hover {
  opacity: 1;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cookie-banner__title {
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
  width: 100%;
}

.cookie-banner__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #191919;
  width: 100%;
}

/* Кнопка «Хорошо» — десктоп: компактная, слева */
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  box-sizing: border-box;
  padding: 8px 20px;
  background: transparent;
  color: #2654EA;
  border: 2px solid #2654EA;
  border-radius: 30px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-banner__btn:hover {
  background: #2654EA;
  color: #FFFFFF;
}

@media (max-width: 700px) {
  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    padding: 24px;
    gap: 16px;
  }

  /* Кнопка «Хорошо» — мобилка: на всю ширину */
  .cookie-banner__btn {
    display: flex;
    align-self: stretch;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
  }
}

/* ===== Переносы строк: работают только на мобилке ===== */
@media (min-width: 901px) {
  .hero__desc br,
  .cta-final__title br {
    display: none;
  }
}

/* ===== Скрываем блоки автора и редактирования на всех страницах ===== */
.edit-link,
.post-edit-link,
.author.vcard,
.byline,
.vcard {
  display: none !important;
}