/* ==========================================================================
   Республика Кошек — style.css
   Точный визуальный клон оригинального Wix-сайта catsrepublic.ru
   ========================================================================== */

/* --- Шрифты --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&family=Lobster&family=Open+Sans:wght@300;400;600;700&display=swap');

@font-face {
  font-family: 'BlissPro';
  src: url('../fonts/qr33u3.woff2') format('woff2'),
       url('../fonts/97jj2t.woff') format('woff'),
       url('../fonts/zfzfo5.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'BlissPro';
  src: url('../fonts/5q8ns1.woff2') format('woff2'),
       url('../fonts/vpw9mx.woff') format('woff'),
       url('../fonts/s6dgv5.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --color-bg: #ffffff;
  --color-text: #080808;
  --color-secondary: #494949;
  --color-accent: #6ba3a7;
  --color-accent-light: #b9dfe1;
  --color-blue-btn: #7ba3d7;
  --color-link: #278389;
  --color-light-bg: #f0f4f5;
  --color-section-header: #c5dce8;
  --font-body: 'Open Sans Condensed', 'Open Sans', Arial, sans-serif;
  --font-heading: 'Open Sans Condensed', Arial, sans-serif;
  --font-bliss: 'BlissPro', 'Comic Sans MS', cursive;
  --font-lobster: 'Lobster', cursive;
  --max-width: 980px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Утилиты --- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Навигация (sticky top)
   ========================================================================== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sticky-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-nav__list a {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.sticky-nav__list a:hover {
  transform: scale(1.05);
  opacity: 1;
}

.sticky-nav__list img {
  height: 44px;
  width: auto;
}

/* ==========================================================================
   Hero — иллюстрация с котами
   ========================================================================== */
.hero {
  text-align: center;
  padding: 20px 20px 30px;
  background: #fff;
}

.hero__illustration {
  max-width: 900px;
  margin: 0 auto;
}

.hero__illustration img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Ветви (Республика кошек / Республика котов)
   ========================================================================== */
.branches {
  padding: 20px 20px 10px;
}

.branches__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.branches__grid > .branch {
  display: flex;
  flex-direction: column;
}

.branches__grid > .branch .btn-booking {
  margin-top: auto;
}

.branch__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--color-text);
}

.branch__label strong {
  font-weight: 700;
}

.branch__logo {
  max-width: 220px;
  margin: 0 auto 12px;
}

.branch__address {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.branch__phones {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 12px;
}

.branch__phones a {
  color: var(--color-text);
  text-decoration: none;
}

.branch__booking-text {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 6px;
  color: var(--color-text);
}

.branch__book-label {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.branch__map {
  margin-top: 16px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.branch__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Кнопки ОНЛАЙН-ЗАПИСЬ */
.btn-booking {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 200px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-booking--purple {
  background: rgba(187, 108, 253, 0.78);
}

.btn-booking--purple:hover {
  background: rgb(237, 69, 69);
  opacity: 1;
}

.btn-booking--green {
  background: rgb(125, 216, 172);
}

.btn-booking--green:hover {
  background: rgb(237, 69, 69);
  opacity: 1;
}

/* ==========================================================================
   Донаты
   ========================================================================== */
.donate {
  padding: 30px 20px;
  text-align: center;
}

.donate__title-img {
  max-width: 500px;
  margin: 0 auto 20px;
}

.donate__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
}

.donate__text a {
  text-decoration: underline;
  color: var(--color-link);
}

/* ==========================================================================
   Панорамная галерея
   ========================================================================== */
.panorama-gallery {
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 20px auto;
}

.panorama-gallery__track {
  display: flex;
  transition: transform 0.6s ease;
}

.panorama-gallery__slide {
  min-width: 100%;
  position: relative;
}

.panorama-gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
}

.panorama-gallery__caption {
  text-align: center;
  padding: 8px;
  font-size: 14px;
  color: var(--color-secondary);
}

.panorama-gallery__caption strong {
  font-weight: 700;
}

.panorama-gallery__counter {
  position: absolute;
  bottom: 40px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

/* ==========================================================================
   Двухколоночные секции «О нас»
   ========================================================================== */
.two-col {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.two-col__item {
  padding: 0 0 30px;
}

.two-col__item:first-child {
  padding-right: 20px;
}

.two-col__item:last-child {
  padding-left: 20px;
}

.two-col__header {
  background: var(--color-section-header);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.two-col__header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.two-col__header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0;
}

.two-col__body {
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.two-col__body p {
  margin-bottom: 12px;
}

.two-col__body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.two-col__body li {
  list-style: disc;
  margin-bottom: 6px;
  line-height: 1.5;
}

.two-col__body a {
  color: var(--color-link);
  text-decoration: underline;
}

.two-col__logo {
  max-width: 160px;
  margin: 20px auto 0;
}

/* ==========================================================================
   Полноширокая секция с заголовком
   ========================================================================== */
.full-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 30px;
}

.full-section__header {
  background: var(--color-section-header);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.full-section__header h2 {
  font-size: 22px;
  font-weight: 700;
}

.full-section__header h3 {
  font-size: 18px;
  font-weight: 300;
}

.full-section__body {
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.full-section__body p {
  margin-bottom: 12px;
}

.full-section__body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.full-section__body li {
  list-style: disc;
  margin-bottom: 6px;
}

/* ==========================================================================
   Наши проекты
   ========================================================================== */
.projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

.projects h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.projects__grid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.projects__grid .spayday-logo {
  width: 120px;
  height: auto;
}

.projects__grid .spayday-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
}

.projects__grid .spayday-text a {
  color: var(--color-link);
  text-decoration: underline;
  text-transform: uppercase;
  font-weight: 700;
}

.projects__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.projects__buttons a {
  display: inline-block;
  transition: transform 0.2s;
}

.projects__buttons a:hover {
  transform: scale(1.05);
  opacity: 1;
}

.projects__buttons img {
  height: 48px;
  width: auto;
}

/* ==========================================================================
   Предупреждение о детях
   ========================================================================== */
.children-warning {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* ==========================================================================
   СМИ о нас
   ========================================================================== */
.press {
  padding: 40px 20px;
  text-align: center;
}

.press__banner {
  max-width: 320px;
  margin: 0 auto 30px;
}

.press__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.press__card {
  background: #eef3f8;
  border-radius: 4px;
  padding: 24px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}

.press__card blockquote {
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.press__card blockquote::before {
  content: '\00AB';
  font-size: 24px;
  color: var(--color-blue-btn);
  font-weight: 700;
}

.press__card cite {
  display: block;
  font-style: normal;
  text-align: right;
}

.press__card cite a {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: 700;
}

/* ==========================================================================
   Котики ищут дом
   ========================================================================== */
.cats-adoption {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cats-adoption__badge {
  position: relative;
}

.cats-adoption__badge-img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px;
  z-index: 2;
}

.cats-adoption__main-photo {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.cats-adoption__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cat-card {
  background: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
}

.cat-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.cat-card__info {
  padding: 14px;
}

.cat-card__info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cat-card__info p {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Контакты — «Приходите в гости»
   ========================================================================== */
.contacts {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contacts__title-img {
  max-width: 500px;
  margin: 0 auto 30px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.contact-card {
  font-size: 15px;
  line-height: 1.6;
}

.contact-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-card__header img {
  width: 100px;
  height: auto;
}

.contact-card__header h3 {
  font-size: 18px;
  font-weight: 700;
}

.contact-card p {
  margin-bottom: 4px;
}

.contact-card .prices {
  margin-top: 12px;
  font-size: 14px;
}

.contact-card .prices strong {
  font-weight: 700;
}

.contact-card a {
  color: var(--color-text);
}

/* Карта Google */
.contacts__map {
  margin: 20px 0;
}

.contacts__map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 4px;
}

/* Музей Кошки — карточка */
.contacts__museum {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

.contacts__museum-logo {
  width: 140px;
  flex-shrink: 0;
}

.contacts__museum-info {
  font-size: 15px;
  line-height: 1.6;
}

.contacts__museum-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.contacts__museum-info p {
  margin-bottom: 4px;
}

.contacts__museum-info .prices {
  margin-top: 10px;
  font-size: 14px;
}

.contacts__museum-info ul {
  padding-left: 18px;
  margin-top: 8px;
}

.contacts__museum-info li {
  list-style: disc;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Бесплатное посещение */
.free-visit {
  margin-top: 20px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.free-visit h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

/* ==========================================================================
   Соцсети
   ========================================================================== */
.social-section {
  text-align: center;
  padding: 30px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.social-section__icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.social-section__icons a {
  display: block;
  transition: transform 0.2s;
}

.social-section__icons a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.social-section__icons img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
}

.social-section__callout {
  max-width: 380px;
  margin: 16px auto;
}

.social-section__email {
  font-size: 17px;
  margin-top: 16px;
}

.social-section__email a {
  color: var(--color-text);
}

/* ==========================================================================
   Партнёры
   ========================================================================== */
.partners {
  padding: 30px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.partners h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.partners__grid a,
.partners__grid span {
  display: inline-block;
}

.partners__grid img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.partners__grid a:hover img {
  opacity: 0.7;
}

.partners__divider {
  width: 60%;
  height: 2px;
  background: var(--color-accent);
  margin: 24px auto;
}

/* ==========================================================================
   Ветеринары и поддержка
   ========================================================================== */
.vet-support {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

.vet-support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.vet-support__item {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.vet-support__item p {
  margin-bottom: 12px;
  color: var(--color-secondary);
}

.vet-support__item img {
  max-width: 300px;
  margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid #ddd;
}

.site-footer__legal {
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.site-footer__offer a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #ccc;
  padding: 8px 20px;
  display: inline-block;
  margin-top: 8px;
  transition: background 0.2s;
}

.site-footer__offer a:hover {
  background: #f0f0f0;
  opacity: 1;
}

/* ==========================================================================
   Подстраницы — общие стили
   ========================================================================== */
.page-hero {
  background: var(--color-section-header);
  text-align: center;
  padding: 50px 20px;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 18px;
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 40px 20px;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 30px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-content img {
  border-radius: 4px;
  margin: 20px 0;
}

.page-content--light {
  background: #f5f7f8;
}

/* Карточки */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  padding: 16px;
}

.card__body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card__body p {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Навигация для подстраниц (header)
   ========================================================================== */
.site-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__nav img {
  height: 40px;
  width: auto;
}

.site-header__social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-header__social img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .branches__grid,
  .two-col,
  .contacts__grid,
  .vet-support__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .two-col__item:first-child,
  .two-col__item:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .sticky-nav__list img {
    height: 36px;
  }

  .branch__address {
    font-size: 22px;
  }

  .press__grid {
    grid-template-columns: 1fr;
  }

  .contacts__museum {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-section__icons img {
    width: 60px;
    height: 60px;
  }

  .projects__grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__nav {
    display: none;
  }

  .cats-adoption__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 10px;
  }

  .branch__logo {
    max-width: 160px;
  }

  .branches__grid {
    gap: 30px;
  }

  .btn-booking {
    padding: 10px 24px;
    font-size: 14px;
  }

  .partners__grid img {
    height: 45px;
  }
}
