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

:root {
  --white: #fffaf2;
  --muted: #d6cec3;
  --amber: #e7a15a;
  --amber-dark: #b9672f;
  --glass: rgba(20, 14, 10, 0.68);
  --line: rgba(255, 250, 242, 0.18);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: #18110d;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("images/hero.png") center center / cover no-repeat;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 7, 5, .84) 0%, rgba(9, 7, 5, .48) 48%, rgba(9, 7, 5, .38) 100%),
    linear-gradient(180deg, rgba(9, 7, 5, .2) 0%, rgba(9, 7, 5, .5) 55%, rgba(9, 7, 5, .86) 100%);
}

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

a { color: inherit; }

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.brand strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.brand span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 12, 8, .55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.phone:hover {
  border-color: rgba(231, 161, 90, .75);
  background: rgba(38, 22, 13, .8);
  transform: translateY(-1px);
}

.phone-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #211208;
  background: var(--amber);
}

.phone-icon svg,
.placeholder-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.phone-copy small {
  color: var(--muted);
  font-size: 11px;
}

.phone-copy strong {
  margin-top: 2px;
  font-size: 16px;
  letter-spacing: .02em;
}

.section { padding: 54px 0 76px; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

h1,
.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .35);
}

.section-description {
  max-width: 590px;
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 18px;
}

.slide-frame {
  position: relative;
  min-width: 0;
  height: clamp(270px, 36vw, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 12, 8, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(231, 161, 90, .18), transparent 48%),
    linear-gradient(135deg, rgba(42, 26, 17, .74), rgba(14, 11, 9, .84));
}

.slide-placeholder[hidden],
.slide-image[hidden] { display: none; }

.placeholder-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(231, 161, 90, .5);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(231, 161, 90, .08);
}

.slide-placeholder h2 {
  margin-bottom: 6px;
  font-size: clamp(20px, 3vw, 28px);
}

.slide-placeholder p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}

.slide-placeholder code {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(18, 12, 8, .62);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
}

.arrow:hover {
  color: #211208;
  border-color: var(--amber);
  background: var(--amber);
  transform: scale(1.05);
}

.arrow:focus-visible,
.dot:focus-visible,
.phone:focus-visible,
.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.carousel-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.slide-counter,
.gallery-caption {
  color: var(--muted);
  font-size: 13px;
}

.slide-counter { font-variant-numeric: tabular-nums; }

.dots { display: flex; gap: 8px; }

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: width .2s, background .2s;
}

.dot.is-active {
  width: 24px;
  background: var(--amber);
}

.gallery-caption {
  margin-top: 8px;
  text-align: center;
}

.contact {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: rgba(10, 8, 6, .42);
  backdrop-filter: blur(4px);
}

.contact .eyebrow { margin-bottom: 10px; }

.contact p:not(.eyebrow) {
  margin: 13px 0 24px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 25px;
  border-radius: 999px;
  color: #211208;
  background: var(--amber);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .26);
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.button:hover {
  background: #f0b474;
  transform: translateY(-2px);
}

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(8, 6, 5, .72);
  font-size: 14px;
}

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

.footer a {
  color: var(--amber);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  body::before { background-position: 61% center; }

  .container { width: calc(100% - 28px); }
  .site-header { padding: 18px 0; }
  .header-inner { align-items: flex-start; }
  .brand { flex-direction: column; gap: 2px; }
  .brand span { font-size: 10px; }
  .phone { gap: 8px; padding: 7px 10px 7px 7px; }
  .phone-icon { width: 36px; height: 36px; }
  .phone-icon svg { width: 20px; height: 20px; }
  .phone-copy small { display: none; }
  .phone-copy strong { font-size: 13px; }

  .section { padding: 38px 0 52px; }
  .section-description { margin-bottom: 20px; font-size: 14px; }
  .carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 7px; }
  .slide-frame { height: clamp(220px, 62vw, 340px); border-radius: 12px; }
  .arrow { width: 34px; height: 34px; font-size: 25px; }
  .slide-placeholder { padding: 16px; }
  .placeholder-icon { width: 48px; height: 48px; margin-bottom: 11px; }
  .slide-placeholder p { font-size: 12px; }
  .contact { padding: 48px 0; }
  .footer-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 430px) {
  .phone-copy strong { font-size: 0; }
  .phone-copy strong::after { content: "+7 900 123-45-67"; font-size: 11px; }
  .carousel { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 5px; }
  .arrow { width: 30px; height: 30px; font-size: 22px; }
}
