/* Dvernoi Magnat — салон дверей и напольных покрытий, Уральск */

:root {
  --bg: #f3f3f2;
  --surface: #fdfdfc;
  --raised: #eaeae8;
  --line: rgba(27, 25, 28, 0.09);
  --line-strong: rgba(27, 25, 28, 0.18);
  --text: #1b191c;
  --text-2: #4c4a44;
  --text-3: #696964;
  --accent: #b8431b;
  --accent-hover: #9f3914;
  --on-accent: #ffffff;
  --brand: #e8541e;
  --dark: #1b191c;
  --dark-raised: #252327;
  --on-dark: #f3f3f2;
  --on-dark-2: #b6b3ac;
  --on-dark-3: #8f8c85;
  --line-dark: rgba(243, 243, 242, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-btn: 10px;
  --r-card: 12px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --header-h: 56px;
}

@media (min-width: 768px) {
  :root { --header-h: 64px; }
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

p { margin: 0; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

.icon { display: block; flex-shrink: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-btn);
  text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

.section { padding-block: 64px; }

@media (min-width: 1024px) {
  .section { padding-block: 112px; }
}

.section-head { max-width: 720px; margin-bottom: 32px; }

@media (min-width: 1024px) {
  .section-head { margin-bottom: 48px; }
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}

@media (min-width: 1250px) {
  h2 { letter-spacing: -0.02em; }
}

.lead {
  margin-top: 12px;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--raised); }

.btn-header { min-height: 44px; padding: 0 16px; font-size: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s var(--ease);
}
.text-link:hover { text-decoration-color: var(--text); }
.text-link .icon { color: var(--text-3); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: var(--surface);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.nav { display: none; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav a:hover { background: var(--raised); color: var(--text); }

.lang { display: flex; gap: 4px; }

.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.lang button:hover { color: var(--text); }

.lang button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
}

.header-lang { display: none; }

.header-cta { display: none; }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1180px) {
  .nav { display: flex; gap: 0; }
  .header-lang { display: flex; }
  .menu-btn { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 8px 20px 40px;
  background: var(--bg);
  overflow-y: auto;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  text-decoration: none;
}

.mobile-menu .lang button { min-width: 56px; font-size: 16px; }

.mobile-menu .menu-contacts { display: grid; gap: 12px; }

.mobile-menu .menu-contacts .btn { width: 100%; }

@media (min-width: 1180px) {
  .mobile-menu { display: none !important; }
}

/* Hero: на телефоне фото фоном, от 960 px текст и фото в одной сетке */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: #ffffff;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 160px 20px 32px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #2b2725;
}

.hero-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0.78) 100%);
}

.hero h1 {
  max-width: 13em;
  color: #ffffff;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.04;
}

.hero-lead {
  margin-top: 16px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.open-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.4;
}

.open-status[hidden] { display: none; }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 768px) {
  .hero-text { padding: 200px 32px 48px; }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    margin-inline: auto;
    min-height: 0;
    padding: 32px;
    overflow: visible;
    color: inherit;
  }

  .hero-text { padding: 0; }

  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
    height: clamp(440px, calc(100svh - 260px), 720px);
    width: auto;
    max-width: 100%;
    justify-self: end;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--raised);
  }

  .hero-media > * { object-position: 50% 55%; }

  .hero-media::after { display: none; }

  .hero h1 { color: var(--text); letter-spacing: -0.03em; }

  .hero-lead { color: var(--text-2); }

  .hero .btn-secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
  }

  .hero .btn-secondary:hover { background: var(--raised); }

  .hero .open-status { color: var(--text-3); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: rise 0.5s var(--ease) both; }
  .hero-media { animation: fade 0.6s var(--ease) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes fade {
  from { opacity: 0; }
}

/* Facts strip */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 0;
  padding-block: 0;
  list-style: none;
}

.facts li {
  padding: 20px 16px 20px 0;
}

.facts li:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }

.fact-fig {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.fact-fig.is-key { color: var(--accent); }

.fact-text {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 16px;
  line-height: 1.4;
}

@media (min-width: 960px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li,
  .facts li:nth-child(even) {
    padding: 24px 24px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .facts li:nth-child(n + 3) { border-top: 0; }
  .facts li:first-child { padding-left: 0; border-left: 0; }
  .fact-fig { font-size: 22px; }
}

/* Catalog */

.catalog-grid {
  display: grid;
  gap: 32px;
}

.catalog-content { order: -1; }

.catalog-photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
}

.catalog-photo img,
.work-media img,
.hw-photo img,
.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cat-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cat-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.cat-spec {
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
  text-align: right;
  white-space: nowrap;
}

.cat-desc {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}

.catalog-grid > * { min-width: 0; }

@media (max-width: 479px) {
  .cat-item { grid-template-columns: 1fr; }
  .cat-spec { text-align: left; white-space: normal; }
}

@media (min-width: 960px) {
  .catalog-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
  .catalog-content { order: 0; }
  .catalog-photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .cat-desc { grid-column: 1; }
}

/* Works */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.work-link:hover { border-color: var(--line-strong); background: #ffffff; }

.work-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
}

.work-body { display: block; padding: 12px 12px 16px; }

.work-title {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.work-meta {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .works-grid { gap: 20px; }
  .work-body { padding: 16px 20px 20px; }
  .work-title { font-size: 19px; }
  .work-meta { font-size: 15px; }
}

@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Hardware */

.hw {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hw-grid { display: grid; gap: 40px; }

.hw-list {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hw-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}

.hw-ico {
  display: grid;
  place-items: center;
  height: 27px;
  color: var(--text-3);
}

.hw-name { display: block; color: var(--text); font-weight: 500; }

.hw-text { display: block; color: var(--text-2); font-size: 16px; line-height: 1.5; }

.hw-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hw-photos figure { margin: 0; }

.hw-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
}

.hw-photos figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hw-photos { gap: 20px; }
  .hw-photos figcaption { font-size: 15px; }
}

@media (min-width: 960px) {
  .hw-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
}

/* Steps */

.steps-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.step-num {
  padding-top: 3px;
  color: var(--accent);
  font-size: 15px;
}

.step-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.step-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .steps-list { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { display: block; padding: 20px 0 0; border-top-color: var(--line-strong); }
  .step-num { display: block; margin-bottom: 32px; padding: 0; }
}

/* Calculator */

.calc {
  background: var(--dark);
  color: var(--on-dark-2);
}

.calc h2 { color: var(--on-dark); }

.calc .lead { color: var(--on-dark-2); }

.calc-grid { display: grid; gap: 32px; }

.calc-grid > * { min-width: 0; }

@media (max-width: 399px) {
  .opts:not(.opts-count) { grid-template-columns: 1fr; }
}

.calc-points {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.calc-points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: var(--on-dark-2);
  font-size: 16px;
  line-height: 1.5;
}

.calc-points .hw-ico { height: 24px; color: var(--on-dark-3); }

.calc-panel {
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--dark-raised);
}

.calc-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.calc-panel fieldset + fieldset { margin-top: 24px; }

.calc-panel legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 500;
}

.opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opt { position: relative; display: block; }

.opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opt span {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(243, 243, 242, 0.2);
  border-radius: var(--r-btn);
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1.3;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.opt:hover span { border-color: rgba(243, 243, 242, 0.45); }

.opt input:checked + span {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--dark);
}

.opt input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calc-msg-label {
  display: block;
  margin-top: 24px;
  color: var(--on-dark-3);
  font-size: 15px;
}

.calc-msg {
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--r-btn);
  background: rgba(243, 243, 242, 0.06);
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.55;
}

.calc-send { width: 100%; margin-top: 20px; }

@media (min-width: 768px) {
  .calc-panel { padding: 32px; }
  .opts-count { grid-template-columns: repeat(4, 1fr); }
  .calc-send { width: auto; }
}

@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

/* Reviews */

.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.row-head .section-head { margin-bottom: 0; }

@media (min-width: 1024px) {
  .row-head { margin-bottom: 48px; }
}

.reviews-cols { columns: 1; column-gap: 20px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  break-inside: avoid;
}

.review blockquote {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 15px;
  line-height: 1.4;
}

.review-author { color: var(--text-2); font-weight: 500; }

.review-date { color: var(--text-3); }

@media (min-width: 768px) {
  .reviews-cols { columns: 2; }
}

@media (min-width: 1100px) {
  .reviews-cols { columns: 3; column-gap: 24px; }
  .review { margin-bottom: 24px; }
}

/* FAQ */

.faq { border-top: 1px solid var(--line); }

.faq-grid { display: grid; gap: 24px; }

.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary .icon {
  color: var(--text-3);
  transition: transform 0.18s var(--ease);
}

.faq-list details[open] summary .icon { transform: rotate(180deg); }

.faq-a {
  padding: 0 40px 20px 0;
  color: var(--text-2);
  font-size: 17px;
}

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
}

/* Instagram */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ig-grid a {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--raised);
}

.ig-grid img { transition: opacity 0.15s var(--ease); }

.ig-grid a:hover img { opacity: 0.86; }

@media (min-width: 1024px) {
  .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .ig-grid a { border-radius: var(--r-card); }
}

/* Contacts */

.contacts { border-top: 1px solid var(--line); }

.contacts-grid { display: grid; gap: 40px; }

.c-list {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.c-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.c-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text-2);
}

.c-label {
  display: block;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.4;
}

.c-value {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.c-value a { text-decoration: none; }
.c-value a:hover { text-decoration: underline; text-underline-offset: 3px; }

.c-phones { display: flex; flex-wrap: wrap; gap: 0 20px; }

.c-phones a { display: inline-flex; align-items: center; min-height: 32px; }

.sched {
  display: grid;
  gap: 2px;
  max-width: 340px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.sched li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-inline: -8px;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 16px;
}

.sched li.is-today {
  background: var(--raised);
  color: var(--text);
  font-weight: 500;
}

.contacts .open-status { margin-top: 8px; color: var(--text-3); }

.c-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.map {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

@media (min-width: 960px) {
  .contacts-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .map, .map iframe { min-height: 560px; }
}

/* Footer */

.site-footer {
  padding: 32px 0 112px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.5;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.footer-name { color: var(--text-2); }

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-note { flex-basis: 100%; max-width: 52em; }

@media (min-width: 768px) {
  .site-footer { padding-bottom: 40px; }
}

/* Sticky WhatsApp bar on phones */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s var(--ease);
}

.sticky-bar .btn-call { width: 48px; padding: 0; }

.has-js .sticky-bar:not(.show),
.menu-open .sticky-bar { transform: translateY(110%); }

@media (min-width: 768px) {
  .sticky-bar { display: none; }
}

/* Photo viewer */

.viewer {
  width: 100%;
  max-width: min(96vw, 1100px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
}

.viewer::backdrop { background: rgba(12, 11, 12, 0.88); }

.viewer-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewer-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.viewer-fig img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 112px);
  border-radius: 8px;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}

.viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.viewer-cap { flex: 1 1 260px; min-width: 0; }

.viewer-title { display: block; color: var(--on-dark); font-weight: 500; line-height: 1.35; }

.viewer-meta { display: block; color: var(--on-dark-3); font-size: 15px; line-height: 1.45; }

.viewer-count { color: var(--on-dark-2); font-size: 15px; min-width: 56px; text-align: center; }

.viewer-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(243, 243, 242, 0.2);
  border-radius: var(--r-btn);
  background: rgba(243, 243, 242, 0.06);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}

.viewer-btn:hover { background: rgba(243, 243, 242, 0.16); }

.viewer-btn:active { transform: scale(0.98); }

.viewer-prev .icon { transform: scaleX(-1); }

/* Reveal on scroll: only when script is running */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
