:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --dark: #202830;
  --dark-2: #182028;
  --text: #222b33;
  --muted: #6d7680;
  --border: rgba(34, 43, 51, 0.12);
  --dark-border: rgba(255, 255, 255, 0.16);
  --lime: #d8ff3f;
  --header-height: 92px;
  --container: 1460px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

section {
  position: relative;
  scroll-margin-top: var(--header-height);
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

.light-section {
  background: rgba(246, 248, 251, 0.98);
}

.dark-section {
  color: #ffffff;
  background: rgba(32, 40, 48, 0.98);
}

/* Яркие плавные линии сверху донизу */
.page-lines {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.page-lines svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.line {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.96;
}

.line-one {
  stroke-width: 5.5;
  stroke-dasharray: none;
}

.line-two {
  stroke-width: 4.5;
  stroke-dasharray: none;
  opacity: 0.92;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(24, 32, 40, 0.985);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.header-row {
  height: 100%;
  display: grid;
  grid-template-columns: 430px 1fr 52px;
  align-items: center;
  gap: 20px;
}

.logo-link {
  height: 76px;
  display: flex;
  align-items: center;
}

.logo-link img {
  width: auto;
  height: 72px;
  max-width: 400px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: flex-start;
  gap: clamp(74px, 7vw, 134px);
  padding-left: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  transition: right 160ms ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  right: 0;
}

.facebook-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  transition: border-color 160ms ease, background 160ms ease;
}

.facebook-link:hover {
  border-color: var(--lime);
  background: rgba(216, 255, 63, 0.10);
}

.facebook-link svg {
  width: 21px;
  height: 21px;
  fill: white;
}

/* Главный блок — только фото */
.hero {
  padding: 22px 0 58px;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  min-height: auto;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

/* Заглушки фото */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #eef2f6 100%);
  border: 1px solid var(--border);
}

.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 49%, rgba(216, 255, 63, 0.10) 50%, transparent 51%);
}

.photo-placeholder span,
.photo-placeholder small {
  position: relative;
  z-index: 1;
}

.photo-placeholder span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.photo-placeholder small {
  color: var(--muted);
  font-size: 14px;
}

/* Общие секции */
.about,
.stores,
.contacts {
  padding: 94px 0 108px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(42px, 7vw, 92px);
}

.section-side h2,
.stores-head h2 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 740;
}

.section-index {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.intro {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.data-list {
  margin: 0;
}

.data-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1fr;
  gap: 20px;
  padding: 12px 0;
}

.dark-data > div {
  border-top: 1px solid var(--dark-border);
}

.dark-data > div:last-child {
  border-bottom: 1px solid var(--dark-border);
}

.light-data > div {
  border-top: 1px solid var(--border);
}

.light-data > div:last-child {
  border-bottom: 1px solid var(--border);
}

.data-list dt {
  font-size: 14px;
}

.dark-data dt {
  color: rgba(255, 255, 255, 0.56);
}

.light-data dt {
  color: var(--muted);
}

.data-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.dark-data dd {
  color: white;
}

.light-data dd {
  color: var(--text);
}

/* Магазины */
.stores-head {
  margin-bottom: 26px;
}

.store-list {
  display: grid;
  gap: 16px;
}

.store-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  min-height: 330px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.store-photo {
  min-height: 360px;
  aspect-ratio: 4 / 3;
  border: 0;
}

.store-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 8px 10px 0;
}

.store-number {
  margin-bottom: 12px;
  color: #abc018;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.store-info h3 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Контакты */
.contact-list {
  border-top: 1px solid var(--dark-border);
}

.contact-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) 1fr;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dark-border);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.contact-list strong {
  font-size: 15px;
}

/* Подвал */
.site-footer {
  position: relative;
  z-index: 3;
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.56);
}

.footer-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-row {
    grid-template-columns: 350px 1fr 42px;
    gap: 18px;
  }

  .logo-link img {
    height: 64px;
    width: auto;
    max-width: 350px;
  }

  .main-nav {
    gap: 54px;
  }

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

  .store-card {
    grid-template-columns: 1fr;
  }

  .store-photo {
    min-height: auto;
  }

  .hero-photo {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    height: auto;
  }

  .header-row {
    min-height: var(--header-height);
    grid-template-columns: 1fr 38px;
  }

  .logo-link {
    height: 42px;
    padding-top: 4px;
  }

  .logo-link img {
    height: 42px;
    width: auto;
    max-width: 252px;
    max-height: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 34px;
    padding-bottom: 10px;
  }

  section {
    scroll-margin-top: 104px;
  }

  .hero {
    padding-bottom: 38px;
  }

  .hero-photo {
    min-height: auto;
  }

  .about,
  .stores,
  .contacts {
    padding: 64px 0 72px;
  }

  .section-side h2,
  .stores-head h2 {
    font-size: 48px;
  }

  .intro {
    font-size: 23px;
    margin-bottom: 24px;
  }

  .data-list > div,
  .contact-list > div,
  .light-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .store-info {
    padding: 10px 4px 10px 0;
  }

  .store-info h3 {
    font-size: 34px;
  }

  .footer-row {
    min-height: 78px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .line-one {
    stroke-width: 4.0;
  }

  .line-two {
    stroke-width: 3.2;
  }
}


/* ===== V11 precise layout corrections ===== */

/* Decorative lime lines: visible at 100% zoom, calm, and kept inside the viewport. */
.page-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.page-lines svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.page-lines .line {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: none;
}

.page-lines .line-one {
  stroke-width: 4.5px;
  opacity: 0.94;
}

.page-lines .line-two {
  stroke-width: 3.5px;
  opacity: 0.86;
}

/* Main image: wide and noticeably shorter than 4:3, with clear margins. */
.hero {
  padding: 30px 0 68px;
}

.hero-photo {
  width: min(1120px, 88vw);
  max-width: none;
  min-height: 0;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
}

/* Stores: compact cards with a genuine white photo frame and space before text. */
.store-list {
  display: grid;
  gap: 26px;
}

.store-card {
  display: grid;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  gap: clamp(52px, 6vw, 88px);
  padding: 34px 44px;
  overflow: visible;
  background: #f1f4f7;
  border: 1px solid rgba(34, 43, 51, 0.10);
}

.store-photo {
  width: 100%;
  max-width: 390px;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border: 14px solid #ffffff;
  box-shadow:
    0 10px 30px rgba(25, 34, 42, 0.10),
    0 0 0 1px rgba(34, 43, 51, 0.06);
  background: linear-gradient(145deg, #fbfcfd 0%, #edf1f5 100%);
}

.store-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 10px 28px 10px 0;
}

.store-info h3 {
  margin-bottom: 22px;
}

/* Do not let the lime placeholder diagonal overpower the actual decorative lines. */
.photo-placeholder::after {
  opacity: 0.28;
}

@media (max-width: 980px) {
  .hero-photo {
    width: min(920px, 92vw);
    aspect-ratio: 16 / 9;
  }

  .store-card {
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: 42px;
    padding: 28px 30px;
  }

  .store-photo {
    max-width: 330px;
    border-width: 12px;
  }

  .store-info {
    padding-right: 12px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 20px 0 48px;
  }

  .hero-photo {
    width: 92vw;
    aspect-ratio: 16 / 10;
  }

  .store-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .store-photo {
    width: min(100%, 360px);
    max-width: 360px;
  }

  .store-info {
    padding: 6px 4px 12px;
  }

  .page-lines .line-one {
    stroke-width: 3.5px;
    opacity: 0.78;
  }

  .page-lines .line-two {
    stroke-width: 2.8px;
    opacity: 0.68;
  }
}


/* ===== V12: remove long lime lines, use small decorative inserts only ===== */

.page-lines {
  display: none !important;
}

/* Header decorative accent under the logo removed on request */
/* Hero image: small corner accents */
.hero-photo::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  opacity: 0.9;
  z-index: 2;
}

.hero-photo::after {
  opacity: 0.16;
}

/* Titles: small decorative yellow line after heading */
.section-side h2,
.stores-head h2 {
  position: relative;
  display: inline-block;
}

.section-side h2::after,
.stores-head h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--lime);
  opacity: 0.9;
}

/* Store cards: small accent block in the corner, photo frame kept */
.store-card {
  position: relative;
}

.store-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--lime);
  opacity: 0.9;
}

.store-photo::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: var(--lime);
  opacity: 0.85;
  z-index: 2;
}

/* Footer accent */
.site-footer::before {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 0 auto;
  background: var(--lime);
  border-radius: 999px;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 760px) {
  .site-header::before {
    width: 56px;
    left: 18px;
    bottom: 8px;
  }

  .hero-photo::before {
    width: 52px;
    height: 7px;
    top: 14px;
    left: 14px;
  }

  .section-side h2::after,
  .stores-head h2::after {
    width: 58px;
    margin-top: 10px;
  }

  .store-card::before {
    width: 12px;
    height: 12px;
    top: 14px;
    right: 14px;
  }

  .store-photo::before {
    width: 42px;
    height: 5px;
  }

  .site-footer::before {
    width: 86px;
  }
}


/* ===== Ready photo files ===== */

.photo-frame {
  position: relative;
  overflow: hidden;
}

.real-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the existing V12 proportions. */
.hero-photo .real-photo,
.store-photo .real-photo {
  position: absolute;
  inset: 0;
}

/* Decorative V12 accents remain visible above real photos. */
.hero-photo::before,
.store-photo::before {
  pointer-events: none;
}


/* ===== Exact 1x / 2x photo rendering ===== */
.real-photo {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: none;
  filter: none;
}


/* ===== Mobile logo and photo crispness fix ===== */
.real-photo {
  image-rendering: auto;
}
