/* ==========================================================================
   Trichologia Theme — main.css
   ========================================================================== */

/* --- Self-hosted fonts (Open Sans variable, Open Sans Condensed) --- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/open-sans-condensed-300-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/open-sans-condensed-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-condensed-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-condensed-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #af5914;
    --color-primary-dark: #8c4710;
    --color-primary-light: #d4956a;
    --color-accent: #b73d3d;
    --color-bg: #eeeeee;
    --color-bg-white: #ffffff;
    --color-text: #222222;
    --color-text-light: #606060;
    --color-text-muted: #7a7a7a;
    --color-text-gray: #9e9e9e;
    --color-border: #cccccc;
    --color-border-light: #e0e0e0;
    --color-heading: #654f2c;
    --color-heading-alt: #784924;
    --font-main: 'Open Sans', sans-serif;
    --font-condensed: 'Open Sans Condensed', sans-serif;
    --container-width: 1199px;
    --radius: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
    --gradient-bar: linear-gradient(to right, #eeeeee 0%, #dbdbdb 50%, #eeeeee 100%);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2em; line-height: 1.5; margin-top: 0.75em; margin-bottom: 0.75em; }
h2 { font-size: 1.5em; line-height: 1; margin-top: 1em; }
h3 { font-size: 1.25em; line-height: 1.2; margin-bottom: 1.2em; }

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.clear {
    clear: both;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.8%;
}

.site-main {
    flex: 1;
    padding: 20px 0;
}

/* ==========================================================================
   Header — перенос с оригинала
   ========================================================================== */
#header {
    margin: 0;
    padding: 0.5em 0 0;
    position: relative;
    background: var(--color-bg);
}

/* --- User line (верхняя полоска) --- */
#user_line {
    padding: 5px 0;
}

.register a, .account a {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-muted);
}

.login a, .logout a {
    text-transform: uppercase;
    font-size: 14px;
    color: var(--color-text-muted);
}

.register a:hover, .account a:hover,
.login a:hover, .logout a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* --- Gradient bar --- */
#gradient {
    display: block;
    width: 100%;
    height: 41px;
    margin-top: 128px;
    background: var(--gradient-bar);
}

/* --- Header container --- */
#header-container {
    margin-top: -85px;
    position: relative;
}

/* --- Header left (logo + title) --- */
#header-left {
    display: block;
    max-width: 440px;
    float: left;
}

h2.s_name {
    display: block;
    float: left;
    color: var(--color-text-gray);
    margin: 22px 0 0 0;
    line-height: 1;
    font-weight: normal;
}

.s_name_first {
    font-size: 21px;
}

.s_name_second {
    font-size: 33.5px;
    letter-spacing: 6px;
}

.s_name_third {
    font-size: 35px;
}

#header #logo {
    float: left;
    margin-left: 18px;
}

#header #logo img {
    width: auto;
    height: auto;
    max-height: 130px;
}

/* --- Slogan --- */
#s_slogan {
    position: relative;
    float: left;
    width: 100%;
    margin-top: 5px;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.s_line {
    display: block;
    position: absolute;
    width: 40%;
    height: 1px;
    top: -10px;
    left: 30%;
    background-color: #cdcdcd;
}

/* --- Header right (3 menu columns) --- */
#header-right {
    display: block;
    width: 49%;
    float: right;
}

#social {
    display: inline-block;
    height: 30px;
    float: right;
}

.region-header {
    clear: both;
}

.header-menu-block {
    display: inline-block;
    box-sizing: border-box;
    width: 31.5%;
    vertical-align: top;
}

.header-menu-block--middle {
    width: 34.5%;
}

.header-menu-block .block-title {
    margin: 20px 0 15px 0;
    font-family: var(--font-condensed);
    font-size: 28px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    font-weight: normal;
    line-height: 1;
}

.header-menu-block ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu-block--middle ul.menu {
    padding: 0 5px;
    margin: 0 5px;
    border-right: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.header-menu-block ul.menu li {
    list-style-type: none;
    list-style-image: none;
    font-size: 12px;
    line-height: 1.8;
}

.header-menu-block ul.menu li a {
    color: var(--color-text-light);
}

.header-menu-block ul.menu li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* --- Mobile menu toggle --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 2.8%;
    top: 60px;
    z-index: 100;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text-muted);
    transition: transform var(--transition);
}

.mobile-nav {
    display: none;
}

.mobile-nav.is-open {
    display: block;
    background: var(--color-bg-white);
    padding: 15px 2.8%;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu li a {
    display: block;
    padding: 10px 0;
    color: var(--color-text-light);
    font-size: 14px;
}

/* ==========================================================================
   Footer — перенос с оригинала
   ========================================================================== */
#footer {
    clear: both;
    padding: 1.5em 0;
    position: relative;
    width: 100%;
    background: var(--gradient-bar);
    margin-top: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

#footer a {
    color: var(--color-primary);
}

#footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   Hero — front-page
   ========================================================================== */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.hero h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.hero__subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Page Title
   ========================================================================== */
.page-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

/* ==========================================================================
   Doctors Catalog — archive-doctor.php
   ========================================================================== */

/* --- Filters --- */
.doctors-filters {
    background: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.doctors-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

/* --- Doctors Grid --- */
.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* --- Doctor Card --- */
.doctor-card {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

.doctor-card:hover {
    box-shadow: var(--shadow-hover);
}

.doctor-card__link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    color: var(--color-text);
}

.doctor-card__link:hover {
    color: var(--color-text);
}

.doctor-card__photo {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}

.doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: var(--color-text-muted);
}

.doctor-card__no-photo svg {
    width: 36px;
    height: 36px;
}

.doctor-card__no-photo--large svg {
    width: 80px;
    height: 80px;
}

.doctor-card__info {
    flex: 1;
    min-width: 0;
}

.doctor-card__name {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-heading-alt);
}

.doctor-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.doctor-card__work {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.doctor-card__city::before {
    content: '\2022';
    margin-right: 4px;
    color: var(--color-text-muted);
}

/* --- Spec Tags --- */
.spec-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-primary-light);
    color: #fff;
    border-radius: 3px;
    white-space: nowrap;
}

.spec-tag--large {
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* --- Pagination --- */
.doctors-pagination {
    margin-top: 30px;
    text-align: center;
}

.doctors-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg-white);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.doctors-pagination .page-numbers:hover {
    background: var(--color-primary-light);
    color: #fff;
}

.doctors-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   Doctor Profile — single-doctor.php
   ========================================================================== */
.doctor-profile {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.doctor-profile__header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
}

.doctor-profile__photo {
    width: 200px;
    height: 260px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}

.doctor-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-profile__photo .doctor-card__no-photo--large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: var(--color-text-muted);
}

.doctor-profile__name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--color-text);
}

.doctor-profile__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.doctor-profile__scient {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 8px;
}

/* --- Details --- */
.doctor-profile__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--color-heading);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 0.95rem;
}

.detail-list dt {
    font-weight: 600;
    color: var(--color-text-light);
}

.detail-list dd {
    color: var(--color-text);
}

.detail-list dd a {
    color: var(--color-primary);
}

/* --- Back Link --- */
.back-link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding: 8px 0;
}

.back-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Standard Pages
   ========================================================================== */
.page-content {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.page-content h1 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    font-weight: bold;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: background var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-primary);
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.95rem;
}

.woocommerce-orders-table th {
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg);
}

.woocommerce .button,
.woocommerce-Button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}

.woocommerce .button:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* --- WooCommerce forms --- */
.woocommerce form .form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   No Results
   ========================================================================== */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

/* ==========================================================================
   Loading Spinner (for AJAX)
   ========================================================================== */
.doctors-loading {
    text-align: center;
    padding: 40px;
}

.doctors-loading::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 850px) {
    #header-right {
        width: 65%;
    }

    h2.s_name, #s_slogan {
        display: none;
    }

    .header-menu-block .block-title {
        font-size: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    #header-right {
        display: none;
    }
}

@media (max-width: 540px) {
    #header-left {
        float: none;
        margin: 0 auto;
        text-align: center;
    }

    h2.s_name, #s_slogan {
        font-size: 10px;
        display: block;
    }

    .s_name {
        float: none;
        display: block;
        margin-top: 35px;
    }

    .s_name_first { font-size: 14px; }
    .s_name_second { font-size: 22.2px; }
    .s_name_third { font-size: 23px; }
    .s_name_first, .s_name_second, .s_name_third { line-height: 1; }

    #header #logo {
        float: none;
        display: inline-block;
        margin-left: 0;
    }

    #header-right {
        width: 100%;
        display: none;
    }

    #user_line {
        font-size: 12px;
        text-align: center;
    }

    .register a { font-size: 14px; }
    .login a { font-size: 12px; }

    #gradient {
        margin-top: 80px;
    }

    #header-container {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }

    .doctor-profile {
        padding: 20px;
    }

    .doctor-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-profile__photo {
        width: 150px;
        height: 200px;
    }

    .doctor-profile__specs {
        justify-content: center;
    }

    .doctor-profile__details {
        grid-template-columns: 1fr;
    }

    .doctor-card__photo {
        width: 60px;
        height: 80px;
    }

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

    .hero {
        padding: 40px 16px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }

    .container {
        padding: 0 12px;
    }

    .doctor-card__link {
        padding: 12px;
    }

    .doctor-profile__photo {
        width: 120px;
        height: 160px;
    }
}

/* ==========================================================================
   Формы: регистрация, профиль, заявление
   ========================================================================== */

/* --- Общие стили форм --- */
.register-form fieldset,
.edit-profile-form fieldset {
    border: 1px solid #ddd;
    padding: 20px 20px 10px;
    margin-bottom: 20px;
    background: #fff;
}

.register-form legend,
.edit-profile-form legend {
    font-family: var(--font-condensed);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0 10px;
    color: var(--color-primary);
}

.register-form .form-row,
.edit-profile-form .form-row {
    margin-bottom: 15px;
}

.register-form label,
.edit-profile-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="tel"],
.register-form input[type="url"],
.register-form textarea,
.register-form select,
.edit-profile-form input[type="text"],
.edit-profile-form input[type="email"],
.edit-profile-form input[type="tel"],
.edit-profile-form input[type="url"],
.edit-profile-form textarea,
.edit-profile-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: var(--font-main);
    box-sizing: border-box;
}

.register-form input:focus,
.register-form textarea:focus,
.register-form select:focus,
.edit-profile-form input:focus,
.edit-profile-form textarea:focus,
.edit-profile-form select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.register-form .description {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.register-form .required,
.edit-profile-form .required {
    color: #c00;
}

/* Чекбоксы специальностей */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin-bottom: 15px;
}

.checkbox-grid .checkbox-item {
    font-weight: normal;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-grid .checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Вкладки регистрации */
.register-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
}

.register-tabs .tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
}

.register-tabs .tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.register-tabs .tab:hover {
    color: var(--color-primary);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 1rem;
    font-family: var(--font-main);
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.form-submit {
    margin-top: 20px;
}

.form-row-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-row-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

/* Сообщения */
.register-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 20px;
    margin-bottom: 20px;
}

.register-success h2 {
    color: #2e7d32;
    margin-top: 0;
}

.register-errors {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.register-errors p {
    margin: 4px 0;
    color: #c62828;
}

/* --- Заявление (membership) --- */
.membership-controls {
    text-align: center;
    margin-bottom: 20px;
}

.membership-controls .btn {
    margin: 0 5px 10px;
}

.membership-notice {
    color: #c62828;
    font-size: 1.1rem;
    margin-top: 10px;
}

#pdf-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

#pdf-content {
    width: 794px;
    min-height: 1122px;
    background: #fff;
    padding: 30px 50px;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#pdf-content p {
    margin: 6px 0;
}

#pdf-content .center {
    text-align: center;
    margin: 10px 0;
}

.membership-table {
    width: 100%;
    border-collapse: collapse;
}

.membership-table td {
    border: none;
    padding: 5px;
    text-align: left;
    vertical-align: top;
}

.membership-table .col-30 { width: 30%; }
.membership-table .col-70 { width: 70%; }
.membership-table .col-50 { width: 50%; }

.membership-input {
    border: none;
    border-bottom: 1px solid #000;
    font-size: 16px;
    font-family: 'Times New Roman', serif;
    background: transparent;
    padding: 2px 0;
    outline: none;
}

.membership-input.short { width: 72px; }
.membership-input.medium { width: 150px; }
.membership-input.medium-b { width: 250px; }
.membership-input.long { width: 100%; }

.signature-block {
    width: 320px;
    height: 80px;
    border: 1px dashed #ccc;
    border-bottom: 1px solid #000;
    position: relative;
}

.signature-block canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.signature-label {
    text-align: center;
    width: 320px;
}

/* Responsive формы */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .register-tabs {
        flex-direction: column;
    }

    .register-tabs .tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
    }

    .register-tabs .tab.active {
        border-left-color: var(--color-primary);
    }

    #pdf-content {
        width: 100%;
        padding: 15px;
    }

    .signature-block {
        width: 100%;
    }

    .signature-label {
        width: 100%;
    }
}
