:root {
  --dark: #252525;
  --dark-light: #363636;
  --cream: #f7f1e7;
  --cream-dark: #eadfce;
  --terracotta: #b85c38;
  --terracotta-dark: #954629;
  --gold: #d5a447;
  --text: #303030;
  --muted: #77716a;
  --white: #ffffff;
  --border: #e4d8c8;
  --whatsapp: #25d366;
  --shadow: 0 12px 35px rgba(53, 39, 25, 0.12);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

.site-header {
  background: var(--dark);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.logo span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.main-nav a {
  color: #eee4d6;
  transition: color 0.2s ease;
}

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

.header-phone {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  padding: 90px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(37, 37, 37, 0.96), rgba(102, 48, 31, 0.9)),
    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1800&q=80")
    center / cover;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  max-width: 650px;
  color: #f5eadc;
  font-size: clamp(17px, 2.5vw, 21px);
}

.hero-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section {
  padding: 72px 0;
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title h2 {
  color: var(--dark);
  font-size: clamp(29px, 5vw, 44px);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.lot-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lot-card-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #74695d;
  background:
    linear-gradient(135deg, #e9ddce, #cdbba4);
  font-weight: 700;
  font-size: 19px;
}

.lot-card-image.car {
  background:
    linear-gradient(135deg, #dedbd5, #a9a69e);
}

.lot-card-content {
  padding: 27px;
}

.lot-card h3 {
  color: var(--dark);
  font-size: 27px;
  margin-bottom: 10px;
}

.lot-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
}

.tag {
  padding: 7px 11px;
  border-radius: 50px;
  background: #f5eadc;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 700;
}

.tag.gold {
  background: #fbf0ca;
  color: #7c5a16;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 21px;
  border: 0;
  border-radius: 10px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

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

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

.button.whatsapp {
  background: var(--whatsapp);
  color: #063914;
}

.button.whatsapp:hover {
  background: #1db956;
}

.page-heading {
  padding: 65px 0 45px;
  background: var(--dark);
  color: var(--white);
}

.page-heading h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-heading p {
  color: #d9cdc0;
  font-size: 18px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
}

.object-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-placeholder {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  color: #786e63;
  background: linear-gradient(135deg, #e8ddcf, #cbb9a3);
  font-size: 14px;
  font-weight: 700;
}

.photo-placeholder.large {
  grid-column: span 2;
  min-height: 245px;
  background: linear-gradient(135deg, #ded1c0, #bba58b);
}

.object-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.object-card h2 {
  color: var(--dark);
  font-size: 30px;
  margin-bottom: 18px;
}

.info-list {
  margin-bottom: 22px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.object-description {
  margin-bottom: 24px;
}

.object-description h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.object-description p {
  color: var(--muted);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.seller-section .section-title h2 {
  color: var(--white);
}

.seller-section .section-title p {
  color: #c9bdb0;
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.seller-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.seller-card h3 {
  color: var(--gold);
  margin-bottom: 14px;
}

.seller-card p,
.seller-card li {
  color: #ded6ce;
}

.seller-card ul {
  padding-left: 20px;
}

.site-footer {
  padding: 25px 0;
  color: #bdb5ac;
  background: #171717;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 64px;
  }

  .main-nav {
    display: none;
  }

  .header-phone {
    font-size: 13px;
  }

  .hero {
    padding: 65px 0;
  }

  .section {
    padding: 52px 0;
  }

  .lot-grid,
  .object-layout,
  .seller-grid {
    grid-template-columns: 1fr;
  }

  .object-card {
    padding: 23px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .logo {
    font-size: 22px;
  }

  .header-phone {
    font-size: 11px;
  }

  .lot-card-content {
    padding: 21px;
  }

  .button {
    width: 100%;
  }

  .contact-buttons {
    display: grid;
  }

  .gallery {
    gap: 8px;
  }

  .photo-placeholder {
    min-height: 125px;
    font-size: 12px;
  }

  .photo-placeholder.large {
    min-height: 185px;
  }

  .info-row {
    font-size: 14px;
  }
}


/* Новая цветовая гамма сайта */

:root {
  --dark: #102a43;
  --dark-light: #243b53;
  --cream: #f4f8fb;
  --cream-dark: #d9eaf2;
  --terracotta: #168aad;
  --terracotta-dark: #0d6f8b;
  --gold: #52b788;
  --text: #243b53;
  --muted: #627d98;
  --white: #ffffff;
  --border: #d9e2ec;
  --whatsapp: #25d366;
  --shadow: 0 12px 35px rgba(16, 42, 67, 0.12);
  --radius: 18px;
}

/* Общий фон и текст */

body {
  color: var(--text);
  background: var(--cream);
}

/* Шапка */

.site-header {
  background: var(--dark);
  border-bottom-color: var(--gold);
}

.logo span {
  color: var(--gold);
}

.main-nav a {
  color: #d9eaf2;
}

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

.header-phone {
  color: #80ed99;
}

/* Главный экран */

.hero {
  background:
    linear-gradient(
      135deg,
      rgba(16, 42, 67, 0.97),
      rgba(13, 111, 139, 0.9)
    ),
    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1800&q=80")
    center / cover;
}

.hero p {
  color: #d9f0f4;
}

.hero-label {
  border-color: rgba(255, 255, 255, 0.35);
  color: #80ed99;
}

/* Заголовки */

.section-title h2,
.lot-card h3,
.object-card h2,
.object-description h3 {
  color: var(--dark);
}

.section-title p,
.lot-card p,
.object-description p {
  color: var(--muted);
}

/* Карточки лотов */

.lot-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.lot-card-image {
  color: #486581;
  background:
    linear-gradient(135deg, #d9f0f4, #a9d6e5);
}

.lot-card-image.car {
  background:
    linear-gradient(135deg, #dceef2, #9fcbd5);
}

.tag {
  background: #d9f0f4;
  color: #0d6f8b;
}

.tag.gold {
  background: #d8f3dc;
  color: #28734d;
}

/* Кнопки */

.button {
  background: var(--terracotta);
}

.button:hover {
  background: var(--terracotta-dark);
}

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

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

.button.whatsapp {
  background: var(--whatsapp);
  color: #063914;
}

/* Внутренние страницы лотов */

.page-heading {
  background:
    linear-gradient(
      135deg,
      #102a43,
      #168aad
    );
}

.page-heading p {
  color: #d9f0f4;
}

.breadcrumbs {
  color: #80ed99;
}

/* Фотографии-заглушки */

.photo-placeholder {
  border-color: var(--border);
  color: #486581;
  background:
    linear-gradient(135deg, #d9f0f4, #a9d6e5);
}

.photo-placeholder.large {
  background:
    linear-gradient(135deg, #bde0e8, #76c7d4);
}

/* Карточка описания объекта */

.object-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.info-row {
  border-bottom-color: var(--border);
}

.info-row span:first-child {
  color: var(--muted);
}

/* Раздел продавца */

.seller-section {
  background: var(--dark);
}

.seller-section .section-title h2 {
  color: var(--white);
}

.seller-section .section-title p {
  color: #b8d8e2;
}

.seller-card {
  border-color: rgba(128, 237, 153, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.seller-card h3 {
  color: #80ed99;
}

.seller-card p,
.seller-card li {
  color: #d9eaf2;
}

/* Страница продавца */

.seller-grid .seller-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.seller-grid .seller-card h3 {
  color: var(--dark);
}

.seller-grid .seller-card p,
.seller-grid .seller-card li {
  color: var(--muted);
}

/* Подвал */

.site-footer {
  color: #b8c7d1;
  background: #081c2c;
}


/* =========================================
   ЛАЙТБОКС (увеличение фото по клику)
   ========================================= */

/* Курсор-указатель на кликабельных фото */
.gallery .photo-placeholder {
  cursor: zoom-in;
}

/* Контейнер лайтбокса */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 28, 44, 0.92);
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

/* Увеличенное изображение */
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: #ffffff;
}

/* Кнопки управления */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 32px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* На мобильных прячем стрелки, оставляем только закрытие */
@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* =========================================
   БЛОК: ФОТО ПРОДАВЦА
   ========================================= */

.seller-photos-section {
  background: var(--cream);
}

.seller-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.seller-photo {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seller-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.18);
}

.seller-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.seller-photo figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* =========================================
   БЛОК: БЛОГ
   ========================================= */

.blog-section {
  background: var(--cream-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.18);
}

.blog-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 20px;
  text-align: center;
  color: #486581;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(135deg, #d9f0f4, #a9d6e5);
}

.blog-card-image.car {
  background: linear-gradient(135deg, #dceef2, #9fcbd5);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.blog-card-content h3 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.3;
}

.blog-card-content p {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.blog-card-content .button {
  align-self: flex-start;
}

/* =========================================
   АДАПТИВ
   ========================================= */

@media (max-width: 900px) {
  .seller-photos-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .seller-photos-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .seller-photo img {
    height: 220px;
  }

  .blog-card-content .button {
    align-self: stretch;
    width: 100%;
  }
}