@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap");

:root {
  --ink: #080d24;
  --muted: #5d6885;
  --paper: #f7f9ff;
  --surface: #ffffff;
  --primary: #1647b8;
  --primary-dark: #0b2e78;
  --accent: #f5a623;
  --accent-soft: #fff3d6;
  --mint: #e8f0ff;
  --line: #dbe3f4;
  --danger: #c63b43;
  --warning: #a86600;
  --success: #087c75;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px rgba(14, 52, 52, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 4%, rgba(226, 240, 255, .95), transparent 24rem),
    var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f8b88e; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 9999; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .77rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { line-height: 1.25; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.text-center { text-align: center; }

.announcement { background: linear-gradient(90deg,#111b54,#412179); color: #fff; text-align: center; padding: .58rem 1rem; font-size: .82rem; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(247, 249, 255, .92); border-bottom: 1px solid rgba(219, 227, 244, .9); backdrop-filter: blur(16px); }
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: #fff; background: var(--primary); border-radius: 14px 14px 14px 4px; font-family: "Playfair Display", serif; font-size: 1.4rem; }
.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 6px 20px rgba(36,88,230,.22); }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .68rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { text-decoration: none; color: #385152; padding: .65rem .8rem; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); background: var(--mint); }
.nav-actions { display: flex; gap: .65rem; align-items: center; }
.nav-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); display: grid; place-items: center; position: relative; text-decoration: none; }
.cart-count { position: absolute; right: -3px; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 20px; background: var(--accent); color: #fff; font-size: .67rem; font-weight: 800; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 48px; padding: .75rem 1.2rem; border: 0; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 25px rgba(11, 107, 100, .18); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-accent { background: var(--accent); box-shadow: 0 10px 25px rgba(242, 140, 82, .22); }
.btn-accent:hover { background: #dc7640; }
.btn-outline { color: var(--primary); background: transparent; border: 1px solid var(--primary); box-shadow: none; }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-sm { min-height: 40px; padding: .55rem .85rem; font-size: .84rem; }
.btn-block { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--danger); font-weight: 800; padding: .35rem; }

.hero { overflow: hidden; padding: 5.8rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem; color: #3d5758; font-size: .86rem; font-weight: 700; }
.trust-row span::before { content: "✓"; color: var(--success); margin-right: .4rem; }
.hero-panel { position: relative; background: var(--ink); color: #fff; padding: 2rem; min-height: 470px; border-radius: 48px 48px 48px 10px; box-shadow: 0 36px 70px rgba(16, 42, 43, .24); }
.hero-panel::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); right: -45px; top: -45px; opacity: .85; }
.hero-panel-content { position: relative; z-index: 1; }
.hero-panel h2 { color: #fff; font-size: 2.15rem; margin-top: 3rem; }
.quick-card { display: flex; gap: .9rem; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 1rem; border-radius: 17px; margin-top: .9rem; }
.quick-icon { display: grid; place-items: center; flex: 0 0 45px; height: 45px; background: var(--mint); color: var(--primary); border-radius: 13px; font-weight: 900; }
.quick-card p { margin: 0; color: #cbd8d5; font-size: .82rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--surface); text-align: center; padding: 1.6rem 1rem; }
.stat strong { display: block; color: var(--primary); font-size: 1.45rem; }
.stat span { color: var(--muted); font-size: .82rem; }

.category-grid, .service-grid, .value-grid, .footer-grid { display: grid; gap: 1.25rem; }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card { padding: 1.4rem; min-height: 190px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card .icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--primary); background: var(--mint); border-radius: 15px; font-size: 1.25rem; margin-bottom: 1rem; }
.category-card p { color: var(--muted); font-size: .85rem; }

.toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 170px; gap: .8rem; margin-bottom: 2rem; }
.field, .login-form input, .login-form textarea, .login-form select, .admin-field {
  width: 100%; min-height: 49px; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: .75rem .9rem; color: var(--ink);
}
.field:focus, .login-form input:focus, .login-form textarea:focus, .login-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 107, 100, .1); outline: 0; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 10px 35px rgba(16, 42, 43, .05); display: flex; flex-direction: column; position: relative; }
.service-card:hover { border-color: #a7cac2; }
.service-card .badge { align-self: flex-start; color: var(--primary); background: var(--mint); border-radius: 99px; padding: .28rem .65rem; font-weight: 800; font-size: .7rem; }
.service-card h3 { margin: 1rem 0 .4rem; }
.service-card p { color: var(--muted); font-size: .86rem; flex: 1; }
.service-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.service-meta small { color: var(--muted); display: block; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: steps; }
.step { padding: 1.6rem; background: var(--mint); border-radius: var(--radius); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; color: var(--primary); font-weight: 800; margin-bottom: 1.5rem; }
.value-grid { grid-template-columns: repeat(3, 1fr); }
.value-card { padding: 1.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.page-hero { padding: 4rem 0 3rem; background: linear-gradient(135deg, var(--mint), #fff6eb); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: .75rem; }
.page-hero p { color: var(--muted); max-width: 700px; margin-bottom: 0; }
.narrow { max-width: 820px; }
.card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: 0 12px 30px rgba(11,46,120,.08); }
.stack { display: grid; gap: .8rem; margin-top: 1rem; }
.breadcrumb { display: flex; gap: .45rem; color: var(--muted); font-size: .82rem; margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--primary); }

.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; max-width: 960px; margin: 4rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.form-aside { padding: 3rem; color: #fff; background: var(--ink); }
.form-aside h2 { color: #fff; }
.form-aside ul { padding-left: 1.2rem; color: #d2dedc; }
.login-form { padding: 3rem; }
.login-form label { display: block; font-size: .82rem; font-weight: 800; margin-top: 1rem; }
.login-form h1, .login-form h2 { font-family: "Playfair Display", serif; font-size: 2.1rem; }
.form-note { color: var(--muted); font-size: .78rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-message { min-height: 1.5rem; margin: .75rem 0; font-size: .85rem; color: var(--danger); }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; background: #fff; border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.cart-item p { color: var(--muted); margin-bottom: .3rem; }
.summary-card { position: sticky; top: 100px; background: var(--ink); color: #fff; padding: 1.6rem; border-radius: var(--radius); }
.summary-card h2 { color: #fff; font-size: 1.7rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-total { font-size: 1.15rem; font-weight: 800; border: 0; padding-top: 1.1rem; }
.empty-state { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 1rem; }
.orders-list { max-width: 900px; margin-inline: auto; }
.order-item { background: #fff; border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; }
.status { display: inline-flex; padding: .25rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 800; }
.status.pending { color: var(--warning); background: #fff0c9; }
.status.confirmed, .status.assigned { color: #315991; background: #e3edff; }
.status.delivered { color: var(--success); background: var(--mint); }
.status.refund { color: var(--danger); background: #ffe5e7; }

.faq-list { max-width: 820px; margin-inline: auto; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .7rem; padding: 1rem 1.1rem; }
.faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list details p { color: var(--muted); margin: .8rem 0 0; }
.legal { max-width: 860px; margin-inline: auto; }
.legal h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.legal p, .legal li { color: #496162; }

.cta { position: relative; overflow: hidden; color: #fff; background: var(--primary); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4.5rem); }
.cta h2 { color: #fff; max-width: 700px; }
.cta::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); right: -100px; bottom: -140px; }

.toast { position: fixed; right: 1.2rem; top: 1.2rem; z-index: 2000; max-width: min(390px, calc(100% - 2rem)); padding: .9rem 1rem; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(-160%); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.site-footer { margin-top: 5rem; padding: 4rem 0 1.2rem; color: #d3dedd; background: var(--ink); }
.footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
.site-footer h3 { color: #fff; }
.site-footer a { color: #c7d7d4; text-decoration: none; display: block; margin: .45rem 0; font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 2rem; font-size: .78rem; }

.dashboard { width: min(calc(100% - 2rem), var(--max)); margin: 3rem auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dashboard .service-card { background: var(--ink); color: #fff; }
.dashboard .service-card h3 { color: #fff; }
.dashboard .service-card p { color: var(--mint); font-size: 2rem; font-weight: 800; }
body > header { background: var(--ink); color: #fff; text-align: center; padding: 2.5rem 1rem; }
body > header h1 { margin-bottom: .25rem; font-size: clamp(2rem,5vw,3.5rem); }
body > header p { color: #c8d7d4; margin: 0; }
body > nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: .75rem; background: #fff; border-bottom: 1px solid var(--line); }
body > nav a { color: var(--ink); text-decoration: none; padding: .55rem .8rem; border-radius: 9px; font-weight: 800; font-size: .85rem; }
body > nav a:hover { background: var(--mint); color: var(--primary); }
body > .services { width: min(calc(100% - 2rem), var(--max)); margin: 3rem auto; }
body > .login-form { width: min(calc(100% - 2rem), 520px); margin: 3rem auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 950px) {
  .nav-links { position: fixed; inset: 79px 0 0; display: none; align-items: stretch; flex-direction: column; padding: 1.5rem; background: var(--paper); }
  .menu-open .nav-links { display: flex; }
  .nav-links a { padding: 1rem; font-size: 1.05rem; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .hero-grid, .form-shell, .cart-layout { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; }
  .service-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .section { padding: 3.6rem 0; }
  .announcement { font-size: .72rem; }
  .brand small { display: none; }
  .nav-wrap { height: 68px; }
  .nav-links { inset: 69px 0 0; }
  .hero { padding-top: 3.5rem; }
  .hero-panel { border-radius: 30px 30px 30px 8px; padding: 1.5rem; }
  .stats, .category-grid, .service-grid, .value-grid, .how-grid, .footer-grid, .dashboard, .form-row { grid-template-columns: 1fr; }
  .stats { gap: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .toolbar { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: .7rem; }
  .form-aside, .login-form { padding: 2rem 1.3rem; }
  .footer-bottom { display: block; }
  .cart-item { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
