:root {
  --black: #0D0D0D;
  --ink: #1A1715;
  --muted: #6B6560;
  --line: #E0DDD8;
  --soft: #F5F4F2;
  --white: #FFFFFF;
  --red: #FF1A00;
  --red-dark: #CC1500;
  --red-pale: #FFF0EE;
  --gray-200: #E8E6E2;
  --gray-400: #9B9690;
  --gray-800: #2A2724;
  --shadow: 0 16px 36px rgba(13, 13, 13, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--soft);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 40px;
  color: var(--white);
  background: rgba(13, 13, 13, .94);
  transition: background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 13, .98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-weight: 700;
  color: var(--red);
}

.brand__logo-mark {
  width: 34px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--red);
}

.brand__image {
  width: 44px;
  max-width: none;
  height: 44px;
  object-fit: contain;
}

.brand__logo-mark text {
  fill: var(--white);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 900;
}

.brand__logo-mark text:first-of-type {
  font-size: 27px;
}

.brand__logo-mark text:last-of-type {
  font-size: 22px;
}

.brand__text {
  font-family: 'Philosopher', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, .52);
  opacity: 1;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s cubic-bezier(.22, .8, .24, 1);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-phone {
  justify-self: end;
  padding: 11px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.02);
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(13, 13, 13, .88), rgba(13, 13, 13, .48));
}

.hero__content {
  position: relative;
  width: min(980px, calc(100% - 40px));
  padding-top: 70px;
  text-align: left;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  color: var(--white);
  background: var(--red);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: 'Philosopher', serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero__lead {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 17px;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: scale(1.04);
}

.button--light {
  color: var(--white);
  background: var(--red);
}

.button--light:hover,
.button--dark:hover {
  background: var(--red-dark);
}

.button--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
}

.button--dark {
  color: var(--white);
  background: var(--red);
}

.button--line {
  border: 1px solid var(--red);
  color: var(--red);
}

.button--line:hover {
  color: var(--white);
  background: var(--red);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: cue 1.7s infinite;
}

@keyframes cue {
  0%, 100% { translate: 0 0; opacity: .7; }
  50% { translate: 0 8px; opacity: 1; }
}

.section {
  padding: 88px 40px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.split__image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.split__content {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  text-align: left;
}

h2 {
  margin: 0;
  font-family: 'Philosopher', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
}

.split__content p:not(.section-kicker),
.service-card p,
.news-card p,
.review-card p,
.contacts__card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-self: flex-start;
  position: relative;
  margin-top: 18px;
  font-weight: 800;
  color: var(--red);
  overflow: hidden;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .8, .24, 1);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.text-link:not(:hover):not(:focus-visible)::after {
  transform-origin: right center;
}

.section--muted {
  background: var(--gray-200);
}

.section-head {
  width: min(1100px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-head--row .text-link {
  align-self: auto;
  white-space: nowrap;
}

.service-grid,
.news-grid,
.offer-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 248px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 3px solid var(--red);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.service-card__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-card--icon-left .service-card__icon {
  margin-left: 0;
  margin-right: auto;
}

.service-card--icon-center .service-card__icon {
  margin-left: auto;
  margin-right: auto;
}

.service-card--icon-right .service-card__icon {
  margin-left: auto;
  margin-right: 0;
}

.service-card h3,
.news-card h3,
.review-card h3 {
  margin: 0 0 12px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.news-card {
  color: inherit;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  scroll-snap-align: start;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 26, 0, .28);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-card div {
  padding: 24px;
}

.news-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 800;
}

.news-swipe-hint,
.offer-swipe-hint {
  display: none;
}

.news-swipe-button,
.offer-swipe-button {
  display: none;
}

.offer-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  scroll-snap-align: start;
}

.offer-card:hover,
.offer-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 26, 0, .28);
  outline: none;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.offer-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 13, 13, .78);
}

.offer-lightbox[hidden] {
  display: none;
}

.offer-lightbox img {
  max-width: min(92vw, 960px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.offer-lightbox__close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: var(--black);
  cursor: pointer;
}

.offer-lightbox__close::before,
.offer-lightbox__close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.offer-lightbox__close::before {
  transform: rotate(45deg);
}

.offer-lightbox__close::after {
  transform: rotate(-45deg);
}

.section--reviews {
  overflow: hidden;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-controls button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  cursor: pointer;
  position: relative;
}

.slider-controls button::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  top: 17px;
  left: 19px;
  transform: rotate(45deg);
}

.slider-controls [data-next]::before {
  left: 15px;
  transform: rotate(225deg);
}

.review-slider {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-height: 270px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-snap-align: start;
}

.avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-weight: 800;
}

.contacts {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 76px max(40px, calc((100vw - 1160px) / 2));
  background: var(--gray-200);
  overflow: hidden;
}

.contacts__card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  min-height: 360px;
  padding: 58px 60px;
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
}

.contacts__card h2 {
  margin: 0 0 28px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.contacts__card a {
  font-weight: 500;
}

.contacts__details {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.contacts__details p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 36px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--black);
  transition: color .2s ease, transform .2s ease;
}

.contact-icon:hover {
  color: var(--red);
  transform: scale(1.04);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-icon--max span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-size: 0;
}

.contact-icon--max:hover span {
  background: var(--red);
}

.contact-icon--max span::before {
  content: "m";
  color: var(--white);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-1px);
}

.map-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(36deg, transparent 46%, rgba(255, 255, 255, .7) 47%, rgba(255, 255, 255, .7) 50%, transparent 51%),
    linear-gradient(126deg, transparent 40%, rgba(255, 255, 255, .65) 41%, rgba(255, 255, 255, .65) 44%, transparent 45%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, .55) 50%, transparent 51%),
    var(--gray-800);
}

.map-embed,
.map-embed > div {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: calc(100% + 520px) !important;
  height: 100% !important;
  border: 0;
  filter: grayscale(1) brightness(1.08) contrast(.82);
}

.map-visual__pin {
  position: absolute;
  top: 48%;
  left: 52%;
  width: 34px;
  height: 34px;
  background: var(--red);
  border: 6px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px;
  color: var(--white);
  background: var(--black);
}

.footer a {
  color: var(--red);
  font-weight: 800;
}

.article-page {
  background: var(--white);
}

.article-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 80px;
}

.article-shell--wide {
  width: min(1100px, calc(100% - 40px));
}

.page-title {
  margin: 0;
  font-family: 'Philosopher', serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: var(--muted);
  font-weight: 800;
}

.article-back::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(45deg);
}

.article h1 {
  margin: 0 0 16px;
  font-family: 'Philosopher', serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.article time {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 700;
}

.article__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 36px;
}

.article__body p {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.65;
}

.article__body h2,
.article__body h3 {
  margin: 34px 0 16px;
  color: var(--ink);
  font-family: 'Philosopher', serif;
  line-height: 1.15;
}

.article__body h2 {
  font-size: 36px;
}

.article__body h3 {
  font-size: 28px;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.preview-label {
  display: inline-flex;
  margin: 0;
  padding: 8px 12px;
  color: #6b4300;
  background: #fff0c2;
  border-radius: 4px;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
}

.admin-brand {
  font-size: 20px;
  font-weight: 800;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.admin-link-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.admin-main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-title-row h1,
.admin-login h1 {
  margin: 0;
  font-family: 'Philosopher', serif;
  font-size: 36px;
}

.admin-login {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 30px;
}

.admin-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-stats b {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
}

.admin-stats span,
.admin-table small,
.admin-note {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
}

.admin-form--wide {
  width: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-form {
  gap: 26px;
}

.settings-section {
  display: grid;
  gap: 18px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-of-type {
  border-bottom: 0;
}

.settings-section__head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.settings-section__head p {
  margin: 0;
  color: var(--muted);
}

.settings-field--wide {
  grid-column: 1 / -1;
}

.settings-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-toggle {
  width: auto;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  cursor: pointer;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.settings-toggle span {
  font-size: 14px;
  font-weight: 800;
}

.image-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: start;
  gap: 22px;
}

.image-setting > div {
  display: grid;
  gap: 16px;
}

.settings-image-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.settings-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.settings-image-preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-save {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.settings-save__button {
  min-width: 220px;
  box-shadow: none;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.rich-editor {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  background: var(--white);
}

.admin-form textarea {
  resize: vertical;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rich-editor {
  min-height: 360px;
  overflow: auto;
  line-height: 1.6;
}

.rich-editor:focus {
  outline: 2px solid rgba(255, 26, 0, .22);
  border-color: var(--red);
}

.rich-editor img,
.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rich-editor figure,
.article__body figure {
  margin: 26px 0;
}

.rich-editor figcaption,
.article__body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.rich-editor blockquote,
.article__body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  color: var(--ink);
  background: var(--red-pale);
  border-left: 4px solid var(--red);
  border-radius: 0 4px 4px 0;
  font-size: 20px;
  line-height: 1.55;
}

.rich-editor ul,
.rich-editor ol,
.article__body ul,
.article__body ol {
  margin: 18px 0 24px;
  padding-left: 28px;
}

.rich-editor li,
.article__body li {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.55;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article__body th,
.article__body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.editor-media-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-media-strip button {
  flex: 0 0 130px;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.editor-media-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table-row small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.status--draft {
  color: #6b4300;
  background: #fff0c2;
}

.status--published {
  color: #12502b;
  background: #d8f2df;
}

.status--archived {
  color: #555;
  background: #e7e7e7;
}

.admin-error {
  margin: 0;
  color: #b00020;
  font-weight: 800;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.media-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.media-item code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.media-edit-form {
  display: grid;
  gap: 8px;
}

.media-edit-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.media-edit-form input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
    background: var(--black);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-phone {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    gap: 18px;
    padding: 16px 0 8px;
    justify-content: start;
  }

  .hero__lead {
    font-size: 19px;
  }

  .split,
  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts {
    min-height: 560px;
    padding: 60px 20px;
  }

  .split__image img,
  .split__content {
    min-height: 0;
    height: auto;
  }

  .split__image img {
    aspect-ratio: 4 / 3;
  }

  .split__content {
    padding: 42px 24px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid,
  .offer-grid {
    width: 100%;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 4px 2px 18px;
    margin-inline: 0;
    scrollbar-width: none;
  }

  .news-grid::-webkit-scrollbar,
  .offer-grid::-webkit-scrollbar {
    display: none;
  }

  .news-grid .news-card,
  .offer-grid .offer-card {
    flex: 0 0 calc(100% - 10px);
    min-height: 100%;
  }

  .news-swipe-hint,
  .offer-swipe-hint {
    width: min(1100px, 100%);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 auto;
    padding-right: 2px;
  }

  .news-swipe-button,
  .offer-swipe-button {
    position: relative;
    width: 38px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(13, 13, 13, .08);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .news-swipe-button:hover,
  .news-swipe-button:focus-visible,
  .offer-swipe-button:hover,
  .offer-swipe-button:focus-visible {
    border-color: rgba(255, 26, 0, .36);
    background: var(--red-pale);
    transform: scale(1.04);
    outline: none;
  }

  .news-swipe-button[hidden],
  .offer-swipe-button[hidden] {
    display: none;
  }

  .news-swipe-button::before,
  .offer-swipe-button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--red);
    border-right: 2px solid var(--red);
  }

  .news-swipe-button--next::before,
  .offer-swipe-button--next::before {
    transform: translateX(-1px) rotate(45deg);
    animation: swipe-next 1.45s cubic-bezier(.22, .8, .24, 1) infinite;
  }

  .news-swipe-button--prev::before,
  .offer-swipe-button--prev::before {
    transform: translateX(1px) rotate(225deg);
    animation: swipe-prev 1.45s cubic-bezier(.22, .8, .24, 1) infinite;
  }

  @keyframes swipe-next {
    0%, 100% { translate: -2px 0; opacity: .58; }
    45% { translate: 2px 0; opacity: 1; }
  }

  @keyframes swipe-prev {
    0%, 100% { translate: 2px 0; opacity: .58; }
    45% { translate: -2px 0; opacity: 1; }
  }

  .contacts__card {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand__text {
    font-size: 18px;
  }

  .hero {
    min-height: 720px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 20px;
  }

  .section-head--row {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .offer-grid {
    padding-inline: 2px;
  }

  .news-grid .news-card,
  .offer-grid .offer-card {
    flex-basis: calc(100% - 10px);
  }

  .review-slider {
    grid-auto-columns: 88%;
  }

  .contacts__card {
    width: 100%;
    min-height: 0;
    padding: 36px 30px;
  }

  .contacts__card h2 {
    font-size: 25px;
  }
  
  .contacts__details,
  .contacts__details p {
    font-size: 15px;
  }

  .footer {
    padding: 24px 20px;
  }

  .article-shell {
    width: calc(100% - 40px);
    padding-top: 104px;
  }

  .article__body p {
    font-size: 18px;
  }

  .preview-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header,
  .admin-nav,
  .admin-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav {
    gap: 10px;
  }

  .admin-stats,
  .admin-grid-2,
  .media-grid,
  .image-setting {
    grid-template-columns: 1fr;
  }

  .admin-table-row {
    grid-template-columns: 1fr;
  }
}
