/* ===== БАЗА ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.6;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ✅ УМЕНЬШАЕМ ОТСТУПЫ СЕКЦИЙ (главный источник пустоты) */
.section{ padding: 52px 0; }
.section--tight{ padding: 40px 0; }

/* ✅ HERO делаем компактнее, чтобы не было огромной “пустыни” */
.section--hero{ padding: 46px 0 22px; }

/* ✅ небольшой “поджим” сразу после hero */
.section--after-hero{ padding-top: 22px; }

h1{
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 10px; /* было слишком много */
}

h2{
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin-bottom: 18px; /* было 28px */
}

p{ font-size: 18px; color: #555; }

.lead{
  font-size: 18px;
  color: #555;
  margin-top: 6px;
}

/* ===== HEADER ===== */

.header{
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* ЛОГО (текст + картинка справа) */
.header-logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.header-logo__text{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.header-logo__img{
  height: 36px;
  width: auto;
}

/* ===== НАВИГАЦИЯ ===== */

.nav{
  display: flex;
  gap: 30px;
}

.nav a{
  text-decoration: none;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav a:hover{ opacity: 0.65; }

/* ===== КНОПКИ ===== */

.button{
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.button:hover{ background: #f0f0f0; }

.button-primary{
  background: #111;
  color: #fff;
  border: none;
}

.button-primary:hover{ opacity: 0.88; }

/* ===== ГЛАВНАЯ: КАРТОЧКИ БРЕНДОВ С ФОТО СВЕРХУ ===== */

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; /* было 40 */
}

.card{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  border-color: #dcdcdc;
}
/* выравниваем высоту всех карточек брендов (убирает пустоту снизу) */


/* уменьшаем ТОЛЬКО ARCO внутри блока */
.card-arco .card-media img{
  object-fit: contain;   /* чтобы кран не “лез” */
  padding: 28px;         /* уменьшает его визуально */
  background: #fff;
  transform: none;
}

.card-arco:hover .card-media img{
  transform: none;
}

.card-media{
  overflow: hidden;
  background: #f3f3f3;
  height: 260px;   /* фиксируем высоту зоны картинки */
  display: flex;
  align-items: center;
  justify-content: center;
}


.card-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* показываем картинку полностью */
}


.card:hover .card-media img{ transform: scale(1.06); }

.card-body{ padding: 22px; }

.card-title{
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.buttons{
  display: flex;
  gap: 12px;  
  flex-wrap: wrap;
}

/* ===== НАПРАВЛЕНИЯ ===== */

.directions{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px; /* чуть плотнее */
}

.direction{
  display: block;
  padding: 22px; /* было 24 */
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.direction:hover{
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== БРЕНДЫ: СЕТКА 2 В РЯД + КАРТОЧКА С МЕСТОМ ПОД ЛОГО ===== */

.brands-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px; /* было 28 */
}

.brand-card{
  background: #fff;
  border-radius: 26px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  padding: 28px;      /* было 34 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;          /* было 32 */
  min-height: 220px;  /* было 260 — это и давало “воздух” */
}

.brand-content{ flex: 1; min-width: 0; }

.brand-title{
  font-size: 34px; /* чуть компактнее */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin-bottom: 10px;
}

.brand-card .lead{ margin-bottom: 14px; }

.brand-media{
  width: 210px;  /* было 240 */
  height: 210px; /* было 240 */
  border-radius: 22px;
  border: 1px solid #e7e7e7;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-media img{
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: saturate(1.02);
}

/* ===== CONTACTS PAGE ===== */

.contact-card{
  background: #fff;
  border-radius: 26px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  padding: 34px;      /* было 44 */
  max-width: 860px;
  margin-top: 16px;   /* ✅ чтобы “Связаться с нами” было ближе к подзаголовку */
}

.contact-card__title{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-card__text{
  color: #555;
  font-size: 16px;
  margin-bottom: 18px; /* было 22 */
}

.contact-list{ display: grid; gap: 14px; }

.contact-row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid #ededed;
}

.contact-row:first-child{
  border-top: none;
  padding-top: 0;
}

.contact-label{
  color: #777;
  font-size: 14px;
  font-weight: 600;
}

.contact-value{
  text-decoration: none;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid rgba(17,17,17,0.15);
  width: fit-content;
}

.contact-value:hover{
  border-bottom-color: rgba(17,17,17,0.35);
}

/* ===== НИЗ САЙТА ===== */

.site-bottom{
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 34px 0; /* было 40 */
}

.site-bottom__inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.site-bottom__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.site-bottom__text{
  color: #555;
  font-size: 14px;
}

.site-bottom__text a{
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,17,0.15);
}

.site-bottom__text a:hover{
  border-bottom-color: rgba(17,17,17,0.35);
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1000px){
  .brand-media{ width: 190px; height: 190px; }
  .brand-title{ font-size: 32px; }
}

@media (max-width: 900px){

  .grid-2{ grid-template-columns: 1fr; }
  .directions{ grid-template-columns: 1fr; }
  .brands-grid{ grid-template-columns: 1fr; }

  .brand-card{
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 24px;
    min-height: auto;
  }

  .brand-media{
    width: 100%;
    height: 200px;
  }

  .header-inner{
    flex-direction: column;
    height: auto;
    padding: 18px 0;
    gap: 16px;
  }

  .nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

@media (max-width: 700px){
  .contact-card{ padding: 24px; }
  .contact-row{ grid-template-columns: 1fr; gap: 6px; }
}
/* ===== Только страница брендов ===== */


/* Увеличиваем картинку GRB только на главной */
.card-grb .card-media {
  height: 320px;        /* выше чем у остальных */
}

.card-grb .card-media img { 
  width: 110%;          /* чуть больше контейнера */
  height: 110%;
  object-fit: cover;
}
/* ===== CATEGORY PAGE — большая картинка как в brands ===== */

/* SONIA на главной — как GRB */
.card-sonia .card-media{
  height: 320px;
}

.card-sonia .card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== Brand page: документы (красиво, вместо 5 больших кнопок) ===== */
.brand-actions__row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.brand-files{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px; /* чтобы не растягивалось на весь экран */
}

.brand-file{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.brand-file:hover{
  transform: translateY(-2px);
  border-color: #d7d7d7;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.brand-file__title{
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.brand-file__meta{
  font-size: 13px;
  color: #777;
}

/* мобилка */
@media (max-width: 700px){
  .brand-files{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}
/* ===== ONLY brands.html (картинки заполняют рамку) ===== */
.brands-page .brand-media{
  padding: 0;
  background: #f4f4f4;
  border-radius: 22px;
  overflow: hidden;
}

.brands-page .brand-media img{
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}

/* ===== CATEGORY pages (categories/*.html) — картинка как в brands ===== */
.category-page .category-media{
  width: 100%;
  height: 320px;          /* можно 280–380 */
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #f4f4f4;
}

.category-page .category-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ===== SONIA: каталоги в столбик, кнопки не меняем ===== */


.sonia-page .sonia-catalogs{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* выравниваем структуру карточек: картинка сверху, низ одинаковый */
.grid-2 .card{
  display: flex;
  flex-direction: column;
}

.grid-2 .card-body{
  display: flex;
  flex-direction: column;
  gap: 14px;      /* одинаковый вертикальный ритм */
  flex: 1;
}

.grid-2 .card-body .buttons{
  margin-top: auto; /* кнопки прижимаются вниз, у всех одинаково */
}
/* ===== SONIA: каталоги 2 в ряд ===== */

.sonia-page .sonia-catalogs{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;   /* чтобы не растягивалось на всю ширину */
}

/* чтобы кнопки в сетке занимали всю ячейку */
.sonia-page .sonia-catalogs .button{
  width: 100%;
}



/* мобилка: в одну колонку */
@media (max-width: 700px){
  .sonia-page .sonia-catalogs{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}
/* ===== FIX: короткие страницы (футер не прилипает к верху) ===== */

html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main растягивает страницу по высоте */
main{
  flex: 1;
}

/* небольшой отступ перед футером (опционально, чтобы было "не обрезано") */
.site-bottom{
  margin-top: 40px; /* можешь 24 / 60 */
}
/* Скрываем элементы, помеченные как "временно скрыть" */
.is-hidden {
  display: none !important;
}
.info-banner {
  max-width: 980px;
  padding: 10px 0 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  color: #2f2f2f;
} 
/* ===== ЕДИНЫЙ СТИЛЬ ДЛЯ ИНФО-БЛОКОВ НА ГЛАВНОЙ ===== */

.section--note {
  padding-top: 18px;
  padding-bottom: 18px;
}

.content-note,
.about-card {
  max-width: 980px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.content-note {
  padding: 24px 28px;
}

.content-note p {
  font-size: 20px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
  margin: 0;
}

.about-card {
  padding: 30px 32px;
}

.about-card__text {
  max-width: 920px;
  font-size: 18px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 28px;
}

.about-card__group {
  margin-bottom: 28px;
}

.about-card__subtitle {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
  display: grid;
  gap: 10px;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: #222;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.about-card {
  max-width: 980px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 30px 32px;
}

.about-card h2 {
  margin-bottom: 22px;
}

.about-card__text {
  max-width: 920px;
  font-size: 18px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 28px;
}

.about-card__group {
  margin-bottom: 28px;
}

.about-card__subtitle {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
  display: grid;
  gap: 10px;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: #222;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.about-card__note {
  max-width: 920px;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid #ededed;
}
/* ===== FIX ABOUT PAGE (аккуратный единый стиль) ===== */

.about-advantages {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 920px;
  display: grid;
  gap: 12px;
}

.about-advantages li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #555; /* единый цвет */
}

/* точка */
.about-advantages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

/* ❗ УБИРАЕМ ЖИРНОСТЬ */
.about-advantages strong {
  font-weight: 400;
  color: #555;
}

/* текст после заголовка */
.about-advantages span {
  color: #555;
  margin-left: 4px;
}
/* ===== ABOUT PAGE FINAL OVERRIDE ===== */

.about-card {
  max-width: 980px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 30px 32px;
}

.about-card__text {
  max-width: 920px;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 22px;
}

.about-card__text--last {
  margin-bottom: 0;
}

.about-card__group {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ededed;
  margin-bottom: 0;
}

.about-card__subtitle {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.about-advantages {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 920px;
  display: grid;
  gap: 10px;
}

.about-advantages li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.about-advantages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
}

/* убираем жирность и разнобой цветов внутри списка */
.about-advantages strong,
.about-advantages span {
  font-weight: 400 !important;
  color: #555 !important;
  display: inline;
  font-size: inherit;
  line-height: inherit;
}

.about-advantages strong::after {
  content: " ";
}

@media (max-width: 700px) {
  .about-card {
    padding: 22px;
    border-radius: 18px;
  }

  .about-card__text,
  .about-advantages li {
    font-size: 16px;
  }

  .about-card__subtitle {
    font-size: 20px;
  }
}
