/* ============================================================
   HARE — Layout & components
============================================================ */

/* ---------- LOGO ---------- */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 42px; width: auto; display: block; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228,233,238,.7);
}
.header__inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.header__brand { display: flex; align-items: center; gap: 18px; }
.header__tagline {
  font-size: 11.5px; line-height: 1.45; color: var(--ink-soft);
  padding-left: 18px; border-left: 1px solid var(--border-2); white-space: nowrap;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav__item {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav__item::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s ease; border-radius: 2px;
}
.nav__item:hover { color: var(--blue); }
.nav__item:hover::after { width: 100%; }
.nav__caret { width: 9px; height: 9px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: none;
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--sky); color: var(--blue); }
.hamburger { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 56%, #eef6fd 80%, #e4f1fb 100%);
}
.hero__bg {
  position: absolute; bottom: 0; top: 0;
  right: max(0px, calc((100% - var(--maxw)) / 2));
  width: min(64%, 980px);
  background: url("../img/hero-mv.webp") right bottom / cover no-repeat;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: clamp(380px, 31vw, 470px);
  padding-top: 40px; padding-bottom: 40px;
}
.hero__copy { max-width: 42%; }
.hero__title {
  font-size: clamp(28px, 4.2vw, 47px);
  font-weight: 700; line-height: 1.34; letter-spacing: .01em;
}
.hero__title .ln { display: block; white-space: nowrap; }
.hero__title .hl { color: var(--blue); }
.hero__lead { margin-top: 24px; font-size: 16px; line-height: 1.95; color: var(--ink-soft); }
.br-sp { display: none; }
.hero__cta { margin-top: 34px; }

/* ---------- NEW ARTICLES ---------- */
.section { padding-block: clamp(54px, 7vw, 82px); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.card { display: flex; flex-direction: column; }
.card a.card__media, .card__media {
  display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--sky-2);
}
.card__media .ph { width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card__body { padding-top: 16px; }
.card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.card__title {
  font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: .01em;
  transition: color .2s;
  min-height: calc(1.5em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__excerpt { margin-top: 11px; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }

.card--link { transition: transform .25s ease; }
.card--link .card__media { box-shadow: var(--shadow-card); transition: box-shadow .3s ease; }
.card--link .ph { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card--link:hover { transform: translateY(-6px); }
.card--link:hover .card__media { box-shadow: var(--shadow-hover); }
.card--link:hover .ph { transform: scale(1.06); }
.card--link:hover .card__title { color: var(--blue); }

/* ---------- POPULAR ---------- */
.popular {
  background: var(--sky); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 40px;
  align-items: center;
}
.popular__title { font-size: 24px; font-weight: 700; margin-bottom: 22px; }
.rank { display: flex; flex-direction: column; }
.rank__item {
  display: grid; grid-template-columns: 34px 76px 1fr auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 18px; row-gap: 4px;
  padding: 16px 0; border-bottom: 1px solid rgba(23,129,198,.16);
}
.rank__item:first-child { padding-top: 0; }
.rank__item:last-child { border-bottom: none; padding-bottom: 0; }
.rank__main, .rank__meta, .rank__body { display: contents; }
.rank__num { grid-column: 1; grid-row: 1 / 3; font-size: 30px; font-weight: 400; color: var(--blue); font-family: var(--font-round); line-height: 1; }
.rank__thumb { grid-column: 2; grid-row: 1 / 3; width: 76px; height: 57px; border-radius: 8px; overflow: hidden; background: transparent; align-self: center; }
.rank__thumb .ph { width: 100%; height: 100%; }
.rank__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank__meta .date { grid-column: 3; grid-row: 1; align-self: end; }
.rank__ttl { grid-column: 3; grid-row: 2; align-self: start; font-size: 15px; font-weight: 700; line-height: 1.45; transition: color .2s; }
.rank__meta .tag { grid-column: 4; grid-row: 1 / 3; align-self: center; justify-self: start; }
.rank__item:hover .rank__ttl { color: var(--blue); }
.popular__art { aspect-ratio: 1 / 1; max-width: 320px; margin-inline: auto; }
.popular__art img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- THEMES ---------- */
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.theme { text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .2s; }
.theme__icon {
  width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 14px;
  transition: transform .3s ease;
}
.theme__icon img { width: 100%; height: 100%; object-fit: contain; }
.theme:hover { transform: translateY(-4px); }
.theme:hover .theme__icon { transform: scale(1.08); }
.theme:hover .theme__name { color: var(--blue); }
.theme__name { font-size: 16px; font-weight: 700; margin-bottom: 8px; transition: color .2s; }
.theme__desc { font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- BOTTOM GRID ---------- */
.bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; align-items: stretch; }

.about-card {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, #d7ecfa, #eaf5fc 60%);
  border-radius: var(--radius); padding: 30px 30px 0;
  min-height: 320px; display: flex; flex-direction: column;
}
.about-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 25px; }
.about-card p { font-size: 13px; line-height: 1.95; color: var(--ink-soft); max-width: 100%; }
.about-card .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 2; margin-bottom: 55px; }
.about-card__city { position: absolute; right: 29%; bottom: 0; width: 35%; height: 36%; z-index: 0; pointer-events: none; }
.about-card__city img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.about-card__art { position: absolute; right: 8px; bottom: 0; width: 38%; height: 52%; z-index: 1; }
.about-card__art img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 5px 9px rgba(23,90,150,.22)); }

.panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; min-height: 320px;
}
.panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.news-card { display: flex; flex-direction: column; }
.news-card__lead { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.news-card__lead p { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.news-card__plane { flex: none; width: 46px; height: auto; margin-top: 2px; }
.field {
  width: 100%; margin-top: 18px; padding: 14px 16px; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #aab6c0; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,147,220,.14); }
.news-card form { margin-top: auto; }
.news-card .btn { margin-top: 12px; }
.news-card__msg { font-size: 12.5px; color: var(--blue-600); margin-top: 10px; min-height: 16px; }

.reco__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.reco__item:first-of-type { padding-top: 4px; }
.reco__item:last-child { border-bottom: none; padding-bottom: 0; }
.reco__thumb { width: 52px; height: 44px; border-radius: 6px; overflow: hidden; }
.reco__thumb .ph { width: 100%; height: 100%; }
.reco__item > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; max-width: 100%; }
.reco__ttl { display: block; max-width: 100%; font-size: 13.5px; font-weight: 700; line-height: 1.55; margin: 0; transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco__item:hover .reco__ttl { color: var(--blue); }

/* ---------- CTA BAND (above footer) ---------- */
.cta-band { background: #0f2336; }
.cta-band__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-band__lead {
  position: relative; color: #fff; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500;
  letter-spacing: .04em; line-height: 1.7; margin-bottom: clamp(22px, 3vw, 32px);
  padding-inline: 56px;
}
.cta-band__lead::before, .cta-band__lead::after {
  content: ""; position: absolute; top: 50%; width: 1px; height: 40px;
  background: rgba(255,255,255,.35);
}
.cta-band__lead::before { left: 14px; transform: translateY(-50%) rotate(-22deg); }
.cta-band__lead::after { right: 14px; transform: translateY(-50%) rotate(22deg); }
.cta-band__btn { min-width: 340px; padding-block: 20px; font-size: 16px; }
@media (max-width: 700px) {
  .cta-band__lead { padding-inline: 40px; }
  .cta-band__lead::before { left: 6px; }
  .cta-band__lead::after { right: 6px; }
  .cta-band__btn { min-width: 0; width: 100%; }
}

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 44px 28px; }
.footer__top { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__company { display: flex; flex-direction: column; gap: 6px; }
.footer__company-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer__company-addr { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.footer__map {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--border-2); border-radius: 8px; padding: 13px 24px;
  transition: border-color .2s, color .2s, gap .2s;
}
.footer__map:hover { border-color: var(--blue); color: var(--blue); gap: 14px; }
.footer__map .arr { transition: transform .25s ease; }
.footer__map:hover .arr { transform: translateX(4px); }
.footer__social { margin-left: auto; display: flex; gap: 14px; align-self: center; }
.soc {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; color: #fff; transition: transform .2s, background .2s;
}
.soc:hover { transform: translateY(-3px); background: var(--blue); }
.footer__bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--blue); }
