/* Основные переменные */
:root {
    /* Цветовая схема */
    --primary-color: #4a704a;
    --primary-hover: #3d5c3d;
    --primary-light: rgba(74, 112, 74, 0.92);
    --primary-lighter: rgba(74, 112, 74, 0.85);
    --secondary-color: #6ba66b;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f0f4f8;
    --white: #fff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Точки перелома */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(74,112,74,0.1);
    --shadow-md: 0 4px 16px rgba(74,112,74,0.15);
    --shadow-lg: 0 8px 32px rgba(74,112,74,0.2);
    --shadow-xl: 0 12px 48px rgba(74,112,74,0.25);
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    
    /* Размеры шрифтов */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    
    /* Радиусы */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 24px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    height: 100%;
    font-size: clamp(12px, 1.2vw + 1em, 16px);
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    margin: 0;
}

/* Фоновое изображение */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('/media/images/bg-a20b16c73beed39b574d4254099558df.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    filter: blur(1.5px);
    will-change: transform;
}

/* Контейнер */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

/* Кнопки */
.btn, .btn-primary, .btn-register, .btn-outline-primary, .btn-secondary, .page-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn:hover, .btn-primary:hover, .btn-register:hover, .btn-outline-primary:hover, .btn-secondary:hover, .page-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:focus, .btn-primary:focus, .btn-register:focus, .btn-outline-primary:focus, .btn-secondary:focus, .page-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header Button */
.header-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: 0.35rem 1rem;
    margin: 0 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: inline-block;
}

.header-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Адаптивный дизайн */
@media (max-width: var(--breakpoint-xl)) {
    .container {
        width: 95%;
    }
}

@media (max-width: var(--breakpoint-lg)) {
    html {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: var(--breakpoint-md)) {
    .container {
        width: 100%;
        padding: var(--spacing-sm);
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .header-btn {
        font-size: var(--font-size-sm);
        padding: 0.3rem 0.7rem;
    }
    
    body {
        background-attachment: scroll;
    }
}

@media (max-width: var(--breakpoint-sm)) {
    html {
        font-size: var(--font-size-sm);
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    body {
        background-position: center top;
        background-size: cover;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Анимации */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container { width: 95%; }
    body { background-attachment: scroll; }
}

@media (max-width: 600px) {
    body { background-position: center top; background-size: cover; }
}

/* --- Custom global text color for content blocks --- */
body, .container, .card, .glass-card, .content, .main-content, .section, .block, .modal-body, .form-control, p, li, span, label, .card-text {
    color: #222 !important;
}

@media (max-width: 768px) {
    .header-btn {
        font-size: 0.95rem !important;
        padding: 0.3rem 0.7rem !important;
    }
}

.service-types-title {
    color: #43a047; /* основной зелёный */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Отступ для якорей, чтобы не перекрывались хедером */
.card[id] {
    scroll-margin-top: 110px; /* подберите под ваш header, например 110px */
}

.subservice-menu-list {
    list-style: none;
    padding-left: 1.2em;
    margin-bottom: 0.2em;
}
.subservice-menu-item {
    margin-bottom: 0.1em;
}
.subservice-link {
    color: #388e3c;
    font-size: 0.97em;
    font-weight: 500;
    opacity: 0.95;
    text-decoration: none !important;
    padding: 2px 0 2px 0.2em;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
}
.subservice-link:hover {
    background: rgba(76,175,80,0.08);
    color: #256029;
    text-decoration: none !important;
}
.subservice-dot {
    font-size: 1.2em;
    color: #43a047;
    margin-right: 0.3em;
}
@media (max-width: 991.98px) {
    .subservice-link {
        font-size: 0.95em;
    }
}

.autosize {
  min-height: 60px;
  max-height: 320px;
  overflow-y: auto;
  resize: vertical;
  transition: height 0.2s;
}

/* Фикс для страницы регистрации: отступ сверху для контейнера */
.register-page .container {
    margin-top: 110px;
}

/* Подсветка дней с доступными слотами в календаре */
.fc-available-slot-day {
    background: #e6ffe6 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px #4CAF50 inset;
    position: relative;
}
.fc-available-slot-day::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
}

/* Admin panel horizontal nav */
.admin-edit-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  background: #e8fbe8;
  border-radius: 16px;
  padding: 1.1rem 0.5rem 1.1rem 0.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(74,112,74,0.10);
  position: relative;
  z-index: 2;
}
.admin-edit-link {
  color: var(--primary-color, #4a704a);
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.admin-edit-link.active, .admin-edit-link:hover {
  background: var(--primary-color, #4a704a);
  color: #fff;
}
.admin-content-block {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(74,112,74,0.10);
  padding: 2rem 2.5rem;
}

a, .nav-link, .dropdown-item {
    text-decoration: none !important;
}

a:hover, .nav-link:hover, .dropdown-item:hover {
    text-decoration: none !important;
}

.card .section-title, .card .subservice-link, .card .fw-semibold, .card .text-lg, .card .service-title, .card .subservice-title {
    color: #fff !important;
    text-decoration: none !important;
}

.btn-red {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}
.btn-red:hover, .btn-red:focus {
    background: #b52a37 !important;
    color: #fff !important;
}

.btn-green {
    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
}
.btn-green:hover, .btn-green:focus {
    background: #1e7e34 !important;
    color: #fff !important;
}

.btn-blue {
    background: #0d6efd !important;
    color: #fff !important;
    border: none !important;
}
.btn-blue:hover, .btn-blue:focus {
    background: #0a58ca !important;
    color: #fff !important;
}

.section-title {
    background: linear-gradient(90deg, #43a047 80%, #388e3c 100%);
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.35em 1.5em 0.35em 1.5em;
    margin-bottom: 0.5em;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(67,160,71,0.10);
    text-decoration: none !important;
    border-bottom: none !important;
    letter-spacing: 0.01em;
}

/* Заголовок 'Виды услуг' */
.services-title-main {
    background: linear-gradient(90deg, #43a047 80%, #388e3c 100%);
    color: #fff !important;
    font-size: 2.1rem;
    font-weight: 800;
    border-radius: 16px;
    padding: 0.4em 2.2em 0.4em 2.2em;
    margin-bottom: 1.2em;
    display: inline-block;
    box-shadow: 0 4px 18px rgba(67,160,71,0.13);
    text-align: center;
    letter-spacing: 0.01em;
}

.card .section-title {
    font-size: 1.35rem;
    padding: 0.35em 1.5em 0.35em 1.5em;
    background: linear-gradient(90deg, #43a047 80%, #388e3c 100%);
    color: #fff !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(67,160,71,0.10);
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline-block;
    margin-bottom: 0.5em;
}

/* Фирменный зелёный для .text-success */
.text-success {
    color: #43a047 !important;
}

.register-page-padding {
    margin-top: 220px;
} 