*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1e1e1e;
  background: #f8f8f6;
  line-height: 1.6;
  font-size: 1.05rem;
}

.top-bar {
  background: #fff;
}

.top-bar__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 15px;
}

.logo {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2c2c2c;
  text-decoration: none;
  line-height: 1;
}

.main-nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-nav__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 28px;
}

.main-nav__link {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav__link:hover {
  color: #1e1e1e;
  border-bottom-color: #b0b0a0;
}

.feed {
  flex: 1 0 auto;
  padding: 24px;
}

.feed__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === CARDS === */
.card {
  border-radius: 8px;
  display: flow-root;
}

/* === JORNAL + HERO === */
.card--jornal,
.card--hero {
  background: #fefdf9;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  position: relative;
}

.card__jornal-covers {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 0;
}

.card__jornal-image {
  width: calc(50% - 8px);
  aspect-ratio: 1350 / 1920;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.08),
    0 0 60px rgba(var(--accent-rgb, 0,0,0), 0.15);
  transition: box-shadow 0.3s ease;
}

.card__jornal-image:hover {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 8px 28px rgba(0,0,0,0.12),
    0 0 80px rgba(var(--accent-rgb, 0,0,0), 0.25);
}

.card--hero .card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #c0392b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 2;
}

.card--jornal .card__body,
.card--hero .card__body {
  padding: 20px 28px 28px;
  text-align: center;
}

.card__title {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.card__title--large {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.card__subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.card__stores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.store-link:hover {
  transform: scale(1.08);
}

.store-link img {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  min-width: 36px;
  min-height: 36px;
}

/* === COVER === */
.card--cover {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
}

.card__image--bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.card__title--light,
.card__subtitle--light {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.card__subtitle--light {
  margin-bottom: 20px;
}

.store-link--light {
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.store-link--light:hover {
  opacity: 1;
  transform: scale(1.08);
}

.store-link--light img {
  max-width: 80px;
  max-height: 80px;
  min-width: 32px;
  min-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* === ABOUT === */
.card--about {
  background: #f8f6ee;
  padding: 0px 18px;
}

.card__lead {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-left: 0;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  color: #3d3d3d;
  font-size: 0.95rem;
}

.about-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: #b8a88c;
  font-weight: 700;
}

.about-certificate {
  margin-top: 20px;
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 0.95rem;
  color: #6e5e3e;
  letter-spacing: 0.03em;
}

/* === AUTHORS === */
.card--authors {
  background: #fafaf5;
  padding: 32px 28px;
}

.package {
  margin-bottom: 32px;
}

.package:last-child {
  margin-bottom: 0;
}

.package__title {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3a3226;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0d8c4;
}

.package__intro {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 12px;
  font-weight: 600;
}

.package__list-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5c5c5c;
  margin-bottom: 8px;
}

.package__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-left: 0;
}

.package__list li {
  position: relative;
  padding-left: 20px;
  color: #3d3d3d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.package__list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #b8a88c;
  font-weight: 700;
}

.package__note {
  font-size: 0.9rem;
  color: #8c8068;
  font-style: italic;
  margin-top: 8px;
}

/* === PACKAGE PHONE === */
.package__phone,
.package__phone:link,
.package__phone:visited {
  color: #4a4a4a;
  text-decoration: none;
  border-bottom: 1px dashed #b0b0a0;
  font-weight: 600;
}

.package__phone:hover {
  color: #1e1e1e;
  border-bottom-color: #1e1e1e;
}

.package__phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.package__phone-icon {
  width: 16px;
  height: 16px;
  color: #4a4a4a;
  flex-shrink: 0;
}

/* === REKLAMA === */
.card--reklama {
  background: #f4f2e8;
  padding: 32px 28px;
}

.card--reklama .card__stores {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.card--reklama a,
.card--reklama a:link,
.card--reklama a:visited {
  color: #a427c9;
  text-decoration: none;
  border-bottom: none;
  font-weight: 800;
}

.card--reklama a:hover {
  color: #7d1fa3;
  border-bottom: none;
}

/* === VK === */
.card--vk {
  background: #f4f2e8;
  padding: 24px 28px;
  text-align: center;
}

.vk-text {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c2c2c;
}

.card--vk a,
.card--vk a:link,
.card--vk a:visited {
  color: #5e292d;
  text-decoration: none;
  border-bottom: none;
  font-weight: 800;
}

.card--vk a:hover {
  color: #a30707;
  border-bottom: none;
}


#vk_groups3 {
  width: 100% !important;
  height: auto !important;
}

#vk_groups3 iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* === TEAM === */
.card--team {
  background: #fefdf9;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.card--team .card__image-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
}

.card--team .card__image {
  max-width: 100%;
  max-height: 700px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 12px 40px rgba(0,0,0,0.1),
    0 0 80px rgba(var(--accent-rgb, 0,0,0), 0.25);
}

.card--team .card__body {
  padding: 20px 28px 32px;
  text-align: center;
}

.card__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  color: #4a4a4a;
}

.card__contact-icon {
  width: 18px;
  height: 18px;
  color: #4a7c59;
  flex-shrink: 0;
}

.card__contact a {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #b0b0a0;
  transition: color 0.2s, border-color 0.2s;
}

.card__contact a:hover {
  color: #1e1e1e;
  border-bottom-color: #1e1e1e;
}

/* === FOOTER === */
.footer {
  flex-shrink: 0;
  background: #f5f5ee;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0ea;
  transition: background 0.2s, transform 0.2s;
}

.social-icon:hover {
  background: #e0e0d8;
  transform: scale(1.08);
}

.social-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  color: #4a4a4a;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer__links a:hover {
  color: #1e1e1e;
  border-bottom-color: #b0b0a0;
}

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

.footer__legal {
  color: #aaa;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* === GLARE === */
.glare-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.05) 30%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.03) 70%,
    rgba(255,255,255,0.15) 100%
  );
  z-index: 1;
}

/* === LIGHTBOX === */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay--visible {
  display: flex;
}
.lightbox-img--a, .lightbox-img--b {
  position: absolute;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-img--a { z-index: 2; }
.lightbox-img--b { z-index: 1; opacity: 0; }

/* === ADAPTIVE === */
@media (max-width: 768px) {
  .top-bar__inner,
  .main-nav__inner,
  .feed__inner,
  .footer__inner {
    max-width: 100%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .feed {
    padding: 12px;
  }

  .card__title--large {
    font-size: 1.0rem;
  }

  .card__overlay {
    padding: 20px;
    min-height: 280px;
  }

  .card--cover {
    min-height: 280px;
  }

  .card__jornal-covers {
    flex-direction: column;
    align-items: center;
  }

  .card__jornal-image {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1350 / 1920;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* === VK WIDGET === */
.card--vk-widget {
  width: 100%;
  padding: 0 !important;
  background: #fff;
  overflow: hidden;
}
#vk_groups3 {
  width: 100% !important;
  height: auto !important;
  min-width: 100% !important;
}
#vk_groups3 iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}
