/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

a.apartn {text-decoration: none;}
a.apartn:hover {text-decoration: none;}

.section-block.section-html.section-preset--none:first-of-type {
  margin-top: -80px !important;
}

@media (max-width: 480px) {
  .section-block.section-html.section-preset--none:first-of-type {
    margin-top: -50px !important;
  }
}

/* Увеличиваем шрифт меню */
#top-menu {
  font-size: 16px;
}

/* Фоновая подсветка под шапкой */
.menu-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: start;
}

.menu-bg-glow img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .menu-bg-glow {
    display: none !important;
  }
}

/* Баннер на главной */
.mrt-static {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background-image: url('http://vedal-med.ru/wp-content/uploads/2026/02/bgved4.jpg');
  background-size: cover;
  background-position: center;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  z-index: 0;
}

@media only screen and (min-width:1440px) {
.mrt-static {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background-image: url('http://vedal-med.ru/wp-content/uploads/2026/02/bgved4.jpg');
  background-size: cover;
  background-position: center;
  height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  z-index: 0;
}
}

.mrt-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.mrt-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 20px;
}

.mrt-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 700;
}

.mrt-content p {
  font-size: 20px;
  line-height: 1.4;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
  .mrt-static {
    height: 600px;
  }

  .mrt-content h1 {
    font-size: 28px;
  }

  .mrt-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mrt-static {
    height: 500px;
}

  .mrt-content h1 {
    font-size: 22px;
}

  .mrt-content p {
    font-size: 14px;
}
}

/* Разбиваем страницу на 2 блока */
.colved {
  width: 50%;
  float: left;
  padding: 20px; padding-top: 0px !important;
}
@media (max-width: 600px) {
  .colved {
    width: 100%;
    float: none;
	padding: 5px; padding-top: 0px !important;
  }
}
	
/* Продукция */
.vedal-products {
  /* без фона секции; только внешний отступ */
  margin: 60px auto;
}

/* Сетка: 2 колонки на десктопе, 1 — на мобайле */
.vedal-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr)); /* было 2 -> стало 3 */
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Карточка — flex-колонка, чтобы кнопку «прижать» вниз */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  box-sizing: border-box;
  min-height: 460px;               /* выравнивает линию кнопок на десктопе */
  overflow: hidden;                /* чтобы зум картинки не «вываливался» */
  transition: box-shadow .25s ease;
}

.product-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

/* Изображение с мягким зумом при ховере */
.product-card__img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 16px;
  display: block;
  transition: transform .3s ease;
  will-change: transform;
}

.product-card:hover .product-card__img {
  transform: scale(1.03);
}

/* Тексты */
.product-card__title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #222;
}

.product-card__text {
  font-size: 16px;
  color: #444;
  margin: 0 0 20px;
}

/* Кнопка — маленькое скругление, белый текст всегда;
   при ховере — чёрная */
.product-card__btn {
  margin-top: auto;                 /* прижимает кнопку к низу карточки */
  align-self: center;
  display: inline-block;
  padding: 10px 20px;
  background-color: #008000;        /* базовый зелёный */
  color: #fff !important;           /* белый текст */
  border-radius: 8px;               /* меньше закругление */
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.product-card__btn:hover,
.product-card__btn:focus {
  background-color: #000;           /* чёрная при наведении */
  color: #fff;                      /* белый текст */
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  outline: none;
}

/* Адаптив: одна колонка на планшет/мобайл */
@media (max-width: 1024px) {
  .vedal-products__grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

/* 1 колонка на мобайле */
@media (max-width: 768px) {
  .vedal-products__grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    min-height: unset;
  }
}


/* Аккуратнее с анимациями для тех, кто отключил */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__img,
  .product-card__btn {
    transition: none !important;
  }
}

/* Телефон в шапке: жирнее и без подчёркивания */
header a[href^="tel:"],
.site-header a[href^="tel:"],
.header a[href^="tel:"],
.top-bar a[href^="tel:"] {
  font-weight: 600;          /* было обычное -> чуть жирнее */
  text-decoration: none;     /* убрать подчёркивание */
  color: inherit;            /* чтобы не был «синим ссылочным» */
}

/* На ховере/фокусе тоже без подчёркивания */
header a[href^="tel:"]:hover,
header a[href^="tel:"]:focus,
.site-header a[href^="tel:"]:hover,
.site-header a[href^="tel:"]:focus,
.header a[href^="tel:"]:hover,
.header a[href^="tel:"]:focus,
.top-bar a[href^="tel:"]:hover,
.top-bar a[href^="tel:"]:focus {
  text-decoration: none;
}


/* Стили cookie-уведомления */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f5f5f5;
    color: #000;
    padding: 15px 20px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cookie-notice .cookie-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.cookie-notice span {
    flex: 1;
}

.cookie-notice a {
    color: #000;
    text-decoration: underline;
}

.cookie-notice a:hover {
    color: #000;
    text-decoration: none;
}

.cookie-notice button {
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-notice button.ok-btn {
    background: #046627;
    color: #fff;
}

.cookie-notice button.ok-btn:hover {
    background: #000000;
}

/* Мобильная адаптация — на всю ширину */
@media (max-width: 600px) {
    .cookie-notice {
        left: 0;
        bottom: 0;
        transform: none;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Фотоальбом */
.photo-gallery {
  padding: 40px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* большое фото */
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* адаптив планшет */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* адаптив мобильный */
@media (max-width: 576px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* большое фото на всю ширину */
  .gallery-item.large {
    grid-column: span 2;
  }

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


/* ===== Contact Form 7 (страница Контакты) — без рамки и тени ===== */

/* Контейнер формы: 40% на десктопе, 100% на мобильном */
.page-id-19 .wpcf7 {
  width: 40%;
  max-width: 560px;
  margin: 24px 0 0;
}

/* Форма без рамки/тени/подложки */
.page-id-19 .wpcf7 form.wpcf7-form {
  background: transparent;   /* было #fff */
  border: 0;                 /* убрать рамку */
  border-radius: 0;          /* убрать скругление “карточки” */
  padding: 0;                /* без внутреннего паддинга карточки */
  box-shadow: none;          /* убрать тень */
}

/* Убираем лишние большие отступы у <p> внутри CF7 */
.page-id-19 .wpcf7 form.wpcf7-form p {
  margin: 0 0 14px;
}

/* Лейблы */
.page-id-19 .wpcf7 form.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.35;
}

/* Поля ввода */
.page-id-19 .wpcf7 .wpcf7-form-control.wpcf7-text,
.page-id-19 .wpcf7 .wpcf7-form-control.wpcf7-email,
.page-id-19 .wpcf7 .wpcf7-form-control.wpcf7-tel,
.page-id-19 .wpcf7 .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-id-19 .wpcf7 .wpcf7-form-control.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Фокус: зелёная подсветка */
.page-id-19 .wpcf7 .wpcf7-form-control:focus {
  border-color: #046627;
  box-shadow: 0 0 0 4px rgba(4, 102, 39, 0.14);
}

/* Плейсхолдер */
.page-id-19 .wpcf7 ::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

/* Блок согласия (checkbox) */
.page-id-19 .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.page-id-19 .wpcf7 .wpcf7-acceptance label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
}

.page-id-19 .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #046627;
}

.page-id-19 .wpcf7 .wpcf7-acceptance a {
  color: #046627;
  text-decoration: none;
  font-weight: 600;
}

.page-id-19 .wpcf7 .wpcf7-acceptance a:hover {
  text-decoration: underline;
}

/* Кнопка отправки */
.page-id-19 .wpcf7 input.wpcf7-submit {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #046627;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-id-19 .wpcf7 input.wpcf7-submit:hover,
.page-id-19 .wpcf7 input.wpcf7-submit:focus {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  outline: none;
  transform: translateY(-1px);
}

/* Сообщения CF7 */
.page-id-19 .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
}

/* Адаптив: 100% на мобильном */
@media (max-width: 768px) {
  .page-id-19 .wpcf7 {
    width: 100%;
    max-width: 100%;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .page-id-19 .wpcf7 * {
    transition: none !important;
  }
}

/* Сертификат Иконка */
.company-cert {
  margin-top: 12px;
}

.company-cert a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.company-cert a:hover {
  text-decoration: underline;
}

.company-cert .fa-file-pdf {
  color: #046627;
  font-size: 24px;
}

/* Партнеры */
.partners {
  margin-top: 32px; /* отступ от заголовка */
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.partner-card {
  text-align: center;
}

.partner-card img {
  max-width: 250px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.partner-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.partner-text span {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 30px;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}