/* ============================================
   DENTOS.STOM — Monochrome Bold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --surface: #f2f2f2;
  --accent: #e63946;
  --accent-rgb: 230, 57, 70;
  --accent-hover: #ff4d5a;
  --text: #0a0a0a;
  --text-rgb: 10, 10, 10;
  --text-muted: #555555;
  --border: #d0d0d0;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --base-size: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 0px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
  max-width: 65ch;
  line-height: 1.7;
}

/* --- Text safety --- */
.service-card,
.team-card,
.hero h1,
.section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--text);
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.nav-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-contacts .btn {
  font-size: 0.8rem;
  padding: 10px 20px;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 32px;
  min-height: 44px;
  border: 2px solid var(--text);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--white {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.btn--white:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg);
  overflow: hidden;
}

/* Декор: крупный текст-повтор */
.hero::before {
  content: 'DENTOS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal accent line decoration */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 300px;
  height: 6px;
  background: var(--accent);
  transform: rotate(-45deg);
  opacity: 0.08;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(100%);
  border: 2px solid var(--text);
  transition: filter var(--transition);
}

.hero-photo:hover img {
  filter: grayscale(0%);
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--accent);
  z-index: -1;
}

/* ============================================
   SECTIONS — Common
   ============================================ */
.section {
  position: relative;
  padding: 100px 0;
}

.section--surface {
  background: var(--surface);
}

/* Accent divider left of every section */
.section::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 24px;
  width: 6px;
  height: 40px;
  background: var(--accent);
  z-index: 2;
}

/* Diagonal line decoration on sections */
.section::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -3%;
  width: 200px;
  height: 6px;
  background: var(--accent);
  transform: rotate(-45deg);
  opacity: 0.08;
  pointer-events: none;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-header .accent-line {
  width: 40px;
  height: 6px;
  background: var(--accent);
  margin-bottom: 20px;
}

/* ============================================
   SERVICES — Cards with minimal border
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card:hover .service-card__img img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-card__img {
  height: 220px;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
  transition: all var(--transition);
}

.service-card__body {
  padding: 24px;
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   TEAM — Single row, B&W → color hover
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card__photo {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: var(--radius);
}

.team-card__photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.team-card:hover .team-card__photo img {
  filter: grayscale(0%);
}

.team-card:hover .team-card__photo {
  border-color: var(--accent);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-card__exp {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================
   GALLERY — 2 col grid, grayscale hover
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all var(--transition);
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
}

/* ============================================
   CTA — Inline sections
   ============================================ */
.cta-section {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'DENTOS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 12vw;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-item {
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
}

.contact-item__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-item__label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-item__value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-item__value a {
  color: var(--text);
  transition: color var(--transition);
}

.contact-item__value a:hover {
  color: var(--accent);
}

/* ============================================
   MAP
   ============================================ */
.map-wrapper {
  margin-top: 48px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.map-wrapper:hover iframe {
  filter: grayscale(0%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
  border-top: 6px solid var(--accent);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================
   SERVICES PAGE — Full listing
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 24px;
  width: 6px;
  height: 40px;
  background: var(--accent);
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -3%;
  width: 200px;
  height: 6px;
  background: var(--accent);
  transform: rotate(-45deg);
  opacity: 0.08;
  pointer-events: none;
}

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-full-card {
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-full-card:hover {
  border-color: var(--accent);
}

.service-full-card__img {
  height: 280px;
  overflow: hidden;
}

.service-full-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: all var(--transition);
}

.service-full-card:hover .service-full-card__img img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.service-full-card__body {
  padding: 32px;
}

.service-full-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.service-full-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   COUNTERS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 0;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  margin: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-item__label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(var(--bg-rgb), 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid,
  .services-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gallery-grid {
    gap: 16px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-photo img {
    height: 350px;
  }

  .hero-photo::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
  }

  .services-grid,
  .services-full-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-card__photo img {
    height: 320px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 280px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section::before {
    top: 40px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-photo img {
    height: 280px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-card__img {
    height: 180px;
  }

  .service-full-card__img {
    height: 200px;
  }
}
