/* ─── Static pages (about, help, service, warranty, etc.) ─── */

.mc-static {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px 112px;
}

.mc-static--wide {
  max-width: 1440px;
}

.mc-static__title {
  font-family: var(--mc-font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--mc-text);
  letter-spacing: -0.025em;
}

.mc-static__content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--mc-taupe);
}

.mc-static__content > p:first-child {
  font-size: 1.15rem;
  color: var(--mc-taupe, #6A5C55);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mc-static__content p {
  margin-bottom: 16px;
}

.mc-static__content h2 {
  font-family: var(--mc-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--mc-text);
  padding-left: 12px;
  border-left: 3px solid #C9B07E;
}

.mc-static__content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
  list-style: none;
}

.mc-static__content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
  position: relative;
  padding-left: 16px;
}

.mc-static__content ul li::before {
  content: '—';
  position: absolute;
  left: -8px;
  color: #C9B07E;
  font-weight: 600;
}

.mc-static__content strong {
  color: var(--mc-text);
  font-weight: 600;
}

.mc-static__content a {
  color: #6B4632;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.mc-static__content a:hover {
  border-color: #6B4632;
}

.mc-static__subnav {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.mc-static__sublink {
  font-size: 0.95rem;
  color: var(--mc-walnut);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius-sm);
  background: var(--mc-bg);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mc-static__sublink:hover {
  background: var(--mc-walnut);
  border-color: var(--mc-walnut);
  color: #fff;
}

.mc-static__back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--mc-walnut);
  text-decoration: none;
  margin-bottom: 24px;
}

.mc-gallery-page {
  padding-top: 88px;
}

.mc-gallery-hero {
  max-width: 760px;
  margin-bottom: 42px;
}

.mc-gallery-hero__eyebrow,
.mc-about-story__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--mc-walnut);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mc-gallery-hero__lead {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--mc-taupe);
}

.mc-editorial--gallery {
  height: 760px;
  margin-bottom: 56px;
  padding: 0;
  border-radius: var(--mc-radius-lg);
  background: transparent;
}

.mc-about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  margin-bottom: 44px;
}

.mc-about-story__copy {
  max-width: 620px;
}

.mc-about-story__images {
  position: relative;
  min-height: 620px;
}

.mc-about-story__image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--mc-radius-lg);
  box-shadow: 0 22px 70px rgba(44, 35, 30, 0.08);
}

.mc-about-story__image--main {
  height: 520px;
}

.mc-about-story__image--secondary {
  position: absolute;
  right: 42px;
  bottom: 0;
  width: 46%;
  height: 260px;
  border: 10px solid var(--mc-bg);
}

.mc-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.mc-help-card {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(92, 70, 58, 0.12);
  border-radius: var(--mc-radius-lg);
  background: var(--mc-card-bg);
  color: var(--mc-text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mc-help-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 70, 58, 0.24);
  box-shadow: 0 22px 56px rgba(44, 35, 30, 0.08);
}

.mc-help-card__number {
  margin-bottom: auto;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mc-text-muted);
}

.mc-help-card__title {
  margin: 38px 0 0;
  font-family: var(--mc-font-serif);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 500;
}

.mc-help-card__copy {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mc-taupe);
}

.mc-help-card__link {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--mc-walnut);
  font-size: 14px;
  font-weight: 600;
}

.mc-help-card__link svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease;
}

.mc-help-card:hover .mc-help-card__link svg {
  transform: translateX(4px);
}

/* ─── FAQ accordion ─── */

.mc-faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.mc-faq-item__question {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  color: var(--mc-text);
  list-style: none;
  position: relative;
}

.mc-faq-item__question::-webkit-details-marker {
  display: none;
}

.mc-faq-item[open] .mc-faq-item__question {
  color: var(--mc-walnut);
}

.mc-faq-item__question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mc-walnut);
  font-size: 1.35rem;
  font-weight: 400;
}

.mc-faq-item[open] .mc-faq-item__question::after {
  content: '−';
}

.mc-faq-item__answer {
  padding: 0 0 16px 0;
  color: #444;
  line-height: 1.7;
}

/* ─── Contact page form ─── */

.mc-contact-page {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}

.mc-contact-page__info {
  flex: 0 0 280px;
}

.mc-contact-page__block {
  margin-bottom: 32px;
}

.mc-contact-page__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.mc-contact-page__heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mc-contact-page__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.mc-contact-page__link {
  color: var(--mc-walnut);
  text-decoration: none;
}

.mc-contact-page__link:hover {
  text-decoration: underline;
}

.mc-contact-page__form-wrap {
  flex: 1;
}

.mc-contact-page__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-contact-page__input {
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.mc-contact-page__input:focus {
  outline: none;
  border-color: var(--mc-walnut);
  box-shadow: 0 0 0 3px rgba(107, 70, 50, 0.08);
}

.mc-contact-page__textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.mc-contact-page__textarea:focus {
  outline: none;
  border-color: var(--mc-walnut);
  box-shadow: 0 0 0 3px rgba(107, 70, 50, 0.08);
}

.mc-contact-page__submit {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.mc-contact-page__submit:hover:not(:disabled) {
  background: #333;
}

.mc-contact-page__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.mc-contact-page__success {
  padding: 24px;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 1rem;
}

.mc-contact-page__error {
  padding: 16px;
  background: #fef0f0;
  border: 1px solid #f56c6c;
  border-radius: 8px;
  color: #c45656;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ─── Compare table ─── */

.mc-compare-table {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--mc-champagne) var(--mc-border-light);
}

.mc-compare-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mc-compare-table th,
.mc-compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.mc-compare-table thead th {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #1a1a1a;
}

.mc-compare-table tbody td:first-child {
  font-weight: 600;
  color: #666;
}

.mc-compare__link {
  color: var(--mc-walnut);
  text-decoration: none;
}

.mc-compare__link:hover {
  text-decoration: underline;
}

/* ─── Newsletter status ─── */

.mc-footer__newsletter-ok {
  padding: 12px 16px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 6px;
  color: #81c784;
  font-size: 0.9rem;
}

.mc-footer__newsletter-err {
  color: #ef9a9a;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ─── Gallery ─── */

.mc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.mc-gallery__item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mc-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mc-gallery__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.mc-gallery__item:hover .mc-gallery__img {
  opacity: 0.88;
}

/* ─── Scroll-to-top button ─── */

.mc-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mc-walnut);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mc-scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-scroll-top:hover {
  background: var(--mc-walnut-hover);
}

.mc-scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ─── Home gallery teaser + lightbox ─── */

.mc-gallery-teaser {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;
}

.mc-gallery-teaser__heading {
  padding: 0 80px;
  margin-bottom: 24px;
}

.mc-gallery-teaser__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc-walnut);
}

.mc-gallery-teaser__title {
  font-family: var(--mc-font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mc-text);
}

/* Клик по картинке открывает лайтбокс; клик по названию/стрелке — модель */
.mc-gallery-teaser__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mc-gallery-teaser__media:hover ~ .mc-gallery-teaser__caption .mc-gallery-teaser__arrow {
  transform: translateX(4px);
}

.mc-gallery-teaser__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 72px 24px 24px;
  text-decoration: none;
  color: #fff;
}

.mc-gallery-teaser__label {
  font-family: var(--mc-font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  color: #fff;
}

.mc-gallery-teaser__arrow {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-bg);
  border-radius: 6px;
  color: var(--mc-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.mc-gallery-teaser__caption:hover .mc-gallery-teaser__arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .mc-gallery-teaser__label {
    font-size: 18px;
    line-height: 24px;
  }
  .mc-gallery-teaser__arrow {
    width: 48px;
    height: 48px;
  }
  .mc-gallery-teaser__arrow svg {
    width: 18px;
    height: 18px;
  }
  .mc-gallery-teaser__caption {
    padding: 56px 16px 16px;
  }
}

.mc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mc-lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  cursor: pointer;
}

.mc-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.mc-lightbox__close,
.mc-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mc-lightbox__close:hover,
.mc-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.mc-lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
}

.mc-lightbox__close svg {
  width: 22px;
  height: 22px;
}

.mc-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.mc-lightbox__nav svg {
  width: 28px;
  height: 28px;
}

.mc-lightbox__nav--prev { left: 20px; }
.mc-lightbox__nav--next { right: 20px; }

.mc-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .mc-gallery-teaser__heading {
    padding: 0 20px;
  }
  .mc-lightbox__nav { width: 44px; height: 44px; }
  .mc-lightbox__nav svg { width: 22px; height: 22px; }
  .mc-lightbox__nav--prev { left: 10px; }
  .mc-lightbox__nav--next { right: 10px; }
}

/* ─── Search page: quick return home ─── */

.mc-search-page__home {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: var(--mc-font-size-sm);
  color: var(--mc-text-muted);
  transition: color var(--mc-duration-fast) var(--mc-ease);
}

.mc-search-page__home:hover {
  color: var(--mc-walnut);
}

.mc-search-page__home-cta {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-walnut);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mc-search-page__home-cta:hover {
  background: var(--mc-walnut-hover);
  transform: translateY(-1px);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .mc-static {
    padding: 48px 16px 72px;
  }

  .mc-static__title {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .mc-contact-page {
    flex-direction: column;
    gap: 32px;
  }

  .mc-contact-page__info {
    flex: none;
  }

  .mc-static__subnav {
    flex-wrap: wrap;
  }

  .mc-gallery-page {
    padding-top: 56px;
  }

  .mc-editorial--gallery {
    height: auto;
    margin-bottom: 42px;
  }

  .mc-about-story {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mc-about-story__images {
    min-height: 440px;
  }

  .mc-about-story__image--main {
    height: 360px;
  }

  .mc-about-story__image--secondary {
    right: 16px;
    width: 52%;
    height: 190px;
    border-width: 7px;
  }

  .mc-help-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .mc-help-card {
    min-height: 250px;
    padding: 24px;
  }

  .mc-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .mc-gallery__img {
    height: 200px;
  }

  .mc-compare-table table {
    min-width: 660px;
  }

  .mc-compare-table th:first-child,
  .mc-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--mc-bg);
    box-shadow: 1px 0 0 var(--mc-border);
  }

  .mc-scroll-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}
