/* ========================================
   ReHubCenter — Doctor business card site
   Premium medical style: teal + copper
   ======================================== */

:root {
  --teal-900: #0f3d3a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;
  --copper-700: #9a3412;
  --copper-600: #c2410c;
  --copper-500: #ea580c;
  --copper-100: #ffedd5;
  --warm-900: #1c1917;
  --warm-800: #292524;
  --warm-700: #44403c;
  --warm-600: #57534e;
  --warm-500: #78716c;
  --warm-200: #e7e5e4;
  --warm-100: #f5f5f4;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--warm-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent {
  color: var(--copper-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn--primary:hover {
  background: var(--teal-800);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--teal-800);
  border: 2px solid var(--teal-700);
}

.btn--outline:hover {
  background: var(--teal-50);
}

.btn--wide {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-200);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-900);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--copper-600);
}

.logo__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  position: relative;
  flex-shrink: 0;
}

.logo__icon::after {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border-radius: 50%;
  border: 2px solid var(--copper-500);
}

.logo--light {
  color: var(--white);
}

.logo--light .logo__icon {
  background: var(--white);
}

.logo--light .logo__icon::after {
  border-color: var(--copper-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--warm-700);
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper-500);
  transition: width 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--teal-800);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--accent {
  color: var(--copper-600);
  font-weight: 600;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--teal-800);
  font-size: 1rem;
}

.header__phone::before {
  content: '📞';
  font-size: 0.9rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--teal-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__meta {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--copper-100);
  margin-bottom: 1.5rem;
}

.hero__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__photo {
  display: flex;
  justify-content: center;
}

.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--warm-100);
}

.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--copper-500);
  opacity: 0.35;
  z-index: -1;
}

.hero__photo-frame img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll a {
  display: block;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  position: relative;
}

.hero__scroll a span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--copper-500);
  border-radius: 9999px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section:nth-child(even) {
  background: var(--teal-50);
}

.section__header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper-600);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--teal-900);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--warm-600);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text {
  font-size: 1.1rem;
  color: var(--warm-700);
}

.about__text p + p {
  margin-top: 1.25rem;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--copper-500);
}

.info-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card__title {
  font-size: 1.25rem;
  color: var(--teal-900);
  margin-bottom: 1rem;
}

.info-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--warm-700);
}

.info-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-500);
}

.info-card__text {
  color: var(--warm-700);
  line-height: 1.7;
}

.info-card__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-700);
}

/* Problems */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.problem-card h3 {
  font-size: 1.1rem;
  color: var(--teal-900);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--copper-100);
}

.problem-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.problem-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--warm-700);
}

.problem-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--copper-600);
  font-weight: 700;
}

/* Services */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.service-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--copper-500);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--warm-600);
}

/* Certificates */
.certificates__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.cert-card {
  position: relative;
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cert-card__thumb {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: var(--warm-100);
  padding: 0.5rem;
}

.cert-card__caption {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-900);
  line-height: 1.4;
  min-height: 4rem;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--warm-200);
}

.cert-card__year {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--copper-600);
  white-space: nowrap;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 58, 0.92);
  cursor: zoom-out;
}

.modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.modal__content p {
  margin-top: 1rem;
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--teal-900);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  transform: rotate(90deg);
  background: var(--copper-100);
}

/* Contacts */
.contacts {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.contacts__info .section__header {
  text-align: left;
  margin: 0 0 2rem;
}

.contacts__info .section__title,
.contacts__info .section__lead {
  text-align: left;
}

.contacts__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 2rem;
}

.contacts__phone::before {
  content: '📞';
}

.contacts__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-600);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--warm-700);
  line-height: 1.7;
}

.contacts__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 4px solid var(--copper-500);
}

.contacts__card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contacts__card h3 {
  font-size: 1.5rem;
  color: var(--teal-900);
  margin-bottom: 1rem;
}

.contacts__card p {
  color: var(--warm-600);
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  max-width: 460px;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--copper-100);
}

.footer__bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Responsive */
@media (max-width: 1024px) {
  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .certificates__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 768px) {
  .header__phone {
    display: none;
  }

  .nav {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4.5rem);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 1.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .burger {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__photo-frame img {
    max-width: 320px;
  }

  .problems__grid,
  .services__grid,
  .certificates__grid {
    grid-template-columns: 1fr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .section {
    padding: 4rem 0;
  }
}
