/* ============================================================
   Стоматология «Птичка Тари» — базовые стили
   ============================================================ */
:root {
    --primary: #2ECC71;
    --primary-dark: #27AE60;
    --primary-light: #A8E6CF;
    --accent: #1ABC9C;
    --accent-dark: #16A085;
    --dark: #14213D;
    --bg-alt: #F8FAFE;
    --bg: #ffffff;
    --text: #1A1A2E;
    --text-muted: #5A6578;
    --text-light: #ffffff;
    --border: rgba(20, 33, 61, 0.08);
    --shadow: 0 8px 32px rgba(20, 33, 61, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
[id='hero'],
[id='appointment'] {
  scroll-margin-top: 88px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg);
    box-shadow: 0 2px 12px rgba(20, 33, 61, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo__text {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--dark);
    font-weight: 600;
}

.nav__list {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

/* ===== Form ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 16px;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-light);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox__text a {
    color: #ffffff;
    text-decoration: underline;
}

.form-checkbox,
.form-checkbox__text {
    color: #ffffff;
}

.form-error {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #ff4d4f;
}

.form-input--invalid {
    border-color: #ff4d4f !important;
}

.modal__error {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #ff4d4f;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .section__title { font-size: 1.6rem; }
}
