/*
 * Адаптивная вёрстка главной страницы.
 * Дизайн прежний: зелёный #6EA900, красные кнопки big_btn_bg.png,
 * шрифт PT Sans Narrow, фон bg21.png. На ПК страница выглядит как раньше,
 * на планшете и телефоне блоки перестраиваются в колонку.
 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff url(images/bg21.png);
  color: #000;
  font-family: 'PT Sans Narrow', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
p { margin: 0; }

.page { max-width: 1032px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */
.header {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 8px 0 10px 19px;
  background: url(images/head.png) right 6px / 808px 91px no-repeat;
  min-height: 96px;
}
.logo { font-family: Arial, sans-serif; font-size: 43px; line-height: 1.15; text-decoration: none; color: #000; white-space: nowrap; }
.logo span { color: #6ea900; }
.header-contact { text-align: right; }
.header-phone {
  display: inline-flex; align-items: center; gap: 15px;
  font-size: 32px; line-height: 1; text-decoration: none; color: #000; white-space: nowrap;
}
.header-phone img { width: 29px; height: 26px; }
.header-addr { display: block; font-size: 16px; margin-top: 4px; }
.header-callback { display: inline-block; margin-top: 4px; }
.header-callback img { display: block; width: 160px; height: 30px; }

.header-line { height: 8px; background: url(images/img0060.png) center / 100% 8px no-repeat; }

/* ---------- Заголовок и преимущества ---------- */
.intro { background: #fff; padding: 8px 10px 20px; }
h1 { font-weight: 400; font-size: 43px; text-align: center; margin: 0 0 14px; line-height: 1.2; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perks li { display: flex; gap: 18px; align-items: flex-start; font-size: 15px; }
.perks img { width: 21px; height: 20px; flex: none; }

/* ---------- Акция ---------- */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 50px; }
.promo-img { flex: 0 1 655px; }
.promo-img img { display: block; width: 100%; }
.green-box {
  flex: 0 0 320px;
  background: #6EA900; border: 1px solid #8a8a8a; border-radius: 8px;
  padding: 40px 18px 22px 20px; color: #fff;
}
.green-box .promo-text { font-family: Arial, sans-serif; font-size: 35px; line-height: 1.15; text-align: center; margin: 0 0 18px; }
.green-box .promo-text b { color: #ff0000; font-weight: 400; }
.green-box .form-note { color: #fffafa; font-family: Arial, sans-serif; font-size: 12px; margin-top: 6px; }

/* ---------- Поля и кнопки (как в оригинале) ---------- */
.field {
  display: block; width: 100%; height: 38px; margin: 0 0 12px; padding: 0 0 0 20px;
  border: 1px solid #A9A9A9; border-radius: 0; background: #fff; color: #808080;
  font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 20px;
  -webkit-appearance: none; appearance: none;
}
.field:focus { color: #000; outline: 2px solid #ffd24d; outline-offset: 0; }
.btn {
  display: block; width: 100%; height: 45px;
  border: 1px solid #A9A9A9; border-radius: 0;
  background: #d22 url(images/big_btn_bg.png) left top / auto 100% repeat-x;
  color: #fff; font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 24px;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn:hover { filter: brightness(1.08); }
.btn-round { border-radius: 5px; }
.form-note { font-family: Arial, sans-serif; font-size: 13px; }
.green-box .field { width: 231px; max-width: 100%; margin-left: 10px; }
.green-box .btn { width: 280px; max-width: 100%; margin-left: -10px; }

/* ---------- Спецпредложение ---------- */
.special { margin: 40px 0 0 20px; font-size: 32px; color: #6ea900; line-height: 1.3; }
.special .red { color: #ff0000; }
.sell { text-align: right; font-size: 21px; margin-top: 8px; padding-right: 0; }

/* ---------- Цены ---------- */
.prices-head { position: relative; margin-top: 106px; text-align: center; min-height: 112px; }
.prices-title { font-size: 43px; line-height: 1.2; }
.prices-sub { font-size: 32px; }
.price-links { position: absolute; right: 18px; top: 43px; display: flex; flex-direction: column; gap: 15px; }
.price-links a { display: block; }
.price-links img { display: block; width: 196px; height: 30px; }

.price-table {
  width: calc(100% - 20px); margin: 24px 0 0 8px; border-collapse: collapse;
  font-family: Arial, sans-serif; background: #fff;
}
.price-table th, .price-table td { padding: 0; text-align: center; font-weight: 400; }
.price-table .corner {
  width: 136px; height: 67px; position: relative;
  background: url(images/img0037.png) 0 0 / 100% 100% no-repeat;
}
.price-table .corner::before {
  content: ""; position: absolute; inset: 0;
  background: url(images/img0010.png) 0 0 / 100% 100% no-repeat;
}
.corner .c-dens { position: absolute; left: 5px; top: 1px; color: #fff; font-size: 20px; z-index: 1; }
.corner .c-thick { position: absolute; right: 8px; bottom: 9px; color: #6ea900; font-size: 20px; z-index: 1; }
.price-table thead .dens {
  height: 78px; color: #fff; font-size: 27px; padding-bottom: 10px; cursor: help;
  background: linear-gradient(#8cc31f, #6aa400);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  border-left: 2px solid transparent; background-clip: padding-box;
}
.price-table thead .dens small { display: none; }
.price-table tbody th { font-size: 21px; height: 45px; border-left: 1px solid #c8c8c8; }
.price-table td { font-size: 17px; border-left: 1px solid #c8c8c8; }
.price-table tbody tr { border-bottom: 1px solid #c8c8c8; }
.price-table tbody tr:first-child { border-top: 1px solid #c8c8c8; }
.price-table tbody tr > :last-child { border-right: 1px solid #c8c8c8; }
.price-table tbody tr:nth-child(odd) > * { background: #f4f4f4; }

.inline-extra { display: none; margin-top: 20px; }
.inline-extra.open { display: block; }
.inline-extra .cap { font-size: 32px; text-align: center; margin: 10px 0; }
.kley { display: flex; gap: 16px; align-items: center; justify-content: center; background: #fff; border: 2px dashed #A9A9A9; border-radius: 10px; padding: 12px; }
.kley img { width: 150px; flex: none; }
.kley table { font-family: Arial, sans-serif; font-size: 15px; border-collapse: collapse; text-align: center; }
.kley td { padding: 3px 8px; }
.kley .p td { font-size: 19px; font-weight: 700; }

.density-list { display: none; list-style: none; margin: 14px 0 0; padding: 0; font-family: Arial, sans-serif; font-size: 13px; }
.density-list li { padding: 8px 0; border-bottom: 1px dashed #c8c8c8; }
.density-list b { color: #6ea900; font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 17px; font-weight: 400; }

/* ---------- Консультация ---------- */
.consult {
  width: 560px; max-width: 100%; margin: 100px auto 0;
  background: #FAFAFA; border: 2px dashed #A9A9A9; border-radius: 10px;
  padding: 15px 20px 10px; text-align: center;
}
.consult h3 { font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.consult .field { width: 178px; height: 36px; margin: 0 auto 7px; max-width: 100%; }
.consult .btn { width: 157px; height: 35px; font-size: 20px; margin: 12px auto 0; border-radius: 5px; }
.consult .form-note { margin-top: 6px; }

/* ---------- Галерея ---------- */
.section-title { font-weight: 400; font-size: 43px; text-align: center; margin: 44px 0 14px; line-height: 1.2; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; align-items: center; justify-items: center; }
.gallery a { display: block; }
.gallery img { display: block; }

/* ---------- Зелёная полоса с формой ---------- */
.green-bar { background: #6EA900; color: #fff; margin-top: 85px; padding: 18px 20px 14px 40px; }
.green-bar form { display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 22px; }
.green-bar .bar-title { font-size: 27px; width: 178px; flex: none; line-height: 38px; }
.green-bar .field { width: 178px; margin: 0 10px 0 0; }
.green-bar .btn { width: 190px; height: 40px; border-radius: 5px; margin-left: 20px; }
.green-bar .form-note { flex-basis: 100%; padding-left: 200px; margin-top: 10px; }

/* ---------- Проблемы ---------- */
.problems-title { font-weight: 400; font-size: 37px; text-align: center; margin: 45px 0 22px; line-height: 1.2; }
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.problem {
  background: #fff; border: 2px dashed #A9A9A9; min-height: 130px;
  display: flex; gap: 25px; padding: 10px 20px 10px 10px;
}
.problem .icon { width: 64px; flex: none; display: flex; justify-content: center; }
.problem .icon img { align-self: flex-start; }
.problem h3 { font-size: 27px; font-weight: 700; margin: 0 0 12px; line-height: 1.2; }
.problem p { font-size: 16px; }

/* ---------- Контакты ---------- */
.contacts { display: flex; gap: 58px; margin-top: 45px; align-items: flex-start; }
.contacts-text { flex: 0 0 250px; font-size: 19px; }
.contacts-text .title { font-size: 43px; margin-bottom: 20px; line-height: 1.2; }
.contacts-text b { display: block; margin-top: 20px; }
.contacts-text a { text-decoration: none; }
.map { flex: 1 1 690px; height: 420px; background: #eee; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.green-bar.last { margin-top: 50px; margin-bottom: 120px; }

/* ================= Планшет ================= */
@media (max-width: 1000px) {
  .header { background-size: 70% auto; }
  .perks { grid-template-columns: 1fr 1fr; }
  .promo { flex-direction: column; margin-top: 30px; }
  .promo-img { flex: none; width: 100%; }
  .green-box { flex: none; width: 100%; max-width: 420px; padding: 24px 20px; }
  .green-box .field, .green-box .btn { width: 100%; margin-left: 0; }
  .special { margin-left: 0; text-align: center; font-size: 28px; }
  .sell { text-align: center; }
  .prices-head { margin-top: 50px; min-height: 0; }
  .price-links { position: static; flex-direction: row; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
  .price-table { width: 100%; margin-left: 0; }
  .price-table thead .dens { font-size: 20px; }
  .density-list { display: block; }
  .green-bar { padding: 18px 20px; }
  .green-bar form { justify-content: center; row-gap: 10px; }
  .green-bar .bar-title { width: 100%; text-align: center; }
  .green-bar .btn { margin-left: 0; }
  .green-bar .form-note { padding-left: 0; text-align: center; }
  .contacts { flex-direction: column; gap: 20px; }
  .contacts-text { flex: none; }
  .map { flex: none; width: 100%; height: 360px; }
}

/* ================= Телефон ================= */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .page { padding: 0 12px; }
  .header { flex-direction: column; align-items: center; text-align: center; padding: 10px 0 12px; background-size: auto 60px; background-position: center bottom 8px; }
  .header-contact { text-align: center; }
  .logo { font-size: 36px; }
  .header-phone { font-size: 26px; gap: 8px; }
  .intro { padding: 12px 4px 16px; }
  h1 { font-size: 30px; }
  .perks { grid-template-columns: 1fr; gap: 0; }
  .perks li { font-size: 16px; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #d0d0d0; }
  .perks li:last-child { border-bottom: 0; }
  .green-box .promo-text { font-size: 28px; }
  .special { font-size: 25px; margin-top: 28px; }
  .sell { font-size: 19px; }
  .prices-title { font-size: 36px; }
  .prices-sub { font-size: 24px; }
  .price-links img { width: 160px; height: auto; }
  .price-table { font-size: 13px; }
  .price-table .corner { width: 56px; height: auto; }
  .corner .c-dens { display: none; }
  .corner .c-thick { display: none; }
  .price-table thead .dens { font-size: 13px; height: 52px; padding: 0 1px 8px; }
  .price-table thead .dens small { display: block; font-size: 10px; }
  .price-table tbody th { font-size: 14px; height: 40px; white-space: nowrap; padding: 0 2px; }
  .price-table td { font-size: 13px; white-space: nowrap; padding: 0 1px; }
  .inline-extra .cap { font-size: 24px; }
  .kley img { width: 110px; }
  .consult { margin-top: 40px; padding: 16px; }
  .consult .field, .consult .btn { width: 100%; height: 44px; }
  .consult .btn { font-size: 22px; }
  .section-title { font-size: 32px; margin-top: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .green-bar { margin-top: 40px; padding: 16px; border-radius: 6px; }
  .green-bar .field, .green-bar .btn { width: 100%; height: 44px; margin: 0; }
  .green-bar form { row-gap: 10px; }
  .problems-title { font-size: 28px; margin-top: 36px; }
  .problems { grid-template-columns: 1fr; }
  .problem { gap: 14px; min-height: 0; }
  .problem .icon { width: 50px; }
  .problem h3 { font-size: 22px; margin-bottom: 4px; }
  .problem p { font-size: 15px; }
  .contacts-text .title { font-size: 32px; margin-bottom: 10px; }
  .contacts-text b { margin-top: 10px; }
  .contacts-text .phone { font-size: 24px; }
  .map { height: 300px; }
  .green-bar.last { margin-bottom: 30px; }
}
