/* ==========================================================================
   Оцифровка видеокассет в Новокузнецке — общие стили многостраничного сайта
   Палитра и шрифты взяты из фирменного стиля оригинального Wix-сайта:
     --brand-bg      #FFFDF7  (--wst-base-1-color, светлый тёплый фон)
     --brand-dark    #2F1B12  (--wst-base-2-color, тёмный шоколад — футер, текст)
     --brand-accent  #8F3E1E  (--wst-accent-1-color, терракотовые кнопки/ссылки)
     --brand-accent2 #D4CBBE  (--wst-accent-2-color)
     --brand-shade   #F7F2EB  (--wst-shade-1-color, светлые панели)
     --brand-shade2  #E5DACE  (--wst-shade-2-color)
   ========================================================================== */

:root {
  --brand-bg: #FFFDF7;
  --brand-dark: #2F1B12;
  --brand-accent: #8F3E1E;
  --brand-accent-hover: #732F16;
  --brand-accent-2: #D4CBBE;
  --brand-accent-3: #EAE4DB;
  --brand-accent-4: #C49C7D;
  --brand-shade: #F7F2EB;
  --brand-shade-2: #E5DACE;
  --brand-shade-3: #5C4A42;

  --font-heading: 'Recoleta', Georgia, 'Times New Roman', serif;
  --font-body: 'MinionPro', Georgia, 'Times New Roman', serif;

  --container-max: 1140px;
}

@font-face {
  font-family: 'Recoleta';
  font-style: normal;
  font-weight: 400;
  src: url('//static.parastorage.com/fonts/v2/9fd8a90e-755f-4076-9f75-cdf4f05e2e4a/v1/recoleta.cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF;
  font-display: swap;
}
@font-face {
  font-family: 'Recoleta';
  font-style: normal;
  font-weight: 900;
  src: url('//static.parastorage.com/fonts/v2/e958a33f-3c4d-476a-b8a7-dd3cadd36747/v1/recoleta.cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF;
  font-display: swap;
}
@font-face {
  font-family: 'MinionPro';
  font-style: normal;
  font-weight: 400;
  src: url('//static.parastorage.com/fonts/v2/13b0b93d-2bac-4e05-81b2-b7b3fd9cc788/v1/minion-pro.cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF;
  font-display: swap;
}
@font-face {
  font-family: 'MinionPro';
  font-style: normal;
  font-weight: 700;
  src: url('//static.parastorage.com/fonts/v2/b04cf476-4910-4dcf-88bb-1c2b63227a13/v1/minion-pro.cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

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

a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 3.6vw, 56px); }
h2 { font-size: clamp(28px, 2.8vw, 40px); }
h3 { font-size: clamp(19px, 1.6vw, 24px); }

p { margin: 0 0 16px; }

/* ---------------------------------------------------------------- Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--brand-bg);
  border-bottom: 1px solid var(--brand-shade-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--brand-dark);
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: 0.85; }
.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--brand-shade-3);
}

/* Primary nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--brand-dark);
  white-space: nowrap;
}
.main-nav__link:hover {
  background: var(--brand-shade);
  text-decoration: none;
}
.main-nav__link.is-active {
  background: var(--brand-accent-3);
  font-weight: 700;
}

/* Dropdown for services */
.main-nav__item--has-dropdown {
  position: relative;
}
.main-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-bg);
  border: 1px solid var(--brand-shade-2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(47, 27, 18, 0.12);
  padding: 8px;
  min-width: 260px;
  list-style: none;
  margin: 6px 0 0;
  z-index: 600;
}
.main-nav__item--has-dropdown:hover .main-nav__dropdown,
.main-nav__item--has-dropdown:focus-within .main-nav__dropdown {
  display: block;
}
.main-nav__dropdown li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--brand-dark);
  font-size: 14px;
}
.main-nav__dropdown li a:hover {
  background: var(--brand-shade);
  text-decoration: none;
}

/* CTA button in header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.header-cta:hover {
  background: var(--brand-accent-hover);
  text-decoration: none;
}

/* Mobile burger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 62px;
    background: var(--brand-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 550;
  }
  .main-nav.is-open { transform: translateX(0); }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav__link { padding: 12px 8px; border-radius: 8px; }
  .main-nav__item--has-dropdown .main-nav__dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    margin: 0;
  }
  .main-nav__item--has-dropdown.is-open .main-nav__dropdown { display: block; }

  .header-cta { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
}

/* ---------------------------------------------------------------- Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--brand-shade-3);
  padding: 14px 0 0;
}
.breadcrumbs a { color: var(--brand-shade-3); }
.breadcrumbs a:hover { color: var(--brand-accent); }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs [aria-current="page"] { color: var(--brand-dark); font-weight: 600; }

/* ---------------------------------------------------------------- Hero */
.hero {
  padding: 48px 0 32px;
  text-align: left;
}
.hero--page {
  padding: 40px 0 24px;
  background: var(--brand-shade);
  border-bottom: 1px solid var(--brand-shade-2);
}
.hero .lead {
  font-size: 19px;
  color: var(--brand-shade-3);
  max-width: 700px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-accent-hover);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-secondary:hover {
  background: var(--brand-accent);
  color: #fff;
  text-decoration: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* Floating contact button (mobile-friendly always-visible CTA).
   Kept compact (circular icon) so it never covers nearby links/cards
   in grids that end up in the bottom-right corner while scrolling. */
.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(47, 27, 18, 0.35);
  overflow: hidden;
  white-space: nowrap;
}
.floating-cta__label {
  display: none;
}
.floating-cta:hover {
  background: var(--brand-accent-hover);
  text-decoration: none;
}
/* On roomy desktop viewports, expand into a labeled pill for clarity —
   there is enough free space there that overlap is not an issue. */
@media (min-width: 1000px) {
  .floating-cta {
    width: auto;
    height: auto;
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 15px;
    gap: 8px;
  }
  .floating-cta__label {
    display: inline;
  }
}

/* ---------------------------------------------------------------- Sections */
.section {
  padding: 64px 0;
}
.section--shade {
  background: var(--brand-shade);
}
@media (max-width: 700px) {
  .section { padding: 44px 0; }
}
.section-title {
  margin-bottom: 28px;
}
.section-title--center { text-align: center; }

/* Formats grid */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .formats-grid { grid-template-columns: 1fr; }
}
.format-card {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.format-card:hover {
  box-shadow: 0 8px 24px rgba(47, 27, 18, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.format-card img {
  border-radius: 8px;
  margin: 0 auto;
  max-height: 200px;
  width: auto;
}
.format-card h3 {
  margin: 0;
  font-size: 18px;
}
.format-card p {
  margin: 0;
  color: var(--brand-shade-3);
  font-size: 14px;
}

/* Steps list ("Как это работает") */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .steps-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps-list { grid-template-columns: 1fr; }
}
.steps-list li {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(47,27,18,0.06);
}
.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--brand-shade-2);
}
.price-table th {
  background: var(--brand-shade);
  font-family: var(--font-heading);
  font-weight: 900;
}
.price-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--brand-shade-3);
  background: var(--brand-shade);
  border-left: 3px solid var(--brand-accent);
  padding: 12px 16px;
  border-radius: 6px;
}

/* Related links block */
.related-links {
  background: var(--brand-shade);
  border-radius: 14px;
  padding: 24px;
  margin-top: 32px;
}
.related-links h2, .related-links h3 { margin-bottom: 14px; }
.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .related-links ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-links ul { grid-template-columns: 1fr; }
}
.related-links a {
  display: block;
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--brand-dark);
  font-size: 14px;
}
.related-links a:hover {
  border-color: var(--brand-accent);
  text-decoration: none;
}

/* Advantages ("Почему обращаются ко мне") */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .advantages-grid { grid-template-columns: 1fr; }
}
.advantage-card {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 20px;
}
.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.advantage-card p {
  margin: 0;
  color: var(--brand-shade-3);
  font-size: 15px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.faq-item p {
  margin: 0;
  color: var(--brand-shade-3);
}

/* Contact block */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .contact-methods { grid-template-columns: 1fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.contact-card a.btn { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--brand-dark);
  color: #F4EFE8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.site-footer a { color: #F4EFE8; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid h4 {
  color: #F4EFE8;
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-nav-list, .footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-list li { margin-bottom: 8px; }
.footer-nav-list a, .footer-social-list a { font-size: 14px; }

.footer-share-heading {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
}
.footer-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.footer-share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-share-row svg { width: 22px; height: 22px; }

.footer-bottom {
  border-top: 1px solid rgba(244,239,232,0.15);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #C7B9AC;
}

/* ================================================================
   ГЛАВНАЯ СТРАНИЦА — компактная двухколоночная композиция
   ================================================================ */

/* Hero (первый экран) */
.hero-home {
  padding: 40px 0 52px;
}
.hero-home__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-home { padding: 28px 0 40px; }
  .hero-home__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.hero-home__eyebrow {
  display: inline-block;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-home h1 {
  margin-bottom: 12px;
}
.hero-home__subtitle {
  font-size: 18px;
  color: var(--brand-shade-3);
  max-width: 560px;
  margin: 0 0 16px;
}
.hero-home__formats {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-accent);
  letter-spacing: .01em;
  margin: 0 0 18px;
}
.hero-home__price-block {
  background: var(--brand-shade);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 22px;
  display: inline-block;
}
.hero-home__price {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  color: var(--brand-dark);
  margin: 0 0 4px;
}
.hero-home__note {
  font-size: 14px;
  color: var(--brand-shade-3);
  margin: 0;
}
.hero-home__media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(47, 27, 18, 0.18);
  aspect-ratio: 4 / 5;
}
.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero-home__media { aspect-ratio: 16 / 10; max-width: 480px; margin: 0 auto; }
}

/* Секция intro (заголовок + короткое описание сверху секции) */
.section-intro {
  max-width: 720px;
  margin: 0 0 32px;
}
.section-intro h2 { margin-bottom: 10px; }
.section-intro p {
  color: var(--brand-shade-3);
  margin: 0;
  font-size: 16px;
}

/* Компактные карточки форматов ("Какие видеокассеты я оцифровываю") */
.formats-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .formats-compact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .formats-compact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .formats-compact-grid { grid-template-columns: 1fr; }
}
.format-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 14px;
  padding: 22px 12px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.format-chip:hover {
  box-shadow: 0 8px 24px rgba(47, 27, 18, 0.12);
  transform: translateY(-2px);
  border-color: var(--brand-accent);
  text-decoration: none;
}
.format-chip__icon {
  width: 40px;
  height: 40px;
  color: var(--brand-accent);
  flex-shrink: 0;
}
.format-chip__label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--brand-dark);
  line-height: 1.2;
}

/* Компактный блок "Стоимость" */
.price-compact {
  background: #fff;
  border: 1px solid var(--brand-shade-2);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 2px 12px rgba(47, 27, 18, 0.06);
}
.price-compact__text { flex: 1; min-width: 260px; }
.price-compact__value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  color: var(--brand-accent);
  margin: 0 0 8px;
}
.price-compact__text p {
  margin: 0;
  color: var(--brand-shade-3);
  font-size: 15px;
}
.price-compact .btn { flex-shrink: 0; }

/* Шаги "Как это работает" — компактная версия из 4 шагов */
.steps-list--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .steps-list--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-list--4 { grid-template-columns: 1fr; }
}

/* Финальный CTA-блок в конце главной страницы */
.cta-final {
  text-align: center;
}
.cta-final__lead {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--brand-shade-3);
  font-size: 17px;
}
.btn-row--center {
  justify-content: center;
}
@media (max-width: 620px) {
  .btn-row--stack {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row--stack .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
