/* ============================================================
   Фотоцентр №198 — Основные стили
   Цветовая палитра: #FF6B00 (оранжевый), #F5EDE0 (бежевый),
   #1A1A1A (текст), #2D2D2D (графит), #FFF / #FAFAFA (фон)
   Шрифт: Montserrat, системный шрифт fallback
   ============================================================ */

/* ============= RESET & BASE ============= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A1A;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background-color: #F5EDE0;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: #1A1A1A;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FF6B00;
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn--accent {
  background: #FF6B00;
  color: #FFF;
  border-color: #FF6B00;
}

.btn--accent:hover {
  background: #e06000;
  border-color: #e06000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.btn--telegram {
  background: #0088CC;
  color: #FFF;
  border-color: #0088CC;
}

.btn--telegram:hover {
  background: #0077b3;
  border-color: #0077b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
}

.btn--outline {
  background: transparent;
  color: #FF6B00;
  border-color: #FF6B00;
}

.btn--outline:hover {
  background: #FF6B00;
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ============= HEADER ============= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

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

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: 140px;
  height: auto;
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2D2D2D;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav__link:hover {
  color: #FF6B00;
  background: rgba(255,107,0,0.06);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__call-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.header__tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background: #0088CC;
  color: #FFF;
  transition: all 0.3s ease;
}

.header__tg-btn:hover {
  background: #0077b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,136,204,0.3);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger--active .burger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============= HERO SECTION ============= */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, #F5EDE0 0%, #FFF 50%, #FFF 100%);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__content {
  flex: 1 1 55%;
}

.hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1A1A1A;
}

.hero__title span {
  color: #FF6B00;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.5;
}

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

.hero__image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__fox {
  width: 280px;
  height: auto;
  transition: transform 0.6s ease;
}

.hero__fox:hover {
  transform: scale(1.05) translateY(-5px);
}

/* ============= SERVICES SECTION ============= */
.services {
  background: #FFF;
}

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

.service-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #FAFAFA;
  border-radius: 16px;
  border: 1px solid #F0F0F0;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #FF6B00;
  background: #FFF;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.service-card__body {
  flex: 1;
  min-width: 0;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.service-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FF6B00;
  transition: all 0.3s ease;
}

.service-card__link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.service-card__link:hover {
  gap: 10px;
}

.service-card__link:hover::after {
  transform: translateX(3px);
}

/* Fox hint */
.fox-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 28px;
  background: #F5EDE0;
  border-radius: 16px;
  max-width: 500px;
}

.fox-hint--services {
  margin-left: auto;
  margin-right: auto;
}

.fox-hint--steps {
  margin: 40px auto 0;
  max-width: 450px;
}

.fox-hint__img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.fox-hint__text {
  font-style: italic;
  font-size: 0.95rem;
  color: #2D2D2D;
  font-weight: 500;
}

/* ============= PRICES SECTION ============= */
.prices__fox {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.prices__fox-img {
  width: 50px;
  height: 50px;
}

.prices__fox-text {
  font-style: italic;
  font-size: 1rem;
  color: #FF6B00;
  font-weight: 600;
}

.price-category {
  margin-bottom: 36px;
}

.price-category__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #2D2D2D;
  padding-left: 12px;
  border-left: 4px solid #FF6B00;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.price-table thead {
  background: #2D2D2D;
  color: #FFF;
}

.price-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-table td {
  padding: 12px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid #F0F0F0;
  transition: background 0.2s ease;
}

.price-table tbody tr:hover td {
  background: #FFF8F0;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table__price {
  font-weight: 700;
  color: #FF6B00;
  white-space: nowrap;
}

.price-table__note {
  color: #888;
  font-size: 0.85rem;
}

/* ============= PROMOTIONS SECTION ============= */
.promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.promo-card {
  position: relative;
  padding: 28px;
  background: #FFF;
  border-radius: 16px;
  border: 1px solid #F0F0F0;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #FF6B00;
}

.promo-card__badge {
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 1.8rem;
  line-height: 1;
}

.promo-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A1A;
  padding-right: 30px;
}

.promo-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.promo-card__valid {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}

.promo-card .btn {
  align-self: flex-start;
}

/* ============= HOW WE WORK SECTION ============= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  background: #FFF;
  border-radius: 16px;
  border: 1px solid #F0F0F0;
  transition: all 0.35s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  background: #FF6B00;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.step:hover .step__number {
  transform: scale(1.1);
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1A1A1A;
}

.step__desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* ============= CONTACTS SECTION ============= */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts__fox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contacts__fox-img {
  width: 50px;
  height: 50px;
}

.contacts__fox-text {
  font-style: italic;
  font-size: 1rem;
  color: #FF6B00;
  font-weight: 600;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.contacts__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FFF;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contacts__link:hover {
  border-color: #FF6B00;
  background: #FFF8F0;
  transform: translateX(4px);
}

.contacts__link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #FF6B00;
}

.contacts__address {
  background: #FFF;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #F0F0F0;
}

.contacts__address p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.contacts__address .btn {
  margin-top: 8px;
}

.contacts__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ============= FOOTER ============= */
.footer {
  background: #2D2D2D;
  color: #CCC;
  padding: 50px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer__logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer__copy {
  font-size: 0.85rem;
  color: #999;
}

.footer__title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 16px;
}

.footer__contacts li,
.footer__links li {
  margin-bottom: 8px;
}

.footer__contacts a,
.footer__links a {
  font-size: 0.88rem;
  color: #BBB;
  transition: color 0.3s ease;
}

.footer__contacts a:hover,
.footer__links a:hover {
  color: #FF6B00;
}

/* ============= MOBILE BOTTOM BAR ============= */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFF;
  border-top: 1px solid #E0E0E0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  padding: 8px 0;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2D2D2D;
  transition: color 0.3s ease;
  min-width: 60px;
  min-height: 44px;
  justify-content: center;
}

.mobile-bottom-bar__btn:hover,
.mobile-bottom-bar__btn:active {
  color: #FF6B00;
}

.mobile-bottom-bar__btn svg {
  width: 20px;
  height: 20px;
}

/* ============= ANIMATIONS ============= */
.fade-out {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Специальный класс для hero, чтобы он сразу появлялся */
.hero__content.fade-out,
.hero__image.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.hero__content.fade-in,
.hero__image.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero__image.fade-in {
  transition-delay: 0.2s;
}

/* Задержки для карточек */
.service-card:nth-child(1).fade-in { transition-delay: 0.05s; }
.service-card:nth-child(2).fade-in { transition-delay: 0.1s; }
.service-card:nth-child(3).fade-in { transition-delay: 0.15s; }
.service-card:nth-child(4).fade-in { transition-delay: 0.2s; }
.service-card:nth-child(5).fade-in { transition-delay: 0.25s; }
.service-card:nth-child(6).fade-in { transition-delay: 0.3s; }
.service-card:nth-child(7).fade-in { transition-delay: 0.35s; }
.service-card:nth-child(8).fade-in { transition-delay: 0.4s; }
.service-card:nth-child(9).fade-in { transition-delay: 0.45s; }
.service-card:nth-child(10).fade-in { transition-delay: 0.5s; }

/* Задержки для шагов */
.step:nth-child(1).fade-in { transition-delay: 0.05s; }
.step:nth-child(2).fade-in { transition-delay: 0.15s; }
.step:nth-child(3).fade-in { transition-delay: 0.25s; }
.step:nth-child(4).fade-in { transition-delay: 0.35s; }

/* Задержки для карточек акций */
.promo-card:nth-child(1).fade-in { transition-delay: 0.05s; }
.promo-card:nth-child(2).fade-in { transition-delay: 0.1s; }
.promo-card:nth-child(3).fade-in { transition-delay: 0.15s; }
.promo-card:nth-child(4).fade-in { transition-delay: 0.2s; }

/* ============= MEDIA QUERIES - АДАПТИВНОСТЬ ============= */

/* ===== Desktop large (1025px+) ===== */
/* Default styles above cover this */

/* ===== Tablet / small laptop (769px - 1024px) ===== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__fox {
    width: 220px;
  }

  .services__grid {
    gap: 18px;
  }

  .service-card {
    padding: 22px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 24px;
  }
}

/* ===== Mobile large / tablet (481px - 768px) ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.6rem;
    margin-bottom: 36px;
  }

  /* Header */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav--active {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 12px;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 12px 32px;
  }

  .burger {
    display: flex;
  }

  .header__actions .header__call-btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 40px 0 60px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    order: 1;
  }

  .hero__image {
    order: 0;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__fox {
    width: 180px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }

  /* Prices */
  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #F0F0F0;
  }

  .price-table tbody tr:last-child {
    border-bottom: none;
  }

  .price-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: none;
  }

  .price-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.85rem;
    color: #2D2D2D;
  }

  .price-table__price {
    text-align: right;
  }

  .price-table__note {
    text-align: right;
  }

  /* Promotions */
  .promotions__grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .step {
    padding: 24px 16px;
  }

  /* Contacts */
  .contacts__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacts__map iframe {
    height: 300px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
  }

  /* Mobile bottom bar */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Add padding to body so content isn't hidden behind bottom bar */
  body {
    padding-bottom: 70px;
  }
}

/* ===== Mobile small (320px - 480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section__title {
    font-size: 1.35rem;
    margin-bottom: 28px;
  }

  /* Hero */
  .hero {
    padding: 30px 0 44px;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__fox {
    width: 140px;
  }

  /* Services */
  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
  }

  /* Prices */
  .price-category__title {
    font-size: 1rem;
  }

  .price-table td {
    font-size: 0.88rem;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
  }

  .step__number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Promo */
  .promo-card {
    padding: 22px;
  }

  .promo-card__badge {
    font-size: 1.4rem;
  }

  /* Contacts */
  .contacts__link {
    font-size: 0.88rem;
    padding: 10px 14px;
  }

  .contacts__fox-text {
    font-size: 0.88rem;
  }

  .contacts__map iframe {
    height: 240px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Fox hints */
  .fox-hint {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }

  .fox-hint__img {
    width: 56px;
    height: 56px;
  }

  /* Mobile bottom bar */
  .mobile-bottom-bar {
    padding: 6px 0;
  }

  .mobile-bottom-bar__btn {
    font-size: 0.65rem;
    padding: 4px 8px;
    min-width: 50px;
  }

  .mobile-bottom-bar__btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ============= UTILITY & MISC ============= */
.error-msg {
  text-align: center;
  padding: 30px;
  color: #FF6B00;
  font-weight: 600;
}

/* Выделение «№198» оранжевым в заголовках */
.hero__title .highlight,
.section__title .highlight {
  color: #FF6B00;
}
