/* Глобальні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90e2;
  --secondary-color: #7b68ee;
  --accent-color: #ff6b6b;
  --text-dark: #2c3e50;
  --text-light: #666;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto;
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* Навігація */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.logo i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Головний екран */
.hero {
  height: 100vh;
  height: 100svh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.pexels.com/photos/5699474/pexels-photo-5699474.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1")
      center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 0;
  will-change: transform;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.free-consultation {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Про мене */
.about {
  padding: 100px 0;
  background: var(--background-white);
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  flex: 0 0 300px;
}

.about-image img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.credentials {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.credential-item {
  display: flex;
  align-items: center;
  background: var(--background-light);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 200px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credential-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.credential-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.3rem;
  width: 30px;
  text-align: center;
}

.credential-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Нові стилі для списків в секції "Про мене" */
.work-areas,
.work-formats,
.advantages {
  margin: 1rem 0;
  margin-left: 1.5rem;
}

.work-areas li,
.work-formats li,
.advantages li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.6;
}

.work-areas li::before,
.work-formats li::before,
.advantages li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Стилі для списків послуг */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Послуги */
.services {
  padding: 100px 0;
  background: var(--background-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  color: white;
  font-size: 2rem;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Публікації */
.publications {
  padding: 100px 0;
  background: var(--background-white);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.publication-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.publication-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.publication-content {
  padding: 1.5rem;
}

.publication-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Освіта та сертифікати */
.education {
  padding: 100px 0;
  background: var(--background-light);
}

.education h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-size: 2.5rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.education-card {
  background: transparent;
  border-radius: 20px;
  padding: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  text-align: center;
}

.education-card:hover {
  transform: none;
  box-shadow: none;
}

.education-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.education-icon i {
  color: white;
  font-size: 2rem;
}

.education-card h3 {
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 15px;
  text-align: left;
  transition: all 0.3s ease;
}

.education-item:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.education-item p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.education-item .year {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Галерея сертифікатів */
.certificates-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 1rem;
  background: transparent;
}

.certificates-gallery {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  cursor: grab;
  padding: 1rem 0;
}

.certificates-gallery.dragging {
  cursor: grabbing;
}

.certificate-item {
  flex: 0 0 calc(33.333% - 1rem);
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  cursor: pointer;
}

.certificate-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.certificate-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.certificate-item:hover img {
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* Навігаційні кнопки сертифікатів */
.certificate-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-medium);
}

.certificate-nav:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.certificate-nav.prev {
  left: 2px;
}

.certificate-nav.next {
  right: 2px;
}

.certificate-nav:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Індикатори для сертифікатів */
.certificate-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.certificate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.certificate-dot.active {
  background: var(--primary-color);
  width: 12px;
  height: 12px;
}

.certificate-dot:hover {
  background: var(--secondary-color);
}

.certificate-info {
  padding: 1.5rem;
}

.certificate-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.certificate-info p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.certificate-info .year {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Відгуки */
.testimonials {
  padding: 100px 0;
  background: var(--background-white);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-size: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--background-light);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.stars {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-light);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-info h4 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: var(--shadow-light);
}

.testimonial-nav:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
  left: 20px;
}

.testimonial-next {
  right: 20px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  width: 14px;
  height: 14px;
}

.dot:hover {
  background: var(--secondary-color);
}

.testimonial-cta {
  text-align: center;
  padding: 3rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
}

.testimonial-cta h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.8rem;
}

.testimonial-cta p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.testimonial-cta .btn {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 15px 30px;
  font-size: 1.1rem;
}

.testimonial-cta .btn:hover {
  background: var(--background-light);
  transform: translateY(-2px);
}

/* CTA секція після послуг */
.cta-after-services {
  padding: 60px 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-after-services .cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-after-services h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.cta-after-services p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-after-services .btn {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 15px 35px;
}

.cta-after-services .btn:hover {
  background: var(--background-light);
  transform: translateY(-2px);
}

/* Контакти */
.contact {
  padding: 100px 0;
  background: var(--background-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 30px;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Футер */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  color: #cccccc;
}

/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--text-dark);
}

/* Адаптивність для планшетів */
@media (max-width: 1024px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Адаптивність */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .about-image {
    flex: none;
    align-self: center;
  }

  .about-image img {
    width: 250px;
    height: 320px;
  }

  .credentials {
    flex-direction: column;
    gap: 1rem;
  }

  .credential-item {
    flex: 1 1 100%;
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .cta-after-services {
    padding: 40px 20px;
  }

  .cta-after-services h3 {
    font-size: 1.8rem;
  }

  .cta-after-services p {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* БАЗОВИЙ СТАН АНІМАЦІЇ (Прихований) */
/* Застосовується до всіх елементів, які потрібно анімувати */
.service-card,
.publication-card,
.about-content,
.cta-content,
.testimonial-card,
.education-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform; /* Підказка для GPU */
}

/* АКТИВНИЙ СТАН (Видимий) */
/* JS додасть цей клас */
.animate-active {
  opacity: 1;
  transform: translateY(0);
}

/* ВИМКНЕННЯ АНІМАЦІЇ ДЛЯ SEO/NO-JS (Fallback) */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .publication-card,
  .about-content,
  .cta-content,
  .testimonial-card,
  .education-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Анімація для відгуків */
.testimonial-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.3s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-nav {
  z-index: 10;
}

.testimonial-nav:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Покращення для точок навігації */
.dot:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Плавна прокрутка */
html {
  scroll-behavior: smooth;
}

/* Адаптивність для нового CTA блоку */
@media (max-width: 768px) {
  .cta-after-services .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  /* Адаптивність для галереї сертифікатів */
  .certificate-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .certificate-item img {
    height: 240px;
  }

  .certificate-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .certificate-nav.prev {
    left: 7px;
  }

  .certificate-nav.next {
    right: 7px;
  }
}

@media (max-width: 480px) {
  .certificate-item {
    flex: 0 0 calc(100% - 0.75rem);
  }

  .certificate-item img {
    height: 200px;
  }

  .certificate-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .certificate-nav.prev {
    left: 12px;
  }

  .certificate-nav.next {
    right: 12px;
  }
}

/* Форма успіху */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}
