:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FBF8F8;
    --bg-accent: #E9E9E9;
    --bg-card: #F2F2F2;
    --bg-price-odd: #D9D9D9;
    --bg-price-even: #F8F8F8;
    --text-primary: #03182E;
    --text-accent: #01A145;
    --text-hero: #46BDF5;
    --text-subtle: #59443F;
    --text-light: #FFFFFF;
    --text-placeholder: #C3B9B5;
    --border-color: #C5C5C5;
    --card-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
    --news-card-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-accent: #333333;
    --bg-card: #2a2a2a;
    --bg-price-odd: #333333;
    --bg-price-even: #2a2a2a;
    --text-primary: #FFFFFF;
    --text-accent: #01A145;
    --text-hero: #46BDF5;
    --text-subtle: #adadad;
    --text-light: #FFFFFF;
    --text-placeholder: #777777;
    --border-color: #555555;
    --card-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.3);
    --news-card-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
        margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.header {
    padding: 30px 5%;
    position: relative;
}
.container {
    max-width: 1532px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    padding-top: 0;
    padding-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
}

.header-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    max-width: 1200px;
}

.logo-image {
    width: 100px;
    height: 100px;
}

.nav {
    display: flex;
    gap: 70px;
}

.nav__link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.nav__link:hover {
    color: var(--text-accent);
}

.nav__link:active {
    transform: translateY(1px);
}


.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover svg {
    transform: scale(1.1);
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}
 
.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-text {
    margin-top: 128px;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 19px;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 570px;
}

.hero-title__mobile,
.hero-description__mobile {
    display: none;
}

.btn {
    display: inline-block;
    background-color: var(--text-accent);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    border-radius: 33.5px;
    padding: 14px 0;
    width: 300px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #01893B;  
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
}

/* Модификаторы кнопок (используются по всему сайту) */
.btn--primary { background-color: var(--text-accent); color: var(--text-light); }
.btn--primary:hover { background-color: #01893B; }

.btn--outline {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
    box-shadow: none;
}
.btn--outline:hover {
    background: rgba(1, 161, 69, 0.08);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn--danger { background: #e53e3e; color: #fff; }
.btn--danger:hover { background: #c53030; }

.btn--sm {
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 22px;
    font-weight: 800;
}
.btn--lg {
    width: auto;
    padding: 16px 28px;
    font-size: 18px;
    border-radius: 28px;
}
.btn--block { width: 100%; }

.hero-image-container {
    position: relative;
    width: 790px;
    height: 400px;
    flex-shrink: 0;
    margin-left: -200px; 
}

.hero-image {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-decoration-1,
.hero-decoration-2,
.hero-decoration-3 {
    position: absolute;
    background-color: var(--text-accent);
    border-radius: 50%;
    z-index: 1;
}

.hero-decoration-1 {
    width: 450px;
    height: 450px;
    left: 330px;
    top: 34px;
}

.hero-decoration-2 {
    width: 90px;
    height: 90px;
    left: 690px;
    top: -15px;
}

.hero-decoration-3 {
    width: 60px;
    height: 60px;
    left: 220px;
    top: 270px;
}

.services {
    padding-top: 120px;
    padding-bottom: 120px;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 67px;
    align-items: center;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.service-card {
    background: var(--bg-primary);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    width: 250px;
    height: 150px;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.15); 
}

.service-card:active {
    transform: scale(0.98);
}

.service-card__image {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 60px;
}

.service-card__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.service-card__count {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-subtle);
    margin: 0;
    position: absolute;
    bottom: 24px;
    left: 24px;
}

.about-us,
.stats,
.news {
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-us {
    background-color: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.why-us .container {
    max-width: 1080px;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.about-us-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: var(--text-primary);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 30px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.about-us-image {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.about-us-decoration-1,
.about-us-decoration-2,
.about-us-decoration-3 {
    background-color: var(--text-accent);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.about-us-decoration-1 {
    width: 150px;
    height: 150px;
    bottom: 38px;
    left: 20px;
}

.about-us-decoration-2 {
    width: 80px;
    height: 80px;
    bottom: 205px;
    left: 85px;
}

.about-us-decoration-3 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 180px;
}

.why-us {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 800px;
    box-sizing: border-box;
}

.why-us-content {
    display: flex;
    flex-direction: column;
}

.why-us-title {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 130px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 250px;
}
 
.why-us-item-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 36px;
    margin-left: 0;
}

@media (min-width: 993px) {
    .why-us-item-title {
        margin-left: -30px;
    }
}

.why-us-item-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.why-us-item-icon {
    flex-shrink: 0;
}

.why-us-item-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.stats {
    background-color: var(--bg-accent);
}

.stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 70px;
    color: var(--text-accent);
    line-height: 1.3;
}

.stats-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 60px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    white-space: pre-line;
}

.news {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 800px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.news .section-title {
    text-align: center;
    margin-bottom: 100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    box-shadow: var(--news-card-shadow);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-image-wrapper {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.news-card-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.5;
}

.news-card-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.news-card-link:visited {
    color: var(--text-accent);
}

.news-card-link:hover {
   color: #01893B;
}

.news-card-link:active {
    transform: translateY(1px);
}

.contacts {
    padding: 80px 0 120px 0;
}

.contacts-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contacts-title {
    text-align: left;
    margin-bottom: 24px;
}

.contacts-content {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.contact-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    padding-top: 2px;
    flex: 1;
    min-width: 0;
}

.map {
    width: 800px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background-color: #01A145;
    padding: 34px 0 36px;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: 340px 210px 290px;
    grid-template-rows: auto auto;
    column-gap: 60px;
    row-gap: 16px;
    align-items: start;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.footer-logo-image {
    width: 54px;
    height: 54px;
}

.footer-logo-text-block {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-logo-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
}

.footer-logo-subtitle {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.15;
}

.footer-quick-nav {
    display: none;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
    transform: translateY(14px); /* опускаем только иконки ближе к телефонам */
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-column: 1;
    grid-row: 1;
}

.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    grid-column: 3;
    grid-row: 2;
}

.footer-nav-col--left {
    grid-column: 1;
    grid-row: 2;
}

.footer-nav-col--center {
    grid-column: 2;
    grid-row: 2;
}

@media (min-width: 769px) {
    .footer-container {
        gap: 40px;
    }
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}


.footer-link:hover {
    color: #DDDDDD;
}

.footer-link:active {
    transform: translateY(1px);
}

.footer-social-link {
    transition: transform 0.3s ease;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.footer-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    /* делаем иконки зелёными на белых кружках */
    filter: brightness(0) saturate(100%) invert(28%) sepia(86%) saturate(1770%) hue-rotate(97deg) brightness(92%) contrast(102%);
}

.footer-social-link:hover {
    transform: scale(1.1);
}

.footer-social-link:active {
    transform: scale(0.95);
}

/* Footer — mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        row-gap: 14px;
        column-gap: 0;
    }
    .footer-brand-row { grid-column: 1; grid-row: 1; }
    .footer-nav-col--left { grid-column: 1; grid-row: 2; }
    .footer-nav-col--center { grid-column: 1; grid-row: 3; }
    .footer-social { grid-column: 1; grid-row: 4; justify-self: start; transform: none; }
    .footer-phones { grid-column: 1; grid-row: 5; text-align: left; }
    .footer-phones {
        gap: 8px;
    }
}

.service-page-container {
    display: flex;
    max-width: 1250px;
    margin: 0 auto;
}

.service-sidebar {
    width: 650px;
    padding: 120px 50px;
    box-sizing: border-box;
}

.service-sidebar-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    text-align: left;
    margin: 0 0 30px 0;
}

.service-sidebar-link {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #C3B9B5; /* This will need a dark mode variable */
    text-decoration: none;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-sidebar-link:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.service-sidebar-link:active {
    transform: translateX(5px);
}

.service-content {
    width: 1350px;
    padding: 120px 50px;
    box-sizing: border-box;
}

.back-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #C9C9C9; /* This will need a dark mode variable */
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

.back-link:active {
    transform: translateX(-2px);
}

.service-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    margin: 0 0 30px 0;
}

.service-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.service-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
}

.news-detail-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
    display: block;
}

.service-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    margin: 0 0 30px 0;
}

.service-price-note {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

.price-item:nth-child(odd) {
    background-color: var(--bg-price-odd);
}

.price-item:nth-child(even) {
    background-color: var(--bg-price-even);
}


.article-text-content {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-primary);
}

.article-text-content p {
    margin-bottom: 40px;
}

.article-list {
    padding-left: 40px;
    margin: 0;
}

.article-list li {
    margin-bottom: 20px;
}

.article-list ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 20px;
}

.appointment-main {
    padding: 0;
    background-color: var(--bg-primary);
}

.appointment-title {
    display: none; 
}

.appointment-form {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex-grow: 1;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 10px rgba(1, 161, 69, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-placeholder);
    font-family: 'Open Sans', sans-serif;
}


.form-group textarea {
    height: 236px;
    resize: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 22px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg-primary);
    margin: 0;
    font: inherit;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--text-accent);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

.appointment-btn {
    width: 380px;
    align-self: flex-start;
    border: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal p {
    font-size: 22px;
    margin: 0 0 30px 0;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.modal .btn {
    width: 100%;
}

/* ════════════════════════════════════════════════════════════
   АВТОРИЗАЦИЯ — кнопка в хедере
   ════════════════════════════════════════════════════════════ */

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-accent);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.3);
    white-space: nowrap;
}
.auth-btn:hover {
    background: #01893B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1,161,69,0.4);
}
.auth-btn svg { flex-shrink: 0; }

.user-menu {
    position: relative;
    display: inline-block;
}
.user-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 2px solid var(--text-accent);
    border-radius: 25px;
    padding: 7px 16px 7px 7px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s, box-shadow 0.2s;
}
.user-avatar-btn:hover { background: var(--bg-accent); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.user-avatar-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--text-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    flex-shrink: 0;
}
.user-dropdown {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 190px;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
}
.user-menu.open .user-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 14px; font-weight: 600;
    background: none; border: none; width: 100%;
    cursor: pointer; text-align: left;
    transition: background 0.2s;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-accent); }
.user-dropdown .logout-btn { color: #e53e3e; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border-color); margin: 4px 0; }

/* ════════════════════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА ВХОДА / РЕГИСТРАЦИИ
   ════════════════════════════════════════════════════════════ */

.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.auth-modal-overlay.show { opacity: 1; visibility: visible; }

.auth-modal {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px 44px;
    width: 440px;
    max-width: 95vw;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-modal-overlay.show .auth-modal { transform: scale(1) translateY(0); }

.auth-modal__close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle); font-size: 22px; line-height: 1;
    padding: 4px 8px; border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.auth-modal__close:hover { background: var(--bg-accent); color: var(--text-primary); }

.auth-modal__logo {
    text-align: center; margin-bottom: 6px;
}
.auth-modal__logo svg { color: var(--text-accent); }

.auth-modal__title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px; font-weight: 800;
    color: var(--text-primary);
    text-align: center; margin-bottom: 6px;
}
.auth-modal__subtitle {
    font-size: 14px; color: var(--text-subtle);
    text-align: center; margin-bottom: 26px;
}

.auth-modal__tabs {
    display: flex; gap: 0;
    background: var(--bg-accent);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 26px;
}
.auth-tab {
    flex: 1; padding: 9px;
    background: none; border: none;
    border-radius: 9px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--text-subtle);
    cursor: pointer;
    transition: all 0.25s;
}
.auth-tab.active {
    background: var(--bg-primary);
    color: var(--text-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form__group { display: flex; flex-direction: column; gap: 5px; }
.auth-form__label {
    font-size: 13px; font-weight: 700;
    color: var(--text-primary);
}
.auth-form__input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.auth-form__input:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(1,161,69,0.15);
}
.auth-form__input.error { border-color: #e53e3e; }

.auth-form__error {
    font-size: 12px; color: #e53e3e;
    min-height: 16px;
}

.auth-form__submit {
    margin-top: 6px;
    padding: 14px;
    background: var(--text-accent);
    color: #fff;
    border: none; border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.3);
}
.auth-form__submit:hover { background: #01893B; transform: translateY(-1px); }
.auth-form__submit:disabled { background: var(--bg-accent); color: var(--text-subtle); box-shadow: none; cursor: default; }

.auth-form__msg {
    text-align: center; font-size: 13px;
    padding: 10px 14px; border-radius: 10px;
    display: none;
}
.auth-form__msg.success { background: #d4edda; color: #155724; display: block; }
.auth-form__msg.error   { background: #f8d7da; color: #721c24; display: block; }

/* ════════════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ — страница cabinet.html
   ════════════════════════════════════════════════════════════ */

.cabinet-page { background: var(--bg-secondary); min-height: 100vh; }

.cabinet-hero {
    background: linear-gradient(135deg, #01A145 0%, #46BDF5 100%);
    padding: 48px 0 56px;
    color: #fff;
    text-align: center;
}
.cabinet-hero__greeting { font-size: 14px; font-weight: 600; opacity: 0.85; margin-bottom: 6px; }
.cabinet-hero__name { font-size: 32px; font-weight: 900; margin-bottom: 6px; }
.cabinet-hero__email { font-size: 14px; opacity: 0.75; }

.cabinet-tabs-bar {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
}
.cabinet-tabs {
    display: flex; gap: 0;
    max-width: 1200px; margin: 0 auto;
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cabinet-tabs::-webkit-scrollbar {
    display: none;
}
.cabinet-tab,
a.cabinet-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 24px;
    background: none; border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--text-subtle);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.cabinet-tab:hover,
a.cabinet-tab:hover { color: var(--text-accent); }
.cabinet-tab.active,
a.cabinet-tab.active { color: var(--text-accent); border-bottom-color: var(--text-accent); }

.cabinet-content {
    max-width: 900px; margin: 0 auto;
    padding: 36px 15px 60px;
}
.cabinet-section { display: none; }
.cabinet-section.active { display: block; }

.cabinet-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}
.cabinet-card__title {
    font-size: 18px; font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 22px;
    display: flex; align-items: center; gap: 10px;
}
.cabinet-card__title svg { color: var(--text-accent); }

.profile-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.profile-grid .full-width { grid-column: 1 / -1; }

.profile-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text-subtle); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 5px;
}
.profile-field input {
    width: 100%; padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.profile-field input:focus,
.profile-field-input:focus { border-color: var(--text-accent); }
.profile-field input[readonly],
.profile-field-input[readonly] { background: var(--bg-accent); color: var(--text-subtle); cursor: default; }

.profile-field-input,
.profile-form .form-control {
    width: 100%; padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

body.cabinet-page .pet-form .form-group input,
body.cabinet-page .profile-form .form-group input,
body.cabinet-page .pet-form .form-group textarea,
body.cabinet-page .profile-form .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    box-shadow: none;
}

body.cabinet-page .pet-form .form-group input:focus,
body.cabinet-page .profile-form .form-group input:focus,
body.cabinet-page .pet-form .form-group textarea:focus,
body.cabinet-page .profile-form .form-group textarea:focus {
    border-color: var(--text-accent);
    box-shadow: none;
}

.profile-form .help-block {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
}

body.cabinet-page main {
    padding: 0;
    min-height: auto;
}

.cabinet-save-btn {
    padding: 13px 32px;
    background: var(--text-accent);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.25);
}
.cabinet-save-btn:hover { background: #01893B; transform: translateY(-1px); }

.cabinet-success-msg, .cabinet-error-msg {
    display: none; padding: 10px 16px;
    border-radius: 10px; font-size: 13px; margin-top: 12px;
}
.cabinet-success-msg { background: #d4edda; color: #155724; display: block; }
.cabinet-error-msg   { background: #f8d7da; color: #721c24; display: block; }
.msg-hidden { display: none !important; }

/* Питомцы */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.pet-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px; padding: 20px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pet-card:hover { border-color: var(--text-accent); box-shadow: 0 4px 14px rgba(1,161,69,0.15); }
.pet-card__icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #01A145, #46BDF5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 12px;
}
.pet-card__name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.pet-card__species { font-size: 13px; color: var(--text-subtle); margin-bottom: 4px; }
.pet-card__details { font-size: 12px; color: var(--text-subtle); }
.pet-card__delete {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle); font-size: 16px;
    padding: 4px; border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.pet-card__delete:hover { background: #f8d7da; color: #e53e3e; }

.pet-card__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pet-card__delete-form {
    margin: 0;
    display: inline-flex;
}

.pet-card__btn {
    min-width: 0;
}

.cabinet-form-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.add-pet-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border: 2px dashed var(--text-accent);
    border-radius: 12px;
    background: none; color: var(--text-accent);
    font-family: 'Roboto', sans-serif;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.add-pet-btn:hover { background: rgba(1,161,69,0.07); }

.pet-form-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.pet-form-modal-overlay.show { opacity: 1; visibility: visible; }
.pet-form-modal {
    background: var(--bg-primary);
    border-radius: 20px; padding: 32px 36px;
    width: 400px; max-width: 95vw;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pet-form-modal-overlay.show .pet-form-modal { transform: scale(1); }

/* Записи */
.appointment-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
}
.appt-info__date { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.appt-info__problem { font-size: 14px; color: var(--text-subtle); }
.appt-badge {
    display: inline-flex; align-items: center;
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    white-space: nowrap;
}
.appt-badge.new       { background: #fff3cd; color: #856404; }
.appt-badge.confirmed { background: #d4edda; color: #155724; }
.appt-badge.completed { background: #cce5ff; color: #004085; }
.appt-badge.cancelled { background: #f8d7da; color: #721c24; }

.empty-state {
    text-align: center; padding: 48px 20px;
    color: var(--text-subtle);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty-state span { font-size: 14px; }

.cabinet-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 32px; color: var(--text-subtle); font-weight: 600;
}
.spinner {
    width: 22px; height: 22px;
    border: 3px solid var(--border-color);
    border-top-color: var(--text-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cabinet-not-auth {
    text-align: center; padding: 80px 20px;
}
.cabinet-not-auth h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.cabinet-not-auth p  { color: var(--text-subtle); margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ — серверная верстка (cabinet__*)
   ════════════════════════════════════════════════════════════ */
.cabinet {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.cabinet__sidebar {
    width: 280px;
    flex-shrink: 0;
    padding-top: 40px;
}

.cabinet__user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.cabinet__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #01A145, #46BDF5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    flex-shrink: 0;
}

.cabinet__nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cabinet__nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.cabinet__nav-link:hover {
    color: var(--text-accent);
    transform: translateX(6px);
}

.cabinet__nav-link.active {
    color: var(--text-accent) !important;
}

.cabinet__content {
    flex: 1;
    min-width: 0;
    padding-top: 40px;
}

.cabinet__content h1 {
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 22px 0;
}

.cabinet__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.cabinet__stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--card-shadow);
    flex: 1 1 140px;
    text-align: center;
}

.cabinet__stat-card .num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-accent);
    margin-bottom: 4px;
}

.cabinet__block {
    margin-bottom: 22px;
}

.cabinet__block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.cabinet__block-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg-accent);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge--new { background: #fff3cd; color: #856404; }
.status-badge--confirmed { background: #d4edda; color: #155724; }
.status-badge--completed { background: #cce5ff; color: #004085; }
.status-badge--cancelled { background: #f8d7da; color: #721c24; }

/* Адаптив */
@media (max-width: 600px) {
    .auth-modal { padding: 28px 22px; }
    .profile-grid { grid-template-columns: 1fr; }
    .cabinet-tab { padding: 12px 16px; font-size: 13px; }
    .cabinet-card { padding: 20px 18px; }
    .appointment-card { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════
   TOAST УВЕДОМЛЕНИЯ
   ════════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 99999;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 14px; font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), opacity 0.3s;
    max-width: 340px;
    pointer-events: all;
}
.toast--show { transform: translateX(0); opacity: 1; }
.toast--success { border-left: 4px solid #01A145; }
.toast--error   { border-left: 4px solid #e53e3e; }
.toast--warning { border-left: 4px solid #d69e2e; }
.toast--info    { border-left: 4px solid #46BDF5; }
.toast__icon    { font-size: 18px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   SCROLL-TO-TOP
   ════════════════════════════════════════════════════════════ */
#scroll-top-btn {
    position: fixed;
    bottom: 90px; right: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--text-accent);
    color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(1,161,69,0.4);
    opacity: 0; visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 9000;
}
#scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top-btn:hover   { background: #01893B; transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════════
   АНИМАЦИИ ПОЯВЛЕНИЯ (IntersectionObserver)
   ════════════════════════════════════════════════════════════ */
.anim-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ════════════════════════════════════════════════════════════
   АКТИВНАЯ ССЫЛКА В NAV
   ════════════════════════════════════════════════════════════ */
.nav__link--active {
    color: var(--text-accent) !important;
    font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   СЕКЦИЯ ОТЗЫВОВ
   ════════════════════════════════════════════════════════════ */
.reviews-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}
.reviews-section .section-title { margin-bottom: 40px; text-align: center; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.review-card__header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.review-card__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #01A145, #46BDF5);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
    flex-shrink: 0;
}
.review-card__name  { font-weight: 800; font-size: 15px; }
.review-card__stars { color: #f6ad55; font-size: 16px; letter-spacing: 1px; }
.review-card__text  { font-size: 14px; color: var(--text-subtle); line-height: 1.6; margin-bottom: 10px; }
.review-card__date  { font-size: 12px; color: var(--text-placeholder); }

/* Форма отзыва */
.review-form-wrap {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: var(--card-shadow);
    max-width: 560px;
    margin: 0 auto;
}
.review-form-wrap h3 {
    font-size: 20px; font-weight: 800;
    margin-bottom: 20px; text-align: center;
}
.review-form { display: flex; flex-direction: column; gap: 14px; }
.star-rating {
    display: flex; gap: 6px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label {
    font-size: 30px; cursor: pointer;
    color: var(--border-color);
    transition: color 0.15s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f6ad55; }
.review-form input,
.review-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    width: 100%;
}
.review-form input:focus,
.review-form textarea:focus { border-color: var(--text-accent); }
.review-form textarea { min-height: 90px; }
.review-form__submit {
    padding: 14px;
    background: var(--text-accent);
    color: #fff; border: none; border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.3);
}
.review-form__submit:hover { background: #01893B; transform: translateY(-1px); }
.review-form__submit:disabled { background: var(--bg-accent); color: var(--text-subtle); box-shadow: none; }

/* ════════════════════════════════════════════════════════════
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ════════════════════════════════════════════════════════════ */
.contact-form-wrap {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 10px 14px;
    box-shadow: var(--card-shadow);
    margin-top: 8px;
}
.contact-form-wrap h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form input,
.contact-form textarea {
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 56px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    resize: none;
    box-sizing: border-box;
    display: block;
    appearance: none;
}

/* Жестко выравниваем input/textarea от ActiveForm (form-control) */
.contact-form .form-control {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 56px !important;
    box-sizing: border-box !important;
    resize: none !important;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--text-accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-placeholder);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 56px;
    opacity: 1;
}
.contact-form .form-control::placeholder {
    color: var(--text-placeholder) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 56px !important;
    opacity: 1 !important;
}
.contact-form textarea {
    overflow: hidden;
}
.contact-form__submit {
    padding: 8px;
    background: var(--text-accent);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px; font-weight: 800;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.25);
}
.contact-form__submit:hover { background: #01893B; }
.contact-form__submit:disabled { background: var(--bg-accent); color: var(--text-subtle); }

/* ════════════════════════════════════════════════════════════
   АВТОРИЗАЦИЯ — кнопка в хедере
   ════════════════════════════════════════════════════════════ */
.auth-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--text-accent); color: #fff;
    border: none; border-radius: 25px;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700; font-size: 15px;
    cursor: pointer; text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.3);
    white-space: nowrap;
}
.auth-btn:hover { background: #01893B; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(1,161,69,0.4); }

.user-menu { position: relative; display: inline-block; }
.user-avatar-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--bg-card);
    border: 2px solid var(--text-accent);
    border-radius: 25px; padding: 7px 16px 7px 7px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700; font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s, box-shadow 0.2s;
}
.user-avatar-btn:hover { background: var(--bg-accent); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.user-avatar-circle {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--text-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 14px; font-weight: 600;
    background: none; border: none; width: 100%;
    cursor: pointer; text-align: left;
    transition: background 0.2s;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-accent); }
.user-dropdown .logout-btn { color: #e53e3e; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border-color); margin: 4px 0; }

/* ════════════════════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА ВХОДА / РЕГИСТРАЦИИ
   ════════════════════════════════════════════════════════════ */
.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.auth-modal-overlay.show { opacity: 1; visibility: visible; }
.auth-modal {
    background: var(--bg-primary);
    border-radius: 24px; padding: 40px 44px;
    width: 440px; max-width: 95vw;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-modal-overlay.show .auth-modal { transform: scale(1) translateY(0); }
.auth-modal__close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle); font-size: 22px; padding: 4px 8px;
    border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.auth-modal__close:hover { background: var(--bg-accent); color: var(--text-primary); }
.auth-modal__logo { text-align: center; margin-bottom: 6px; color: var(--text-accent); }
.auth-modal__title { font-family: 'Roboto', sans-serif; font-size: 24px; font-weight: 800; color: var(--text-primary); text-align: center; margin-bottom: 6px; }
.auth-modal__subtitle { font-size: 14px; color: var(--text-subtle); text-align: center; margin-bottom: 26px; }
.auth-modal__tabs { display: flex; background: var(--bg-accent); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 9px; background: none; border: none; border-radius: 9px; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-subtle); cursor: pointer; transition: all 0.25s; }
.auth-tab.active { background: var(--bg-primary); color: var(--text-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form__group { display: flex; flex-direction: column; gap: 5px; }
.auth-form__label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.auth-form__input {
    padding: 12px 16px; border: 2px solid var(--border-color);
    border-radius: 12px; background: var(--bg-secondary);
    color: var(--text-primary); font-family: 'Roboto', sans-serif;
    font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
}
.auth-form__input:focus { border-color: var(--text-accent); box-shadow: 0 0 0 3px rgba(1,161,69,0.15); }
.auth-form__input.error { border-color: #e53e3e; }
.auth-form__error { font-size: 12px; color: #e53e3e; min-height: 16px; }
.auth-form__submit {
    margin-top: 6px; padding: 14px;
    background: var(--text-accent); color: #fff;
    border: none; border-radius: 14px;
    font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 800;
    cursor: pointer; transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.3);
}
.auth-form__submit:hover { background: #01893B; transform: translateY(-1px); }
.auth-form__submit:disabled { background: var(--bg-accent); color: var(--text-subtle); box-shadow: none; cursor: default; }
.auth-form__msg { text-align: center; font-size: 13px; padding: 10px 14px; border-radius: 10px; display: none; }
.auth-form__msg.success { background: #d4edda; color: #155724; display: block; }
.auth-form__msg.error   { background: #f8d7da; color: #721c24; display: block; }

/* ════════════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ
   ════════════════════════════════════════════════════════════ */
.cabinet-page { background: var(--bg-secondary); min-height: 100vh; }
.cabinet-hero {
    background: linear-gradient(135deg, #01A145 0%, #46BDF5 100%);
    padding: 48px 0 56px; color: #fff; text-align: center;
}
.cabinet-hero__greeting { font-size: 14px; font-weight: 600; opacity: 0.85; margin-bottom: 6px; }
.cabinet-hero__name { font-size: 32px; font-weight: 900; margin-bottom: 6px; }
.cabinet-hero__email { font-size: 14px; opacity: 0.75; }
.cabinet-tabs-bar {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
}
.cabinet-tabs {
    display: flex; max-width: 1200px; margin: 0 auto;
    padding: 0 15px; overflow-x: auto;
}
.cabinet-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 24px; background: none; border: none;
    font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700;
    color: var(--text-subtle); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.cabinet-tab:hover { color: var(--text-accent); }
.cabinet-tab.active { color: var(--text-accent); border-bottom-color: var(--text-accent); }
.cabinet-content { max-width: 900px; margin: 0 auto; padding: 36px 15px 60px; }
.cabinet-section { display: none; }
.cabinet-section.active { display: block; }
.cabinet-card {
    background: var(--bg-primary); border-radius: 20px;
    padding: 28px 32px; box-shadow: var(--card-shadow); margin-bottom: 20px;
}
.cabinet-card__title {
    font-size: 18px; font-weight: 800; color: var(--text-primary);
    margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.cabinet-card__title svg { color: var(--text-accent); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-grid .full-width { grid-column: 1 / -1; }
.profile-field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.profile-field input, .profile-field select {
    width: 100%; padding: 11px 14px;
    border: 2px solid var(--border-color); border-radius: 11px;
    background: var(--bg-secondary); color: var(--text-primary);
    font-family: 'Roboto', sans-serif; font-size: 15px; outline: none;
    transition: border-color 0.2s;
}
.profile-field input:focus, .profile-field select:focus { border-color: var(--text-accent); }
.profile-field input[readonly] { background: var(--bg-accent); color: var(--text-subtle); cursor: default; }
.cabinet-save-btn {
    padding: 13px 32px; background: var(--text-accent);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(1,161,69,0.25);
}
.cabinet-save-btn:hover { background: #01893B; transform: translateY(-1px); }
.msg-hidden { display: none !important; }
.pets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pet-card {
    background: var(--bg-secondary); border: 2px solid var(--border-color);
    border-radius: 16px; padding: 20px; position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pet-card:hover { border-color: var(--text-accent); box-shadow: 0 4px 14px rgba(1,161,69,0.15); }
.pet-card__icon { width: 48px; height: 48px; background: linear-gradient(135deg, #01A145, #46BDF5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.pet-card__name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.pet-card__species { font-size: 13px; color: var(--text-subtle); margin-bottom: 4px; }
.pet-card__details { font-size: 12px; color: var(--text-subtle); }
.pet-card__delete { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: var(--text-subtle); font-size: 16px; padding: 4px; border-radius: 6px; transition: background 0.2s, color 0.2s; }
.pet-card__delete:hover { background: #f8d7da; color: #e53e3e; }
.add-pet-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border: 2px dashed var(--text-accent);
    border-radius: 12px; background: none; color: var(--text-accent);
    font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.add-pet-btn:hover { background: rgba(1,161,69,0.07); }
.pet-form-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: all 0.3s; backdrop-filter: blur(4px);
}
.pet-form-modal-overlay.show { opacity: 1; visibility: visible; }
.pet-form-modal {
    background: var(--bg-primary); border-radius: 20px; padding: 32px 36px;
    width: 400px; max-width: 95vw;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pet-form-modal-overlay.show .pet-form-modal { transform: scale(1); }
.appointment-card {
    background: var(--bg-secondary); border: 2px solid var(--border-color);
    border-radius: 16px; padding: 20px 24px; margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.appt-info__date { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.appt-info__problem { font-size: 14px; color: var(--text-subtle); }
.appt-badge { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.appt-badge.new       { background: #fff3cd; color: #856404; }
.appt-badge.confirmed { background: #d4edda; color: #155724; }
.appt-badge.completed { background: #cce5ff; color: #004085; }
.appt-badge.cancelled { background: #f8d7da; color: #721c24; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-subtle); }
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cabinet-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--text-subtle); font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border-color); border-top-color: var(--text-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cabinet-not-auth { text-align: center; padding: 80px 20px; }
.cabinet-not-auth h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.cabinet-not-auth p { color: var(--text-subtle); margin-bottom: 28px; }
.stat-box { flex: 1; min-width: 130px; background: var(--bg-secondary); border-radius: 14px; padding: 18px 20px; text-align: center; }
.stat-box__val { font-size: 32px; font-weight: 900; color: var(--text-accent); }
.stat-box__label { font-size: 13px; color: var(--text-subtle); font-weight: 600; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   АДМИН-ПАНЕЛЬ
   ════════════════════════════════════════════════════════════ */
.admin-page { background: var(--bg-secondary); min-height: 100vh; }
.admin-hero { background: linear-gradient(135deg, #2d3748 0%, #01A145 100%); padding: 36px 0; color: #fff; text-align: center; }
.admin-hero h1 { font-size: 28px; font-weight: 900; }
.admin-hero p  { opacity: 0.8; font-size: 14px; margin-top: 4px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
    background: var(--bg-primary); border-radius: 16px; padding: 20px;
    text-align: center; box-shadow: var(--card-shadow);
    border-left: 4px solid var(--text-accent);
}
.admin-stat-card__val { font-size: 36px; font-weight: 900; color: var(--text-accent); }
.admin-stat-card__label { font-size: 13px; color: var(--text-subtle); font-weight: 600; margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 14px; background: var(--bg-accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-subtle); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-accent); }
.admin-status-select {
    padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
    border: 2px solid var(--border-color); background: var(--bg-secondary);
    color: var(--text-primary); cursor: pointer;
}
.admin-delete-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle); padding: 6px 8px; border-radius: 8px;
    transition: background 0.2s, color 0.2s; font-size: 14px;
}
.admin-delete-btn:hover { background: #f8d7da; color: #e53e3e; }
.admin-approve-btn {
    background: none; border: 2px solid var(--text-accent);
    color: var(--text-accent); padding: 4px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.admin-approve-btn:hover { background: var(--text-accent); color: #fff; }
.admin-section-title {
    font-size: 20px; font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.admin-badge { font-size: 12px; background: #e53e3e; color: #fff; padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* Главная: мобильная типографика */
@media (max-width: 768px) {
    .hero-title__desktop,
    .hero-description__desktop {
        display: none;
    }

    .hero-title__mobile,
    .hero-description__mobile {
        display: block;
    }

    .hero-text {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 28px;
        font-weight: 800;
        line-height: 1.28;
        letter-spacing: -0.02em;
        margin-bottom: 18px;
        text-align: center;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 28px;
        max-width: none;
        opacity: 0.9;
        text-align: center;
    }

    .hero-text .btn,
    .hero-btn {
        width: 100%;
        max-width: 100%;
        font-size: 17px;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-image-container {
        display: none;
    }

    .section-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 36px;
    }

    .about-us-description {
        font-size: 16px;
        line-height: 1.55;
        padding: 0 16px;
        max-width: 100%;
    }

    .about-us-content {
        width: 100%;
    }

    .about-us,
    .stats,
    .news {
        min-height: auto;
        padding: 56px 0;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }

    .pet-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pet-card__delete-form {
        display: block;
        width: 100%;
    }

    .pet-card__actions .pet-card__btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 24px;
        text-align: center;
        box-sizing: border-box;
    }

    .cabinet-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cabinet-form-actions .cabinet-save-btn,
    .cabinet-form-actions .btn {
        width: 100%;
        min-height: 44px;
        text-align: center;
        box-sizing: border-box;
    }

    body.cabinet-page .pet-form .cabinet-save-btn {
        width: 100%;
        min-height: 44px;
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .auth-modal { padding: 28px 22px; }
    .profile-grid { grid-template-columns: 1fr; }
    .cabinet-tab { padding: 12px 14px; font-size: 12px; }
    .cabinet-card { padding: 20px 18px; }
    .appointment-card { flex-direction: column; }
    .reviews-grid { grid-template-columns: 1fr; }
    .review-form-wrap { padding: 22px 18px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    #scroll-top-btn, #toast-container { right: 14px; }

    /* Главная: блоки */
    .hero-title { font-size: 24px; }
    .hero-description { font-size: 15px; }
    .section-title { font-size: 22px; margin-bottom: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .contacts-container { flex-direction: column; align-items: flex-start; gap: 30px; }
    .map { width: 100%; height: 320px; }

    /* Запись/услуги */
    .service-page-container { flex-direction: column; }
    .service-sidebar { width: 100%; padding: 60px 20px; }
    .service-content { width: 100%; padding: 40px 20px; }

    /* Кабинет */
    .cabinet { flex-direction: column; gap: 20px; }
    .cabinet__sidebar { width: 100%; }
    .cabinet__content { width: 100%; }
    .cabinet__nav { flex-direction: column; gap: 10px; }
}
