/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


/* =========================
   HEADER: логотип (класс: .logo)
   ========================= */

.logo,
.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 64px;

  border-radius: 6px;
  padding: 6px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;

  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.logo a:hover img {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}


/* =========================
   FOOTER: базовые переменные + сбросы
   ========================= */

.ct-footer {
  --yak-footer-text: rgba(255,255,255,.78);
  --yak-footer-line: rgba(255,255,255,.08);
}

.ct-footer,
.ct-footer a {
  color: var(--yak-footer-text);
}

.ct-footer .ct-widget,
.ct-footer .widget,
.ct-footer .widget_block {
  margin: 0;
}

.ct-footer .widget-title {
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .02em;
}

/* убираем верхние отступы у первого элемента внутри виджета */
.ct-footer .ct-widget > *:first-child,
.ct-footer .widget > *:first-child,
.ct-footer .widget_block > *:first-child {
  margin-top: 0;
}


/* =========================
   FOOTER: часы приёма (.yak-hours)
   ========================= */

.yak-hours {
  line-height: 1.35;
  margin-top: 0;
}

.yak-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--yak-footer-line);
}

.yak-hours__day { opacity: .90; }
.yak-hours__time { font-weight: 600; white-space: nowrap; }
.yak-hours__row--off .yak-hours__time { opacity: .75; }
.yak-hours__row:last-child { border-bottom: 0; }


/* =========================
   FOOTER: контакты (.yak-contacts)
   ========================= */

.yak-contacts {
  line-height: 1.35;
  margin-top: 0;
}

.yak-contacts__label {
  opacity: .85;
  font-size: 13px;
  margin-bottom: 4px;
}

/* блоки контактов делаем “строками” с линиями, как в часах */
.yak-contacts__block {
  padding: 6px 0;
  border-bottom: 1px solid var(--yak-footer-line);
}
.yak-contacts__block:last-child { border-bottom: 0; }

.yak-contacts__addr {
  display: inline-block;
  margin-top: 2px;
  font-weight: 600;
  text-decoration: underline;
  opacity: .95;
}
.yak-contacts__addr:hover { opacity: 1; }

/* телефоны строками */
.yak-contacts__phones {
  margin-top: 6px;
  display: block;
}

.yak-contacts__phone {
  display: block;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--yak-footer-line);
}
.yak-contacts__phone:hover { text-decoration: underline; }
.yak-contacts__phone:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.yak-contacts__email {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.yak-contacts__muted { opacity: .75; }


/* =========================
   FOOTER: списки ссылок (.yak-footer-links__list)
   ========================= */

.yak-footer-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yak-footer-links__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--yak-footer-line);
}
.yak-footer-links__list li:last-child { border-bottom: 0; }

.yak-footer-links__list a {
  text-decoration: none;
  opacity: .9;
}
.yak-footer-links__list a:hover {
  text-decoration: underline;
  opacity: 1;
}


/* =========================
   HOME (yak-home): читабельность + адаптив
   ========================= */

.yak-home{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px 10px; /* верх под 60+ */
}

.yak-section{
  margin-top: 34px;
}

.yak-section__title{
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.yak-link{
  text-decoration: underline;
  opacity: .9;
}

.yak-headline{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

/* HERO */
.yak-hero{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 22px;
  background: rgba(0,0,0,.02);
}

.yak-hero__inner{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

.yak-hero__title{
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
}

.yak-hero__lead{
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.75;
  opacity: .92;
  max-width: 70ch;
}

.yak-hero__actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.yak-hero__contacts{
  font-size: 18px;
  line-height: 1.75;
  opacity: .92;
}
.yak-hero__contacts a{ text-decoration: underline; }

.yak-hero__badge{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.yak-hero__badge-title{
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.yak-hero__badge-text{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.yak-hero__badge-muted{
  margin-top: 10px;
  opacity: .8;
}

/* Buttons */
.yak-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.18);
}

.yak-btn:focus{
  outline: 3px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}

.yak-btn--primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

.yak-btn--ghost{
  background: #fff;
  color: #111;
}

/* Cards grid */
.yak-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.yak-card{
  display:block;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  text-decoration: none;
}

.yak-card__title{
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 8px;
}

.yak-card__text{
  font-size: 18px;
  line-height: 1.75;
  opacity: .88;
}

/* Bullets */
.yak-bullets{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yak-bullet{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.015);
  font-size: 18px;
  line-height: 1.75;
}

/* Note */
.yak-note{
  border-left: 4px solid rgba(0,0,0,.18);
  padding: 12px 14px;
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.75;
}

/* CTA */
.yak-cta{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}

.yak-cta__title{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.yak-cta__lead{
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.75;
  opacity: .9;
}

.yak-cta__row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yak-cta__meta{
  border-left: 1px solid rgba(0,0,0,.10);
  padding-left: 16px;
  font-size: 18px;
  line-height: 1.75;
}

.yak-cta__meta-line span{ opacity:.8; }
.yak-cta__meta a{ text-decoration: underline; }


/* =========================
   Reveal on scroll (безопасно)
   ========================= */

.yak-reveal{
  opacity: 1;
  transform: none;
}

html.js .yak-reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}

html.js .yak-reveal.is-visible{
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  html.js .yak-reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  .yak-hero__inner{ grid-template-columns: 1fr; }
  .yak-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yak-bullets{ grid-template-columns: 1fr; }
  .yak-cta{ grid-template-columns: 1fr; }
  .yak-cta__meta{
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,.10);
    padding-top: 12px;
  }
}

@media (max-width: 520px){
  .yak-home{ padding: 20px 14px 6px; }
  .yak-hero__title{ font-size: 30px; }
  .yak-section__title{ font-size: 24px; }
  .yak-grid{ grid-template-columns: 1fr; }
  .yak-btn{ width: 100%; }
  .yak-headline{ flex-direction: column; align-items: flex-start; }
}