/* Merezhin — спокойный минималистичный стиль. Цвета и шрифты задаются здесь. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1c1d1f;
  --muted: #64666b;
  --line: #e4e3dd;
  --accent: #23515c;      /* глубокий сине-зелёный */
  --accent-soft: #e8efee;
  --radius: 14px;
  --max: 1080px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--accent); }
.logo span { font-weight: 600; letter-spacing: .22em; font-size: 15px; }
/* русское написание под латинским — дублирование по закону о русском языке */
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-weight: 400; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* первый экран */
.hero { padding: 120px 0 110px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin: 0 0 26px; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 16px; transition: background .2s, color .2s, border-color .2s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #1a3f48; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--ink); }

/* «стежок» — тонкая пунктирная линия-разделитель (отсылка к мережке) */
.stitch { height: 1px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }

/* секции */
section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; }

/* направления */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #cfcec7; transform: translateY(-2px); }
.card .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 23px; font-weight: 600; margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: 15.5px; }
.card li { padding: 7px 0; border-top: 1px dashed var(--line); }
.card .soon { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--accent); }

/* проекты */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { border-top: 2px solid var(--ink); padding-top: 22px; }
.project h3 { font-size: 21px; margin: 0 0 8px; font-weight: 600; }
.project p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.project a.more { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.project a.more:hover { text-decoration: underline; }
.project .where { font-size: 14px; color: var(--muted); }

/* цены */
.price-group { margin-bottom: 44px; }
.price-title { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.price-title span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.price-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 26px; }
.price + .price { border-top: 1px dashed var(--line); }
.price b { font-weight: 600; font-size: 17px; }
.price p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.price strong { white-space: nowrap; font-size: 19px; font-weight: 600; color: var(--accent); text-align: right; }
.price strong small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.price-note { color: var(--muted); font-size: 14px; margin: 12px 4px 0; }
.price-terms { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.price-terms a, footer a { color: var(--accent); }

/* о себе */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.about .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 8px; }
.fact b { display: block; font-size: clamp(24px, 6.4vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
#contact { padding-top: 16px; }
.fact span { color: var(--muted); font-size: 15px; }
.about p { margin: 0 0 18px; }

/* контакты */
.contact { background: var(--accent); color: #fff; border-radius: 22px; padding: 64px 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; font-weight: 600; }
.contact p { margin: 0; color: rgba(255, 255, 255, .78); }
.contact-list { display: grid; gap: 14px; }
.contact-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  text-decoration: none; color: #fff; font-size: 18px; transition: background .2s;
}
.contact-list a:hover { background: rgba(255, 255, 255, .16); }
.contact-list small { color: rgba(255, 255, 255, .65); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* подвал */
footer { padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* появление при прокрутке (без JS всё видно сразу) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* планшеты */
@media (max-width: 900px) {
  .section-head, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .contact { padding: 48px 32px; }
}
/* телефоны */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 72px; }
  section { padding: 68px 0; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; color: var(--ink); }
  .card { padding: 28px 22px; }
  .contact { padding: 40px 22px; border-radius: 18px; }
  .contact-list a { font-size: 16px; padding: 16px; }
  .about .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .price { flex-direction: column; gap: 8px; padding: 18px; }
  .price strong { text-align: left; }
  .price strong small { display: inline; margin-left: 6px; }
}
