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

:root {
  color-scheme: light;
  --ink: #19221f;
  --muted: #737d78;
  --green: #216b50;
  --green-dark: #174e3a;
  --green-pale: #e5f1eb;
  --cream: #f7f8f5;
  --line: #e7ebe7;
  --white: #fff;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { height: 78px; background: rgba(255,255,255,.96); border-bottom: 1px solid #f0f2ef; }
.nav-wrap, .main-nav { display: flex; align-items: center; }
.nav-wrap { height: 100%; justify-content: space-between; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-wordmark { display: block; width: 110px; height: 28px; object-fit: contain; }
.main-nav { gap: 28px; color: #525e57; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.button):hover, .text-link:hover, .form-bottom a:hover { color: var(--green); }
.inline-form { margin: 0; }
.nav-button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 23px; border: 0; border-radius: 8px; color: white; background: var(--green); font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 0 18px; }
.button-light { color: var(--green-dark); background: white; border: 1px solid #dfe7e1; }
.button-light:hover { color: white; }
.button-full { width: 100%; }
.hero { overflow: hidden; background: var(--cream); }
.hero-grid { min-height: 530px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 42px; padding-top: 38px; padding-bottom: 38px; }
.hero-copy { max-width: 540px; }
.eyebrow { display: inline-block; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -1px; }
.hero h1 { margin: 15px 0 18px; font-size: clamp(44px, 5.2vw, 65px); line-height: 1.11; letter-spacing: -3px; }
.hero-copy > p { max-width: 430px; margin-bottom: 27px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; color: #85908a; font-size: 12px; }
.hero-art { position: relative; display: grid; min-height: 380px; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(33,107,80,.12); border-radius: 50%; }
.orbit-one { width: 370px; height: 370px; }
.orbit-two { width: 290px; height: 290px; }
.hero-card { position: relative; z-index: 1; display: flex; width: min(310px, 85%); min-height: 245px; flex-direction: column; justify-content: center; padding: 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(37,65,48,.12); transform: rotate(-3deg); }
.hero-card-icon { display: grid; width: 47px; height: 47px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: var(--green); background: var(--green-pale); font-size: 25px; }
.hero-card strong { margin-top: 6px; font: 800 25px Manrope, sans-serif; letter-spacing: -1px; }
.hero-rating { margin-top: 15px; color: var(--muted); font-size: 11px; }
.hero-rating span { margin-right: 6px; color: #d89e38; letter-spacing: 1px; }
.floating-tag { position: absolute; z-index: 2; padding: 11px 16px; border: 1px solid #ecf0ec; border-radius: 9px; background: white; box-shadow: 0 8px 25px #233e2a12; font-size: 13px; font-weight: 700; }
.tag-top { top: 58px; right: 8%; }
.tag-bottom { bottom: 57px; left: 5%; }
.section { padding-top: 76px; padding-bottom: 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2, .orders-heading h2 { margin: 7px 0 0; font-size: 32px; line-height: 1.2; }
.text-link { color: var(--green); font-size: 14px; font-weight: 700; }
.text-link span { margin-left: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); border-color: #c7d9cc; box-shadow: 0 13px 30px #1e39230d; }
.service-photo, .service-photo-placeholder { display: grid; width: calc(100% + 46px); height: 165px; margin: -23px -23px 16px; place-items: center; border-radius: 12px 12px 0 0; object-fit: cover; }
.service-photo-placeholder { color: var(--green); background: linear-gradient(135deg, #e5f1eb, #f4efe2); font-size: 38px; }
.service-rating { display: inline-block; margin: 0 0 10px; color: #a86b17; font-size: 12px; font-weight: 700; }
.service-rating-empty { color: var(--muted); font-weight: 400; }
.service-icon { display: grid; width: 43px; height: 43px; margin-bottom: 16px; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-pale); font-size: 21px; }
.service-provider { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.service-card h3 { margin: 3px 0 7px; font-size: 19px; line-height: 1.35; }
.service-card p { margin-bottom: 19px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-price { margin-top: auto; font: 800 17px Manrope, sans-serif; }
.service-price small, .detail-price small { color: var(--muted); font: 400 12px "DM Sans", sans-serif; }
.how-section { padding: 65px 0 74px; background: var(--cream); }
.reviews-section { padding: 65px 0 74px; background: var(--cream); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-card { display: flex; min-height: 220px; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.review-stars { color: #d89e38; letter-spacing: 2px; }
.star-muted { color: #e7e9e6; }
.review-text { flex: 1; margin: 14px 0 20px; color: #58645d; font-size: 14px; }
.review-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.review-photo, .review-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; object-fit: cover; }
.review-avatar { color: var(--green); background: var(--green-pale); font-weight: 700; }
.review-footer strong, .review-footer div > span { display: block; }
.review-footer strong { font-size: 12px; }
.review-footer div > span { color: var(--muted); font-size: 11px; }
.review-date { margin-left: auto; color: var(--muted); font-size: 10px; }
.how-section .section-heading { margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps article { padding-top: 21px; border-top: 1px solid #dce4de; }
.step-number { color: var(--green); font: 700 13px Manrope, sans-serif; }
.steps h3 { margin: 12px 0 6px; font-size: 18px; }
.steps p { max-width: 290px; margin: 0; color: var(--muted); font-size: 14px; }
.page-header { padding: 52px 0 44px; background: var(--cream); }
.page-header h1 { margin: 8px 0 7px; font-size: clamp(34px, 4vw, 46px); }
.page-header p { margin: 0; color: var(--muted); }
.search-form { display: flex; max-width: 650px; gap: 10px; margin-bottom: 28px; }
.search-form input { flex: 1; min-width: 0; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #dfe5e0; border-radius: 7px; outline: none; background: white; }
input:focus, textarea:focus, select:focus { border-color: #6eaa8c; box-shadow: 0 0 0 3px #216b5018; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); align-items: start; gap: 30px; }
.detail-card, .order-panel, .form-card { padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.detail-photo { display: block; width: 100%; max-height: 390px; margin-bottom: 24px; border-radius: 10px; object-fit: cover; }
.detail-rating { margin-top: 14px; color: #a86b17; font-size: 14px; font-weight: 700; }
.detail-rating-empty { color: var(--muted); font-weight: 400; }
.back-link { display: inline-block; margin-bottom: 25px; color: var(--green); font-size: 13px; font-weight: 700; }
.detail-icon { margin-bottom: 21px; }
.detail-card h1 { margin: 7px 0 17px; font-size: 38px; line-height: 1.2; }
.detail-description { color: #5f6b64; }
.detail-price { margin-top: 28px; font: 800 26px Manrope, sans-serif; }
.order-panel h2 { margin: 0 0 18px; font-size: 21px; }
.muted { color: var(--muted); font-size: 14px; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field-error { display: block; margin-top: 5px; color: #b53d35; font-size: 12px; }
.narrow-container { max-width: 520px; }
.form-card h1 { margin: 7px 0 7px; font-size: 32px; }
.form-card form { margin-top: 23px; }
.form-bottom { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-bottom a { color: var(--green); font-weight: 700; }
.social-login { margin-top: 21px; }
.social-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.social-divider::before, .social-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.social-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-buttons form { min-width: 0; }
.social-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 13px; font-weight: 700; cursor: pointer; }
.social-button:hover { border-color: #c8d9ce; background: var(--cream); }
.social-icon { display: grid; width: 22px; height: 22px; place-items: center; font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; }
.google-icon { color: #4285f4; }
.vk-icon { border-radius: 6px; color: white; background: #0077ff; font-size: 11px; }
.help-text { margin-top: 5px; color: var(--muted); font-size: 11px; }
.help-text ul { padding-left: 18px; }
.orders-heading { margin: 45px 0 20px; }
.order-list { display: grid; gap: 12px; }
.order-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 10px; }
.order-card h3 { margin: 0 0 4px; font-size: 17px; }
.order-card h3 a:hover { color: var(--green); }
.order-card p { margin: 0; color: var(--muted); font-size: 13px; }
.order-card .order-message { margin-top: 8px; color: var(--ink); }
.order-amount { margin-top: 6px !important; color: var(--green) !important; font-weight: 700; }
.order-meta { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 11px; }
.review-form { display: grid; width: min(220px, 100%); gap: 6px; margin-top: 8px; }
.review-form select, .review-form textarea { padding: 7px 9px; font-size: 12px; }
.review-form .button { min-height: 36px; }
.status-form { display: grid; gap: 6px; margin-top: 5px; }
.status-form select { max-width: 150px; padding: 6px 8px; font-size: 11px; }
.status { padding: 4px 9px; border-radius: 100px; color: var(--green-dark); background: var(--green-pale); font-size: 11px; font-weight: 700; }
.status-cancelled { color: #9a4039; background: #fae9e7; }
.status-completed { color: #3c5b8a; background: #eaf0fb; }
.status-work_done { color: #8a5a1f; background: #fff1dc; }
.empty-state { padding: 35px 20px; border: 1px dashed #d5ded7; border-radius: 12px; text-align: center; }
.payment-info { margin-bottom: 28px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 9px; color: #58645d; background: var(--cream); font-size: 13px; }
.payment-info strong { color: var(--green-dark); }
.empty-state h3 { margin: 0 0 7px; font-size: 19px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.notice { margin-top: 15px; padding: 12px 15px; border-radius: 8px; background: var(--green-pale); font-size: 14px; }
.notice-error { color: #8b3029; background: #fae9e7; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--green); font-weight: 600; }
.legal-page { width: min(880px, calc(100% - 36px)); margin: 0 auto; padding: 45px 0 64px; }
.legal-page h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 38px); }
.legal-page h2 { margin: 28px 0 10px; font-size: 21px; }
.legal-page p, .legal-page li { color: #4c5751; font-size: 15px; }
.legal-page li { margin-bottom: 7px; }
.legal-page .legal-updated { color: var(--muted); font-size: 13px; }
.legal-draft-notice { margin: 10px 0 16px; padding: 10px; border: 1px solid #9b6d28; border-radius: 6px; color: #573c1c; background: #fff0cc; font-size: 11px; }
.auth-panel .consent-field { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 7px; margin: 10px 0; }
.auth-panel .consent-field input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 2px 0 0; padding: 0; accent-color: #762d2b; }
.auth-panel .consent-field label { display: block !important; margin: 0; color: #4d2928; font-size: 10px; line-height: 1.45; }
.auth-panel .consent-field label a { color: #4d2c91; text-decoration: underline; }
.auth-panel .consent-field .field-error { grid-column: 2; margin: 0; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.pwa-splash { display: none; }
.pwa-launching .pwa-splash { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 24px; background: #f41418; opacity: 1; transition: opacity .35s ease; }
.pwa-splash.pwa-splash-hidden { opacity: 0; pointer-events: none; }
.pwa-splash-card { display: flex; width: min(100%, 340px); min-height: min(68vh, 520px); flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 32px 24px; border: 2px solid #aa1616; border-radius: 9px; color: #762d2b; background: #f57e82; box-shadow: 5px 6px 0 rgba(0,0,0,.35); text-align: center; }
.pwa-splash-logo { width: 116px; height: 116px; object-fit: contain; }
.pwa-splash-card strong { font: 800 25px Manrope, sans-serif; letter-spacing: -.8px; }
.pwa-splash-card > span:not(.pwa-splash-loader) { color: #713c3a; font-size: 13px; }
.pwa-splash-loader { width: 27px; height: 27px; margin-top: 11px; border: 3px solid rgba(118,45,43,.2); border-top-color: #762d2b; border-radius: 50%; animation: pwa-splash-spin .8s linear infinite; }
@keyframes pwa-splash-spin { to { transform: rotate(360deg); } }

.auth-body { min-height: 100vh; background: #f41418; }
.auth-body .site-header, .auth-body .site-footer { display: none; }
.auth-body main { min-height: 100vh; }
.auth-body .messages { padding-top: 16px; }
.auth-screen { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 34px 18px; background: #f41418; }
.auth-back-link { position: absolute; top: 18px; left: max(18px, calc((100% - 360px) / 2)); z-index: 2; display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid #272322; border-radius: 50%; color: #272322; background: #fff; font-size: 22px; line-height: 1; }
.auth-panel { position: relative; isolation: isolate; overflow: hidden; width: min(100%, 340px); padding: 23px 15px 19px; border: 2px solid #aa1616; border-radius: 8px; background: #f57e82; box-shadow: 4px 5px 0 rgba(0,0,0,.35); }
.auth-watermark { position: absolute; z-index: -1; top: 50%; left: 50%; width: 210px; height: 210px; opacity: .16; filter: grayscale(1); transform: translate(-50%, -50%); pointer-events: none; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 16px; color: #6f2928; font: 800 17px Manrope, sans-serif; letter-spacing: -.5px; }
.auth-brand img { width: 34px; height: 34px; }
.auth-panel h1 { margin: 0 0 10px; padding: 8px 7px; border: 1px solid #b85451; border-radius: 6px; color: #282323; background: #ffe2df; font: 700 15px/1.3 "DM Sans", sans-serif; letter-spacing: 0; text-align: center; text-transform: uppercase; }
.auth-intro { margin: 0 0 12px; color: #642a29; font-size: 11px; text-align: center; }
.auth-hint { margin: 9px 0 0; color: #613b39; font-size: 10px; text-align: center; }
.auth-panel form { margin-top: 12px; }
.auth-panel .form-field { margin-bottom: 10px; }
.auth-panel .form-field > label { display: none; }
.auth-panel .form-field > label.sr-only { display: block; }
.auth-panel input:not([type="radio"]), .auth-panel select { min-height: 40px; padding: 9px 11px; border: 1px solid #aa5551; border-radius: 6px; color: #342a29; background: #ffe2df; font-size: 13px; }
.auth-panel input:not([type="radio"]):focus, .auth-panel select:focus { border-color: #772b29; box-shadow: 0 0 0 2px #772b2922; }
.auth-panel input::placeholder { color: #766361; opacity: 1; }
.auth-role-field > label { display: block !important; margin: 0 0 6px; color: #5e2928; font-size: 11px; }
.auth-role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.auth-role-options label { display: flex; min-height: 38px; align-items: center; gap: 7px; margin: 0; padding: 6px 8px; border: 1px solid #aa5551; border-radius: 6px; color: #342a29; background: #ffe2df; font-size: 12px; cursor: pointer; }
.auth-role-options label:has(input:checked) { border-color: #762d2b; background: #fff0ee; box-shadow: inset 0 0 0 1px #762d2b; }
.auth-role-options input { width: 14px; height: 14px; margin: 0; accent-color: #bb2525; }
.auth-submit { min-height: 40px; border: 1px solid #655857; border-radius: 6px; color: #181515; background: #777071; font-weight: 500; }
.auth-submit:hover { color: #fff; background: #5d5657; }
.auth-panel .notice { margin: 10px 0; }
.auth-panel .social-login { margin-top: 12px; }
.auth-panel .social-divider { color: #613b39; font-size: 11px; }
.auth-panel .social-divider::before, .auth-panel .social-divider::after { background: #c46e6b; }
.auth-panel .social-button { min-height: 36px; border-color: #aa5551; background: #ffe2df; font-size: 11px; }
.auth-panel .form-bottom { margin: 11px 0 0; color: #58312f; font-size: 11px; }
.auth-panel .form-bottom a { color: #4d2c91; font-weight: 700; }
.auth-guest-link { display: flex; min-height: 40px; align-items: center; justify-content: center; margin-top: 8px; border: 1px solid #aa5551; border-radius: 6px; color: #342a29; background: #ffe2df; font-size: 12px; font-weight: 700; }
.auth-guest-link:hover { background: #fff0ee; }
.auth-panel .help-text { color: #5c3836; font-size: 10px; }
.auth-panel .help-text ul { margin: 4px 0; padding-left: 15px; }
.auth-panel .field-error { color: #721b18; }

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .site-header { height: auto; min-height: 68px; }
  .nav-wrap { min-height: 68px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand-wordmark { width: 104px; height: 26px; }
  .main-nav { gap: 13px; font-size: 12px; }
  .main-nav .button-small { min-height: 36px; padding: 0 12px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; padding-top: 65px; }
  .hero h1 { font-size: clamp(43px, 10vw, 58px); }
  .hero-art { min-height: 300px; }
  .orbit-one { width: 290px; height: 290px; }
  .orbit-two { width: 225px; height: 225px; }
  .hero-card { min-height: 210px; }
  .tag-top { top: 30px; right: 4%; }
  .tag-bottom { bottom: 28px; left: 4%; }
  .section { padding-top: 55px; padding-bottom: 58px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card { min-height: 230px; padding: 17px; }
  .service-photo, .service-photo-placeholder { width: calc(100% + 34px); height: 155px; margin: -17px -17px 14px; }
  .service-card h3 { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 23px; }
  .review-grid { grid-template-columns: 1fr; }
  .page-header { padding: 39px 0 34px; }
  .detail-layout { grid-template-columns: 1fr; gap: 16px; }
  .detail-card, .order-panel, .form-card { padding: 23px; }
  .detail-card h1 { font-size: 32px; }
  .auth-panel { padding: 21px 14px 18px; }
}

@media (max-width: 480px) {
  .brand-wordmark { width: 96px; height: 24px; }
  .main-nav { gap: 10px; }
  .main-nav a, .nav-button { font-size: 11px; }
  .main-nav .button-small { min-height: 34px; padding: 0 9px; }
  .hero-grid { padding-top: 48px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .orders-heading h2 { font-size: 27px; }
  .section-heading > .button { flex-shrink: 0; min-height: 42px; padding: 0 12px; font-size: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 205px; }
  .service-photo, .service-photo-placeholder { height: 190px; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-form .button { width: 100%; }
  .order-card { flex-direction: column; }
  .order-meta { align-items: flex-start; }
  .auth-screen { padding: 60px 14px 22px; }
  .auth-back-link { left: 14px; }
  .auth-panel { padding: 19px 12px 16px; }
  .auth-panel h1 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-splash-loader { animation-duration: 2s; }
  .pwa-launching .pwa-splash { transition-duration: .01ms; }
}
