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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background: var(--gradient-hero-bg);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

/* Logo */
.hero__logo {
  margin-bottom: var(--spacing-xl);
}

.hero__logo img {
  height: 37px;
  width: auto;
}

/* Main Title */
.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.hero__title-wrapper {
  position: relative;
  display: inline-block;
}

.hero__title--uppercase {
  text-transform: uppercase;
}

/* Title Underline - anchored to MATEMATYKI text bottom */
.hero__title-underline {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  display: block;
}

.hero__title-underline svg {
  width: 100%;
  height: auto;
}

/* Yellow Tag */
.hero__tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-yellow);
  border: 1px solid #2D2D2D;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tag);
  padding: 6px 18px;
  margin-bottom: var(--spacing-2xl);
}

.hero__tag span {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

/* Benefits Section */
.hero__benefits {
  margin-bottom: var(--spacing-2xl);
}

.hero__benefits-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.hero__benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.hero__benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
}

.hero__benefit strong {
  font-weight: var(--font-weight-semibold);
}

.hero__benefit-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.hero__benefit-icon svg {
  width: 100%;
  height: 100%;
}

/* Partners Section */
.hero__partners {
  margin-bottom: var(--spacing-2xl);
}

/* Mobile: hide desktop partners, show mobile partners */
.hero__partners--desktop {
  display: none;
}

.hero__partners--mobile {
  display: block;
  margin-top: var(--spacing-2xl);
  width: 100%;
}

.hero__partners-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.hero__partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.hero__partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-500);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  min-height: 94px;
}

/* Mobile card sizing */
.hero__partner-card--trustpilot,
.hero__partner-card--facebook {
  width: calc(50% - 4px);
  max-width: 195px;
}

.hero__partner-card--miastko {
  width: 195px;
}

.hero__partner-logo {
  max-height: 20px;
  width: auto;
  object-fit: contain;
  margin-top: -5px;
}

.hero__partner-logo--miastko {
  max-height: 39px;
  max-width: 183px;
}

.hero__partner-logo--facebook {
  max-height: 87px;
  max-width: 168px;
}

.hero__partner-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--spacing-xs);
}

.hero__partner-stars img {
  height: 24px;
  width: auto;
}

.hero__partner-score {
  font-size: 6px;
  color: var(--color-gray-600);
  text-align: center;
}

.hero__partner-score strong {
  color: var(--color-text-primary);
}

.hero__partner-score u {
  color: var(--color-text-primary);
}

/* Hero Right Side */
.hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--spacing-2xl);
}

/* Image wrapper with decorations */
.hero__image-wrapper {
  position: relative;
  width: 220px;
  margin-bottom: -30px;
}

/* Decorations anchored to boy image */
.hero__decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Star emoji - left middle of boy */
.hero__decoration--star {
  width: 42px;
  height: auto;
  top: 44%;
  transform: translateY(-50%) rotate(7deg);
}

/* Scribble 1 - left bottom of boy */
.hero__decoration--scribble1 {
  width: 90px;
  bottom: 24px;
  left: -15px;
}

/* Scribble 2 - right middle of boy */
.hero__decoration--scribble2 {
  width: 122px;
  height: auto;
  top: 40%;
  right: -10px;
  transform: translateY(-50%);
}

/* Hero Image */
.hero__image {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 166px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* Form Card */
.hero__form-card {
  position: relative;
  z-index: 3;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-xl);
  width: 100%;
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.hero__form-group {
  width: 100%;
}

.hero__input {
  width: 100%;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 8px 11px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
}

.hero__input::placeholder {
  color: var(--color-text-placeholder);
}

.hero__input:focus {
  outline: 2px solid var(--color-primary-purple);
  outline-offset: -2px;
}

.hero__phone-input {
  display: flex;
  align-items: center;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__phone-flag {
  padding-left: 11px;
  font-size: var(--font-size-lg);
  width: 85px;
}

.hero__input--phone {
  background-color: transparent;
  padding-left: var(--spacing-sm);
}

.hero__submit-btn {
  width: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  padding: 8px var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-align: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
  line-height: var(--line-height-normal);
  white-space: nowrap;
}

.hero__submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero__submit-btn:active {
  transform: translateY(0);
}

.hero__submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  margin: auto;
  display: block;
}

.loader:before,
.loader:after {
  content: '';
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
  box-shadow: 0 2px 0 var(--color-primary-purple) inset;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================
   TABLET STYLES (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .hero__tag span {
    font-size: var(--font-size-xl);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__form-card {
    max-width: 350px;
  }
}

/* ==========================================
   DESKTOP STYLES (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .hero__container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px 40px;
    gap: 40px;
  }

  .hero__content {
    flex: 1;
    max-width: 548px;
    padding-top: 0;
  }

  .hero__logo {
    margin-bottom: 35px;
  }

  .hero__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
  }

  .hero__title-underline {
    bottom: -13px;
  }

  .hero__tag {
    padding: 5px 18px;
    margin-bottom: var(--spacing-xl);
  }

  .hero__tag span {
    font-size: var(--font-size-xl);
  }

  .hero__benefits {
    margin-bottom: var(--spacing-xl);
  }

  .hero__benefits-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
  }

  .hero__benefit {
    font-size: var(--font-size-base);
  }

  /* Desktop: show desktop partners, hide mobile partners */
  .hero__partners--desktop {
    display: block;
  }

  .hero__partners--mobile {
    display: none;
  }

  .hero__partners-title {
    font-size: var(--font-size-base);
    text-align: left;
  }

  .hero__partners-logos {
    gap: 8px;
    justify-content: flex-start;
  }

  .hero__partner-card {
    min-width: 132px;
    min-height: 64px;
    width: auto;
    max-width: none;
  }

  .hero__partner-card--trustpilot,
  .hero__partner-card--facebook,
  .hero__partner-card--miastko {
    width: auto;
    max-width: none;
  }

  .hero__partner-logo--miastko {
    max-height: 26px;
    max-width: 110px;
  }

  .hero__partner-logo--facebook {
    max-height: 50px;
    max-width: 100px;
  }

  .hero__partner-stars img {
    height: 17px;
  }

  /* Right Side */
  .hero__right {
    position: relative;
    flex: 0 0 auto;
    width: 340px;
    margin-top: 20px;
    align-items: center;
  }

  .hero__image-wrapper {
    margin-bottom: -40px;
  }

  /* Star emoji - left middle of boy */
  .hero__decoration--star {
    width: 42px;
    top: 44%;
    transform: translateY(-50%) rotate(7deg);
  }

  /* Scribble 1 - left bottom of boy */
  .hero__decoration--scribble1 {
    width: 90px;
    bottom: 24px;
    left: -15px;
  }

  /* Scribble 2 - right middle of boy */
  .hero__decoration--scribble2 {
    width: 122px;
    top: 40%;
    right: -10px;
    transform: translateY(-50%);
  }

  .hero__image {
    width: 220px;
    height: 166px;
    z-index: 2;
    overflow: hidden;
  }

  .hero__form-card {
    max-width: 317px;
    padding: 23px 20px;
  }

  .hero__input {
    height: 36px;
  }

  .hero__submit-btn {
    height: 36px;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================
   WIDE DESKTOP STYLES (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .hero__container {
    padding: 18px 65px;
  }

  .hero__content {
    max-width: 600px;
  }

  .hero__right {
    width: 450px;
    margin-right: 40px;
  }

  .hero__decoration--scribble2 {
    right: -10px;
  }
}

/* ==========================================
   TEACHERS SECTION
   ========================================== */

.teachers {
  padding: var(--spacing-4xl) var(--spacing-lg);
  background: var(--color-white);
}

.teachers__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.teachers__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.teachers__grid {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.teachers__grid::-webkit-scrollbar {
  display: none;
}

/* Teacher Card */
.teacher-card {
  flex: 0 0 254px;
  min-width: 254px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  height: 338px;
}

.teacher-card__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.teacher-card__image img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-md) var(--spacing-lg);
}

.teacher-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.teacher-card__stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.teacher-card__stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.teacher-card__icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.teacher-card__icon--star {
  width: 12px;
  height: 12px;
}

.teacher-card__icon--chart {
  width: 13px;
  height: 11px;
}

/* ==========================================
   TEACHERS SECTION - TABLET (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .teachers {
    padding: var(--spacing-3xl) var(--spacing-2xl);
  }

  .teachers__title {
    font-size: var(--font-size-2xl);
  }

  .teachers__grid {
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .teacher-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

/* ==========================================
   TEACHERS SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .teachers {
    padding: 50px 40px;
  }

  .teachers__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-3xl);
  }

  .teachers__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--spacing-xl);
    overflow-x: visible;
  }

  .teacher-card {
    flex: 0 0 254px;
    min-width: 254px;
    height: 338px;
  }

  .teacher-card__info {
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* ==========================================
   TEACHERS SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .teachers {
    padding: 60px 65px;
  }

  .teachers__grid {
    gap: 24px;
  }

  .teacher-card {
    flex: 0 0 254px;
  }
}

/* ==========================================
   PROGRAM SECTION
   ========================================== */

.program {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--gradient-hero-bg);
  border: 1px solid var(--color-border-light);
}

.program__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.program__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.program__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Program Card */
.program-card {
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
}

.program-card__avatar {
  width: 69px;
  height: 69px;
  margin: 0 auto var(--spacing-xl);
  border-radius: 50%;
  border: 1px solid var(--color-black);
  overflow: hidden;
}

.program-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-normal);
}

.program-card__description {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-relaxed);
}

/* ==========================================
   PROGRAM SECTION - TABLET (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .program {
    padding: var(--spacing-3xl) var(--spacing-2xl);
  }

  .program__title {
    text-align: center;
    text-transform: none;
  }

  .program__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

/* ==========================================
   PROGRAM SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .program {
    padding: 50px 40px;
  }

  .program__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-3xl);
  }

  .program__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
  }

  .program-card {
    padding: var(--spacing-2xl);
    text-align: center;
  }

  .program-card__description {
    text-align: left;
  }
}

/* ==========================================
   PROGRAM SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .program {
    padding: 60px 65px;
  }

  .program__grid {
    gap: 22px;
    max-width: 970px;
  }

  .program-card {
    max-width: 462px;
  }
}

/* ==========================================
   DIAGNOSTIC SECTION
   ========================================== */

.diagnostic {
  background: var(--color-yellow);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--spacing-3xl) var(--spacing-lg);
}

.diagnostic__container {
  position: relative;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.diagnostic__content {
  position: relative;
  z-index: 2;
}

.diagnostic__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-xl);
  color: var(--color-black);
}

.diagnostic__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.diagnostic__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.diagnostic__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.diagnostic__item span {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-normal);
}

.diagnostic__cta {
  width: 100%;
  max-width: 373px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-full);
  padding: 10px var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diagnostic__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.diagnostic__images {
  position: relative;
  height: 260px;
  margin-top: var(--spacing-2xl);
}

.diagnostic__image {
  position: absolute;
  object-fit: contain;
}

.diagnostic__image--teacher {
  width: 400px;
  height: auto;
  bottom: -19px;
  left: -58px;
  transform: scaleY(-1) rotate(180deg);
  z-index: 1;
  filter: grayscale(1);
}

.diagnostic__image--tablet {
  width: 236px;
  height: auto;
  bottom: 20px;
  left: 54%;
  transform: translateX(-50%);
}

.diagnostic__image--schoolboy {
  height: auto;
  bottom: -90px;
  right: -135px;
  filter: grayscale(1);
}

/* ==========================================
   DIAGNOSTIC SECTION - TABLET (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .diagnostic {
    margin: var(--spacing-3xl) var(--spacing-2xl);
  }

  .diagnostic__container {
    padding: var(--spacing-2xl);
  }

  .diagnostic__title {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================
   DIAGNOSTIC SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .diagnostic {
    margin: 50px 40px;
  }

  .diagnostic__container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 283px;
  }

  .diagnostic__content {
    flex: 1;
    max-width: 560px;
    padding: var(--spacing-2xl) var(--spacing-3xl);
  }

  .diagnostic__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
  }

  .diagnostic__list {
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
  }

  .diagnostic__item span {
    font-size: var(--font-size-base);
  }

  .diagnostic__cta {
    max-width: 343px;
    padding: 10px var(--spacing-lg);
  }

  .diagnostic__images {
    position: relative;
    flex: 0 0 420px;
    height: 283px;
    margin-top: 0;
    margin-left: 0;
    overflow: visible;
  }

  .diagnostic__image--teacher {
    width: 450px;
    left: -75px;
    bottom: -34px;
    z-index: 1;
    filter: grayscale(1);
  }

  .diagnostic__image--tablet {
    width: 293px;
    bottom: 7px;
    left: 110px;
    transform: none;
  }

  .diagnostic__image--schoolboy {
    width: 500px;
    right: -205px;
    bottom: -135px;
    filter: grayscale(1);
  }

  .diagnostic__decoration {
    width: 63px;
    top: -9px;
    left: 60px;
    transform: none;
  }
}

/* ==========================================
   DIAGNOSTIC SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .diagnostic {
    margin: 60px 65px;
    max-width: calc(var(--container-max-width) - 130px);
    margin-left: auto;
    margin-right: auto;
  }

  .diagnostic__content {
    max-width: 600px;
    padding: var(--spacing-3xl) 50px;
  }

  .diagnostic__images {
    flex: 0 0 450px;
  }
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */

.reviews {
  background: var(--gradient-hero-bg);
  padding: var(--spacing-2xl) var(--spacing-lg);
  overflow: hidden;
}

.reviews__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.reviews__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.reviews__carousel-wrapper {
  position: relative;
}

.reviews__carousel {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--spacing-md);
}

.reviews__carousel::-webkit-scrollbar {
  display: none;
}

/* Review Card */
.review-card {
  flex: 0 0 296px;
  min-width: 296px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.review-card__header {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__avatar span {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

/* Avatar color variants */
.review-card__avatar--green {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
}

.review-card__avatar--orange {
  background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
}

.review-card__avatar--blue {
  background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

.review-card__avatar--purple {
  background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%);
}

.review-card__avatar--teal {
  background: linear-gradient(135deg, #80deea 0%, #4dd0e1 100%);
}

.review-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.review-card__stars {
  height: 16px;
  width: 83px;
  overflow: hidden;
}

.review-card__stars img {
  height: 100%;
  width: auto;
}

.review-card__verified {
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-card__check-icon {
  width: 11px;
  height: 11px;
}

.review-card__verified span {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  font-weight: var(--font-weight-medium);
}

.review-card__google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.review-card__text {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-normal);
  flex: 1;
  margin-bottom: var(--spacing-sm);
}

.review-card__divider {
  height: 1px;
  background-color: #d9d9d9;
  margin-bottom: var(--spacing-sm);
}

.review-card__date {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-normal);
}

/* Navigation Button */
.reviews__nav-btn {
  display: none;
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.reviews__nav-btn img {
  width: 100%;
  height: 100%;
}

/* ==========================================
   REVIEWS SECTION - TABLET (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .reviews {
    padding: var(--spacing-3xl) var(--spacing-2xl);
  }

  .reviews__title {
    text-align: center;
    text-transform: none;
  }

  .reviews__carousel {
    gap: var(--spacing-lg);
  }
}

/* ==========================================
   REVIEWS SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .reviews {
    padding: 55px 40px;
  }

  .reviews__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-2xl);
  }

  .reviews__carousel-wrapper {
    position: relative;
  }

  .reviews__carousel {
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-right: 60px;
  }

  .review-card {
    flex: 0 0 296px;
    min-width: 296px;
  }

  .reviews__nav-btn {
    display: block;
    right: 0;
  }
}

/* ==========================================
   REVIEWS SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .reviews {
    padding: 55px 65px;
  }

  .reviews__carousel {
    padding-right: 80px;
  }

  .reviews__nav-btn {
    right: 10px;
  }
}

/* ==========================================
   PROGRESS SECTION
   ========================================== */

.progress {
  background: var(--color-white);
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.progress__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.progress__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

.progress__graphic {
  width: 100%;
}

.progress__graphic img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   PROGRESS SECTION - TABLET (768px+)
   ========================================== */

@media screen and (min-width: 768px) {
  .progress {
    padding: var(--spacing-3xl) var(--spacing-2xl);
  }

  .progress__title {
    text-transform: uppercase;
  }

  .progress__graphic {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ==========================================
   PROGRESS SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .progress {
    padding: 60px 40px;
  }

  .progress__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-3xl);
    text-align: center;
  }

  .progress__graphic {
    max-width: 900px;
  }
}

/* ==========================================
   PROGRESS SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .progress {
    padding: 70px 65px;
  }

  .progress__graphic {
    max-width: 1000px;
  }
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta {
  background: var(--color-yellow);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.cta__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-lg);
}

.cta__button {
  display: inline-block;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-full);
  padding: 7px 41px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: var(--spacing-lg);
}

.cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta__note {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-normal);
  max-width: 388px;
  margin: 0 auto;
  text-align: left;
}

/* ==========================================
   CTA SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .cta {
    padding: 39px 40px;
  }

  .cta__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    max-width: 945px;
  }

  .cta__button {
    padding: 7px 41px;
    margin-bottom: var(--spacing-md);
  }

  .cta__note {
    max-width: 343px;
    text-align: left;
  }
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.footer {
  background: #151515;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footer__left {
  margin-bottom: var(--spacing-xl);
}

.footer__social {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer__social-link {
  display: block;
  width: 39px;
  height: 39px;
}

.footer__social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__link {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.8;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__contact-link {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer__contact-link:hover {
  opacity: 0.8;
}

.footer__hours {
  display: none;
}

.footer__hours p {
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: var(--line-height-normal);
}

/* ==========================================
   FOOTER SECTION - DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .footer {
    padding: 50px 40px;
  }

  .footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__left {
    margin-bottom: 0;
  }

  .footer__social {
    margin-bottom: var(--spacing-2xl);
  }

  .footer__right {
    align-items: flex-end;
    text-align: right;
  }

  .footer__contact {
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
  }

  .footer__hours {
    display: block;
  }

  .footer__hours p {
    text-align: right;
  }
}

/* ==========================================
   FOOTER SECTION - WIDE DESKTOP (1280px+)
   ========================================== */

@media screen and (min-width: 1280px) {
  .footer {
    padding: 50px 394px;
  }
}
