/* ========================================
   Тренировка Глаз - Main Stylesheet
   ======================================== */

/* --- CSS Variables (Kadence palette) --- */
:root {
  --palette1: #9e8b6a;
  --palette2: #c2ad89;
  --palette3: #232323;
  --palette4: #4d4d4d;
  --palette5: #666666;
  --palette6: #989898;
  --palette7: #edede5;
  --palette8: #f9f9f7;
  --palette9: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1290px;
  --header-height: 110px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--palette5);
  background: var(--palette8);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--palette3);
  line-height: 1.5;
  font-weight: 600;
}
h1 { font-size: 50px; text-transform: uppercase; letter-spacing: -0.5px; }
h2 { font-size: 35px; text-transform: capitalize; }
h3 { font-size: 32px; text-transform: capitalize; }
h4 { font-size: 28px; text-transform: capitalize; }
h5 { font-size: 26px; text-transform: capitalize; }
h6 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette1);
  line-height: 1.5;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
  text-align: center;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--palette1);
  color: var(--palette9);
}
.btn-primary:hover {
  background: var(--palette2);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--palette9);
  border: 2px solid var(--palette9);
}
.btn-outline:hover {
  background: var(--palette9);
  color: var(--palette6);
}

/* ========================================
   HEADER
   ======================================== */

/* Top Bar */
.header-top {
  background: var(--palette3);
  padding: 7px 20px;
  color: var(--palette9);
  font-size: 14px;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.header-top-center strong { font-weight: 700; }
.header-top-left { display: flex; gap: 8px; }
.header-top-left a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--palette9);
  border-radius: 50%;
  color: var(--palette9);
  font-size: 13px;
  transition: border-color .3s, color .3s;
}
.header-top-left a:hover { border-color: var(--palette2); color: var(--palette2); }
.header-top-right { display: flex; align-items: center; gap: 15px; }
.header-top-right .cart-icon {
  font-size: 20px;
  color: var(--palette9);
  cursor: pointer;
}
.header-top-right .login-link {
  color: var(--palette9);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Main Header */
.header-main {
  background: var(--palette8);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: height .3s, box-shadow .3s;
}
.header-main.shrink {
  height: 71px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.header-logo img {
  width: 250px;
  height: auto;
  transition: width .3s;
}
.header-main.shrink .header-logo img { width: 180px; }

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-left a, .nav-right a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette3);
  padding: 10px 1.35em;
  transition: color .3s;
}
.nav-left a:hover, .nav-right a:hover,
.nav-left a.active, .nav-right a.active {
  color: var(--palette1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--palette3);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--palette9);
  z-index: 999;
  padding: 100px 30px 30px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette3);
  padding: 12px 0;
}
.mobile-nav a:hover { color: var(--palette1); }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: var(--palette8);
  padding: 205px 0 80px;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: 70px;
  line-height: 81px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-content .subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--palette5);
  padding-right: 70px;
}
.hero-content .description {
  margin-top: 10px;
  padding-right: 70px;
}
.hero-content .btn { margin-top: 25px; }
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--palette7);
  padding: 40px 0;
}
.stats-bar .container {
  display: flex;
  align-items: center;
  gap: 30px;
}
.stats-bar .stats-text {
  flex: 2;
}
.stats-bar .stats-text h2 {
  font-size: 35px;
  line-height: 1.5;
  text-transform: capitalize;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-number {
  font-family: var(--font-body);
  font-size: 60px;
  line-height: 70px;
  font-weight: 600;
  color: var(--palette3);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette6);
  line-height: 1.2;
  margin-top: -10px;
}

/* ========================================
   LIBRARY SECTION (parallax)
   ======================================== */
.section-library {
  padding: 99px 0 80px;
  background-image: url('../images/books-59.jpg');
  background-position: 51% 53%;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}
.section-library .container {
  display: flex;
  gap: 40px;
}
.section-library .lib-content {
  flex: 1;
}
.section-library .lib-empty {
  flex: 1;
}
.section-library h2 {
  font-size: 70px;
  line-height: 81px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-library h3 {
  text-transform: none;
  margin: 20px 0 10px;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.category-cards {
  margin-top: -75px;
  padding: 0 50px;
  position: relative;
  z-index: 5;
}
.category-cards .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  padding: 40px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #695b46;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 14px rgba(0,0,0,.2);
  transition: transform .3s;
  cursor: pointer;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  transition: background .3s;
}
.category-card:hover::before { background: rgba(0,0,0,.15); }
.category-card:hover { transform: translateY(-3px); }
.category-card-content {
  position: relative;
  z-index: 2;
  color: var(--palette9);
}
.category-card-icon {
  margin-bottom: 10px;
}
.category-card-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--palette9);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-card h2 {
  font-family: 'Open Sans', var(--font-body);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .5px;
  color: var(--palette9);
  margin: 0;
}

/* ========================================
   NEW ARRIVALS
   ======================================== */
.section-new-arrivals {
  padding: 49px 0 80px;
}
.section-heading {
  max-width: 500px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-heading h6 { margin-bottom: 10px; }
.section-heading h2 { padding-bottom: 10px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.product-card {
  background: var(--palette9);
  overflow: hidden;
  transition: box-shadow .3s;
}
.product-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,.1); }
.product-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--palette7);
}
.product-card-body {
  padding: 15px 20px;
  text-align: center;
}
.product-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--palette3);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-card-price {
  font-size: 17px;
  color: var(--palette5);
  font-weight: 500;
}
.product-card-price .amount {
  color: var(--palette3);
  font-weight: 600;
}

/* ========================================
   REVIEWS / TESTIMONIALS
   ======================================== */
.section-reviews {
  background-color: var(--palette7);
  background-image: url('../images/books-46.jpg');
  background-position: 69% 39%;
  background-attachment: fixed;
  background-size: cover;
  padding: 80px 0 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 40px 0 120px;
}
.review-card {
  background: var(--palette8);
  padding: 40px 50px;
}
.review-stars { margin-bottom: 20px; }
.review-stars svg {
  width: 24px;
  height: 24px;
  fill: #ffcd04;
  margin-right: 2px;
}
.review-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--palette3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}
.review-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.review-name {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette1);
  font-size: 17px;
}
.review-location {
  font-size: 15px;
  color: var(--palette6);
  text-transform: capitalize;
}

/* ========================================
   CTA SECTION
   ======================================== */
.section-cta {
  position: relative;
  padding: 80px 0 160px;
  background-image: url('../images/girl-eye.jpg');
  background-size: cover;
  background-position: 17% 21%;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--palette1);
  opacity: .7;
  mix-blend-mode: multiply;
}
.section-cta .container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
}
.section-cta .cta-content { flex: 1; }
.section-cta .cta-empty { flex: 1; }
.section-cta h2 {
  font-family: 'Open Sans', var(--font-body);
  font-size: 48px;
  line-height: 50px;
  font-weight: 600;
  color: var(--palette9);
  margin-bottom: 20px;
}
.section-cta h3 {
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  font-weight: inherit;
  color: var(--palette9);
  text-transform: none;
  margin-bottom: 30px;
}
.section-cta .btn { margin-top: 0; }

/* ========================================
   PAGE HEADER (for inner pages)
   ======================================== */
.page-header {
  background: var(--palette7);
  text-align: center;
  padding: 60px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header h1 {
  font-size: 50px;
}

/* ========================================
   METHOD PAGE
   ======================================== */
.method-hero {
  padding: 40px 0 80px;
  background-color: var(--palette8);
  background-image: url('../images/2books.jpg');
  background-position: 35% 52%;
  background-size: cover;
  position: relative;
}
.method-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--palette2);
}
.method-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: center;
}
.method-hero .method-content { flex: 55%; }
.method-hero .method-empty { flex: 45%; }
.method-hero h1 { font-size: 62px; line-height: 81px; font-weight: 500; margin-bottom: 15px; }

.method-principle {
  padding: 80px 0 60px;
  text-align: center;
}
.method-principle .inner { max-width: 500px; margin: 0 auto; }

.method-detail {
  padding: 20px 80px 79px;
}
.method-detail .container {
  display: flex;
  gap: 40px;
}
.method-detail .text-col { flex: 1; }
.method-detail .img-col { flex: 1; text-align: center; }
.method-detail .img-col img { max-width: 100%; }

.method-advantages {
  background: var(--palette1);
  padding: 80px 0;
}
.method-advantages .container {
  display: flex;
  gap: 40px;
}
.method-advantages .adv-intro { flex: 30%; }
.method-advantages .adv-list { flex: 35%; }
.method-advantages h2 {
  color: var(--palette9);
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}
.method-advantages .divider {
  width: 80px;
  height: 2px;
  background: var(--palette8);
  margin: 20px 0;
}
.method-advantages p { color: var(--palette9); }
.method-advantages ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--palette9);
}
.method-advantages ul li { margin-bottom: 15px; }

/* ========================================
   FAQ PAGE
   ======================================== */
.faq-section {
  padding: 80px 10px;
  background-image: url('../images/book-15.jpg');
  background-position: 86% 54%;
  background-attachment: fixed;
  background-size: cover;
}
.faq-section .container {
  display: flex;
  gap: 40px;
}
.faq-left { flex: 60%; padding-right: 50px; }
.faq-right {
  flex: 40%;
  background: var(--palette8);
  padding: 40px 50px;
  margin-top: 20px;
  margin-left: 40px;
}

/* Accordion */
.accordion { width: 100%; }
.accordion-item { border: 1px solid var(--palette6); margin-top: -1px; }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  background: var(--palette9);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--palette3);
  text-align: left;
  line-height: 24px;
  transition: color .3s;
}
.accordion-header:hover { color: var(--palette1); }
.accordion-header.active { color: var(--palette1); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform .3s;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .3s;
}
.accordion-icon::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.accordion-icon::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.accordion-header.active .accordion-icon::before { transform: translateX(-50%) rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: var(--palette9);
}
.accordion-body-inner { padding: 0 22px 22px; }
.accordion-body-inner p { margin-bottom: 15px; }
.accordion-body-inner img { max-width: 300px; margin-top: 10px; }

/* FAQ form */
.faq-form h2 { font-size: 26px; margin-bottom: 15px; }
.faq-form input,
.faq-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 0.5px solid var(--palette6);
  background: var(--palette8);
  font-family: var(--font-body);
  font-size: 17px;
  margin-bottom: 25px;
  outline: none;
  transition: border-color .3s;
}
.faq-form input:focus,
.faq-form textarea:focus { border-color: var(--palette1); }
.faq-form textarea { resize: vertical; min-height: 120px; }
.faq-form .btn { width: 100%; }

/* ========================================
   ABOUT AUTHOR PAGE
   ======================================== */
.about-author-section {
  padding: 20px 0 80px;
  background-color: var(--palette8);
  position: relative;
}
.about-author-section .bg-parallax {
  position: absolute;
  inset: 0;
  background-image: url('../images/book-glasses.jpg');
  background-position: 52% 44%;
  background-attachment: fixed;
  background-size: cover;
  opacity: .12;
}
.about-author-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-author-section .author-photo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.about-author-section .author-photo img {
  max-width: 225px;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-author-section .author-info { flex: 1; }
.about-author-section h1 {
  font-size: 70px;
  line-height: 81px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ========================================
   ABOUT METHOD (article) PAGE
   ======================================== */
.article-content {
  padding: 40px 0 80px;
}
.article-content .container {
  max-width: 900px;
}
.article-content h2 { margin-bottom: 20px; }
.article-content p { margin-bottom: 1.2em; }

/* ========================================
   LIBRARY PAGE
   ======================================== */
.library-hero {
  padding: 0 0 60px;
}
.library-hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.library-hero .lib-content { flex: 55%; }
.library-hero .lib-image { flex: 45%; text-align: center; }
.library-hero .lib-image img {
  max-width: 500px;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.library-hero h1 {
  font-size: 70px;
  line-height: 81px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  padding: 60px 0 80px;
}
.contact-section .container {
  max-width: 700px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 0.5px solid var(--palette6);
  background: var(--palette8);
  font-family: var(--font-body);
  font-size: 17px;
  margin-bottom: 25px;
  outline: none;
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--palette1); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { width: 100%; }

/* ========================================
   ARTICLES PAGE
   ======================================== */
.articles-section { padding: 60px 0 80px; }
.articles-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--palette6);
  font-size: 20px;
}

/* ========================================
   LIBRARY HERO BUTTON
   ======================================== */
.library-hero .lib-btn {
  margin-top: 30px;
  margin-bottom: 20px;
}
.library-hero-columns {
  display: flex;
  align-items: center;
  gap: 40px;
}
.library-hero-left { flex: 55%; }
.library-hero-right { flex: 45%; text-align: center; }
.library-hero-right img {
  max-width: 500px;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin: 0 auto;
}

/* ========================================
   LIBRARY BOOKS (fragment cards)
   ======================================== */
.library-books { padding: 40px 0 80px; }
.library-books .section-title {
  font-size: 42px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}
.library-books .product-card {
  display: block;
  background: var(--palette9);
  color: inherit;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.library-books .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.library-books .product-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.library-books .product-info {
  padding: 18px 20px 22px;
  text-align: center;
}
.library-books .product-title {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.4;
  color: var(--palette3);
  text-transform: none;
  margin-bottom: 8px;
}
.library-books .product-fragment {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--palette1);
  padding: 4px 10px;
  border: 1px solid var(--palette2);
  border-radius: 50px;
}

/* ========================================
   ARTICLES GRID
   ======================================== */
.articles-section { padding: 60px 0 100px; }
.articles-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 18px;
  color: var(--palette5);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  background: var(--palette9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.article-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body {
  padding: 22px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--palette1);
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.35;
  color: var(--palette3);
  text-transform: none;
}
.article-card-excerpt {
  color: var(--palette5);
  font-size: 15.5px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 6px;
}
.article-card-link {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .6px;
  color: var(--palette1);
}
.article-card-link:hover { color: var(--palette3); }

/* ========================================
   CONTACTS CARD
   ======================================== */
.contacts-card {
  background: var(--palette9);
  padding: 50px 60px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.contacts-card h2 {
  font-size: 34px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contacts-lead {
  color: var(--palette5);
  margin-bottom: 30px;
}
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contacts-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--palette7);
}
.contacts-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--palette7);
  color: var(--palette1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--palette6);
  margin-bottom: 2px;
}
.contacts-item a {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--palette3);
  transition: color .3s;
}
.contacts-item a:hover { color: var(--palette1); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--palette3);
  color: var(--palette9);
}
.footer-top {
  padding: 50px 0 0;
  text-align: center;
}
.footer-logo {
  display: inline-block;
}
.footer-logo img {
  width: 246px;
  height: auto;
}
.footer-middle {
  padding: 40px 0 20px;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--palette9);
  font-size: 17px;
  transition: color .3s;
}
.footer-nav a:hover { color: var(--palette1); }
.footer-bottom {
  padding: 20px 0 30px;
  text-align: center;
  font-size: 15px;
  color: var(--palette9);
  opacity: .8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 50px; line-height: 60px; }
  .section-library h2 { font-size: 50px; line-height: 60px; }
  .hero-content .subtitle,
  .hero-content .description { padding-right: 0; }
  .stats-bar .container { flex-wrap: wrap; }
  .stats-bar .stats-text { flex: 1 0 100%; margin-bottom: 20px; }
  .method-detail { padding: 20px 30px 50px; }
  .method-advantages .container { flex-direction: column; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-section .container { flex-direction: column; }
  .faq-left { padding-right: 0; }
  .faq-right { margin-left: 0; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .library-hero-columns { flex-direction: column; }
  .library-hero-left { flex: auto; }
}

@media (max-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  h3 { font-size: 27px; }

  .header-top { display: none; }
  .nav-left, .nav-right { display: none; }
  .mobile-toggle { display: block; }
  .header-main .container { justify-content: space-between; }
  .header-logo { padding: 0; }
  .header-logo img { width: 180px; }

  .hero { padding: 120px 0 60px; }
  .hero .container { flex-direction: column; }
  .hero-content { text-align: center; }
  .hero-content h1 { font-size: 46px; line-height: 60px; }
  .hero-content .btn { margin: 20px auto 0; }

  .stats-bar .container { flex-direction: column; text-align: center; }
  .stat-number { font-size: 40px; line-height: 50px; }

  .section-library,
  .section-reviews,
  .section-cta { background-attachment: scroll; }
  .section-library h2 { font-size: 46px; line-height: 60px; }
  .section-library .container { flex-direction: column; }

  .category-cards { padding: 0 20px; margin-top: -40px; }
  .category-cards .container { grid-template-columns: 1fr; }

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

  .section-cta .container { flex-direction: column; }
  .section-cta h2 { font-size: 34px; line-height: 40px; }

  .method-hero .container { flex-direction: column; }
  .method-hero h1 { font-size: 46px; line-height: 60px; }
  .method-detail .container { flex-direction: column; }
  .method-detail { padding: 20px 20px 50px; }

  .library-hero .container { flex-direction: column; }
  .library-hero h1 { font-size: 46px; line-height: 60px; }

  .about-author-section .container { flex-direction: column-reverse; }
  .about-author-section h1 { font-size: 46px; line-height: 60px; }

  .faq-section { background-attachment: scroll; }

  .footer-nav { gap: 1.5em; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .contacts-card { padding: 32px 24px; }
  .library-books .section-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 36px; line-height: 46px; }
  .review-card { padding: 25px 20px; }
  .review-text { font-size: 18px; }
}
