/* services.html — the full price list.
   Built from public/service.txt, which was an OCR dump of a price sheet: the
   table structure survived badly, so a few rows are still marked "уточняется"
   rather than carrying a guessed number. */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --green-dark: #5c7a54;
  --green-ink: #4a7040;
  --green-mid: #86a47c;
  --green-light: #a3bb96;
  --green-pale: #e8efe5;
  --cream: #f9f7f2;
  --white: #fff;
  --black: #1a1a1a;
  --gray: #6b6b6b;
  --line: rgba(26, 42, 20, 0.14);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── nav ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: var(--white);
  /* box-shadow instead of border-bottom: a 1px border adds 1px to the
     box, which made this nav 1px taller than the other pages. A 0 1px 0
     shadow draws the same hairline without affecting layout height. */
  box-shadow: 0 1px 0 var(--line);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  flex: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-mid);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger {
  border-bottom-color: var(--green-mid);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0;
  transition: var(--transition);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.nav-dropdown-menu a img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

.nav-cta {
  padding: 10px 24px;
  border: 1.5px solid var(--green-dark);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-ink);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  border-color: var(--green-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ── mobile menu ────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.mobile-menu-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
}

.mobile-menu-nav a.active {
  color: var(--green-light);
}

.mobile-menu-section {
  width: 100%;
  max-width: 340px;
  margin-top: 20px;
}

.mobile-menu-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  text-align: center;
}

.mobile-menu-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-menu-socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  transition: var(--transition);
}

.mobile-menu-socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--green-light);
}

.mobile-menu-socials a img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-menu-cta a {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  border: 1px solid var(--green-mid);
  border-radius: 100px;
  color: var(--green-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 150px 0 70px;
  background: var(--cream);
}

.hero-inner {
  max-width: 820px;
}

.bureau {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 62ch;
  line-height: 1.7;
}

.architect {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.architect div {
  font-size: 0.95rem;
}

.architect span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}

.architect a,
.architect strong {
  color: var(--black);
  font-weight: 600;
}

.architect a:hover {
  color: var(--green-mid);
}

/* ── sections ───────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section--white {
  background: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto;
}

/* ── price tables ───────────────────────────────────────────────────── */
.group {
  margin-bottom: 56px;
}

.group:last-child {
  margin-bottom: 0;
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-ink);
  margin-bottom: 4px;
}

.group-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--green-ink);
  flex: none;
}

.group-title {
  font-size: 1.3rem;
  color: var(--black);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 16px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

thead th:last-child,
thead th:nth-child(2),
thead th:nth-child(3) {
  text-align: right;
  padding-right: 0;
}

tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}

tbody tr:hover {
  background: rgba(232, 239, 229, 0.5);
}

tbody td {
  padding: 15px 12px 15px 0;
  font-size: 0.95rem;
  vertical-align: top;
}

tbody td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
  color: var(--black);
  font-weight: 600;
  width: 120px;
}

tbody td:last-child {
  text-align: right;
  color: var(--green-ink);
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}

td.name {
  color: var(--black);
}

/* the qualifier that came from the price sheet, kept under the row name */
.note {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
  line-height: 1.5;
}

.cell-verify {
  color: var(--gray);
  font-weight: 500;
  font-style: italic;
}

/* ── project cards ──────────────────────────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project {
  border: 1px solid var(--line);
  padding: 30px 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.project-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 10px;
}

.project h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.project-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--green-ink);
  margin-bottom: 4px;
}

.project-per {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 18px;
}

.project-list {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.project-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 6px;
}

.project-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--green-mid);
}

.project-term {
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.project-term b {
  color: var(--black);
}

/* ── notice ─────────────────────────────────────────────────────────── */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-mid);
  padding: 24px 28px;
  background: var(--white);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.notice h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.notice p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

.notice p+p {
  margin-top: 8px;
}

/* ── cta ────────────────────────────────────────────────────────────── */
.cta {
  background: var(--green-pale);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--gray);
  max-width: 60ch;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green-dark);
  color: var(--green-ink);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ── footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom__links a {
  font-size: 0.85rem;
}

.footer-bottom__links a:hover {
  color: var(--green-light);
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--green-dark);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
  }

  tbody td:last-child {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 120px 0 50px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .architect {
    gap: 12px 28px;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    position: relative;
    padding: 14px 0;
  }

  tbody td {
    padding: 2px 0;
  }

  tbody td:nth-child(2),
  tbody td:last-child {
    text-align: left;
    width: auto;
  }

  tbody td:nth-child(2)::before {
    content: 'ед. изм. ';
    color: var(--gray);
    font-weight: 400;
  }

  tbody td:last-child::before {
    content: '\2014\00a0';
  }

  .note {
    margin-top: 3px;
  }
}
