/* Yeni dizayn — ortaq CSS (reset, dəyişənlər, tipoqrafiya, header/footer, düymələr).
   Rənglər, hero tipi və header ölçüləri srk.az-dakı eyni brendin dizaynından götürülüb
   (eyni "Sürət Kargo" brendi). Başlıqlar üçün F37 Saint (lisenziyalı, public/frontend/f37),
   mətn üçün Plus Jakarta Sans. */

@font-face { font-family: 'F37 Saint'; src: url(../f37/f37-light.otf) format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'F37 Saint'; src: url(../f37/f37-regular.otf) format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'F37 Saint'; src: url(../f37/f37-semibold.otf) format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'F37 Saint'; src: url(../f37/f37-bold.otf) format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'F37 Saint'; src: url(../f37/f37-black.otf) format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* smartrent2-dən köçürülmüş Montserrat (yalnız forma elementləri: input/select/textarea/düymə üçün) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --sc-bg: #F5F6F8;
    --sc-header-bg: rgba(255, 255, 255, .92);
    --sc-surface: #FFFFFF;
    --sc-surface-2: #F1EFEC;
    --sc-text: #1E1E1E;
    --sc-text-muted: #767676;
    --sc-border: #E6E3DE;

    --sc-nav-link: #5B5B5B;
    --sc-nav-link-active: var(--sc-accent);

    --sc-icon-chip-bg: #FFE7E6;
    --sc-stat-bg: #FFFFFF;

    --sc-footer-bg: #07080B;
    --sc-footer-text: rgba(255, 255, 255, .72);
    --sc-footer-text-muted: rgba(255, 255, 255, .5);
    --sc-footer-link: rgba(255, 255, 255, .72);
    --sc-footer-border: #1C1D22;

    --sc-success: #1F8F5C;
    --sc-success-bg: #E6F6EE;
    --sc-warning: #B6791C;
    --sc-warning-bg: #FBF0DD;
    --sc-info: #2E6FD1;
    --sc-info-bg: #E9F1FC;

    --sc-accent: #FF5453;
    --sc-accent-dark: #C3262A;
    --sc-accent-contrast: #FFFFFF;

    --sc-radius: 14px;
    --sc-radius-small: 8px;
    --sc-radius-large: 24px;
    --sc-shadow-popover: 0 24px 60px rgba(18, 21, 28, .22);
    --sc-shadow-card: 0 1px 2px rgba(18, 21, 28, .05), 0 10px 30px rgba(18, 21, 28, .07);
    --sc-line: #DFE2E9;
    --sc-focus-ring: 0 0 0 3px rgba(255, 84, 83, .35);
    --sc-font-heading: 'F37 Saint', 'Plus Jakarta Sans', system-ui, sans-serif;
    --sc-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

:root[data-sc-theme="dark"] {
    --sc-bg: #0D0F14;
    --sc-header-bg: rgba(13, 15, 20, .92);
    --sc-surface: #161A22;
    --sc-surface-2: #1D212B;
    --sc-text: #EEF0F5;
    --sc-text-muted: #9BA0AC;
    --sc-border: #272B35;

    --sc-nav-link: #C8CCD8;

    --sc-icon-chip-bg: #2A1A1A;
    --sc-stat-bg: #10131A;
    --sc-shadow-popover: 0 24px 70px rgba(0, 0, 0, .7);
    --sc-shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .4);
    --sc-line: #2A303D;
    --sc-focus-ring: 0 0 0 3px rgba(255, 84, 83, .45);

    /* srk.az qaranlıq tema semantik rəngləri */
    --sc-success: #2BD08C;
    --sc-success-bg: #0F2E27;
    --sc-warning: #FFA928;
    --sc-warning-bg: #33240B;
    --sc-info: #3B96FF;
    --sc-info-bg: #112A4D;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--sc-bg);
    color: var(--sc-text);
    font-family: var(--sc-font-body);
    -webkit-font-smoothing: antialiased;
}

/* Qısa səhifələrdə footer ekranın altında qalsın (altında boş zolaq olmasın) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .sc-footer { margin-top: auto; }

h1, h2, h3, h4 { font-family: var(--sc-font-heading); font-weight: 700; margin: 0; }

input, select, textarea, button, .sc-btn { font-family: 'Montserrat', var(--sc-font-body); }

a { color: inherit; text-decoration: none; }

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

button { font-family: inherit; }

.sc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.sc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sc-header-bg);
    border-bottom: 1px solid var(--sc-border);
    backdrop-filter: blur(6px);
}

.sc-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.sc-header__brand { display: flex; align-items: center; gap: 28px; min-width: 0; flex: 1; }

.sc-logo { display: flex; align-items: center; flex-shrink: 0; }
.sc-logo img { width: 150px; height: auto; }
.sc-logo__full { display: contents; }
/* Mobildə tam loqonun yerinə tək ikon */
.sc-logo__icon { display: none; }
.sc-logo .sc-logo__icon img { width: 36px; height: 36px; }
.sc-logo .sc-logo--light { display: none; }
.sc-logo .sc-logo--dark { display: block; }
:root[data-sc-theme="dark"] .sc-logo .sc-logo--light { display: none; }
:root[data-sc-theme="dark"] .sc-logo .sc-logo--dark { display: block; }
:root:not([data-sc-theme="dark"]) .sc-logo .sc-logo--light { display: block; }
:root:not([data-sc-theme="dark"]) .sc-logo .sc-logo--dark { display: none; }

.sc-nav { display: flex; align-items: center; gap: 4px; }

.sc-nav a {
    font-size: 16px; font-weight: 600; color: var(--sc-nav-link);
    padding: 10px 14px; border-radius: 8px; transition: color .12s;
}
.sc-nav a:hover, .sc-nav a.is-active { color: var(--sc-nav-link-active); }

.sc-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }


.sc-theme-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; cursor: pointer;
    border: 1px solid var(--sc-border); border-radius: 14px;
    background: transparent; color: var(--sc-text);
}
.sc-theme-toggle:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc-theme-toggle__icon--sun { display: none; }
.sc-theme-toggle__icon--moon { display: block; }
:root[data-sc-theme="dark"] .sc-theme-toggle__icon--sun { display: block; }
:root[data-sc-theme="dark"] .sc-theme-toggle__icon--moon { display: none; }

/* Daxil olmuş müştəri: srk.az panelindəki navbar__user / navbar__menu əsasında */
.sc-header-icon {
    position: relative; display: none; place-items: center;
    width: 44px; height: 44px; border: 1px solid var(--sc-border); border-radius: 14px;
    color: var(--sc-text);
}
.sc-header-icon:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc-header-icon__svg { width: 20px; height: 20px; }
.sc-header-icon__badge {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--sc-accent); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.sc-user { position: relative; }
.sc-user__toggle {
    display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
    border: 1px solid var(--sc-border); border-radius: 12px;
    background: transparent; color: var(--sc-text); text-align: left; cursor: pointer;
}
.sc-user__toggle:hover, .sc-user.is-open > .sc-user__toggle { border-color: var(--sc-accent); }
.sc-user__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.sc-user__avatar-wrap { position: relative; display: block; flex: none; }
.sc-user__dot {
    position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--sc-accent); color: #fff; box-shadow: 0 0 0 2px var(--sc-surface);
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
/* Mobildə zəng ikonunda say artıq var: avatarda təkrarlanmasın */
@media (max-width: 1180px) { .sc-user__dot { display: none; } }
.sc-user__badge {
    margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
    background: var(--sc-accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}
.sc-user__text strong, .sc-user__text small,
.sc-user__head strong, .sc-user__head small {
    display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-user__text strong, .sc-user__head strong { font-size: 13px; font-weight: 600; line-height: 1.2; }
.sc-user__text small, .sc-user__head small { font-size: 11px; color: var(--sc-text-muted); }
.sc-user__chevron { width: 14px; height: 14px; flex: none; transition: transform .18s; }
.sc-user.is-open .sc-user__chevron { transform: rotate(180deg); }

.sc-user__menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
    min-width: 230px; max-height: calc(100vh - 100px); overflow-y: auto;
    margin: 0; padding: 6px; list-style: none;
    border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
    background: var(--sc-surface); color: var(--sc-text); box-shadow: var(--sc-shadow-popover);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
}
.sc-user.is-open > .sc-user__menu { opacity: 1; transform: none; visibility: visible; }
.sc-user__head { display: none; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--sc-line); }
.sc-user__link {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--sc-text);
}
.sc-user__link:hover { color: var(--sc-accent); background: var(--sc-bg); }
.sc-user__link.is-active { font-weight: 700; color: var(--sc-accent); background: var(--sc-icon-chip-bg); }
.sc-user__icon { width: 20px; height: 20px; flex-shrink: 0; }

.sc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; min-height: 45px; font-size: 16px; font-weight: 700; padding: 0 26px; line-height: 1;
    border-radius: 14px; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.sc-btn:hover { transform: translateY(-1px); }

.sc-btn--ghost { color: var(--sc-text); background: transparent; border-color: var(--sc-border); }
.sc-btn--ghost:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc-btn--primary { background: var(--sc-accent); color: #fff; }
.sc-btn--primary:hover { background: var(--sc-accent-dark); color: #fff; }
.sc-btn--light { background: #fff; color: #07080B; }
.sc-btn--light:hover { background: #FDECEB; color: var(--sc-accent-dark); }
.sc-btn--outline { border-color: var(--sc-hero-border, rgba(255,255,255,.4)); color: var(--sc-hero-text, #fff); background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.sc-btn--outline:hover { background: rgba(255,255,255,.28); color: #fff; }

.sc-burger {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--sc-border); background: var(--sc-surface-2); color: var(--sc-text);
}

/* ===== Footer ===== */
.sc-footer { background: var(--sc-footer-bg); color: var(--sc-footer-text); padding: 48px 20px 0; }
.sc-footer__grid { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 36px; padding-bottom: 36px; }
.sc-footer__col { flex: 1 1 160px; }
.sc-footer__col--brand { flex: 1 1 240px; }
.sc-footer__heading { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.sc-footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sc-footer__links a { color: var(--sc-footer-link); }
.sc-footer__links a:hover { color: #fff; }
.sc-footer__contact { display: flex; align-items: center; gap: 8px; }
.sc-footer__contact svg { flex-shrink: 0; color: rgba(255,255,255,.5); }
.sc-footer__bottom { border-top: 1px solid var(--sc-footer-border); padding: 16px 0; font-size: 13px; color: var(--sc-footer-text-muted); }
.sc-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.sc-footer__bottom a { color: inherit; font-weight: 700; }
.sc-footer__bottom a:hover { color: #fff; }
@media (max-width: 700px) { .sc-footer__bottom-inner { justify-content: center; text-align: center; } }
.sc-footer__logo { height: 32px; width: 160px; margin-bottom: 14px; }

/* ===== Shared bits ===== */
.sc-section { padding: 64px 0; }
.sc-section__head { text-align: center; margin-bottom: 38px; }
.sc-section__head h2 { font-size: 26px; margin-bottom: 8px; }
.sc-section__head p { font-size: 14px; color: var(--sc-text-muted); margin: 0; }

.sc-card { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 22px; box-shadow: var(--sc-shadow-card); }

/* srk.az panelindən (public/ui/css/app.css) hərfi-hərfinə köçürülmüş toast bildiriş sistemi */
.toast-stack {
    position: fixed; bottom: 40px; left: 50%; z-index: 300;
    display: grid; gap: 10px; width: max-content; max-width: calc(100vw - 24px);
    transform: translateX(-50%); pointer-events: none;
}
.toast-stack[popover]:not(:popover-open) { display: none; }
.toast-stack[popover] { inset: auto auto 40px 50%; margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; color: inherit; }

.toast {
    --toast-color: #07bc0c;
    display: flex; align-items: center; gap: 12px;
    min-width: 280px; padding: 14px 20px; border-radius: var(--sc-radius);
    font-size: 15px; font-weight: 600; color: #fff;
    background: var(--toast-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    pointer-events: auto;
    animation: sc-toast-in .4s cubic-bezier(.2, .9, .25, 1.1);
}
.toast--danger { --toast-color: #e74c3c; }
.toast.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }

.toast__icon {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    color: var(--toast-color); background: #fff; flex-shrink: 0;
}

@keyframes sc-toast-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .toast { min-width: 0; width: calc(100vw - 24px); }
}

.sc-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--sc-surface);
    border-bottom: 1px solid var(--sc-border);
    padding: 8px 20px 14px;
    position: sticky;
    top: 72px;
    z-index: 49;
}
.sc-mobile-nav a {
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-text);
    border-bottom: 1px solid var(--sc-border);
}
.sc-mobile-nav a:last-child { border-bottom: none; }
.sc-mobile-nav a.is-active { color: var(--sc-nav-link-active); }
.sc-mobile-nav.is-open { display: flex; }

@media (max-width: 1180px) {
    .sc-nav { display: none; }
    .sc-burger { display: flex; }
    .sc-header__actions .sc-btn { display: none; }
    .sc-header-icon { display: grid; }
    .sc-user__text, .sc-user__chevron { display: none; }
    .sc-user__toggle { padding: 5px; }
    .sc-user__head { display: block; }
}

@media (max-width: 600px) {
    .sc-logo__full { display: none; }
    .sc-logo__icon { display: flex; }
}

@media (max-width: 420px) {
    .sc-logo { flex-shrink: 1; min-width: 0; }
    .sc-logo img { width: 118px; max-width: 100%; }
    .sc-header__brand { gap: 12px; }
    .sc-header__actions { gap: 6px; }
    .sc-header-icon, .sc-theme-toggle, .sc-burger { width: 40px; height: 40px; border-radius: 12px; }
    .sc-user__toggle { padding: 3px; }
    .sc-user__avatar { width: 32px; height: 32px; }
}

@media (min-width: 1181px) {
    .sc-mobile-nav { display: none !important; }
}

/* Tariflər: ana səhifə və /tariffs səhifəsi arasında paylaşılan cədvəl görünüşü */
.sc-tariff-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sc-tariff-group { padding: 22px 24px; }
.sc-tariff-group__title { margin: 0 0 14px; font-family: var(--sc-font-heading); font-size: 17px; font-weight: 700; }
.sc-tariff-table { width: 100%; border-collapse: collapse; }
.sc-tariff-table td { padding: 11px 0; border-top: 1px solid var(--sc-border); font-size: 14px; color: var(--sc-text-muted); }
.sc-tariff-table tr:first-child td { border-top: 0; }
.sc-tariff-table td:last-child { text-align: right; font-family: var(--sc-font-heading); font-weight: 700; color: var(--sc-accent); font-size: 15px; }

@media (max-width: 640px) {
    .sc-tariff-groups { grid-template-columns: 1fr; }
}

/* Daxili səhifələrin ortaq "hero" başlığı (/tariffs, /calculator, ...) */
.sc-page-hero {
    background: linear-gradient(160deg, #FF5C5A 0%, #FF5453 38%, #C3262A 100%);
    color: #fff;
    padding: 28px 20px;
    text-align: center;
}
.sc-page-hero__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 14px;
}
.sc-page-hero h1 { margin: 0 0 10px; font-family: var(--sc-font-heading); font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.sc-page-hero p { margin: 0 auto; max-width: 520px; font-size: 15px; color: rgba(255, 255, 255, .92); }

.sc-page-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 18px 20px;
    color: var(--sc-text-muted);
    font-size: 14px;
    line-height: 1.5;
}
.sc-page-note svg { flex-shrink: 0; margin-top: 2px; color: var(--sc-accent); }

/* Üfüqi sürüşən pill menyu (parfumshop core.css .pill-scroll-wrap / .cats-hint): sağda hərəkət edən ox,
   kənarda solğunlaşma, açılışda bir az sürüşüb qayıtma (common.js initScrollPills) */
.sc-pill-scroll { position: relative; }
[data-pill-scroll] { scroll-behavior: smooth; }
[data-pill-scroll].has-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
[data-pill-scroll].has-more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
[data-pill-scroll].has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
[data-pill-scroll].is-peeking > * { animation: sc-pill-peek 1.3s ease-in-out; }
[data-pill-scroll].is-peeking-back > * { animation: sc-pill-peek-back 1.3s ease-in-out; }
.sc-pill-hint {
    position: absolute; top: 50%; right: 4px; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin-top: -14px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--sc-accent); color: var(--sc-accent-contrast);
    cursor: pointer; transition: opacity .3s;
    animation: sc-pill-hint-nudge 1s ease-in-out infinite;
}
.sc-pill-hint[hidden] { display: none; }
.sc-pill-hint.is-hidden { opacity: 0; pointer-events: none; }
/* Davamı soldadırsa (aktiv bənd sonda): ox solda, sola baxır */
.sc-pill-hint.is-start { right: auto; left: 4px; animation-name: sc-pill-hint-nudge-back; }
.sc-pill-hint.is-start svg { transform: scaleX(-1); }
@keyframes sc-pill-peek { 0%, 100% { transform: translateX(0); } 40%, 55% { transform: translateX(-56px); } }
@keyframes sc-pill-hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes sc-pill-peek-back { 0%, 100% { transform: translateX(0); } 40%, 55% { transform: translateX(56px); } }
@keyframes sc-pill-hint-nudge-back { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .sc-pill-hint, [data-pill-scroll].is-peeking > *, [data-pill-scroll].is-peeking-back > * { animation: none; } }
