/* ===== CONTACTS — corporate gradient, larger type, prominent CTA ===== */

.page-header--contacts {
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-light) 55%, var(--teal-bg) 100%);
  border-bottom: 1px solid rgba(169, 202, 214, 0.25);
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-header--contacts::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(169, 202, 214, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-header--contacts .page-header-bg,
.page-header--contacts picture.page-header-bg {
  display: none;
}

.contacts-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contacts-crumbs a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.contacts-crumbs a:hover { text-decoration: underline; }
.contacts-crumbs span { margin: 0; color: inherit; }

.contacts-eyebrow {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-header--contacts h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--dark);
}

.contacts-lead {
  margin: 0;
  max-width: 700px;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.85;
}

.contacts-hero-cta {
  display: inline-flex;
  margin-top: 24px;
}

.contacts-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.contacts-address svg {
  color: var(--teal);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* CTA button overrides for contacts page */
.page-header--contacts .btn-primary,
.contacts-hero-cta {
  background: linear-gradient(135deg, var(--teal-bg) 0%, #8bb8d0 100%);
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(169, 202, 214, 0.45);
  font-weight: 800;
  border: none;
}
.page-header--contacts .btn-primary:hover,
.contacts-hero-cta:hover {
  background: linear-gradient(135deg, #93bccf 0%, #7ab0c8 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(169, 202, 214, 0.6);
}

/* ===== CONTACT LAYOUT ===== */
.contacts-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 72px;
  align-items: start;
}

.contacts-main { min-width: 0; }

.contacts-page-layout section {
  padding: 0;
  overflow: visible;
  background: none;
  position: static;
}

.contacts-eyebrow {
  overflow: visible;
}

.map-section { margin-top: 0; }
.contact-cards-section,
.contacts-photo-block,
.route-section {
  margin-top: 40px;
}

.map-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(169, 202, 214, 0.3);
}

.map-section-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.map-section-header h2,
.contacts-section-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.contacts-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(169, 202, 214, 0.3);
}

.route-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.route-btn--outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.route-btn--outline:hover {
  background: var(--primary);
  color: var(--primary-ink);
  transform: translateY(-2px);
}

/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(169, 202, 214, 0.2);
}
.map-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
}

/* Contact cards */
.contact-cards-section {
  display: block;
  margin-top: 40px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(169, 202, 214, 0.2);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-hover);
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal-bg);
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-bg) 100%);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-content {
  min-width: 0;
  flex: 1;
}
.contact-card-content h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
}
.contact-card-value {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  overflow-wrap: anywhere;
}
.contact-card-sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.contact-card .route-btn {
  margin-top: 10px;
}

/* Clinic photos */
.clinic-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.clinic-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(169, 202, 214, 0.15);
}
.clinic-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.clinic-photo:hover img {
  transform: scale(1.03);
}

/* Transit info */
.transit-list { list-style: none; padding: 0; margin: 0; }
.transit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(169, 202, 214, 0.15);
  margin-bottom: 12px;
  transition: var(--transition);
}
.transit-item:hover {
  border-color: var(--teal-bg);
  box-shadow: var(--shadow-card);
}
.transit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-bg) 100%);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transit-icon svg { width: 22px; height: 22px; }
.transit-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 6px;
}
.transit-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Requisites */
.requisites {
  margin-top: 40px;
  padding: 24px;
  background: var(--teal-light);
  border-radius: var(--radius);
  border: 1px solid rgba(169, 202, 214, 0.3);
}
.requisites h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}
.requisite-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--dark);
}
.requisite-label { font-weight: 700; min-width: 160px; }
.requisite-value { font-weight: 500; }
.requisite-note {
  font-size: 1rem;
  margin-top: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Sidebar */
.contacts-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contacts-sidebar .sidebar-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(169, 202, 214, 0.2);
  box-shadow: var(--shadow-card);
}
.contacts-sidebar .sidebar-block h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}
.contacts-sidebar .sidebar-desc {
  margin: 0 0 16px;
}

.social-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}
.contacts-sidebar .social-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.contacts-sidebar .social-links a.social-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--dark);
  padding: 10px 16px;
  box-sizing: border-box;
  transition: var(--transition-hover);
  border: 1px solid rgba(169, 202, 214, 0.28);
  text-decoration: none;
  overflow: visible;
  white-space: nowrap;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.contacts-sidebar .social-links a.social-link span {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.contacts-sidebar .social-links a.social-link:hover {
  background: var(--teal-bg);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.contacts-sidebar .social-links a.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Feedback form */
.feedback-form { margin-top: 8px; }
.feedback-form .form-group { margin-bottom: 20px; }
.feedback-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(169, 202, 214, 0.3);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
}
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--teal-bg);
  box-shadow: 0 0 0 4px rgba(169, 202, 214, 0.2);
}
.feedback-form .btn {
  width: 100%;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.feedback-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(169, 202, 214, 0.45);
}

/* Promo bar */
.promo-bar {
  margin-top: 48px;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--dark) 0%, #2c3035 100%);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(169, 202, 214, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.promo-bar h3 {
  position: relative;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.promo-bar p {
  position: relative;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.promo-bar .btn {
  background: linear-gradient(135deg, var(--teal-bg) 0%, #8bb8d0 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(169, 202, 214, 0.45);
}
.promo-bar .btn:hover {
  background: linear-gradient(135deg, #93bccf 0%, #7ab0c8 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(169, 202, 214, 0.6);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, #1a1d21 0%, var(--dark) 100%);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 40px;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--teal-bg); }
.footer-contact {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.footer-contact a { color: rgba(255,255,255,0.9); font-weight: 600; }
.footer-contact a:hover { color: var(--teal-bg); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contacts-page-layout { grid-template-columns: 1fr; gap: 32px; padding: 24px 20px 60px; }
  .promo-bar { padding: 28px 20px; }
}

@media (max-width: 768px) {
  :root { --font-base: 18px; --radius: 12px; --radius-sm: 8px; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .header-phone { font-size: 1.05rem; padding: 6px 12px; }
  .header-phone svg { width: 20px; height: 20px; }
  .header-actions .btn-sm { padding: 10px 18px; font-size: 0.9rem; }
  .hero-inner { padding: 70px 16px 50px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .service-hero { padding: 50px 0 60px; }
  .contacts-page-layout { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .clinic-photos { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --font-base: 17px; }
  .container, .container-fluid, .container-1440 { padding: 0 16px; }
  .hero-brand { font-size: 28px; }
  .hero--bleed h1 { font-size: 28px; }
  .service-hero h1 { font-size: 30px; }
  .page-header--contacts h1,
  .page-header--prices h1,
  .page-header--articles h1 { font-size: 30px; }
  .cta-form h2 { font-size: 26px; }
  .btn-large { padding: 18px 28px; font-size: 1rem; }
}

/* Contacts photo grid — figures used in "Как нас найти" */
.contacts-photo-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}
.contacts-photo-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(169, 202, 214, 0.15);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.contacts-photo-item picture {
  display: block;
  flex: 1;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.contacts-photo-item img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.contacts-photo-item figcaption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.5;
  border-top: 1px solid rgba(169, 202, 214, 0.15);
}
@media (max-width: 768px) {
  .contacts-photo-grid {
    grid-template-columns: 1fr;
  }
}


/* Route cards — stacked in the main column */
.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
.route-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(169, 202, 214, 0.15);
  box-shadow: var(--shadow-card);
}
.route-block > div {
  min-width: 0;
}
.route-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, #8bb8d0 100%);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(169, 202, 214, 0.35);
}
.route-block h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
.route-block p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dark);
  opacity: 0.8;
}
@media (max-width: 900px) {
  .route-grid {
    grid-template-columns: 1fr;
  }
}
