:root {
  --ns-primary: #c81e3a;
  --ns-primary-dark: #a31830;
  --ns-bg: #fff7f8;
  --ns-ink: #1c1214;
  --ns-muted: #6b5560;
  --ns-card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans", system-ui, sans-serif;
  background: var(--ns-bg);
  color: var(--ns-ink);
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #f0d7dc;
  padding: 0 28px;
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.logo {
  background: var(--ns-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav { display: flex; gap: 8px; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ns-ink);
}
.nav a:hover { background: #fdecef; color: var(--ns-primary); }
.menu-btn {
  display: none;
  border: 1px solid #f0d7dc;
  border-radius: 8px;
  background: #fff;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  position: relative;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  display: block;
  width: 22px;
  height: 2px;
  background: #1c1214;
  border-radius: 1px;
}
.menu-btn span:before,
.menu-btn span:after {
  content: "";
  position: absolute;
  left: 10px;
}
.menu-btn span:before { top: 12px; }
.menu-btn span:after { bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ns-primary);
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(200, 30, 58, 0.22);
}
.btn:hover { background: var(--ns-primary-dark); }

.hero {
  background: linear-gradient(180deg, #fde8ec 0%, var(--ns-bg) 70%);
  padding: 72px 0 80px;
}
.hero__frame {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 72px;
  text-align: center;
}
.hero__frame:before,
.hero__frame:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  border: 6px solid var(--ns-primary);
}
.hero__frame:before { left: 0; border-right: 0; }
.hero__frame:after { right: 0; border-left: 0; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 4vw, 3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hero p {
  margin: 0 auto 28px;
  max-width: 540px;
  color: var(--ns-muted);
  overflow-wrap: anywhere;
}

.section { padding: 64px 0; }
.section h2 { font-size: 1.8rem; margin: 0 0 10px; }
.lead { color: var(--ns-muted); margin: 0 0 28px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--ns-card);
  border-radius: 20px;
  padding: 28px;
  min-height: 220px;
}
.card--photo {
  background-size: cover;
  background-position: center;
  background-color: #7a3d46;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  min-height: 240px;
}
.card--photo h3,
.card--photo p { color: #fff; }
.card h3 { margin: 0 0 10px; font-size: 1.5rem; }
.card p { margin: 0; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.about__photo {
  min-height: 420px;
  border-radius: 20px;
  background: #f3c5cc center/cover no-repeat;
}
.about__copy {
  background: #fdecef;
  border-radius: 20px;
  padding: 36px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 22px;
}
.service img { height: 180px; width: 100%; object-fit: cover; border-radius: 12px; }
.service h3 { padding: 0 12px; font-size: 1.1rem; }
.service p { padding: 0 12px; color: var(--ns-muted); font-size: 0.95rem; }

.offer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.offer img, .offer__pic {
  width: 100%;
  min-height: 360px;
  height: 360px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact h3 { margin: 0 0 6px; }
.contact p, .contact a { color: var(--ns-ink); }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ns-primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.form-wrap { background: #fff; border-radius: 20px; padding: 36px; max-width: 640px; margin: 0 auto; }
form { display: grid; gap: 12px; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid #1c1214;
  font: inherit;
  background: #fff;
}
.note { font-size: 0.9rem; color: var(--ns-muted); }

.disclaimer {
  background: #1a1012;
  color: #e8dfe1;
  padding: 52px 0;
  border-top: 4px solid var(--ns-primary);
  border-bottom: 4px solid var(--ns-primary);
}
.disclaimer h2 { color: #fff; }
.disclaimer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.disclaimer article {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,30,58,.35);
  border-radius: 12px;
  padding: 18px 20px;
}
.disclaimer h3 { color: #f3b3bd; font-size: 0.8rem; text-transform: uppercase; margin: 0 0 8px; }
.disclaimer p { margin: 0; font-size: 0.9rem; }

.footer {
  position: relative;
  z-index: 20;
  background: #1a1012;
  color: #e8dfe1;
  padding: 48px 0 24px;
}
.footer a { color: #e8dfe1; }
.footer a:hover { color: #f3b3bd; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #3a2a2e;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer h4 { margin: 0 0 12px; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: #b9a3a8; }
.footer__email { color: #f3b3bd; font-weight: 600; }
.footer__bottom { text-align: center; color: #8b7a7e; font-size: 0.85rem; padding-top: 18px; }

.dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.55);
  place-items: center;
  padding: 20px;
}
.dialog.open { display: grid; }
.dialog__box {
  background: #fff;
  width: min(520px, 100%);
  border-radius: 20px;
  padding: 40px 32px 28px;
  position: relative;
}
.dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.page { padding: 48px 0 72px; max-width: 860px; }
.page h1 { margin-top: 0; }
.blog-card {
  background: #fff;
  border: 1px solid #f0d7dc;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .grid-2, .about, .services, .offer, .contacts, .disclaimer__grid, .footer__top {
    grid-template-columns: 1fr;
  }
  .hero__frame { padding: 32px 36px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 8px;
    top: 72px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 60;
  }
  .menu-btn {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: var(--ns-primary);
    border-color: var(--ns-primary);
  }
  .header__inner { padding-right: 52px; }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after { background: #fff; }
}
@media (max-width: 575px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .hero { overflow: hidden; }
  .hero__frame { padding: 20px 22px; max-width: 100%; }
  .hero__frame:before,
  .hero__frame:after { width: 10px; border-width: 3px; }
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.9rem; }
  .section h2 { overflow-wrap: anywhere; font-size: 1.35rem; }
  .btn { padding: 12px 18px; }
  .dialog__box { padding: 36px 20px 24px; }
  .dialog__box h3 { padding-right: 20px; overflow-wrap: anywhere; }
}
