/* ══════════════════════════════════════════════════════
   layout.css — Section Grid & Flex Layouts
   Ресничное бюро
══════════════════════════════════════════════════════ */

/* ── HEADER ─────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--t-base),
              box-shadow var(--t-base),
              backdrop-filter var(--t-base);
}

#header.header--scrolled {
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px var(--c-shadow);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-4);
}

.nav__logo {
  flex-shrink: 0;
  color: var(--c-white);
  transition: color var(--t-base), opacity var(--t-fast);
  line-height: 1;
}

#header.header--scrolled .nav__logo {
  color: var(--c-text);
}

.nav__logo svg {
  height: 38px;
  width: auto;
  max-width: 280px;
}

.nav__logo:hover {
  opacity: 0.75;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

.nav__cta {
  flex-shrink: 0;
  margin-left: var(--sp-2);
}

/* ── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20% 0;
  /* Красивый тёмный градиент пока нет реального фото */
  background-color: #1E1814;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 30% 70%, rgba(232,196,188,0.08) 0%, transparent 50%),
    url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Более тонкий overlay — появится когда будет реальное фото */
  background: linear-gradient(
    160deg,
    rgba(20, 14, 10, 0.72) 0%,
    rgba(30, 24, 20, 0.55) 50%,
    rgba(20, 14, 10, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-7);
}

.hero__title {
  font-family: 'Jost', 'Century Gothic', Futura, sans-serif;
  font-size: var(--fs-hero);
  font-style: normal;
  font-weight: 200;
  color: var(--c-white);
  line-height: 1.08;
  letter-spacing: 0.08em;
}

/* «Бюро» — тонкий вес, золото — как в логотипе */
.hero__title em {
  display: block;
  font-family: 'Jost', 'Century Gothic', Futura, sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--c-gold-l);
}

.hero__sub {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-md));
  font-weight: 300;
  color: rgba(250, 247, 242, 0.85);
  max-width: 44ch;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
  color: rgba(250, 247, 242, 0.55);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(250,247,242,0.55), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

.hero__scroll-text {
  writing-mode: horizontal-tb;
}

/* ── ABOUT ──────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  align-self: start;
  max-width: 420px;
  margin-inline: auto;
}

.about__image {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--c-cream-dd);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow);
}

.about__image:hover img {
  transform: scale(1.04);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -16px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--c-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.45);
}

.about__badge-number {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
}

.about__badge-text {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.3;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.about__text h2 {
  margin-top: var(--sp-1);
  font-style: normal;
  letter-spacing: 0.03em;
}

.about__lead {
  font-size: var(--fs-md);
  color: var(--c-text);
  font-weight: 300;
  max-width: 50ch;
}

.about__creds {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-block: var(--sp-2);
}

.about__creds li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.5;
}

.about__creds svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-gold);
}

/* ── SERVICES ───────────────────────────────────────── */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}

.services-grid--centered {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 800px;
  margin-inline: auto;
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.portfolio__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.portfolio__cta-text {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  letter-spacing: 0.05em;
  max-width: none;
}

/* ── REVIEWS ────────────────────────────────────────── */
.yandex-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
  background: var(--c-white);
  border: 1px solid var(--c-gold-l);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  box-shadow: 0 4px 20px var(--c-shadow);
}

.yandex-badge__stars {
  font-size: 1.75rem;
  color: var(--c-gold);
  letter-spacing: 2px;
  line-height: 1;
}

.yandex-badge__info {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  flex-wrap: wrap;
  justify-content: center;
}

.yandex-badge__score {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-text);
}

.yandex-badge__text {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.yandex-badge__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-gold-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.yandex-badge__link:hover {
  color: var(--c-gold);
}

/* ── WHY US / STATS ─────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(var(--sp-4), 6vw, var(--sp-8));
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

/* ── BOOKING ────────────────────────────────────────── */
.booking__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}

.booking__sub {
  font-size: var(--fs-md);
  color: rgba(250, 247, 242, 0.70);
  max-width: 42ch;
  line-height: 1.7;
  font-weight: 300;
}

.booking__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-1);
}

.booking__note {
  font-size: var(--fs-sm);
  color: rgba(250, 247, 242, 0.45);
  max-width: none;
}

.booking__note a {
  color: var(--c-gold-l);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.booking__note a:hover {
  color: var(--c-gold);
}

/* ── CONTACTS ───────────────────────────────────────── */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contacts__info h2 {
  font-style: normal;
}

.contacts__address {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block: var(--sp-2);
}

.contact-item {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--c-gold-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold-d);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-d);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  max-width: none;
}

.contact-item a:hover {
  color: var(--c-gold-d);
}

.contacts__socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.contacts__map iframe {
  height: 380px;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background-color: var(--c-dark);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.footer__logo {
  color: var(--c-gold-l);
  opacity: 0.85;
  transition: opacity var(--t-fast);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__logo svg {
  height: 44px;
  width: auto;
  max-width: 260px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  justify-content: center;
}

.footer__nav a {
  font-size: var(--fs-sm);
  color: rgba(250, 247, 242, 0.45);
  transition: color var(--t-fast);
  letter-spacing: 0.05em;
}

.footer__nav a:hover {
  color: var(--c-gold-l);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.25);
  max-width: none;
}
