/* Хедер */
.header {
    z-index: 1000;
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 239, 216, 0.8); /* Полупрозрачный фон */
    backdrop-filter: blur(10px);         /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Поддержка Safari */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Лёгкая граница для глубины */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    padding: 0 15px;
}

.vollkorn-sc-regular {
  font-family: "Vollkorn SC", serif;
  font-weight: 400;
  font-style: normal;
}

.logo {
    font-family: "Vollkorn SC", serif;
    font-size: 28px;
    color: #000831;
    margin: 0;
    padding: 0;
    line-height: 60px;
    flex: none;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Кнопка "Мои услуги" с выпадающим меню */
.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    background: #a93c46;
    color: #fff;
    text-decoration: none;
    border: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(169, 60, 70, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.dropdown-button:hover,
.cta-button:hover {
    color: #fff;
    background: #984049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(169, 60, 70, 0.35);
}

.dropdown-button::after {
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button {
    margin-left: auto;
    margin-right: 12px;
    white-space: nowrap;
    z-index: 1;
}

.dropdown.active .dropdown-button::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    background-color: #fff;
    min-width: 270px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1002;
    top: calc(100% + 20px); /* кнопка + мостик */
    left: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* ❗важно: не мешает событиям при скрытии */
}

/* Добавляем плавное появление */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%; /* сразу под кнопкой */
    left: 0;
    right: 0;
    height: 20px; /* высота мостика — можно подобрать (15–25px) */
    background: transparent;
    pointer-events: none; /* не мешает кликам */
    z-index: 1001;
}

.dropdown-content a {
    color: #000831;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #8F1E28;
    padding-left: 24px;
}

/* Гамбургер меню */
.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 24px;
    color: #924148;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border-radius: 15px;
    background: rgba(143, 30, 40, 0.1);
}

.menu-button:hover {
    background: rgba(143, 30, 40, 0.2);
    transform: translateY(-1px);
}

/* Анимация гамбургера в крест */
.hamburger {
    position: relative;
    width: 24px;
    height: 20px;
    transition: all 0.3s ease;
}

.hamburger span {
    position: absolute;
    height: 3.2px;
    width: 100%;
    background: #924148;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

/* Анимация гамбургера */
#menu-toggle:checked + .menu-button .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .menu-button .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* Основное меню для мобильных с единым стилем */
.menu {
    position: absolute;
    top: calc(40px + 10px); /* высота хедера + отступ */
    right: 0.1px;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 240px;
    max-width: 100%;
    z-index: 999;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(10px) scaleY(0);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Открытие меню */
#menu-toggle:checked + .menu-button + .menu {
    max-height: 600px;
    opacity: 1;
    transform: translateY(20px) scaleY(1);
}

.menu li {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.menu li:last-child {
    border-bottom: none;
}

.menu a {
    color: #000831;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.menu a:hover {
    background: #f8f9fa;
    color: #8F1E28;
    padding-left: 20px;
}

#menu-toggle {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: -1;
}

/*крошки*/
.breadcrumbs {
    max-width: 1120px;
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 10px;
    color: #666;
    text-align: left;
}

.breadcrumbs a {
    color: #8F1E28;
    text-decoration: none;
    font-size: 10px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}