/* ========== Base / Reset ========== */
:root {
  --primary-color: #d2b090;
  --secondary-color: #815e3d;
  --light-color: #edd5ba;
  --dark-color: #454545;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========== Header Styles ========== */
header {
  background-color: var(--primary-color);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  width: 150px;
  height: auto;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ========== Hero Section ========== */
.hero {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
  text-shadow: var(--shadow);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 500;
  text-shadow:
    1px 0 0 var(--white),
    0 1px 0 var(--white),
    -1px 0 0 var(--white),
    0 -1px 0 var(--white);
}

.hero-image {
  flex: 1;
  max-width: 500px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  margin: 10px 10px 10px 0;
}

.btn-zapis {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  margin: 10px 10px 10px 0;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.btn-zapis:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
}

/* ========== Section ========== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color);
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto;
}

/* ========== Services Table ========== */
.services-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: var(--shadow);
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

.services-table th {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.services-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(210, 176, 144, 0.3);
}

.services-table tr:last-child td {
  border-bottom: none;
}

.services-table tr:hover {
  background-color: rgba(210, 176, 144, 0.1);
}

.service-icon {
  font-size: 1.5rem;
  margin-right: 10px;
  vertical-align: middle;
}

/* ========== Consultation Section ========== */
.consultation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.consultation-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.consultation-card:hover {
  transform: translateY(-5px);
}

.consultation-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* ========== Education Section ========== */
.education-item {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.education-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(210, 176, 144, 0.2);
}

.service-bg {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.7;
  z-index: 0;
  transition: all 0.4s ease;
}

.bg-1 {
  top: -50px;
  right: -50px;
}

.bg-2 {
  bottom: -50px;
  left: -50px;
  opacity: 0.5;
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(129, 94, 61, 0.1);
}

.service-card:hover .bg-1 {
  transform: scale(1.1) rotate(5deg);
  opacity: 0.8;
}

.service-card:hover .bg-2 {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.6;
}

.service-content h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 8px;
  font-weight: 600;
}

.service-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.service-content p {
  color: var(--dark-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 15px;
}

/* ========== Contacts Section ========== */
#contacts {
  position: relative;
  overflow: hidden;
}

#contacts::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

#contacts::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -30px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.contacts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--light-color));
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.contact-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.contact-card p {
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-btn {
  display: inline-block;
  background: var(--white);
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
  background: var(--light-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ========== Footer ========== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  width: 200px;
  position: relative;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== Decorative Elements ========== */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(210, 176, 144, 0.3);
  z-index: 1;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

/* ========== Carousel ========== */
.diplomas-carousel {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(210, 176, 144, 0.9);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(210, 176, 144, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* ========== Mobile Button ========== */
.btn-zapis-mobile {
  display: none;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.btn-zapis-mobile:hover {
  background-color: var(--secondary-color);
  transform: translateY(-52%);
}

.nav-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========== Responsive: 992px ========== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ========== Responsive: 768px ========== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 20px;
  }

  .service-bg {
    width: 150px;
    height: 150px;
  }

  .bg-1 {
    top: -30px;
    right: -30px;
  }

  .bg-2 {
    bottom: -30px;
    left: -30px;
  }

  .service-content h3 {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero {
    padding: 150px 0 60px;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
    max-width: 300px;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 60px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .contacts-container {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 25px;
  }

  .diplomas-carousel {
    margin: 30px 10px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .btn-zapis-mobile {
    display: block;
  }

  .nav-toggle {
    right: 20px;
  }

  .btn-zapis-mobile {
    right: 70px;
  }
}

/* ========== Responsive: 576px ========== */
@media (max-width: 576px) {
  .hero {
    padding: 120px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .services-table {
    display: block;
    overflow-x: auto;
  }

  .consultation-cards {
    grid-template-columns: 1fr;
  }

  .btn-zapis-mobile {
    right: 60px;
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    right: 15px;
  }

  .btn-zapis-mobile {
    right: 60px;
  }
}

/* ========== Responsive: 400px ========== */
@media (max-width: 400px) {
  .btn-zapis-mobile {
    right: 55px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .nav-toggle {
    right: 12px;
  }
}

/* ========== Premium Pastel Redesign (overrides base styles) ========== */
:root {
  --primary-color: #a87987;
  --secondary-color: #625160;
  --light-color: #f7f2ed;
  --dark-color: #443d43;
  --rose: #e8c6c8;
  --sage: #c8d2c2;
  --sky: #c9d8e3;
  --lavender: #d7cee2;
  --peach: #efd0bf;
  --butter: #eee1bd;
  --cream: #fbf8f4;
  --line: rgba(98, 81, 96, 0.13);
  --shadow: 0 18px 60px rgba(79, 61, 70, 0.11);
  --transition: all 0.35s cubic-bezier(0.2, 0.75, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 8% 22%, rgba(232, 198, 200, 0.25), transparent 25rem),
    radial-gradient(circle at 94% 55%, rgba(201, 216, 227, 0.28), transparent 28rem),
    var(--cream);
  color: var(--dark-color);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.container {
  max-width: 1240px;
  padding-inline: clamp(20px, 4vw, 48px);
}

header {
  padding: 13px 0;
  background: rgba(251, 248, 244, 0.82);
  border-bottom: 1px solid rgba(98, 81, 96, 0.09);
  box-shadow: 0 8px 35px rgba(71, 55, 64, 0.06);
  backdrop-filter: blur(18px) saturate(130%);
}

.logo {
  width: 138px;
}

.logo img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(8%) saturate(883%) hue-rotate(277deg) brightness(93%);
}

.nav-menu {
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.nav-link {
  color: var(--secondary-color);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #fff;
  background: var(--primary-color);
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 145px 0 80px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.72) 0 9%, transparent 9.2%),
    radial-gradient(circle at 89% 76%, rgba(238, 225, 189, 0.72) 0 11%, transparent 11.2%),
    linear-gradient(135deg, #eed4d2 0%, #f3dfcf 34%, #dfe5d9 67%, #d4e2e7 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.68;
}

.hero::before {
  width: 180px;
  height: 180px;
  left: -55px;
  top: 28%;
  background: var(--lavender);
}

.hero::after {
  width: 100px;
  height: 100px;
  right: 43%;
  bottom: 8%;
  background: var(--peach);
}

.hero-container {
  gap: clamp(40px, 7vw, 96px);
}

.hero-content {
  max-width: 610px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #765c69;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-title,
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.025em;
}

.hero-title {
  color: #4f414b;
  font-size: clamp(4rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 0.88;
  margin-bottom: 18px;
  text-shadow: none;
}

.hero-subtitle {
  display: inline-block;
  margin-bottom: 24px;
  color: #7f6370;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 660px;
  color: #554d53;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.85;
  text-shadow: none;
}

.hero-actions {
  margin-top: 28px;
}

.btn,
.btn-zapis,
.btn-zapis-mobile,
.contact-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-zapis {
  padding: 15px 28px;
  background: #66515e;
  box-shadow: 0 12px 30px rgba(98, 81, 96, 0.24);
}

.btn {
  padding: 15px 28px;
  color: #66515e;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(98, 81, 96, 0.16);
}

.btn:hover,
.btn-zapis:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(98, 81, 96, 0.18);
}

.btn:hover {
  color: #fff;
  background: var(--primary-color);
}

.btn-zapis:hover {
  background: #4f414b;
}

.hero-image {
  position: relative;
  flex: 0 1 455px;
  max-width: 455px;
  border: 10px solid rgba(255, 255, 255, 0.68);
  border-radius: 220px 220px 52px 52px;
  overflow: visible;
  box-shadow: 0 30px 80px rgba(84, 65, 75, 0.2);
}

.hero-image::after {
  content: "бережно • честно • научно";
  position: absolute;
  right: -34px;
  bottom: 32px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(98, 81, 96, 0.12);
  border-radius: 50%;
  color: #66515e;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 16px 45px rgba(78, 61, 70, 0.14);
  backdrop-filter: blur(12px);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.hero-image img {
  border-radius: 210px 210px 43px 43px;
  min-height: 555px;
  object-fit: cover;
  object-position: center top;
}

.section {
  padding: 110px 0;
}

.section-title {
  margin-bottom: 58px;
  color: #564651;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
}

.section-title::after {
  width: 44px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--primary-color), #c5a5ad);
}

#services {
  background: rgba(244, 237, 232, 0.72) !important;
}

#services > .container > .service-card {
  max-width: 780px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #f1d7d7, #ede0d5);
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.service-card {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(76, 61, 69, 0.07);
}

.services-grid .service-card:nth-child(4n + 1) {
  background: #e8d6dc;
}
.services-grid .service-card:nth-child(4n + 2) {
  background: #dce5d8;
}
.services-grid .service-card:nth-child(4n + 3) {
  background: #dbe5ec;
}
.services-grid .service-card:nth-child(4n) {
  background: #eee0c5;
}

.service-card:hover {
  transform: translateY(-7px) rotate(-0.35deg);
  box-shadow: 0 24px 54px rgba(76, 61, 69, 0.12);
}

.service-content h3 {
  color: #584752;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.05;
}

.service-content h3::after {
  width: 28px;
  background: #9f7684;
}

.service-content p {
  max-width: 440px;
  color: #5c5359;
  line-height: 1.7;
}

.service-bg {
  opacity: 0.25;
  filter: saturate(0.6);
}

#my_work {
  background: linear-gradient(135deg, #d8e1d3, #e7dfeb);
}

#my_work .container {
  max-width: 1020px;
  padding: clamp(38px, 7vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

#my_work .section-title {
  margin-bottom: 40px;
}

#my_work .hero-text {
  margin-inline: auto;
  font-size: 1.03rem;
}

.consultation-section {
  background: #f8f2ec !important;
}

.consultation-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.consultation-card {
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(76, 61, 69, 0.08);
}

.consultation-card:nth-child(1) {
  background: linear-gradient(155deg, #dce6ed, #f8f5f0 65%);
}
.consultation-card:nth-child(2) {
  background: linear-gradient(155deg, #ead8dd, #f8f5f0 65%);
}
.consultation-card:nth-child(3) {
  background: linear-gradient(155deg, #dce5d7, #f8f5f0 65%);
}

.consultation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(76, 61, 69, 0.13);
}

.consultation-title,
.education-title {
  color: #574650;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.consultation-card p {
  margin-top: 15px;
  color: #655c62;
}

.consultation-card p:last-child strong,
.consultation-card p:last-child {
  color: #765c69;
}

#education {
  background: linear-gradient(180deg, #f9f5f0, #f3edf3);
}

.education-item {
  max-width: 880px;
  margin: 0 auto 16px;
  padding: 28px 34px 28px 82px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.education-item::before {
  content: "✓";
  position: absolute;
  left: 28px;
  top: 30px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #9b7a88;
  font-size: 0.8rem;
}

.education-title {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.diplomas-carousel {
  max-width: 880px;
  margin-top: 55px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.carousel-caption {
  padding: 18px;
  background: linear-gradient(transparent, rgba(63, 48, 58, 0.82));
  font-size: 0.85rem;
}

.carousel-btn {
  color: #5e4a57;
  box-shadow: 0 8px 20px rgba(62, 47, 56, 0.15);
}

.carousel-dot {
  background: #d8cbd1;
}

.carousel-dot.active {
  background: #956f7d;
}

#contacts {
  background:
    radial-gradient(circle at 18% 25%, rgba(232, 198, 200, 0.24), transparent 26rem),
    radial-gradient(circle at 83% 72%, rgba(201, 216, 227, 0.17), transparent 24rem),
    #51434e !important;
}

#contacts .section-title {
  color: #fff !important;
}

.contacts-container {
  max-width: 820px;
  margin-inline: auto;
}

.contact-card {
  padding: 38px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card::before {
  background: linear-gradient(90deg, var(--rose), var(--sky), var(--sage));
}

.contact-icon {
  background: rgba(255, 255, 255, 0.12);
}

.contact-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.contact-btn {
  color: #594852;
  background: #fffaf6;
}

.contact-btn:hover {
  color: #fff;
  background: #a87987;
}

/* ===== Redesign responsive: 900px ===== */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-image {
    order: -1;
    width: min(82vw, 390px);
  }

  .hero-image img {
    min-height: 470px;
  }

  .consultation-cards {
    grid-template-columns: 1fr;
  }

  .consultation-card {
    min-height: 0;
  }
}

/* ===== Redesign responsive: 768px ===== */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .logo {
    width: 112px;
  }

  .nav-toggle {
    color: #65515e;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    width: auto;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-link {
    text-align: center;
  }

  .btn-zapis-mobile {
    color: #fff;
    background: #66515e;
    border: 0;
  }

  .hero {
    padding: 118px 0 70px;
  }

  .hero-title {
    font-size: clamp(3.3rem, 14vw, 5rem);
  }

  .hero-image::after {
    right: -12px;
    width: 96px;
    height: 96px;
    font-size: 0.88rem;
  }

  .section {
    padding: 78px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 180px;
  }

  #my_work {
    padding-inline: 14px;
  }

  #my_work .container {
    border-radius: 30px;
  }
}

/* ===== Redesign responsive: 520px ===== */
@media (max-width: 520px) {
  .hero-text {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-zapis {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .hero-image img {
    min-height: 400px;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .service-card {
    padding: 26px;
    border-radius: 24px;
  }

  .education-item {
    padding: 70px 24px 26px;
  }

  .education-item::before {
    left: 24px;
    top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
