/* Shared service and format components. Tailwind emerald/slate palette, 4px spacing. */
.format-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.format-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:32px 24px;gap:20px;min-width:0;border:1px solid #e2e8f0;background:#fff;border-radius:24px}.format-card h3{font-size:20px;line-height:1.3;letter-spacing:-.02em;margin:0}.format-card-icon{display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:20px;background:#ecfdf5;color:#047857;font-size:28px}.format-dimension{font-size:14px;font-weight:700;padding:8px 12px;border-radius:999px;background:#ecfdf5;color:#047857}.format-card .button{width:100%;margin-top:auto;min-height:44px;font-size:14px}.format-card p{margin:0;color:#64748b;font-size:14px}.format-more{background:#f0fdf4;border-style:dashed}.format-more .format-card-icon{background:white}.format-card.selected{border:2px solid #059669;padding:31px 23px;background:#f0fdf4}.format-choice{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:24px;background:transparent;color:transparent}.format-choice>i{position:absolute;right:16px;top:16px;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:50%;font-size:16px;display:grid;place-items:center}.format-choice[aria-pressed=true]>i{background:#059669;border-color:#059669;color:white}.format-choice:focus-visible{outline:3px solid #047857;outline-offset:4px}.formats-section{padding-top:80px;padding-bottom:80px}.service-page{background:#fafaf9;color:#18181b}.service-header{position:relative!important;top:auto!important}.service-wrap{width:min(1184px,calc(100% - 48px));margin:0 auto;padding:40px 0 80px}.service-back{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#57534e;margin-bottom:32px;min-height:44px}.service-progress{display:flex;align-items:center;justify-content:center;gap:20px;margin:0 auto 48px}.service-progress button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#78716c;font-size:14px;padding:8px}.service-progress button span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #d6d3d1;font-size:12px}.service-progress button.active{font-weight:700;color:#047857}.service-progress button.active span,.service-progress button.complete span{background:#059669;border-color:#059669;color:#fff}.service-progress>i{font-size:12px;color:#a8a29e}.service-panel[hidden],.generation-overlay[hidden],[data-old-price][hidden],.discount-pill[hidden]{display:none!important}.service-heading{text-align:center;max-width:760px;margin:0 auto 40px}.service-heading h1{font-size:clamp(32px,4vw,52px);line-height:1.12;letter-spacing:-.04em;max-width:none;margin:12px 0 20px}.service-heading p{color:#78716c;font-size:16px;line-height:1.6;margin:0}.service-heading .section-label{font-size:13px;font-weight:600;color:#047857}.service-formats{gap:16px}.service-formats .format-card{padding:32px 24px;min-height:220px;gap:16px}.service-formats .format-card.selected{padding:31px 23px}.service-formats .format-card h3{font-size:17px;max-width:200px}.service-formats .format-card-icon{width:56px;height:56px;font-size:24px;border-radius:16px}.service-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:32px;border-top:1px solid #e7e5e4;padding-top:24px}.service-bottom p{font-size:14px;color:#57534e}.service-bottom .button{min-width:180px}.service-upload-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:32px;align-items:start;max-width:1000px;margin:auto}.service-upload-card{padding:24px;border:1px solid #e7e5e4;border-radius:24px;background:white;display:grid;gap:16px}.service-dropzone{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px dashed #a7f3d0;border-radius:16px;background:#f0fdf4;padding:40px 24px;gap:16px;cursor:pointer}.service-dropzone h2,.service-guidance h2{font-size:24px;margin:0;line-height:1.25;letter-spacing:-.025em}.service-dropzone p{color:#57534e;margin:0;font-size:14px}.service-dropzone small{font-size:12px;color:#78716c}.service-dropzone[hidden]{display:none}.service-dropzone.dragging{outline:3px solid #059669}.service-guidance{padding:24px;background:white;border:1px solid #e7e5e4;border-radius:24px}.service-guidance ul{list-style:none;padding:0;margin:24px 0;display:grid;gap:20px}.service-guidance li{display:flex;align-items:flex-start;gap:12px;font-size:15px;color:#57534e;line-height:1.6}.service-guidance li i{color:#059669;padding-top:4px}.service-status{padding:16px;border-radius:12px;background:#f5f5f4;color:#57534e;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.service-status:empty{display:none}.service-status.success{background:#ecfdf5;color:#047857}.service-status.error{background:#fef2f2;color:#b91c1c}.service-input-preview[hidden]{display:none}.service-input-preview{display:grid;gap:16px}.service-input-preview img{max-height:400px;width:100%;object-fit:contain;border-radius:16px;background:#f5f5f4}.service-consent{display:flex;align-items:flex-start;gap:12px;max-width:1000px;margin:24px auto 0;color:#78716c;font-size:13px;line-height:1.6}.service-consent input{width:20px;height:20px;flex:none;accent-color:#059669;margin:0}.service-consent a{text-decoration:underline;text-underline-offset:3px}.service-auth-layout{display:flex;align-items:center;justify-content:center;gap:64px;max-width:960px;margin:0 auto}.service-auth-layout .service-auth{max-width:440px;margin:0;padding:24px 0;width:100%}.service-auth h1{font-size:clamp(28px,3vw,36px);line-height:1.15;margin:0;letter-spacing:-.035em;max-width:none}.service-auth>p{font-size:15px;color:#78716c;line-height:1.6;margin:0 0 8px}.service-auth .auth-icon{background:#ecfdf5;color:#047857}.service-auth .field{width:100%;font-size:16px;min-height:52px;background:white;color:#18181b;border-color:#d6d3d1}.service-auth .service-phone-label{font-size:13px;font-weight:600;text-align:left;display:block;width:100%;margin-bottom:-12px}.service-auth .muted{font-size:12px;color:#78716c;line-height:1.6}.service-auth .button{width:100%;min-height:52px}.yandex-login{background:#fff;color:#18181b;border:1px solid #d6d3d1!important;gap:12px!important}.yandex-login>span{display:grid;place-items:center;background:#fc3f1d;color:white;width:28px;height:28px;border-radius:8px;font-size:24px;line-height:1;font-weight:600}.auth-separator{display:flex;align-items:center;justify-content:center;gap:12px;color:#a8a29e;font-size:12px;width:100%}.auth-separator:before,.auth-separator:after{content:'';height:1px;background:#e7e5e4;flex:1}.locked-photo{position:relative;width:340px;max-width:100%;height:440px;flex:none;border-radius:24px;overflow:hidden;background:#e7e5e4}.locked-photo[hidden]{display:none}.locked-photo>img{height:100%;width:100%;object-fit:cover}.locked-photo>div{position:absolute;inset:auto 16px 16px;display:grid;justify-items:center;gap:8px;text-align:center;padding:20px;border:1px solid #e7e5e4;border-radius:16px;background:rgba(255,255,255,.96);color:#18181b}.locked-photo b{font-size:24px}.locked-photo span{font-size:13px;color:#57534e}.locked-photo i{font-size:24px;color:#047857}.generation-overlay{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;background:rgba(250,250,249,.98);padding:32px}.generation-overlay h2{font-size:clamp(28px,4vw,44px);margin:0}.generation-overlay p{max-width:480px;color:#57534e;margin:0}.generation-overlay small{color:#78716c}.generation-indicator{display:grid;place-items:center;background:#ecfdf5;color:#059669;width:96px;height:96px;border-radius:32px;font-size:40px}.generation-indicator i{animation:service-spin 1.2s linear infinite}@keyframes service-spin{to{transform:rotate(360deg)}}.service-result-grid{display:grid;grid-template-columns:minmax(240px,.62fr) minmax(0,1.38fr);gap:32px;align-items:start}.service-result-photo{margin:0;padding:16px;border:1px solid #e7e5e4;border-radius:24px;background:white;position:sticky;top:24px}.service-result-photo img{width:100%;max-height:560px;object-fit:contain;border-radius:12px;background:#f5f5f4}.service-result-photo figcaption{font-size:12px;line-height:1.5;color:#78716c;text-align:center;margin:12px 0 0}.service-purchase{min-width:0}.service-tariffs{display:grid;grid-template-columns:1fr 1fr;gap:16px}.service-tariff{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #e7e5e4;border-radius:20px;padding:24px;min-width:0}.service-tariff.recommended{border-color:#059669}.service-tariff>span{font-size:13px;color:#78716c}.service-tariff h2{font-size:24px;line-height:1.2;margin:12px 0 20px;letter-spacing:-.02em}.service-tariff .tariff-recommendation{position:absolute;top:-12px;right:16px;padding:4px 12px;border-radius:999px;background:#059669;color:white;font-size:12px}.tariff-price{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tariff-price strong{font-size:32px;letter-spacing:-.04em}.tariff-price del{color:#a8a29e;font-size:16px}.discount-pill{display:inline-block;font-size:12px;color:#047857;background:#d1fae5;border-radius:999px;padding:4px 8px;font-weight:700;white-space:nowrap}.service-tariff ul{display:grid;gap:12px;padding:0;list-style:none;margin:24px 0;font-size:13px;line-height:1.5;color:#57534e}.service-tariff li{display:flex;gap:8px}.service-tariff li i{color:#059669}.service-tariff .button{margin-top:auto;width:100%;min-height:48px;font-size:13px;padding:12px 16px}.offer-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid #a7f3d0;border-radius:20px;padding:24px;margin-bottom:28px;background:#ecfdf5}.offer-banner h2{font-size:24px;line-height:1.2;margin:12px 0;letter-spacing:-.025em}.offer-banner p{font-size:14px;color:#57534e;margin:0 0 12px;line-height:1.5}.offer-banner small{font-size:11px;color:#78716c}.offer-clock{text-align:center;flex:none}.offer-clock span{display:block;color:#047857;font-size:12px;margin-bottom:4px}.offer-clock b{display:block;font-variant-numeric:tabular-nums;font-size:32px;color:#065f46;letter-spacing:-.03em}.service-promo{margin-top:24px;font-size:13px;color:#78716c}.service-promo>div{display:flex;gap:12px;margin-top:8px}.service-promo .field{background:white;color:#18181b;border-color:#d6d3d1;min-width:0;flex:1}.service-promo .button{font-size:13px;padding:12px 16px;min-height:48px}.service-promo small{display:block;margin-top:8px}.service-empty{text-align:center;padding:48px}.feature-settings{margin-top:24px}.feature-settings h3{font-size:20px;margin-top:32px}.feature-settings .button{margin-top:24px}.text-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.content-field[hidden]{display:none!important}.content-field{display:flex!important;flex-direction:column;gap:8px;border:1px solid #e2e8f0;border-radius:16px;padding:16px;margin:0!important;min-width:0}.content-field>span{font-size:12px;color:#047857}.content-field small{font-size:12px;color:#64748b;font-weight:400;overflow-wrap:anywhere}.content-field textarea{resize:vertical;font-size:14px;line-height:1.5;white-space:pre-wrap;min-height:80px}.text-reset{border:0;background:transparent;font-size:12px;color:#64748b;text-align:left;padding:4px 0;width:fit-content}.content-save{position:sticky;bottom:0;display:flex;gap:16px;align-items:center;padding:16px;background:white;border-top:1px solid #e2e8f0;margin-top:24px}.content-save .form-status{font-size:13px}.content-save .form-status:empty{display:none}.service-page button,.service-page a{touch-action:manipulation}.service-page button:focus-visible,.service-page a:focus-visible,.service-page input:focus-visible,.service-page textarea:focus-visible{outline:3px solid #059669;outline-offset:4px}.service-page input,.service-page textarea,.service-page select{font-size:16px}.service-page .section-label,.formats-section .section-label{letter-spacing:normal;text-transform:none}.service-page .service-promo input{font-size:16px}.call-phone{display:inline-block;color:#047857;text-decoration:underline;font-weight:700;white-space:nowrap}.service-promo-status{display:block}.service-page h1,.service-page h2,.service-page h3{overflow-wrap:break-word}
@media(hover:hover) and (pointer:fine){.format-card:has(.format-choice):hover{border-color:#059669}.service-page .button:hover{filter:brightness(.97)}}
@media(max-width:1024px){.format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-result-grid{grid-template-columns:280px minmax(0,1fr)}.service-tariffs{grid-template-columns:1fr}.service-auth-layout{gap:32px}.locked-photo{width:300px}.offer-banner{padding:20px;gap:16px}}
@media(max-width:640px){.site-header .header-upload{display:none!important}.site-header .login-link{display:inline-flex!important;min-height:44px;gap:8px}.service-wrap{width:calc(100% - 32px);padding:16px 0 48px}.service-back{margin-bottom:20px}.service-progress{gap:4px;justify-content:space-between;margin-bottom:32px}.service-progress button{font-size:11px;gap:4px;flex-direction:column;padding:4px}.service-progress button span{width:24px;height:24px;font-size:11px}.service-progress>i{font-size:10px}.service-heading{margin-bottom:28px}.service-heading h1{font-size:32px;margin:8px 0 16px}.service-heading p{font-size:14px}.format-grid{gap:12px}.format-card{padding:24px 16px;gap:16px;border-radius:20px}.format-card h3{font-size:17px}.format-card-icon{width:56px;height:56px;font-size:24px;border-radius:16px}.format-card .button{padding:12px;font-size:12px}.format-dimension{font-size:12px;padding:4px 8px}.formats-section{padding-top:48px;padding-bottom:48px}.service-formats .format-card{min-height:196px;padding:24px 12px}.service-formats .format-card.selected{padding:23px 11px}.service-formats .format-card h3{font-size:15px}.format-choice>i{top:8px;right:8px;width:20px;height:20px;font-size:12px}.service-bottom{flex-direction:column;align-items:stretch;gap:16px;margin-top:24px;padding-top:20px}.service-bottom .button{width:100%;min-height:52px}.service-bottom p{margin:0;text-align:center}.service-upload-grid{grid-template-columns:1fr;gap:20px}.service-upload-card,.service-guidance{padding:20px;border-radius:20px}.service-dropzone{padding:32px 16px}.service-guidance ul{gap:16px;margin:20px 0}.service-guidance li{font-size:14px}.service-consent{font-size:12px;margin-top:20px}.service-auth-layout{flex-direction:column;gap:24px}.service-auth-layout .service-auth{max-width:440px;padding:0}.service-auth h1{font-size:28px}.service-auth .auth-icon{width:56px;height:56px}.locked-photo{width:100%;height:300px;max-width:340px}.service-result-grid{grid-template-columns:1fr;gap:24px}.service-result-photo{position:relative;top:0;max-width:320px;width:100%;margin:0 auto}.service-result-photo img{max-height:400px}.service-tariffs{grid-template-columns:1fr;gap:24px}.offer-banner{align-items:flex-start;padding:20px;gap:12px}.offer-banner h2{font-size:22px}.offer-banner p{font-size:13px}.offer-clock b{font-size:28px}.service-tariff{padding:24px}.service-tariff .button{font-size:14px}.text-editor-grid{grid-template-columns:1fr}.content-save{flex-direction:column;align-items:stretch;padding:16px 0}.content-save .button{width:100%}.service-promo>div{flex-wrap:wrap}.service-promo .button{width:100%}.service-promo .field{width:100%}.admin-head .tabs{max-width:100%;gap:4px}.admin-head .tabs button{padding:12px}}
@media(prefers-reduced-motion:reduce){.generation-indicator i{animation:none}}
@media(max-width:640px){.site-header .login-link i{display:inline-flex!important;font-size:18px}.service-auth-layout.has-locked .auth-icon{display:none}.service-auth-layout.has-locked .locked-photo{height:240px}}
.saved-setting{margin-top:20px}.saved-setting>label{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px!important}.setting-state{font-size:12px;font-weight:500;white-space:nowrap}.setting-state.is-saved{color:#047857}.setting-state.is-empty{color:#78716c}.setting-control{position:relative;display:flex;align-items:stretch;gap:8px}.setting-control .field{min-width:0;flex:1;margin:0}.setting-reveal{flex:none;border:1px solid #d6d3d1;background:white;color:#475569;padding:8px 12px;min-height:44px;border-radius:12px;font-size:13px}.settings-card-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.settings-card-heading h2{margin:0!important}.settings-card-heading .button{margin:0!important;min-height:48px;white-space:nowrap}.settings-save-bar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding-top:24px;border-top:1px solid #e2e8f0;margin-top:24px}.settings-save-bar .button{margin:0!important;min-height:52px}.feature-settings{max-width:800px;margin:0 0 32px}.settings-save-bar .form-status{margin:0;font-size:14px}.settings-save-bar .form-status:empty{display:none}@media(max-width:640px){.settings-card-heading{align-items:flex-start;gap:12px}.settings-card-heading h2{font-size:24px}.settings-card-heading .button{padding:12px 16px;font-size:13px}.settings-save-bar{align-items:stretch;flex-direction:column}.settings-save-bar .button{width:100%}.saved-setting>label{font-size:13px}.setting-control input{font-size:16px}.setting-reveal{padding:8px;font-size:12px}}
/* Admin pages do not inherit the landing page's --green variables. */
.admin-panel .button-primary{background:#059669;color:#fff}.admin-panel .button-primary:hover{background:#047857}.admin-panel .button-primary:disabled{opacity:.6;cursor:wait}
.upload-next{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin-top:24px}.upload-next .button{min-width:200px;min-height:52px}.upload-next .service-consent{display:block;max-width:400px;margin:0;text-align:right;font-size:12px;line-height:1.6;color:#78716c}.auth-call-panel{display:grid;gap:12px;width:100%;padding:16px;background:#f5f5f4;border:1px solid #e7e5e4;border-radius:16px}.auth-call-panel[hidden],#service-call-button[hidden]{display:none!important}.auth-call-panel .service-status{padding:0;background:transparent}.auth-call-panel .call-phone{display:flex;white-space:normal;text-decoration:none;font-size:15px}.auth-call-panel .muted{display:block}.service-auth .auth-separator{margin:4px 0}.service-back{width:fit-content}
@media(max-width:760px){.site-header .header-actions{margin-left:auto;justify-content:flex-end;flex:none}.site-header>.login-link{margin-left:auto}.site-header .header-upload{display:none!important}}
@media(max-width:640px){.upload-next{align-items:stretch;margin-top:20px}.upload-next .button{width:100%}.upload-next .service-consent{max-width:none;text-align:center}.service-guidance ul{gap:12px;margin:20px 0}.service-auth .auth-call-panel{padding:16px}}
@media(max-width:760px){body .site-header .brand-word{font-size:16px;padding:8px;min-width:0;white-space:nowrap}body .site-header .brand{min-width:0;flex-shrink:1}}
@media(max-width:360px){body .site-header .brand-word{font-size:14px}}
.payment-banner{display:flex;align-items:flex-start;gap:16px;margin:0 0 28px;padding:20px 24px;border:2px solid #34d399;background:#ecfdf5;color:#065f46;border-radius:20px;font-weight:600;box-shadow:0 8px 24px rgba(5,150,105,.10)}.payment-banner>i{font-size:28px;flex:none}.payment-banner div{display:grid;gap:4px}.payment-banner strong{font-size:18px}.payment-banner span{font-size:14px;font-weight:500}.payment-banner.pending{border-color:#fbbf24;background:#fffbeb;color:#92400e}.paid-download-card{display:grid;justify-items:start;gap:16px;padding:32px;border:2px solid #34d399;background:#fff;border-radius:24px}.paid-download-card>i{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#d1fae5;color:#047857;font-size:28px}.paid-download-card h2{margin:0;font-size:28px}.paid-download-card p{margin:0;color:#57534e;line-height:1.6}.paid-download-card .button{min-height:52px}.service-payment-status{margin-top:16px}
@media(min-width:761px){.site-header .header-actions{margin-left:auto}}
@media(max-width:640px){.payment-banner{padding:16px;margin-bottom:20px}.paid-download-card{padding:24px}.paid-download-card .button{width:100%}}
.offer-banner .discount-pill{font-size:16px;padding:8px 12px}.offer-clock span{max-width:160px;font-size:13px;line-height:1.35}.offer-clock b{font-size:28px;min-width:156px}
