/* ================================================
   РЕМОНТ ПОД КЛЮЧ — style.css
   Подход: Mobile First
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg:         #F5F1EB;      /* тёплый кремовый фон */
  --color-bg-alt:     #EDEAE3;      /* чуть темнее — для чередования блоков */
  --color-surface:    #FFFFFF;
  --color-text:       #1E1B18;      /* тёмный уголь */
  --color-text-muted: #6B6560;      /* приглушённый для подзаголовков */
  --color-accent:     #B5622A;      /* медно-терракотовый */
  --color-accent-hover: #934F22;
  --color-accent-light: #F0DDD0;    /* очень светлый для фонов */
  --color-border:     #DDD8D0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 16px rgba(30, 27, 24, 0.08);
  --shadow-btn:  0 4px 18px rgba(181, 98, 42, 0.30);

  --transition: 0.25s ease;
  --max-width:  1160px;
  --header-h:   64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 36px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Header contacts (desktop only) */
.header-contacts {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition);
}

.header-phone:hover { color: var(--color-accent); }

.header-email {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.header-email:hover { color: var(--color-accent); }

/* Nav */
.site-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Burger button */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.burger:hover { background: var(--color-accent-light); }

.burger-line {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

.burger-line:nth-child(3) { width: 65%; }

.burger.is-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger-line:nth-child(2) { opacity: 0; }
.burger.is-open .burger-line:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.mobile-menu.is-open { display: flex; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-list a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.mobile-contacts {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.mobile-email {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  margin-top: var(--header-h);
  background: var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
}

/* Text side */
.hero-content {
  padding: 2.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 36ch;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  width: fit-content;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(181, 98, 42, 0.38);
}

.hero-cta:active { transform: translateY(0); }

.hero-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero trust row */
.hero-trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.hero-trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Hero image side */
.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero-image-wrap picture,
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Decorative corner tag on image */
.hero-image-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(245, 241, 235, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
}

.hero-image-tag strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.hero-image-tag span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ================================================
   ADVANTAGES SECTION
   ================================================ */
.advantages {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

.advantage-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(30, 27, 24, 0.12);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
}

.advantage-body {}

.advantage-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.advantage-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ================================================
   CONTACTS SECTION
   ================================================ */
.contacts {
  padding: 4rem 0;
  background: var(--color-bg);
}

.contacts-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacts-text {}

.contacts-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  max-width: 42ch;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-info {}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--transition);
}

.contact-value:hover { color: var(--color-accent); }

.contact-value.is-large {
  font-size: 1.35rem;
  font-family: var(--font-display);
}

/* CTA card in contacts */
.contacts-cta-card {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.contacts-cta-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  text-align: center;
}

.cta-btn-outline:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.55);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.footer-copy {
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ================================================
   RESPONSIVE — TABLET (≥768px)
   ================================================ */
@media (min-width: 768px) {
  :root { --header-h: 70px; }

  /* Header */
  .burger { display: none; }
  .site-nav { display: flex; align-items: center; }
  .header-contacts { display: flex; }

  /* Hero */
  .hero-title { font-size: 2.8rem; }

  .hero-image-wrap { aspect-ratio: 16 / 7; }

  /* Advantages grid */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contacts */
  .contacts-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .contacts-text { flex: 1; }
  .contacts-cta-card { flex: 1; }
  .cta-btn-outline { width: auto; }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ================================================
   RESPONSIVE — DESKTOP (≥1024px)
   ================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }

  /* Hero: картинка на весь блок, текст поверх */
  .hero { position: relative; overflow: hidden; }

  .hero-inner {
    position: relative;
    flex-direction: row;
    min-height: 88vh;
  }

  /* Картинка — абсолютно на весь hero */
  .hero-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: 0;
  }

  /* Тёплый градиент поверх картинки */
  .hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(25, 18, 10, 0.84) 0%,
      rgba(25, 18, 10, 0.65) 40%,
      rgba(25, 18, 10, 0.12) 68%,
      transparent 100%
    );
    z-index: 1;
  }

  /* Текст поверх картинки */
  .hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 54%;
    max-width: 640px;
    padding: 5rem 4rem 5rem calc((100vw - var(--max-width)) / 2 + 1.25rem);
    justify-content: center;
    gap: 1.4rem;
  }

  /* Белый текст на тёмном фоне */
  .hero-title {
    font-size: 3rem;
    color: #fff;
    max-width: 18ch;
  }

  .hero-title em { color: #f0a87a; }

  .hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
  }

  .hero-badge {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-badge::before { background: #f0a87a; }

  .hero-trust-item { color: rgba(255, 255, 255, 0.65); }
  .hero-trust-item svg { color: #f0a87a; }

  /* Плашка "200+" — правый нижний угол */
  .hero-image-tag {
    z-index: 3;
    bottom: 2rem;
    right: 2rem;
    left: auto;
  }

  /* Advantages grid: 4 columns */
  .advantages-grid { grid-template-columns: repeat(4, 1fr); }

  /* Section title */
  .section-title { font-size: 2.1rem; }
}

/* Header phones column */
.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

/* Messenger buttons */
.messenger-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.messenger-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.messenger-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.messenger-tg {
  background: #2AABEE;
  color: #fff;
}

.messenger-max {
  background: #FF6700;
  color: #fff;
}

/* Mobile messengers */
.mobile-phone-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-messengers {
  display: flex;
  gap: 0.5rem;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Scroll offset for anchor links */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
