/*
Theme Name: Kim Theme
Author: Your Name
Version: 1.0
*/

/* 1. ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
li {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea {
  font-family: inherit;
}

:root {
  --primary-color: #4a90e2;
  --primary-color-dark: #357abd;
  --secondary-color: #2ecc71;
  --text-color: #333;
  --text-color-light: #555;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --dark-bg: #2c3e50;
  --border-color: #ddd;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --font-alt: "Montserrat", sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
}
body:not(.admin-bar) {
  padding-top: 80px;
}
body.admin-bar .header {
  top: 32px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

section {
  padding: 5rem 0;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}
section h2 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

/* 2. АНИМАЦИИ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 3. ПЕРЕИСПОЛЬЗУЕМЫЕ КОМПОНЕНТЫ */
.appointment-btn,
.cta-btn,
.read-more-btn,
.submit-btn,
.filter-btn,
.help-button {
  display: inline-block;
  border: 2px solid transparent;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
}
.appointment-btn:hover,
.cta-btn:hover,
.read-more-btn:hover,
.submit-btn:hover,
.filter-btn:hover,
.help-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.appointment-btn,
.read-more-btn,
.submit-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
}
.appointment-btn:hover,
.read-more-btn:hover,
.submit-btn:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

.cta-btn {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}
.cta-btn:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.filter-btn,
.help-button {
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-family: var(--font-alt);
}
.filter-btn:hover,
.filter-btn.active,
.help-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.help-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  border: none;
  background: none;
  color: #666;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 10;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: rotate(90deg);
}

/* Модальное окно для сертификатов */
.certificate-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  padding: 1rem;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.certificate-modal-content .close-btn {
  color: #fff;
  right: 0.5rem;
  top: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
}

.certificate-modal-content .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.certificate-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.breadcrumbs {
  background: var(--light-gray);
  padding: 1rem 0;
  font-size: 0.9em;
  border-bottom: 1px solid #e0e0e0;
}
.breadcrumbs .container > a,
.breadcrumbs .container > span {
  margin-right: 0.5em;
}
.breadcrumbs .separator {
  margin-right: 0.5em;
}
.breadcrumbs .current-page {
  color: var(--text-color-light);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 4. ОБЩИЕ БЛОКИ (HEADER, FOOTER) */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 80px;
  transition: top 0.3s;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 2rem;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo i {
  font-size: 0.9em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  flex-grow: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links .current-menu-item > a {
  color: var(--primary-color);
}
.nav-links a:hover {
  color: var(--primary-color);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-links .current-menu-item > a::after,
.nav-links a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.footer {
  background-color: #333;
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.footer-links ul {
  padding: 0;
  margin: 0;
}
.footer-links a,
.footer-social a {
  transition: color 0.3s;
}
.footer-links a:hover,
.footer-social a:hover {
  color: var(--primary-color);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-size: 1.5rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* 5. СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ */
.hero {
  padding-top: 5rem;
  height: 100vh;
  padding-bottom: 5rem;
  background: linear-gradient(
      135deg,
      rgba(41, 128, 185, 0.8),
      rgba(52, 152, 219, 0.6) 25%,
      rgba(174, 214, 241, 0.2) 75%
    ),
    url("images/nataly.jpg") 30% 30% / cover no-repeat;
  text-align: center;
  min-height: calc(80vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0f8ff;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about .specialist-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.about .specialist-photo img {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.about .specialist-details h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.about .credentials li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.about .credentials li::before {
  content: "✓";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.services {
  background-color: var(--light-gray);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.reviews-main {
  background-color: var(--light-gray);
}
.reviews-main .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.reviews-main .section-header p {
  font-size: 1.2em;
  color: var(--text-color-light);
  max-width: 600px;
  margin: -2rem auto 0;
}
.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.review-card-main {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.review-card-main::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 3em;
  color: var(--primary-color);
  opacity: 0.1;
}
.review-card-main .review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: auto;
}
.reviewer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}
.review-card-main .reviewer-name {
  font-weight: 600;
  font-size: 1.1em;
  white-space: nowrap;
}
.review-card-main .review-rating {
  color: #ffd700;
  font-size: 1em;
  white-space: nowrap;
  display: flex;
  gap: 3px;
}
.review-card-main .review-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.review-card-main .review-tag {
  background-color: #e9f1f9;
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.all-questions-link-wrapper,
.all-reviews-link-wrapper,
.centered-link-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.contacts {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.contact-item .phone-link:hover {
  color: var(--primary-color);
}
.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.social-links a:hover {
  transform: scale(1.1);
}
.map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 6. СТИЛИ ДЛЯ СТРАНИЦЫ "О СПЕЦИАЛИСТЕ" */
.specialist-hero {
  padding: 5rem 0;
  background: linear-gradient(
    rgba(74, 144, 226, 0.05),
    rgba(74, 144, 226, 0.01)
  );
}
.specialist-hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.specialist-hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.specialist-hero-info h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.specialist-hero-info .specialist-title {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.specialist-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-item {
  text-align: center;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-item span {
  display: block;
  font-weight: 500;
}
.education .timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.education .timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-left: 0;
  padding-right: 3rem;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}
.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border: 3px solid var(--primary-color);
  top: 1.5rem;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(odd)::after {
  right: -8px;
}
.timeline-item:nth-child(even)::after {
  left: -8px;
}
.certificates {
  background-color: var(--light-gray);
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.certificate-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.certificate-card:hover {
  transform: translateY(-5px);
}
.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}
.certificate-card p {
  padding: 1rem;
  font-weight: 500;
}
.experience {
  background-color: var(--white);
}
.experience-path {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.path-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}
.path-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
}
.path-text h4 {
  font-family: var(--font-heading);
  font-size: 1.6em;
  margin-bottom: 10px;
}
.path-text p {
  font-size: 1.1em;
  line-height: 1.8;
}
.cta-section {
  background: var(--dark-bg);
  color: white;
  text-align: center;
}
.cta-section h2 {
  color: var(--white);
}
.cta-section p {
  font-size: 1.2em;
  max-width: 600px;
  margin: -2rem auto 2rem;
  opacity: 0.9;
}

/* 7. СТИЛИ ДЛЯ СТРАНИЦЫ "УСЛУГИ" */
.services-hero {
  padding: 5rem 0 3rem;
  background-color: var(--light-gray);
  text-align: center;
}
.services-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.services-hero p {
  font-size: 1.2rem;
  color: var(--text-color-light);
  max-width: 700px;
  margin: 0 auto;
}
.services-page-section {
  padding: 4rem 0;
  background-color: var(--white);
}
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.service-card-new {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  gap: 25px;
  padding: 30px;
  transition: all 0.3s ease;
}
.service-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.service-icon {
  flex-shrink: 0;
  font-size: 2.5em;
  color: var(--primary-color);
  margin-top: 5px;
}
.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6em;
  margin-bottom: 15px;
}
.service-content p {
  margin-bottom: 20px;
  color: var(--text-color-light);
}
.service-benefits {
  list-style: none;
  padding-left: 0;
}
.service-benefits li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.service-benefits li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 2px;
}

/* 8. СТИЛИ ДЛЯ СТРАНИЦЫ "ОТЗЫВЫ" */
.reviews-hero {
  padding: 5rem 0 3rem;
  background-color: var(--light-gray);
  text-align: center;
}
.reviews-hero h1 {
  font-family: var(--font-alt);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.reviews-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.reviews-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.review-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.review-header {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  gap: 1rem;
}
.reviewer-details h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}
.review-content {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background-color: #e9f1f9;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}
.leave-review {
  padding: 4rem 0;
  background-color: var(--light-gray);
}
.review-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.rating input {
  display: none;
}
.rating label {
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s ease;
}
.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
  color: #ffd700;
}

/* 9. СТИЛИ ДЛЯ СТРАНИЦЫ "ВОПРОСЫ" */
.faq-hero {
  padding: 5rem 0 3rem;
  background-color: var(--light-gray);
  text-align: center;
}
.faq-hero h1 {
  font-family: var(--font-alt);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.faq-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.faq-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.category {
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-family: var(--font-alt);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.category:hover,
.category.active {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.category i {
  font-size: 1em;
}
.faq-quick-links {
  text-align: center;
  margin-top: 2rem;
}
.quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.quick-links a {
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}
.quick-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}
.category-description {
  margin: 3rem auto;
  text-align: center;
}
.category-description h2 {
  font-size: 2rem;
}
.category-description p {
  max-width: 700px;
  margin: -2rem auto 0;
  font-size: 1.1em;
}
.faq-list,
.voprosi-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item,
.voprosi-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(74, 144, 226, 0.1);
}
.faq-question,
.voprosi-vopros {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question h3,
.voprosi-vopros h3 {
  font-family: var(--font-alt);
  font-size: 1.1rem;
  margin: 0;
}
.toggle-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}
.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}
.voprosi-item.is-active .fa-chevron-down {
  transform: rotate(180deg);
}
.faq-answer,
.voprosi-otvet {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.faq-item.active .faq-answer,
.voprosi-item.is-active .voprosi-otvet {
  padding-bottom: 1.5rem;
  max-height: 1000px;
}
.faq-help {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--light-gray);
  border-radius: 10px;
  text-align: center;
}
.faq-help h3 {
  font-family: var(--font-alt);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.faq-help p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.help-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 10. СТИЛИ ДЛЯ СТРАНИЦЫ "КОНТАКТЫ" */
.contacts-hero {
  background-color: var(--light-gray);
  padding: 5rem 0 3rem;
  text-align: center;
}
.contacts-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.contacts-hero p {
  font-size: 1.2em;
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}
.contacts-page-section {
  padding: 4rem 0;
}
.contacts-wrapper-new {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.main-contact-info h3,
.secondary-contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}
.contact-subtitle {
  font-size: 1.1em;
  color: var(--text-color-light);
  margin-bottom: 30px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.contact-card > i:first-child {
  font-size: 2.5em;
  width: 50px;
  text-align: center;
}
.contact-card.whatsapp > i {
  color: #25d366;
}
.contact-card.telegram > i {
  color: #0088cc;
}
.contact-card.phone > i {
  color: #3498db;
}
.contact-card-text strong {
  display: block;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-card-text span {
  color: #777;
}
.contact-card-text .phone-number {
  font-size: 1.2em;
  font-weight: 600;
}
.arrow-icon {
  margin-left: auto;
  font-size: 1.5em;
  color: #ccc;
  transition: color 0.3s ease;
}
.contact-card:hover .arrow-icon {
  color: var(--primary-color);
}
.secondary-contact-info .info-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}
.secondary-contact-info .info-block i {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 5px;
}
.info-block-text h4 {
  font-family: var(--font-heading);
  font-size: 1.4em;
  margin: 0 0 5px 0;
}
.map-section {
  padding: 4rem 0 6rem 0;
  background-color: var(--light-gray);
}
.map-section h2 {
  text-align: center;
}
.map-full iframe {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 450px;
  border: 0;
}
.directions {
  margin-top: 30px;
}

/* 11. СТИЛИ ДЛЯ БЛОГА (СТАТЬИ) */
.blog-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.blog-hero {
  padding: 5rem 0 3rem;
  background-color: var(--light-gray);
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.blog-hero p {
  font-size: 1.2rem;
  color: var(--text-color-light);
  max-width: 700px;
  margin: 0 auto;
}
.articles-section {
  padding: 4rem 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.article-card-new {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.article-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card-image {
  height: 200px;
  background-color: var(--light-gray);
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-content {
  padding: 25px;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.4em;
  margin: 0 0 15px 0;
  line-height: 1.4;
}
.article-card-excerpt {
  color: var(--text-color-light);
  margin-bottom: 20px;
}
.article-card-readmore {
  font-weight: 600;
  color: var(--primary-color);
}
.article-card-readmore i {
  transition: transform 0.3s;
}
.article-card-new:hover .article-card-readmore i {
  transform: translateX(5px);
}
.pagination {
  margin-top: 4rem;
  text-align: center;
}
.pagination .nav-links {
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: all 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
.single-article-hero {
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.single-article-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.single-article-meta {
  margin-top: 1rem;
  opacity: 0.9;
}
.single-article-content .entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin: 2em 0 1em;
}
.entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
}
.entry-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-color-light);
}

/*
======================================================
  12. АДАПТИВНОСТЬ (MEDIA QUERIES)
======================================================
*/
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .appointment-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  .specialist-hero-content,
  .about .specialist-info {
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
  }
  .reviews-slider {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .services-grid-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Предотвращение переполнения текста */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  body:not(.admin-bar) {
    padding-top: 70px;
  }
  section {
    padding: 3rem 0;
  }
  section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .header,
  .nav {
    height: 70px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .menu-toggle {
    display: block;
  }
  .header .appointment-btn {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    text-align: center;
  }
  .nav-links.is-active {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 4rem 0;
  }
  .hero-content h1,
  .specialist-hero-info h1,
  .reviews-hero h1,
  .faq-hero h1,
  .contacts-hero h1,
  .blog-hero h1,
  .single-article-title {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .about .specialist-info,
  .contact-info,
  .reviews-slider,
  .services-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .about .specialist-photo {
    max-width: 350px;
    margin: 0 auto;
  }
  /* Адаптивность страницы "О специалисте" */
  .specialist-hero {
    padding: 3rem 0;
  }
  .specialist-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .specialist-hero-image {
    max-width: 280px;
    margin: 0 auto;
  }
  .specialist-stats {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 1.5rem auto 0;
    gap: 1rem;
  }
  .education .timeline {
    padding: 2rem 1rem;
    max-width: 100%;
  }
  .education .timeline::before {
    left: 10px;
    transform: translateX(0);
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 40px;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .timeline-item::after,
  .timeline-item:nth-child(odd):after,
  .timeline-item:nth-child(even):after {
    left: 2px;
  }
  .timeline-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }
  .timeline-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  .path-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .path-text h4 {
    font-size: 1.4em;
  }

  /* Адаптивность других страниц */
  .service-card-new {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .reviews-hero,
  .faq-hero,
  .contacts-hero,
  .blog-hero {
    padding: 4rem 0 2rem;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .filter-btn,
  .category {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .faq-question,
  .voprosi-vopros {
    padding: 1.2rem 1.5rem;
  }
  .faq-question h3,
  .voprosi-vopros h3 {
    font-size: 1rem;
  }
  .contacts-wrapper-new {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  section {
    padding: 3rem 0;
  }
  section h2 {
    font-size: 1.8rem;
  }
  /* Улучшенная адаптивность timeline для маленьких экранов */
  .education .timeline {
    padding: 1.5rem 0.5rem;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 35px;
    padding-right: 0.5rem;
  }
  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .timeline-content p {
    font-size: 0.9rem;
  }
  .timeline-date {
    font-size: 0.9rem;
  }
  /* Сертификаты на маленьких экранах */
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .certificate-card img {
    height: auto;
    max-height: 250px;
  }
  /* Блок опыта */
  .experience-path {
    gap: 2rem;
  }
  /* Статистика специалиста */
  .specialist-stats {
    max-width: 100%;
  }
  .stat-item {
    padding: 1rem;
  }
  h1,
  .hero-content h1,
  .specialist-hero-info h1,
  .reviews-hero h1,
  .faq-hero h1,
  .contacts-hero h1,
  .blog-hero h1,
  .single-article-title {
    font-size: 1.9rem;
  }
  p,
  .hero-content p,
  .specialist-hero-info .specialist-title {
    font-size: 1rem;
  }
  .appointment-btn,
  .cta-btn,
  .read-more-btn,
  .submit-btn {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
  .category {
    width: calc(50% - 0.5rem);
    text-align: center;
  }
  .faq-question,
  .voprosi-vopros {
    padding: 1rem 1.2rem;
  }
  .faq-question h3,
  .voprosi-vopros h3 {
    font-size: 0.95rem;
  }
  .contact-card {
    padding: 15px;
    gap: 15px;
  }
  .contact-card > i:first-child {
    font-size: 2em;
  }
}
