/* GemOtvet design foundation — shared styles for shop templates. */
:root {
    color-scheme: light;
    --gem-950: #073d35;
    --gem-900: #0b493f;
    --gem-800: #0d5147;
    --gem-700: #17695b;
    --gem-100: #e7f0ec;
    --gem-50: #f4f7f3;
    --ivory: #fbfaf6;
    --paper: #ffffff;
    --gold-700: #a98a54;
    --gold-500: #c6ad7c;
    --gold-200: #e9dfc9;
    --ink: #20332e;
    --muted: #687771;
    --line: #dce5df;
    --danger: #a33e3e;
    --success: #27694d;
    --shadow-sm: 0 4px 18px rgba(10, 54, 46, .06);
    --shadow-md: 0 12px 34px rgba(10, 54, 46, .10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gem-950);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
}
h1 { letter-spacing: -.025em; }
p { color: inherit; }
a { color: var(--gem-800); text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(198, 173, 124, .8); outline-offset: 3px; }

.main-content {
    flex: 1 0 auto;
    width: 100%;
    padding: 28px 0 56px;
}
.site-content > :first-child { margin-top: 0; }
.site-messages:empty { display: none; }
.site-messages { padding-top: 0; }

/* Shared Bootstrap components, tuned to the GemOtvet palette. */
.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.card-title { color: var(--gem-950); }
.card-header { border-bottom-color: var(--line); background: var(--gem-50); }

.btn {
    --bs-btn-border-radius: 999px;
    padding: .68rem 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--gem-800);
    --bs-btn-border-color: var(--gem-800);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gem-950);
    --bs-btn-hover-border-color: var(--gem-950);
    --bs-btn-active-bg: var(--gem-950);
    --bs-btn-active-border-color: var(--gem-950);
    --bs-btn-disabled-bg: var(--gem-700);
    --bs-btn-disabled-border-color: var(--gem-700);
}
.btn-outline-primary {
    --bs-btn-color: var(--gem-800);
    --bs-btn-border-color: var(--gem-800);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gem-800);
    --bs-btn-hover-border-color: var(--gem-800);
}
.btn-success {
    --bs-btn-bg: var(--gem-800);
    --bs-btn-border-color: var(--gem-800);
    --bs-btn-hover-bg: var(--gem-950);
    --bs-btn-hover-border-color: var(--gem-950);
}
.btn-warning {
    --bs-btn-color: var(--gem-950);
    --bs-btn-bg: var(--gold-200);
    --bs-btn-border-color: var(--gold-200);
    --bs-btn-hover-color: var(--gem-950);
    --bs-btn-hover-bg: var(--gold-500);
    --bs-btn-hover-border-color: var(--gold-500);
}

.form-control, .form-select {
    min-height: 46px;
    border: 1px solid #d5dfd9;
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--ink);
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gem-700);
    box-shadow: 0 0 0 .2rem rgba(23, 105, 91, .12);
}
.form-label, label { color: var(--ink); font-weight: 600; }
.form-text, .text-muted { color: var(--muted) !important; }

.alert { border: 1px solid transparent; border-radius: var(--radius-sm); }
.alert-success { color: #205b42; border-color: #c8e2d3; background: #edf7f0; }
.alert-danger, .alert-error { color: #873737; border-color: #efd0d0; background: #fff1f0; }
.alert-warning { color: #755b26; border-color: #ebdfbd; background: #fff9e9; }
.alert-info { color: #245a62; border-color: #cce4e7; background: #eff9fa; }

.badge { font-weight: 600; letter-spacing: .01em; }
.table { --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }
.table thead th { color: var(--gem-950); background: var(--gem-50); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--gold-700); font-size: .9rem; }
.breadcrumb-item.active { color: var(--muted); }

/* Shared footer; header receives its own focused pass next. */
.site-footer {
    flex-shrink: 0;
    padding: 48px 0 0;
    background: var(--gem-950);
    color: rgba(255, 255, 255, .82);
}
.site-footer p { color: rgba(255, 255, 255, .72); }
.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.2;
    text-decoration: none;
}
.footer-brand span { color: var(--gold-500); }
.footer-description { max-width: 340px; margin-bottom: 0; font-size: .93rem; }
.footer-heading {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover { color: var(--gold-500); }
.footer-cta { display: inline-flex; gap: 12px; align-items: center; margin-top: 12px; color: var(--gold-500); font-weight: 600; text-decoration: none; }
.footer-cta:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .58);
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .main-content { padding: 20px 0 40px; }
    .site-footer { padding-top: 36px; }
    .footer-bottom { flex-direction: column; gap: 4px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Footer contact links */
.site-footer .footer-contact-link { color: #f3d79e; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.site-footer .footer-contact-link:hover, .site-footer .footer-contact-link:focus-visible { color: #fff; text-decoration: underline; }

/* Compact Yandex rating badge in the contacts section of the footer. */
.gem-yandex-rating { margin-top: 16px; }
.gem-yandex-rating__title {
    margin: 0 0 8px;
    color: rgba(255,255,255,.82);
    font: 600 .85rem/1.35 var(--font-body);
}
.gem-yandex-rating iframe { display: block; max-width: 100%; background: #fff; border-radius: 6px; }
