:root {
    --bg: #F5F1F8;
    --surface: #fff;
    --ink: #2A1F36;
    --muted: #6B5F78;
    --crocus: #4A2C6B;
    --red: #B3261E;
    --gold: #C98A0B;
    --line: #DDD3E6;
    --light: #F5F1F8;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.9;
    font-size: 17px
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px
}

h1,
h2,
h3 {
    font-family: 'Lalezar', Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin: 0
}

h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--crocus)
}

section {
    padding: 70px 0
}

.lead {
    max-width: 40em;
    color: var(--muted)
}

.alt {
    background: var(--surface);
    border-block: 1px solid var(--line)
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid var(--gold);
    font: 700 16px 'Vazirmatn', Tahoma, sans-serif;
    text-decoration: none;
    cursor: pointer;
    background: none;
    color: var(--light)
}

.btn.main {
    background: var(--gold);
    color: #2A1F36
}

.btn.small {
    padding: 6px 18px;
    font-size: 14px
}

.btn.full {
    width: 100%;
    margin-top: 10px
}

.btn:hover {
    transform: translateY(-2px)
}

.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

/* سرصفحه */
.hero {
    background: var(--crocus);
    color: var(--light)
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0
}

.logo {
    font-family: 'Lalezar', Tahoma, sans-serif;
    font-size: 24px;
    text-decoration: none
}

.logo b {
    color: var(--gold);
    font-weight: 400
}

nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    font-size: 15px
}

nav ul a {
    text-decoration: none;
    opacity: .85
}

nav ul a:hover {
    opacity: 1
}

.auth {
    display: flex;
    gap: 8px;
    align-items: center
}

.auth .user {
    font-size: 14px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: center;
    padding: 30px 0 60px
}

.hero h1 {
    font-size: clamp(40px, 8vw, 76px)
}

.hero h1 span {
    display: block;
    color: var(--gold)
}

.hero p {
    max-width: 34em;
    opacity: .9;
    margin: 18px 0 28px
}

.flower {
    width: 100%;
    max-width: 360px;
    margin: 0 auto
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .2)
}

.facts div {
    padding: 18px 20px;
    font-size: 15px
}

.facts strong {
    display: block;
    font: 400 22px 'Lalezar', Tahoma, sans-serif;
    color: var(--gold)
}

/* بخش‌ها */
.why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px
}

.why h3 {
    font-size: 24px;
    color: var(--red)
}

.why p {
    margin: 0;
    color: var(--muted)
}

.grades {
    margin-top: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden
}

.grade {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line)
}

.grade:last-child {
    border: 0
}

.grade h3 {
    font-size: 30px;
    color: var(--red)
}

.grade p {
    margin: 0;
    color: var(--muted)
}

.tag {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px
}

.steps {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.steps li {
    border-right: 3px solid var(--red);
    padding-right: 16px
}

.steps h3 {
    font-size: 22px;
    color: var(--crocus)
}

.steps p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px
}

.contact {
    background: var(--crocus);
    color: var(--light)
}

.contact h2 {
    color: var(--gold)
}

.contact .lead {
    color: var(--light)
}

footer {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted)
}

/* پنجرهٔ ورود */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 30, .6);
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 50
}

.modal[hidden] {
    display: none
}

.box {
    background: var(--surface);
    color: var(--ink);
    width: 100%;
    max-width: 400px;
    border-radius: 18px;
    padding: 26px;
    position: relative
}

.close {
    position: absolute;
    top: 10px;
    left: 14px;
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted)
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding-left: 30px
}

.tab {
    flex: 1;
    padding: 8px;
    border: 0;
    border-bottom: 3px solid var(--line);
    background: none;
    font: 700 16px 'Vazirmatn', Tahoma, sans-serif;
    color: var(--muted);
    cursor: pointer
}

.tab.active {
    color: var(--crocus);
    border-color: var(--gold)
}

.form[hidden] {
    display: none
}

.form h3 {
    font-size: 24px;
    color: var(--crocus);
    margin-bottom: 8px
}

.form label {
    display: block;
    font-size: 15px;
    margin-top: 12px
}

.form input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--bg);
    color: var(--ink)
}

.msg {
    min-height: 1.5em;
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--red)
}

.msg.ok {
    color: #2E7D32
}

/* موبایل */
@media(max-width:760px) {
    nav ul {
        display: none
    }

    nav {
        justify-content: space-between
    }

    .hero-grid,
    .why,
    .steps,
    .facts {
        grid-template-columns: 1fr
    }

    .flower {
        max-width: 220px;
        order: -1
    }

    .grade {
        grid-template-columns: 1fr;
        gap: 4px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}.product{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:12px}.product h3,.product p{margin:0}.product .price{font-size:22px;font-weight:700;margin-top:auto}.product small{display:block;font-size:14px;color:var(--muted)}.auth{flex-wrap:wrap}.user{overflow-wrap:anywhere;max-width:100%}.product a{white-space:normal;overflow-wrap:anywhere}
.order-link{color:var(--crocus);border-color:var(--gold)}
