/* VitaWay Dental — Monochrome Bold */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --text: #0a0a0a;
  --text-muted: #555555;
  --border: #d0d0d0;
  --accent-rgb: 230, 57, 70;
  --bg-rgb: 255, 255, 255;
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--text);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--text);
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding-top: 100px;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 20px 0;
  border-bottom: 2px solid var(--surface);
  width: 80%;
  text-align: center;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: 'VITAWAY';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--heading-font);
  font-size: 18vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  color: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  filter: grayscale(0.3);
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: -1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 36px;
  min-height: 52px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS (общие стили)
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
  padding-left: 56px;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 40px;
  height: 6px;
  background: var(--accent);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
}

/* Diagonal accent lines on select sections */
.section-shapes {
  position: relative;
}

.section-shapes::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 200px;
  height: 400px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(var(--accent-rgb), 0.08) 20px,
    rgba(var(--accent-rgb), 0.08) 26px
  );
  pointer-events: none;
  z-index: 0;
}

.section-dark {
  background: var(--text);
  color: var(--bg);
}

.section-dark .section-header::before {
  background: var(--accent);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}

.section-surface {
  background: var(--surface);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-card {
  border: 2px solid var(--text);
  padding: 0;
  transition: border-color var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter var(--transition);
}

.service-card:hover .service-card-img {
  filter: grayscale(0);
}

.service-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.service-price {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: flex;
  gap: 0;
  justify-content: center;
}

.team-card {
  border: 2px solid var(--text);
  text-align: center;
  transition: border-color var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
  flex: 1;
  max-width: 400px;
}

.team-card:hover {
  border-color: var(--accent);
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--transition);
}

.team-card:hover img {
  filter: grayscale(0);
}

.team-card-body {
  padding: 24px 20px;
  border-top: 2px solid var(--text);
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card .role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.team-card .specialization {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.review-card {
  border: 2px solid var(--text);
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition);
}

.review-card:hover {
  border-color: var(--accent);
}

.review-card::before {
  content: '\201C';
  font-family: var(--heading-font);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
}

.review-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--text);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.gallery-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--text);
  color: var(--bg);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'VITAWAY';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--heading-font);
  font-size: 12vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  color: var(--bg);
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACTS
   ============================================ */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
}

.contact-list .contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--text);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.contact-list li:hover .contact-icon {
  border-color: var(--accent);
}

.contact-list a {
  transition: color var(--transition);
}

.contact-list a:hover {
  color: var(--accent);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.map-container {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px solid var(--text);
  background: var(--surface);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   UTP / ADVANTAGES
   ============================================ */
.utp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.utp-card {
  border: 2px solid var(--text);
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition);
}

.utp-card:hover {
  border-color: var(--accent);
}

.utp-card .utp-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.utp-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 48px 0 24px;
  border-top: 6px solid var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ============================================
   STICKY CTA BAR
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--accent);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  padding: 10px 24px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sticky-cta a:hover {
  text-decoration: underline;
}

/* ============================================
   PAGE HEADER (внутренние страницы)
   ============================================ */
.page-header {
  background: var(--text);
  color: var(--bg);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--heading-font);
  font-size: 15vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  color: var(--bg);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-photo {
    order: 0;
  }

  .hero-photo::before {
    display: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    padding-left: 48px;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    max-width: 100%;
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .utp-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    min-height: 48px;
    padding: 14px 28px;
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .service-number {
    font-size: 2.5rem;
  }
}

/* ============================================
   TEXT SAFETY
   ============================================ */
.service-card,
.team-card,
.hero h1,
.section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */
.service-card:hover .service-number {
  color: var(--accent-hover);
}

.utp-card:hover .utp-number {
  color: var(--accent-hover);
}

/* Pseudo-element decorations */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width var(--transition);
}

.service-card:hover::after {
  width: 100%;
}
