/* ============================================================
   کیس پی سی — استایل سایت عمومی (نسخه ۲۰۲۶)
   ایده‌ی بصری: فیروزه‌ی نیشابور + طاق و شمسه‌ی ایرانی
   ============================================================ */

:root {
    --ink: #0E2A30;
    --ink-soft: #2C474D;
    --muted: #5B7176;
    --paper: #F3F6F5;
    --surface: #FFFFFF;
    --surface-2: #EAF0EE;
    --line: #D9E3E1;
    --turq: #17A398;
    --turq-deep: #0B6F69;
    --turq-soft: #DDF2EF;
    --ochre: #9A5B12;
    --ochre-soft: #F6EBDC;
    --danger: #B4381F;
    --danger-soft: #FBE9E4;
    --on-accent: #FFFFFF;
    --mark-core: #0B5F5A;

    --font-body: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --font-display: 'Reem Kufi', 'Vazirmatn', Tahoma, sans-serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --shadow: 0 1px 2px rgba(14, 42, 48, .06), 0 8px 24px -12px rgba(14, 42, 48, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --wrap: 1200px;
    --header-h: 72px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ink: #E4EFED;
    --ink-soft: #BFD1CE;
    --muted: #8FA7AB;
    --paper: #0C1D21;
    --surface: #12292E;
    --surface-2: #17333A;
    --line: #22434A;
    --turq: #3CC6BA;
    --turq-deep: #3CC6BA;
    --turq-soft: #133B3C;
    --ochre: #E2A75A;
    --ochre-soft: #33291B;
    --danger: #F08A73;
    --danger-soft: #3A1F1A;
    --on-accent: #06201F;
    --mark-core: #0C1D21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    font-family: var(--font-body); font-size: 16px; line-height: 1.85;
    color: var(--ink); background: var(--paper);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1.4; cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--turq-deep); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
    width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
    background: transparent; border: 1px solid var(--line); cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--turq); color: #F4FBFA; display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s var(--ease), background-color .2s var(--ease); }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.nav-drawer-head { display: none; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-grid; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 86vw); height: 100dvh; z-index: 80;
        background: var(--surface); border-inline-start: 1px solid var(--line);
        padding: 20px 20px 32px; margin: 0;
        transform: translateX(100%); visibility: hidden;
        transition: transform .3s var(--ease), visibility .3s;
        display: flex; flex-direction: column; gap: 18px;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 13px 16px; font-size: 16px; border-radius: var(--r-md); }
    .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; }
    .nav-drawer-cta { margin-top: auto; }
    .nav-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(8, 24, 28, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}
@media (min-width: 961px) { .nav-drawer-cta, .nav-backdrop { display: none; } }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.4; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 600px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.availability { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px var(--turq-soft); }
.hero-title { font-size: clamp(36px, 5.4vw, 62px); margin-bottom: 22px; text-wrap: balance; }
.hero-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 48px); flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { font-size: 14px; color: var(--muted); }
.hero-facts dd { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.3; }

/* طاق: قاب شاخص هیرو */
.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-visual::before {
    content: ''; position: absolute; inset: 7% 14% -6% -12%; z-index: 0;
    background-color: var(--turq);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.24' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l16 16M56 0L40 16M0 56l16-16M56 56L40 40'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 999px 999px var(--r-lg) var(--r-lg);
}
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: #0E2A30; border: 8px solid var(--surface); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-empty { display: grid; place-items: center; height: 100%; color: var(--turq); }
.arch-empty svg { width: 42%; height: auto; }
.arch-caption {
    position: absolute; z-index: 2; inset-inline-start: -28px; bottom: 34px; max-width: 290px;
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .2s var(--ease);
}
.arch-caption:hover { border-color: var(--turq); }
.arch-caption small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.arch-caption strong { display: block; font-size: 15px; line-height: 1.55; }
.arch-caption .ico { color: var(--turq-deep); }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .7s var(--ease) both; }
    .hero-copy > *:nth-child(2) { animation-delay: .06s; }
    .hero-copy > *:nth-child(3) { animation-delay: .12s; }
    .hero-copy > *:nth-child(4) { animation-delay: .18s; }
    .hero-copy > *:nth-child(5) { animation-delay: .24s; }
    .arch { animation: archIn 1.1s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { width: min(100%, 360px); margin-top: 8px; }
    .arch-caption { inset-inline-start: -8px; }
}

/* ---------- Services / product cards ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.search-field { position: relative; width: min(100%, 320px); }
.search-field .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search-field input { width: 100%; padding: 12px 46px 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.search-field input:focus { outline: none; border-color: var(--turq); background: var(--surface); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s var(--ease); }
.product-card:hover { border-color: var(--turq); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-media .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.product-media .placeholder .ico { width: 44px; height: 44px; opacity: .5; }
.media-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(8, 24, 28, .72); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.media-badge .ico { width: 13px; height: 13px; }
.product-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.product-body h3 { font-size: 18px; font-weight: 700; line-height: 1.6; }
.product-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-body p { color: var(--muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 20px; font-weight: 800; color: var(--ochre); }
.price span { font-size: 13px; color: var(--muted); }
.chip-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--turq-soft); color: var(--turq-deep); border: 0; cursor: pointer; }
.chip-btn:hover { background: var(--turq-deep); color: var(--on-accent); }
.chip-btn .ico { width: 15px; height: 15px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--paper); }
.empty-state .ico { width: 44px; height: 44px; color: var(--turq-deep); margin: 0 auto 14px; }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }
.no-results { display: none; }
.no-results.is-visible { display: block; }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process-list li { position: relative; padding-left: 24px; counter-increment: step; }
.process-list li::before {
    content: counter(step, persian); display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    background: var(--surface); border: 1px solid var(--line); color: var(--turq-deep);
    margin-bottom: 18px; position: relative; z-index: 1;
}
.process-list li::after { content: ''; position: absolute; top: 24px; right: 48px; left: 0; border-top: 1px dashed var(--line); }
.process-list li:last-child::after { display: none; }
.process-list h3 { font-size: 18px; margin-bottom: 6px; }
.process-list p { color: var(--muted); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) {
    .process-list { grid-template-columns: 1fr; gap: 28px; }
    .process-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0; }
    .process-list li::before { margin: 0; grid-row: span 2; }
    .process-list li::after { top: 52px; bottom: -24px; right: 24px; left: auto; border-top: 0; border-right: 1px dashed var(--line); }
    .process-list p { max-width: none; }
}

/* ---------- Why us ---------- */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 0; }
.why-list li:last-child { border-bottom: 0; }
.why-list .ico-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--turq-soft); color: var(--turq-deep); display: grid; place-items: center; }
.why-list h3 { font-size: 18px; margin-bottom: 4px; }
.why-list p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-grid .section-head { position: static; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; font-weight: 400; line-height: 1; color: var(--turq-deep); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 0 clamp(64px, 9vw, 112px); }
.cta-card {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
    padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg);
    background-color: #0B5F5A; color: #EAF7F5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l16 16M56 0L40 16M0 56l16-16M56 56L40 40'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; color: #fff; }
.cta-card p { color: rgba(234, 247, 245, .8); max-width: 42ch; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; }
.cta-phone { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: #fff; text-align: left; line-height: 1.2; }
.cta-phone:hover { color: #B8EFE8; }
.cta-buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-light { background: #fff; color: #0B5F5A; }
.btn-light:hover { background: #DDF2EF; }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
@media (max-width: 800px) {
    .cta-card { grid-template-columns: 1fr; }
    .cta-phone { text-align: right; }
    .cta-buttons { justify-content: flex-start; }
}

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--turq-deep); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 8px; opacity: .5; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.zoom-hint { position: absolute; bottom: 12px; left: 12px; background: rgba(8, 24, 28, .72); color: #fff; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.zoom-hint .ico { width: 14px; height: 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 84px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; padding: 0; opacity: .65; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"], .gallery-thumbs button:hover { opacity: 1; border-color: var(--turq); }
.no-media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); }
.no-media .ico { width: 44px; height: 44px; margin: 0 auto 8px; }
.product-video { margin-top: 28px; }
.product-video h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.product-video video { width: 100%; border-radius: var(--r-lg); background: #000; }

.buy-box { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.buy-box h1 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 18px; }
.buy-price { display: flex; align-items: baseline; gap: 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--ochre-soft); margin-bottom: 20px; }
.buy-price .label { font-size: 14px; color: var(--muted); margin-inline-end: auto; }
.buy-price strong { font-size: 26px; font-weight: 800; color: var(--ochre); }
.buy-price small { font-size: 14px; color: var(--muted); }
.buy-actions { display: grid; gap: 10px; margin-bottom: 22px; }
.assurances { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.assurances li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.assurances .ico { color: var(--turq-deep); width: 18px; height: 18px; margin-top: 4px; }

.product-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); }
.prose h2 { font-size: 24px; margin-bottom: 16px; }
.prose .body { font-size: 16.5px; line-height: 2.05; color: var(--ink-soft); max-width: 68ch; }
.product-content .faq-list summary { font-size: 16px; padding: 18px 0; }
@media (max-width: 900px) {
    .product-layout, .product-content { grid-template-columns: 1fr; }
    .buy-box { position: static; }
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.related-grid .product-body { padding: 16px 18px 18px; }
.related-grid .product-body h3 { font-size: 16px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(6, 18, 21, .93); }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px 24px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 100px); object-fit: contain; border-radius: var(--r-md); }
.lightbox .icon-btn { position: fixed; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox-close { top: 16px; left: 16px; }
.lightbox-prev { top: 50%; right: 16px; transform: translateY(-50%); }
.lightbox-next { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox-prev .ico { transform: scaleX(-1); }
@media (max-width: 600px) { .lightbox-inner { padding: 64px 12px 24px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-panel { background: #0E2A30; color: #E4EFED; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 20px); }
:root[data-theme="dark"] .contact-panel { background: var(--surface-2); }
.contact-panel h2 { font-size: 24px; margin-bottom: 6px; }
.contact-panel > p { opacity: .72; margin-bottom: 24px; font-size: 15px; }
.contact-lines { display: grid; gap: 2px; margin-bottom: 22px; }
.contact-lines > * { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 11px 12px; margin-inline: -12px; border-radius: var(--r-md); }
.contact-lines a:hover { background: rgba(255, 255, 255, .07); }
.contact-lines .ico-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #7FDCD2; }
.contact-lines small { display: block; font-size: 12.5px; opacity: .65; line-height: 1.5; }
.contact-lines strong { font-weight: 600; font-size: 15px; line-height: 1.6; word-break: break-word; }
.hours { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.hours .ico { color: #7FDCD2; }
.social-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); transition: background-color .2s, border-color .2s; }
.social-row a:hover { background: var(--turq); border-color: var(--turq); color: #fff; }
.social-row .ico { width: 18px; height: 18px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); position: relative; }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); font-size: 15.5px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turq); background: var(--surface); box-shadow: 0 0 0 3px var(--turq-soft); }
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:placeholder-shown { direction: rtl; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topic-chips button { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; cursor: pointer; color: var(--ink-soft); }
.topic-chips button:hover, .topic-chips button[aria-pressed="true"] { border-color: var(--turq); color: var(--turq-deep); background: var(--turq-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13.5px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 22px; font-size: 15px; }
.notice .ico { margin-top: 4px; }
.notice-ok { background: var(--turq-soft); color: var(--turq-deep); }
.notice-err { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-panel { position: static; order: 2; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Portfolio ---------- */
.portfolio-grid { columns: 3 300px; column-gap: 20px; }
.portfolio-item { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.portfolio-item:hover { border-color: var(--turq); }
.portfolio-item .shot { overflow: hidden; background: var(--surface-2); }
.portfolio-item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.portfolio-item figcaption a { font-weight: 700; }
.portfolio-item figcaption a::after { content: ''; position: absolute; inset: 0; }
.portfolio-item figcaption span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-grid .prose p { margin-bottom: 18px; color: var(--ink-soft); font-size: 17px; line-height: 2.05; max-width: 62ch; }
.about-grid .prose h2 { margin-top: 36px; font-size: 22px; }
.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.fact-card h2 { font-size: 18px; margin-bottom: 8px; }
.fact-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fact-card dl div:last-child { border-bottom: 0; }
.fact-card dt { color: var(--muted); }
.fact-card dd { font-weight: 700; text-align: left; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.skill-list li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .fact-card { position: static; } }

/* ---------- HTML sitemap ---------- */
.link-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link-columns a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.link-columns a:hover { border-color: var(--turq); }
.link-columns span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.sitemap-block + .sitemap-block { margin-top: 48px; }
.sitemap-block h2 { font-size: 22px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #0A2226; color: #C9DAD7; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-mark { --mark-core: #0B5F5A; }
.footer-about { font-size: 14.5px; color: #93AEAA; max-width: 34ch; line-height: 1.95; }
.site-footer h2 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; font-size: 14.5px; }
.footer-links a { color: #A9C1BD; }
.footer-links a:hover { color: #7FDCD2; }
.footer-contact { display: grid; gap: 14px; font-size: 14.5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { width: 18px; height: 18px; color: #7FDCD2; margin-top: 5px; }
.footer-contact a:hover { color: #7FDCD2; }
.site-footer .social-row a { border-color: rgba(255, 255, 255, .14); color: #C9DAD7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #86A19D; }
.to-top { border-color: rgba(255, 255, 255, .16); color: #C9DAD7; }
.to-top:hover { border-color: #7FDCD2; color: #7FDCD2; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.float-chat { position: fixed; bottom: 18px; left: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: none; place-items: center; background: var(--turq-deep); color: var(--on-accent); box-shadow: var(--shadow); }
.float-chat .ico { width: 24px; height: 24px; }
@media (max-width: 760px) { .float-chat { display: grid; } }

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