/* ===== ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ ===== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
}

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

:root {
    --hero-height: 300px;
    --form-width: 500px;
    --form-height: 600px;
    --card-min-height: 350px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ADD8E6;
}

/* ===== ШАПКА ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}
header.shrunk {
    padding: 10px;
}
.logo img {
    width: 130px;
    height: auto;
}

.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.nav-menu {
    display: flex;
}
.nav-menu ul {
    display: flex;
    list-style: none;
}
.nav-menu ul li {
    margin-left: 20px;
}
.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.nav-menu ul li a:hover {
    color: #ADD8E6;
}

/* ===== КНОПКА "НАПИСАТЬ МНЕ" ===== */
.write-me-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 250px;
}
.write-me-btn {
    background: #ADD8E6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.write-me-btn:hover {
    background: #87CEEB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.3);
}
.write-me-btn:active {
    transform: scale(0.97);
}
.write-me-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}
.write-me-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.write-me-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.write-me-link:hover {
    background: #f0f8ff;
}
.write-me-link:first-child:hover {
    border-radius: 12px 12px 0 0;
}
.write-me-link:last-child:hover {
    border-radius: 0 0 12px 12px;
}
.write-me-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.write-me-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* ===== СЕКЦИИ ===== */
section {
    padding-top: 130px;
}

/* ===== ГЕРОЙ ===== */
.hero {
    text-align: center;
    padding: 20px;
    background-color: #f0f8ff;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h1 {
    font-size: 2em;
    margin-bottom: 20px;
}
.consultation-btn-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* ===== КНОПКИ ===== */
.btn {
    background-color: #ADD8E6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    background-color: #87CEEB;
}

/* ===== БЕСПЛАТНАЯ КОНСУЛЬТАЦИЯ ===== */
.free-consultation-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.free-consultation-btn {
    background-color: #ADD8E6 !important;
    color: #d32f2f !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-shadow: none !important;
}
.free-consultation-btn:hover {
    background-color: #87CEEB !important;
    transform: translateY(-2px) !important;
}
.free-consultation-btn:active {
    transform: scale(0.97) !important;
}
.free-consultation-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 20px;
    background: #f8f8f8;
    border-radius: 12px;
    margin-top: 0;
    text-align: center;
    width: 100%;
    max-width: 500px;
}
.free-consultation-content.active {
    max-height: 300px;
    opacity: 1;
    padding: 25px 20px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.free-question-btn {
    background: #ADD8E6;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.free-question-btn:hover {
    background: #87CEEB;
}

/* ===== ОБО МНЕ ===== */
#about {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-content img {
    width: 350px;
    height: auto;
    margin-right: 20px;
}
.about-content p {
    font-size: 1.1em;
}

/* ===== ДИПЛОМЫ (старый) ===== */
.diploma-scan {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.diploma-scan:not(.hidden) {
    opacity: 1;
}
.diploma-scan img {
    max-width: 100%;
    height: auto;
}
.close-diploma {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

/* ===== МОДАЛЬНОЕ ОКНО С ДИПЛОМАМИ ===== */
.diplomas-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.diplomas-modal:not(.hidden) {
    display: flex;
    opacity: 1;
}
.diplomas-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.diplomas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.diplomas-modal-header h2 {
    color: #ADD8E6;
    font-size: 1.8em;
    margin: 0;
}
.diplomas-modal-close {
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
}
.diplomas-modal-close:hover {
    color: #333;
}
.diplomas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.diploma-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.diploma-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #ADD8E6;
}
.diploma-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}
.diploma-item p {
    font-size: 0.85em;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* ===== ПРОСМОТРЩИК ДИПЛОМОВ ===== */
.diploma-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.diploma-viewer:not(.hidden) {
    display: flex;
    opacity: 1;
}
.diploma-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.diploma-viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}
.diploma-viewer-close:hover {
    color: #ADD8E6;
}
.diploma-viewer-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ===== УСЛУГИ ===== */
#services {
    padding: 60px 20px;
    text-align: center;
}
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
}
.service {
    background-color: #ffffff;
    padding: 25px 20px 20px;
    border-radius: 16px;
    width: calc(33.33% - 30px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    height: auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.service img {
    width: 55px;
    height: auto;
    margin-bottom: 12px;
    align-self: center;
}
.service h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    min-height: auto;
    letter-spacing: -0.3px;
}
.service .service-subtitle {
    font-size: 0.95em;  /* было 0.85em */
    color: #555;        /* чуть темнее для читаемости */
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.details-btn {
    background-color: #ADD8E6;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    align-self: center;
    margin-top: auto;
    margin-bottom: 0;
    z-index: 10;
    transition: all 0.3s ease;
}
.details-btn:hover {
    background-color: #87CEEB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.4);
}

.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.3s ease, opacity 0.4s ease;
    margin-top: 0;
    text-align: left;
    width: 100%;
    padding: 0;
    opacity: 0;
}
.details.active {
    max-height: 8000px;
    padding: 18px 0 5px;
    opacity: 1;
}
.details p {
    font-weight: 600;
    color: #333;
    margin: 16px 0 6px;
    font-size: 0.92em;
}
.details p:first-of-type {
    margin-top: 0;
}
.details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 8px;
}
.details ul li {
    font-size: 0.88em;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.details ul li::before {
    content: '•';
    color: #ADD8E6;
    font-weight: bold;
    position: absolute;
    left: 2px;
}
.details hr {
    border: none;
    border-top: 1px solid #eef0f2;
    margin: 14px 0;
}

/* ===== ЦЕНЫ В КАРТОЧКЕ ===== */
.price-block {
    background: #f7faff;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0 12px;
    border-left: 4px solid #ADD8E6;
}
.price-block .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.92em;
    color: #444;
}
.price-block .price-item .price-label {
    font-weight: 500;
}
.price-block .price-item .price-value {
    font-weight: 700;
    color: #ADD8E6;
    font-size: 1.1em;
}
.price-block .price-item .price-value.big {
    font-size: 1.3em;
}

/* ===== КНОПКИ ВНУТРИ УСЛУГ ===== */
.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-start;
}
.service-buttons .btn {
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
}
.service-buttons .btn-download {
    background: #f0f4ff;
    color: #444;
    border: 1px solid #dce4f0;
}
.service-buttons .btn-download:hover {
    background: #e4ebf9;
    border-color: #ADD8E6;
}
.service-buttons .btn-consult {
    background: #ADD8E6;
    color: white;
}
.service-buttons .btn-consult:hover {
    background: #87CEEB;
}
.service-buttons .btn-questionnaire {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.service-buttons .btn-questionnaire:hover {
    background: #c8e6c9;
}

/* ===== ТЕКСТ "ПОДРОБНЕЕ" ВНУТРИ КАРТОЧКИ ===== */
.details-more-link {
    display: inline-block;
    color: #ADD8E6;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 6px;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.details-more-link:hover {
    color: #87CEEB;
}

/* ===== ОПРОСНИК ЦИКЛА ===== */
#questionnaire-section {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
}

/* ===== КОНТАКТЫ ===== */
#contacts {
    padding: 60px 20px;
    text-align: center;
}
.direct-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.direct-contacts img {
    width: 40px;
    height: auto;
}

/* ===== ФОРМА ЗАПИСИ ===== */
.consultation-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.form-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: var(--form-width);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}
.form-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}
.form-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
}
.custom-datetime-picker {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    flex-grow: 1;
    overflow-y: auto;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.calendar-header button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
#current-month {
    font-weight: bold;
    font-size: 14px;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    margin-bottom: 15px;
}
.calendar-days span {
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}
.calendar-days span.selected {
    background-color: #ADD8E6;
    color: white;
}
.time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 15px 0;
}
.time-slot {
    padding: 10px 5px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: all 0.2s ease;
}
.time-slot:hover {
    background: #c8e6c9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.time-slot.booked {
    background: #ffebee !important;
    border: 1px solid #ef5350 !important;
    color: #d32f2f !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    pointer-events: none !important;
    opacity: 0.8;
}
.time-slot.selected {
    background: #81c784 !important;
    color: white !important;
    border-color: #2e7d32 !important;
    font-weight: bold;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}
#agreement {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #ADD8E6;
    flex-shrink: 0;
}
#agreement:checked {
    accent-color: #ADD8E6;
}
#agreement + label {
    cursor: pointer;
    font-size: 0.9em;
    font-weight: normal;
    color: #555;
    line-height: 1.5;
}
#agreement + label a {
    color: #ADD8E6;
    text-decoration: underline;
}
#agreement + label a:hover {
    color: #87CEEB;
}
.form-content button[type="submit"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 15px;
    background-color: #ADD8E6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.form-content button[type="submit"]:hover {
    background-color: #87CEEB;
}
.close-form {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}
.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== СТРЕЛКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ADD8E6;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    display: none;
}
.scroll-top.visible {
    display: block;
}

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
}
footer p {
    margin: 5px 0;
}
footer a {
    color: #ADD8E6;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ===== АНИМАЦИИ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.hidden {
    display: none;
}

/* ===== COOKIES ===== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2000;
}
.cookie-notice.visible {
    transform: translateY(0);
}
.cookie-notice p {
    margin: 0;
    font-size: 14px;
}
.cookie-notice .btn {
    margin-left: 20px;
    padding: 5px 15px;
    font-size: 14px;
}

/* ===== ССЫЛКИ ===== */
.internal-link {
    color: #ADD8E6;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.internal-link:hover {
    color: #87CEEB;
}
.external-link {
    color: #ADD8E6;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.external-link:hover {
    color: #87CEEB;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 600px) {
    .write-me-wrapper {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-right: 10px;
        margin-left: 0;
    }
    .write-me-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 16px;
    }
    .write-me-btn span {
        display: none;
    }
    .write-me-btn::before {
        font-size: 18px;
    }
    .write-me-dropdown {
        min-width: 150px;
        right: -10px;
    }
    .write-me-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    .write-me-icon {
        width: 20px;
        height: 20px;
    }
    .write-me-dropdown::before {
        right: 15px;
    }

    .hamburger {
        display: block;
    }
    :root {
        --menu-width: 200px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: calc(-1 * var(--menu-width));
        width: var(--menu-width);
        height: 100%;
        background-color: #f8f8f8;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    .nav-menu.active {
        right: 0;
    }
    .close-menu {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu ul li {
        margin: 20px 0;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .about-content {
        flex-direction: column;
    }
    .about-content img {
        margin: 0 0 20px;
        width: 280px;
    }

    .service {
        width: 100%;
        max-width: 350px;
        min-height: auto;
    }
    .services-list {
        flex-direction: column;
        align-items: center;
    }

    .diplomas-list {
        grid-template-columns: 1fr 1fr;
    }
    .diplomas-modal-content {
        padding: 20px;
    }
    .diplomas-modal-header h2 {
        font-size: 1.4em;
    }

    .diploma-viewer {
        padding: 20px;
    }
    .diploma-viewer-close {
        top: -30px;
        right: 0;
        font-size: 28px;
    }
    .diploma-viewer-content img {
        max-height: 70vh;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .time-slot {
        padding: 8px 3px;
        font-size: 12px;
    }

    .form-content {
        width: 90%;
        height: auto;
        max-height: 80vh;
    }
    .custom-datetime-picker {
        padding: 8px;
    }
    .calendar-header button {
        font-size: 14px;
    }
    #current-month {
        font-size: 12px;
    }
    .calendar-weekdays {
        font-size: 8px;
    }
    .calendar-days span {
        font-size: 10px;
        padding: 3px;
    }
    .form-content button[type="submit"] {
        font-size: 14px;
        padding: 8px;
    }

    .free-consultation-btn {
        font-size: 1em !important;
        padding: 12px 25px !important;
    }
    .free-consultation-content.active {
        padding: 20px 15px;
        max-height: 350px;
    }
    .free-consultation-content p {
        font-size: 1em !important;
    }

    .service-buttons .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ===== КНОПКИ В УСЛУГАХ ===== */
.service-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}
.service-buttons .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}
.service-buttons .btn {
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.service-buttons .btn-download {
    background: #f0f4ff;
    color: #444;
    border: 1px solid #dce4f0;
}
.service-buttons .btn-download:hover {
    background: #e4ebf9;
    border-color: #ADD8E6;
}
.service-buttons .btn-consult {
    background: #ADD8E6;
    color: white;
}
.service-buttons .btn-consult:hover {
    background: #87CEEB;
}
.service-buttons .btn-questionnaire {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.service-buttons .btn-questionnaire:hover {
    background: #c8e6c9;
}

/* ===== ЦЕНЫ ===== */
.price-item .price-value {
    white-space: nowrap;
}
.price-note {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.78em;
    margin-top: 4px;
    font-style: italic;
}

/* Дополнительный запас для карточек услуг */
.service .details {
    max-height: 0;
    transition: max-height 0.6s ease-in-out, padding 0.3s ease, opacity 0.4s ease;
}
.service .details.active {
    max-height: 8000px !important;
}