/* Skyhome layout — aligned to original Flatsome/Sky structure */
:root {
  --ink: #222;
  --muted: #444;
  --soft: #777;
  --line: #e5e5e5;
  --primary: #173e62;
  --primary-2: #0f2d48;
  --accent: #c4a35a;
  --gold: #c9a24d;
  --white: #fff;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --bg-beige: #f3efe6;
  --container: 1170px;
  --header-h: 90px;
  --font-display: "DM Serif Display", "Noto Serif JP", serif;
  --font-body: "Be Vietnam Pro", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --ease: 0.3s ease;
}

/* 避免语言切换时先闪日文：未就绪前隐藏正文 */
html:not(.i18n-ready) body {
  visibility: hidden;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.55em;
  color: var(--primary);
}

p { margin: 0 0 1em; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-2); }

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { background: #f0f0f0; }

.btn-link {
  color: var(--primary);
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
}
.btn-link:hover { color: var(--accent); }
.btn-link-gold { color: var(--gold); }
.btn-link-gold:hover { color: #a88635; }

/* ========== Header (transparent over hero like original) ========== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--ease), box-shadow var(--ease);
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.site-header.is-sticky .nav-desktop a,
.site-header.is-sticky .menu-toggle span {
  color: var(--primary);
}

.site-header.is-sticky .menu-toggle {
  border-color: var(--line);
  background: #fff;
}

.site-header.is-sticky .logo-img-white { display: none; }
.site-header.is-sticky .logo-img { display: block; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-img { display: none; }
.logo-img-white { display: block; }

body:not(.is-home) .site-header {
  position: sticky;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

body:not(.is-home) .logo-img { display: block; }
body:not(.is-home) .logo-img-white { display: none; }
body:not(.is-home) .nav-desktop a { color: var(--primary); }
body:not(.is-home) .menu-toggle {
  border-color: var(--line);
  background: #fff;
}
body:not(.is-home) .menu-toggle span { background: var(--primary); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: none;
  position: relative;
  padding: 0.2rem 0;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.3rem;
}

.lang-switch-mobile {
  margin-left: 0;
  padding: 0.85rem 20px;
}

.lang-flag {
  display: inline-flex;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--ease);
}

.lang-flag img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.lang-flag:hover,
.lang-flag.active { opacity: 1; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 20px;
  color: var(--primary);
  border-bottom: 1px solid #f0f0f0;
}

.nav-mobile a.active { color: var(--accent); }

/* ========== Hero full-height ========== */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 35, 0.55) 0%, rgba(10, 20, 35, 0.2) 55%, rgba(10, 20, 35, 0.15) 100%);
}

.hero-slide.active { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 8rem;
}

.hero-kicker {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  color: #fff;
  max-width: 12ch;
  margin-bottom: 0.35em;
  letter-spacing: 0.04em;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
}

/* Phone overlay — bottom left on hero */
.hero-phone {
  position: absolute;
  z-index: 4;
  left: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.hero-phone img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hero-phone small {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.15rem;
}

.hero-phone strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero-phone:hover { color: #fff; opacity: 0.9; }

/* Numbered pager — bottom right on hero */
.hero-pager {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  color: #fff;
}

.hero-pager-nums {
  display: flex;
  gap: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.hero-pager-nums button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color var(--ease);
}

.hero-pager-nums button.active,
.hero-pager-nums button:hover {
  color: #fff;
}

.hero-pager-bar {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.hero-pager-bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 33.333%;
  background: #fff;
  transition: transform 0.45s ease;
  display: block;
}

.hero-pager-arrows {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.hero-pager-arrows button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0;
}

.hero-pager-arrows button:hover { opacity: 1; }

/* ========== Sections ========== */
.section { padding: 4.5rem 0; }

.section-sm { padding: 3rem 0; }

.titmain h3,
.titmain .h3 {
  color: var(--primary);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.8rem;
}

.titmain > p {
  color: var(--soft);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.titmain h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
}

/* who: intro + counters */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: center;
}

.who-copy {
  padding-right: 2rem;
  color: var(--gold);
  line-height: 1.9;
}

.who-copy h3 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: 1.2rem;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.who-copy p {
  color: var(--gold);
  margin: 0;
  font-size: 0.88rem;
  line-height: 2;
  font-weight: 400;
}

.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  text-align: center;
  align-items: center;
}

.counter .num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.counter .label {
  margin-top: 0.75rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* mission: image | text */
.section-mission {
  background: var(--bg-beige);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-copy h3 {
  font-size: 1.55rem;
  margin-top: 1.2rem;
  color: var(--primary);
}

.split-copy h3:first-child { margin-top: 0; }

.split-copy p { color: #555; font-size: 0.95rem; }

/* areas / project grid */
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.area-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 10px;
}

.area-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  color: #fff;
}

.area-card.tall {
  grid-row: span 2;
  min-height: 100%;
}

.area-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.area-card:hover .bg { transform: scale(1.06); }

.area-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 8%, rgba(0, 0, 0, 0.05) 60%);
}

.area-card .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.2rem 1.3rem;
}

.area-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.area-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* strength features */
.feature-list {
  display: grid;
  gap: 1.4rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-item .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef3f8;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.feature-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.values h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* testimonial split dark */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: #1a2f45;
  color: #fff;
}

.testimonial-copy {
  padding: 5rem 4rem 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-copy .eyebrow {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.testimonial-copy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.5rem;
}

.testimonial-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.9;
}

.testimonial-copy h4 {
  color: #fff;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-media {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.testimonial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 55, 0.15);
}

/* news */
.news-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-head > p {
  color: var(--soft);
  margin-bottom: 0.3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  transition: transform var(--ease);
}

.news-card:hover { transform: translateY(-4px); }

.news-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 2%;
  margin-bottom: 1rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--soft);
  margin-bottom: 0.4rem;
}

.news-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.news-card h3 a:hover { color: var(--accent); }

.news-card p {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Page hero (inner) */
.page-hero {
  background:
    linear-gradient(120deg, rgba(23, 62, 98, 0.88), rgba(23, 62, 98, 0.65)),
    url("https://skyhome-realty.com/wp-content/uploads/2024/03/background-blog.jpg") center / cover;
  color: #fff;
  padding: 5.5rem 0 3.2rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover { color: #fff; }

/* About / FAQ / Contact shared */
.about-lead {
  max-width: 820px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.progress-list {
  max-width: 720px;
  margin: 0 auto 3rem;
  display: grid;
  gap: 1.4rem;
}

.progress-item label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-weight: 500;
  color: var(--primary);
}

.progress-bar {
  height: 10px;
  background: #e8eef4;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 1.2s ease;
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  border-left: 2px solid var(--line);
  padding-left: 1.8rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .year {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.3rem;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.voice-card {
  border: 1px solid var(--line);
  padding: 2rem;
  background: #fff;
}

.voice-card blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
}

.voice-card cite {
  font-style: normal;
  color: var(--soft);
  font-size: 0.9rem;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item { border: 1px solid var(--line); background: #fff; }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
}

.faq-item.open .faq-a { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.contact-info {
  background: var(--bg-soft);
  padding: 2rem;
}

.contact-info li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-info li strong {
  display: block;
  color: var(--primary);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.staff-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.staff-card {
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: #fff;
}

.staff-card h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.staff-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--soft);
}

.contact-form { display: grid; gap: 1rem; }

.form-row { display: grid; gap: 0.4rem; }

.form-row label { font-weight: 500; font-size: 0.9rem; color: var(--primary); }
.form-row label .req { color: #c0392b; }

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0.95rem;
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row textarea { min-height: 160px; resize: vertical; }

.form-message { display: none; padding: 0.9rem 1rem; font-size: 0.9rem; }
.form-message.success { display: block; background: #e8f7ef; color: #1e7a45; }
.form-message.error { display: block; background: #fdecea; color: #b03a2e; }

.article { max-width: 780px; margin: 0 auto; }
.article-meta { color: var(--soft); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}
.article-body { color: var(--muted); font-size: 1.02rem; }
.article-body h2 { margin-top: 1.8em; font-size: 1.4rem; }
.article-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(rgba(12, 28, 45, 0.92), rgba(12, 28, 45, 0.92)),
    url("https://skyhome-realty.com/wp-content/uploads/2024/03/footer_bkg_1.jpg") center / cover;
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.site-footer a:hover { color: var(--accent); }

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo img { height: 48px; }
.footer-links li { margin-bottom: 0.55rem; }

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.newsletter input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.7rem 0.85rem;
}

.newsletter input::placeholder { color: rgba(255, 255, 255, 0.45); }

.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .who-grid,
  .split,
  .testimonial,
  .contact-grid,
  .voice-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .testimonial-copy {
    padding: 3rem 1.2rem;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .area-card.tall {
    grid-row: auto;
    min-height: 260px;
  }

  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .who-copy { padding-right: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 3rem 0; }
  .logo img { height: 40px; }
  .area-grid,
  .news-grid,
  .footer-grid,
  .counters {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 85vh; }
  .hero-content { min-height: 85vh; padding-bottom: 9.5rem; }

  .hero-phone {
    left: 16px;
    bottom: 5.8rem;
  }

  .hero-phone img { width: 40px; height: 40px; }
  .hero-phone strong { font-size: 1.35rem; }

  .hero-pager {
    right: 16px;
    bottom: 1.4rem;
  }
}
