/*
Theme Name: Integritas v6
Theme URI: https://integritas.clinic/
Author: Integritas Clinic
Description: WordPress-тема, переносящая визуальную систему версии 6 клиники «Интегритас».
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: integritas-v6
*/

/* Основная визуальная система подключается отдельными файлами v6 из functions.php. */
.wp-site-blocks,
.entry-content {
  min-width: 0;
}

.integritas-page-content {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 112px);
}

.integritas-page-content > :first-child {
  margin-top: 0;
}

.integritas-page-content > :last-child {
  margin-bottom: 0;
}

/* Shared header links use the contact URLs already managed in Customizer. */
.site-header .header-socials {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.site-header .header-social-link {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #1e64a3;
}

.site-header .header-social-link svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.site-header .header-social-link:hover {
  color: #164c7c;
  background: #e6eef5;
}

.site-header .header-social-link:focus-visible {
  outline: 2px solid #1e64a3;
  outline-offset: 2px;
  background: #e6eef5;
}

@media (max-width: 600px) {
  .new-4 .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .new-4 .site-header > .brand,
  .new-4 .site-header > .brand img {
    width: clamp(128px, 40vw, 188px);
  }

  .new-4 .header-actions { gap: 8px; }
  .site-header .header-socials { gap: 0; }
}

@media (max-width: 620px) {
  .integritas-page-content {
    width: min(100% - 32px, 1120px);
    padding-block: 64px 88px;
  }
}
