/*--------------------------------------------------------------
# Custom Header (Эвита) — адаптив с плавными шрифтами
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Open Sans', sans-serif;
    overflow-x: clip !important;
}

/* === HEADER === */
.site-header {
	background-color: #ccb6ac;
	padding: 16px 0;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	left: 0;
	right: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;        
    width: 100%;
    max-width: 100vw;         
    margin: 0 auto;
    padding: 0 16px;          
    gap: 12px;
    
    box-sizing: border-box;
}

.header-container > * {
    max-width: 100%;           
    flex-shrink: 1;         
    min-width: 0;             
}

/* ЛОГО */
.site-title {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 12px;
}


.site-title img.site-logo {
    display: block;
    max-height: clamp(28px, 3.5vw, 50px);
    width: auto;
    height: auto;
}

.main-navigation {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}
.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}
.main-navigation ul li {
    white-space: nowrap;    
}
.main-navigation ul li a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: clamp(12px, 1.5vw, 14px);
	transition: background-color 0.3s ease;
}
.main-navigation ul li a:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

.header-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	font-size: clamp(11px, 1.2vw, 14px);
}
.header-contacts {
	text-align: right;
	line-height: 1.4;
	margin-right: 8px;
	white-space: nowrap;
}
.header-contacts .phone {
    display: block;
    font-weight: 900;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.2;
    color: #ffffff;
    text-decoration: underline;
}

.header-social {
	display: flex;
	gap: 8px;
}
.header-social a {
	width: 30px;
	height: 30px;
	background: #5c4842;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: background-color 0.3s ease;
	text-decoration: none;
}
.header-social a:hover {
	background: #c1853b;
}
.header-social i {
	font-size: 16px;
}

.header-btn {
	background-color: #B77F41;
	color: #fff;
	padding: clamp(6px,1vw,10px) clamp(12px,2vw,20px);
	border-radius: 30px;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	font-size: clamp(12px,1.5vw,14px);
	white-space: nowrap;
	transition: background-color 0.3s ease;
}
.header-btn:hover {
	background-color: #9c612a;
}

/* === БУРГЕР === */
.burger-menu {
	display: none;
	width: 36px;
	height: 36px;
	background: white;
	border-radius: 6px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.burger-lines {
	width: 20px;
	height: 2px;
	background: #4a3f3b;
	position: relative;
}
.burger-lines::before,
.burger-lines::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 2px;
	background: #4a3f3b;
	left: 0;
}
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 64%;
    max-width: 256px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
    display: block;
}
.mobile-menu.active { right: 0; }

.mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    position: relative;
}

.mobile-close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    color: #4a3f3b;
	transform: translateY(-12px);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    padding-top: 4px;
    border-bottom: 1px solid #e0d8d3;
    margin-bottom: 0px;
}
.mobile-menu .site-title { font-size: clamp(14px,2vw,16px); }

.mobile-menu nav li { list-style: none; margin-bottom: 8px; }
.mobile-menu nav a {
    font-size: clamp(12px,1.5vw,14px);
    color: #4a3f3b;
    text-decoration: none;
    margin-left: -20px;
}
.mobile-menu nav a:hover { text-decoration: underline; }

.mobile-btn {
    margin-top: 8px;
    background: #B77F41;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    text-align: center;
    font-size: clamp(12px,1.5vw,14px);
    text-decoration: none;
}

.mobile-phone { font-size: clamp(12px,1.2vw,14px); color: #000; text-decoration: none; }
.mobile-phone[href] {
    color: var(--accent-color, #b2763c);
    text-decoration: underline;
}

.mobile-menu .header-social a {
    width: 30px; height: 30px;
}

.mobile-menu-list .menu-item-has-children > .submenu-toggle {
    display: inline-block;
    margin-left: 6px;
    line-height: 1;
    color: #000; 
    cursor: pointer;
    user-select: none;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    transition: transform 0.3s ease;
    vertical-align: middle;
    font-size: 28;
}

.mobile-menu-list .menu-item-has-children.active > .submenu-toggle {
    transform: rotate(90deg);
}

.mobile-menu-list .menu-item-has-children > ul {
    display: none;
    padding-left: 16px;
}

.mobile-menu-list .menu-item-has-children.active > ul {
    display: block;
}
.main-navigation .menu-item-has-children > ul {
    display: none !important;
}

.mobile-schedule-list {
    margin: 2px 0 0 0;
    padding-left: 16px;
    list-style: disc;
}

.mobile-schedule-list li {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #000;
    margin: 2px 0;
}


@media (max-width: 1100px) {
  /* Кнопка */
  .header-btn {
    padding: clamp(4px, 0.8vw, 8px) clamp(8px, 1vw, 12px);
    font-size: clamp(11px, 1vw, 12px);
  }

  .header-social a {
    width: 24px;
    height: 24px;
  }
  .header-social i {
    font-size: 14px;
  }
  .header-social {
    gap: 5px; 
  }
  .header-container {
    padding-left: 8px; 
    padding-right: 16px; 
  }
}

@media (max-width: 1024px) {
  .main-navigation { display: none; }
  .header-btn { display: none; } 
  .burger-menu { display: flex; }
  .header-container { padding: 0 12px; gap: 10px; }
    .header-info {
      display: flex;       
      flex-shrink: 0;
      gap: 6px;
      font-size: clamp(11px,1.2vw,14px);
      white-space: nowrap;
      margin-left: 100px;
  }
    .mobile-btn {
        position: fixed;
        right: 18px;
        bottom: 80px;
        z-index: 9999;

        width: 76px;
        height: 76px;
        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;
        margin: 0;

        background: #B77F41;
        color: #fff;
        text-align: center;
        text-decoration: none;

        font-size: 10px;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }  
}

@media (max-width: 768px) {
  .header-container { padding: 0 10px; gap: 8px; }
  .site-title a { font-size: clamp(15px,2vw,16px); }
  .burger-menu { width: 32px; height: 32px; }
  .burger-lines, .burger-lines::before, .burger-lines::after { width: 18px; }
}
@media (max-width: 570px) {
   .header-info .header-social { 
    display: none; 
  }
  
  .mobile-menu .header-social {
    display: flex !important;
  }
}

@media (max-width: 360px) {
  .header-container { padding: 0 8px; gap: 6px; }
  .site-title a { font-size: clamp(14px,2vw,15px); }
  .burger-menu { width: 28px; height: 28px; }
  .burger-lines, .burger-lines::before, .burger-lines::after { width: 16px; }
  
  .main-navigation,
  .header-btn { display: none; }
    .header-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: clamp(10px,1.2vw,12px);
  }
}


/* === FOOTER === */
.site-footer {
    background-color: #63544F;
    color: #ffffff;
    padding: 60px 0 40px;
    font-size: 16px;
    line-height: 1.8;
    width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 40px);
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 clamp(8px, 2vw, 20px);
    box-sizing: border-box;
}
.footer-nav .sub-menu,
.footer-nav ul ul {
    display: none !important;
}
.footer-left,
.footer-social {
    flex: 1 1 min(300px, 100%);
    max-width: 100%;
}
.footer-menu {
    flex: 0 0 auto;   
    margin: 0 auto;   
    flex: 1 1 min(100px, 100%);
}

.footer-menu:first-of-type {
    flex: 0 0 auto;   
    margin-right: 30px; 
}

.footer-menu > a {
    color: inherit;
    text-decoration: none;
}

.footer-left h2 { font-size: clamp(16px, 2vw, 22px); margin-bottom: 20px; color: #fff; font-weight: 600; }
.footer-left p { font-size: clamp(13px, 1.5vw, 16px); color: #fff; margin: 0; }

.footer-menu h3,
.footer-social h3 { font-size: clamp(14px, 1.5vw, 18px); margin-bottom: 2px; color: #fff; font-weight: 600; }
.footer-menu.footer-services {
    margin-left: 0px;       
    margin-right: 0;       
    white-space: nowrap;
    flex: 0 1 auto;
    margin-top: 20px;
}
.footer-menu.footer-services .footer-nav li {
    margin-right: 20px;    
}
.footer-menu.footer-services .footer-nav li:last-child {
    margin-right: 0;       
}
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;
}
.footer-nav li { margin-bottom: 0px; }
.footer-nav li a {
    font-size: clamp(12px,1.2vw,14px);
    color: #BBBBBB;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}
.footer-nav li a:hover { color: #ffffff; }


.footer-social-icons {
    display: flex;
    gap: 8px;
}
.footer-social-icons a {
    width: 30px;
    height: 30px;
    background: #8a6e68;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.footer-social-icons a:hover {
    background: #c1853b;
}
.footer-social-icons i {
    font-size: 16px;
}


.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin: 0;
    padding: 0;
}

.footer-social h3 {
    margin-bottom: 5px; 
}


.footer-minzdrav-container {
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    height: auto;
    width: fit-content;
    margin-top: 12px;
    display: block;
}

.footer-minzdrav-container img {
    display: block;
    max-width: 200px; 
    max-height: 100px; 
    width: auto;     
    height: auto;    
}

.footer-contacts {
    display: none;
}
.footer-contacts .footer-schedule-list {
    margin: 2px 0 0 0;
    padding-left: 16px;
    list-style: disc;
}

.footer-contacts .footer-schedule-list li {
    font-size: 12px;
    margin: 2px 0;
    color: #BBBBBB;
    line-height: 1.2;
}
/* Низ футера */
.footer-bottom {
    font-size: clamp(11px,1.2vw,13px);
    color: #bbbbbb;
    text-align: center;
    margin-top: 50px;
    line-height: 1.6;
    width: 100%;
    padding: 0 clamp(4px,2vw,20px);
}
.footer-bottom::before {
    content: "";
    display: block;
    width: 100%;
    max-width: 100%;
    height: 1px;
    background-color: #555555;
    margin: 0 auto 6px auto;
}
.footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}
@media (max-width: 502px) {
    .header-info {
        margin-left: 0;         
        justify-content: flex-start; 
        gap: 6px;                

    }
    
    .header-contacts {
        margin-right: 20px;        
    }
    
    .header-social {
        justify-content: flex-start; 
    }
}


@media (max-width: 481px) {
  .site-footer {
    padding: 10px 0 8px;
  }

  .footer-container {
    gap: 4px;
    padding: 0 10px;
  }

  .footer-left {
    margin-bottom: 0;
  }

  .footer-left h2 {
    margin-bottom: 2px;
    font-size: 16px;
  }

  .footer-left p {
    display: none;
  }

  .footer-menu {
    margin-bottom: 0;
    flex: 1 1 min(300px, 100%);
  }

  .footer-menu h3 {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 14px;
  }

  .footer-menu > a {
    display: block;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .footer-menu.footer-services {
    margin-top: 0;
  }

  .footer-nav {
    gap: 1px 0;
    margin-top: 2px;
  }

  .footer-nav li {
    margin-bottom: 0;
    line-height: 1.2;
  }

  .footer-nav li a {
    font-size: 12px;
    line-height: 1.2;
  }

  .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex: 1 1 min(200px, 100%);
    color: #ffffff;
  }

  .footer-contacts h3 {
    font-size: 14px;
    margin-bottom: 2px;
    margin-top: 0;
    color: #ffffff;
    font-weight: 600;
  }

  .footer-contacts p {
    font-size: 12px;
    color: #BBBBBB;
    margin: 0;
    line-height: 1.2;
  }

  .footer-contacts p i,
  .footer-contacts a i {
    color: #d3cfcf;
    font-size: 12px;
    line-height: 1;
  }

  .footer-contacts a:hover { color: #ffffff; }

  footer#colophon .footer-contacts .footer-social-icons i {
    color: #ffffff !important;
  }

  footer#colophon .footer-contacts a[href^="mailto:"] {
    font-weight: 900;
    color: #BBBBBB;
    font-size: 12px;
    line-height: 1.2;
  }

  footer#colophon .footer-contacts a[href^="tel:"] {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
  }



  .footer-social-wrapper {
    gap: 0;
    margin-top: 0;
  }

  .footer-social-wrapper .footer-social {
    display: none;
  }

  .footer-minzdrav-container {
    margin-top: 4px;
    padding: 4px 8px;
  }

  .footer-minzdrav-container img {
    max-width: 70px;
  }

  .footer-line {
    display: none;
  }

  .footer-bottom {
    margin-top: 10px;
    padding: 0 10px;
  }

  .footer-bottom::before {
    margin-bottom: 4px;
  }

  .footer-bottom p {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
  }
}
.footer-left {
    flex: 1 1 min(300px, 100%);
    max-width: 100%;
}

.footer-schedule {
    color: #BBBBBB;
    margin-top: 12px;
    width: 100%;
}

.footer-schedule h3 {
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: 2px;
    margin-top: 0;
    color: #ffffff;
    font-weight: 600;
}

.footer-schedule-list {
    margin: 2px 0 0 0;
    padding-left: 16px;
    list-style: disc;
}

.footer-schedule-list li {
    font-size: clamp(12px, 1.2vw, 14px);
    margin: 2px 0;
    color: #BBBBBB;
}

@media (max-width: 481px) {
    .footer-schedule {
        display: none !important;
    }
}




@media (max-width: 768px) {
    .footer-container { gap: 12px; padding: 0 10px; }
    .footer-left h2 { font-size: clamp(14px,2vw,18px); }
    .footer-left p { font-size: clamp(12px,1.5vw,14px); }
    .footer-menu h3,
    .footer-social h3 { font-size: clamp(12px,1.5vw,16px); }
}


@media (max-width: 1000px) {
    .footer-nav {
        gap: 2px 0px; 

    }
    .footer-social {
        display: none;
    }
     .site-footer {
        padding-top: 20px; 
    }
     .footer-menu {
        flex: 1 1 min(300px, 100%);
    }
}

@media (max-width: 620px){
.footer-minzdrav-container {
    margin-top: 15px;
}
}
@media (max-width: 480px){
    .footer-minzdrav-container img {
        max-width: 100px; 
        max-height: 100px; 
        width: auto;    
        height: auto;     
    }
}
@media (max-width: 362px){
    .footer-minzdrav-container img {
        max-width: 96px; 
        max-height: 100px; 
        width: auto;      
        height: auto;     
        
    }
}


/* === Кнопка версии для слабовидящих рядом с логотипом === */
.accessibility-btn {
    display: flex;
    align-items: center;
    margin-left: 0px;       
    flex-shrink: 0;         
}

.accessibility-btn a.bvi-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 3vw, 36px);
    height: clamp(32px, 3vw, 36px);
    font-size: clamp(16px, 1.5vw, 20px); 
    background-color: #5c4842;          
    color: #fff;                        
    border-radius: 50%;                
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accessibility-btn a.bvi-open:hover {
    background-color: #c1853b;        
    color: #fff;
}

@media (max-width: 1100px) {
    .accessibility-btn a.bvi-open {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .accessibility-btn {
        margin-left: 8px;
    }
    .accessibility-btn a.bvi-open {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .accessibility-btn {
        margin-left: 6px;
    }
    .accessibility-btn a.bvi-open {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* === Режим слабовидящих === */
body.accessibility .accessibility-btn a.bvi-open {
    background-color: #ff0 !important;
    color: #000 !important;
}

@media (max-width: 1160px) {
    .accessibility-btn a.bvi-open {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .main-navigation ul {
        gap: 15px;
    }
}


/* === 404 page === */

.evita-404-page {
    background: #f8f3f0;
}

.evita-404 {
    min-height: 62vh;
    padding: clamp(48px, 8vw, 96px) 16px;
    display: flex;
    align-items: center;
}

.evita-404__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.evita-404__content {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    background: #ffffff;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(92, 72, 66, 0.12);
}

.evita-404__code {
    margin-bottom: 10px;
    color: #B77F41;
    font-size: clamp(72px, 13vw, 150px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.evita-404__title {
    margin: 0 0 16px;
    color: #4a3f3b;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
}

.evita-404__text {
    max-width: 620px;
    margin: 0 auto 12px;
    color: #63544F;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.65;
}

.evita-404__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.evita-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.evita-404__btn--primary {
    background: #B77F41;
    color: #ffffff;
}

.evita-404__btn--primary:hover {
    background: #9c612a;
    color: #ffffff;
}

.evita-404__btn--secondary {
    background: #5c4842;
    color: #ffffff;
}

.evita-404__btn--secondary:hover {
    background: #c1853b;
    color: #ffffff;
}

.evita-404__btn--outline {
    background: transparent;
    color: #5c4842;
    border: 1px solid #ccb6ac;
}

.evita-404__btn--outline:hover {
    background: #ccb6ac;
    color: #ffffff;
}

.evita-404__popular {
    max-width: 900px;
    margin: 34px auto 0;
    text-align: center;
}

.evita-404__popular-title {
    margin: 0 0 18px;
    color: #4a3f3b;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
}

.evita-404__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.evita-404__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5d9d3;
    border-radius: 30px;
    color: #5c4842;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(92, 72, 66, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.evita-404__link:hover {
    background: #B77F41;
    border-color: #B77F41;
    color: #ffffff;
}

@media (max-width: 768px) {
    .evita-404 {
        padding: 42px 14px;
    }

    .evita-404__content {
        border-radius: 22px;
    }

    .evita-404__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .evita-404__btn {
        width: 100%;
    }

    .evita-404__links {
        gap: 8px;
    }

    .evita-404__link {
        width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .evita-404 {
        padding: 32px 10px;
    }

    .evita-404__content {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .evita-404__text {
        line-height: 1.55;
    }

    .evita-404__link {
        width: 100%;
    }
}