/* Visual layer shared by the public site and the two workspaces. */
:root {
  --graphite-950: #111719;
  --graphite-900: #182124;
  --graphite-800: #253135;
  --ink: #172124;
  --muted: #647276;
  --paper: #f2f5f3;
  --surface: #fff;
  --line: #dce5e2;
  --teal: #a4e5d5;
  --teal-strong: #267c70;
  --shadow: 0 24px 60px rgba(20, 42, 40, .11);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1260px;
}

body { background: var(--paper); }
::selection { color: #112321; background: #a4e5d5; }
:focus-visible { outline: 3px solid #49bca8; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 56px)); }
.section { position: relative; padding: clamp(80px, 8vw, 122px) 0; }
.section__head { margin-bottom: 38px; }
.section__head h2 { margin-top: 12px; }
.section__head .lead { margin-top: 17px; }
.eyebrow { letter-spacing: .13em; }
h1, h2, h3, h4 { letter-spacing: -.052em; }
h1 { line-height: .98; }
h2 { line-height: 1.04; }

.site-header { border-color: rgba(255,255,255,.1); background: rgba(17,23,25,.9); box-shadow: 0 8px 30px rgba(5,14,16,.1); }
.nav { min-height: 78px; }
.brand { max-width: 190px; letter-spacing: .08em; }
.brand__mark { width: 43px; height: 43px; flex: 0 0 43px; border-color: rgba(164,229,213,.7); background: rgba(164,229,213,.08); font-size: 1.06rem; }
.nav__links { gap: clamp(15px, 2.2vw, 31px); }
.nav__links a { font-weight: 600; }
.nav__contact a { color: var(--teal); }

.hero { min-height: 720px; isolation: isolate; }
.hero::before { background: linear-gradient(90deg, #111719 0%, rgba(17,23,25,.94) 36%, rgba(17,23,25,.44) 100%), url('/assets/web-team-1.jpg') center/cover; }
.hero::after { right: -100px; bottom: -240px; width: 650px; height: 650px; animation: halo-drift 13s ease-in-out infinite alternate; }
.hero__inner { min-height: 720px; grid-template-columns: minmax(0, 1fr) 255px; gap: clamp(30px, 6vw, 90px); }
.hero h1 { max-width: 900px; font-size: clamp(3.8rem, 7.5vw, 7.8rem); }
.hero h1 span { display: block; }
.hero .lead { max-width: 590px; }
.hero__meta { gap: 10px; }
.hero__meta-card { position: relative; padding: 17px 19px 19px; border-color: rgba(255,255,255,.16); border-radius: 15px; background: rgba(23,35,37,.68); box-shadow: 0 15px 40px rgba(0,0,0,.1); }
.hero__meta-card::before { display: block; width: 24px; height: 2px; margin-bottom: 13px; border-radius: 2px; background: var(--teal); content: ''; }
.hero__meta-card strong { color: var(--teal); font-size: .94rem; }
.hero__meta-card span { color: #e0e8e6; }
.hero__scroll { bottom: 35px; }

.btn { min-height: 52px; padding-inline: 23px; box-shadow: none; }
.btn--accent { background: var(--teal); box-shadow: 0 11px 25px rgba(76,186,161,.2); }
.btn--accent:hover { background: #c1f0e4; box-shadow: 0 16px 30px rgba(76,186,161,.25); }
.btn--dark:hover { background: #344447; }
.btn:active { transform: translateY(0) scale(.98); }

.service-card, .article-card, .content-card, .service-row, .detail__aside, .contact-panel { box-shadow: 0 10px 32px rgba(27,51,49,.045); }
.service-card { min-height: 285px; padding: 30px; }
.service-card::after { right: -48px; bottom: -65px; width: 185px; height: 185px; }
.service-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--teal), transparent 75%); content: ''; }
.service-card__icon { width: 54px; height: 54px; margin-bottom: 25px; border: 1px solid #ccebe3; background: #ebf8f3; }
.service-card__bottom { position: relative; z-index: 1; padding-top: 17px; border-top: 1px solid var(--line); }
.service-card .price { display: grid; gap: 0; }
.service-card .arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #cbe8df; border-radius: 50%; }
.section--dark { background: radial-gradient(circle at 88% 13%, rgba(98,160,144,.13), transparent 26%), var(--graphite-900); }
.section--dark .content-card { border-color: rgba(255,255,255,.13); color: #fff; background: #243033; }
.section--dark .content-card p { color: #b8c6c5; }
.section--dark .check-list li { color: #edf4f1; }
.feature-image { box-shadow: 0 25px 60px rgba(2,10,11,.22); }
.feature-copy > p { max-width: 560px; color: #bfcdcb; font-size: 1.05rem; }
.feature-copy .check-list { margin: 30px 0 35px; }
.feature-copy .check-list li { color: #e5efeb; }
.section:not(.section--dark) .feature-copy > p { color: #4c615b; }
.section:not(.section--dark) .feature-copy .check-list li { color: var(--ink); }
.section--dark .feature-copy > p { color: #bfcdcb; }
.section--dark .feature-copy .check-list li { color: #e5efeb; }
.step { position: relative; min-height: 230px; padding: 30px 25px; background: #202b2e; transition: background .3s, transform .3s; }
.step:hover { z-index: 1; background: #29383a; transform: translateY(-5px); }
.step__number { margin-bottom: 43px; font-size: .9rem; }
.work-card { min-height: 320px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 35px rgba(20,42,40,.1); }
.work-card__image { height: 100%; min-height: 320px; aspect-ratio: auto; background-color: #263235; background-position: center !important; background-size: cover !important; }
.work-card__overlay { padding: 25px; background: linear-gradient(180deg, transparent 35%, rgba(11,20,22,.91)); }
.work-card__overlay h3 { line-height: 1.12; }
.article-card__image { background-position: center !important; background-size: cover !important; }
.article-card__body { padding: 27px; }
.article-card__body h3 { line-height: 1.12; }
.content-card { transition: transform .3s, box-shadow .3s, border-color .3s; }
.content-card:hover { border-color: #bbd9d0; box-shadow: var(--shadow); transform: translateY(-3px); }

.help-section { padding-top: 0; }
.help-panel { display: grid; grid-template-columns: 1fr .8fr; min-height: 440px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: #263639; box-shadow: 0 30px 70px rgba(0,0,0,.14); }
.help-panel__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(34px, 6vw, 72px); }
.help-panel__copy h2 { max-width: 590px; margin: 20px 0; }
.help-panel__copy .lead { max-width: 540px; }
.help-panel__copy .btn { margin-top: 28px; }
.help-panel__visual { min-height: 370px; background: linear-gradient(90deg, #263639 0%, rgba(38,54,57,.05) 50%), url('/assets/service-bathroom.jpg') center/cover; }

.page-hero { padding: 100px 0 105px; isolation: isolate; background: linear-gradient(90deg, #182124 0%, rgba(24,33,36,.96) 40%, rgba(24,33,36,.6) 100%), url('/assets/web-team-2.jpg') right 37%/cover; }
.page-hero::after { z-index: -1; right: -70px; bottom: -270px; width: 560px; height: 560px; box-shadow: 0 0 0 65px rgba(164,229,213,.025), 0 0 0 130px rgba(164,229,213,.018); animation: halo-drift 15s ease-in-out infinite alternate; }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 680px; color: #d5e2df; }
.page-hero .eyebrow { color: #a4e5d5; }
.breadcrumbs { color: #b4c3c1; }
.service-row { padding: 26px 30px; }
.service-row:hover { transform: translateY(-3px); }
.detail__aside { border-top: 3px solid var(--teal-strong); }
.work-detail__hero { background-position: center !important; background-size: cover !important; box-shadow: var(--shadow); }
.work-detail__body > p { margin-top: 17px; }
.work-detail__body h3 { margin: 28px 0 12px; }
.work-detail__body .btn { margin-top: 24px; }
.fact { border: 1px solid #d4e7de; background: #eaf4ef; }
.fact:only-child { grid-column: 1 / -1; }
.faq .accordion__item { transition: padding .3s, background .3s; }
.faq .accordion__item.is-open { padding-inline: 18px; border-radius: 13px; background: #fff; }
.cta-band { background: radial-gradient(circle at 88% 50%, rgba(164,229,213,.13), transparent 29%), #213034; }
.cta-band .container { padding-block: 73px; }
.contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 5vw, 70px); }
.contact-list { gap: 10px; }
.contact-item { align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-item__icon { border-radius: 12px; }
.team-gallery__grid { gap: 10px; }
.team-gallery__grid button { border-radius: 13px; }
.contact-panel { border: 1px solid var(--line); }
.field input, .field textarea, .field select { background: #f8faf8; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #afcac2; }
.modal__dialog { border: 1px solid #d3e5dd; }
.site-toast { width: min(450px, calc(100vw - 32px)); border-left: 5px solid #4aa88f; font-size: .92rem; font-weight: 650; }
.site-toast--error { border-left-color: #d3685d; }
.footer__top { padding-top: 79px; }
.footer__brand p { color: #a7b6b4; }
.photo-credits-link { padding-bottom: 25px; color: #9badaa; font-size: .75rem; }
.photo-credits-link a { text-decoration: underline; text-underline-offset: 3px; }
.photo-credits-link a:hover { color: var(--teal); }
.content-card p a[href^='https://'] { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 3px; }
.empty-showcase { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 5vw, 55px); background: radial-gradient(circle at 85% 50%, rgba(74,178,151,.17), transparent 30%), #fff; }
.empty-showcase h3 { margin: 15px 0 10px; font-size: clamp(1.8rem, 3vw, 2.8rem); }

/* Workspaces */
.admin-shell, .master-shell { background: radial-gradient(circle at 7% 0%, rgba(86,180,155,.12), transparent 28%), #f0f4f2; }
.admin-topbar { padding: 31px 35px; border-color: #324548; color: #fff; background: linear-gradient(120deg, #1b292b, #304447); box-shadow: var(--shadow); }
.admin-topbar .muted { color: #baccca; }
.admin-topbar .eyebrow { color: var(--teal); }
.admin-topbar .btn { color: #fff; border-color: #8ba29e; }
.admin-dashboard-nav, .master-dashboard-nav { top: 88px; border-color: #d5e4dd; border-radius: 15px; box-shadow: 0 12px 32px rgba(17,45,41,.08); }
.admin-dashboard-nav button, .master-dashboard-nav a { min-height: 42px; padding-inline: 17px; border-radius: 10px; }
.admin-dashboard-nav button.is-active { color: #0f2521; background: var(--teal); }
.admin-users, .admin-media, .admin-content, .admin-request, .master-profile, .master-job { border-color: #d7e3dd; box-shadow: 0 12px 38px rgba(20,50,43,.055); }
.admin-users, .admin-media, .admin-content { padding: clamp(20px, 3vw, 32px); }
.admin-user, .admin-content-row, .master-history-card, .media-card { border-color: #dce7e1; transition: border-color .2s, box-shadow .2s, transform .2s; }
.admin-user:hover, .admin-content-row:hover, .master-history-card:hover, .media-card:hover { border-color: #add4c4; box-shadow: 0 10px 25px rgba(20,50,43,.065); }
.admin-request-create { padding: 22px; border-color: #d7e3dd; border-top: 3px solid var(--teal-strong); box-shadow: 0 12px 38px rgba(20,50,43,.055); }
.admin-request__meta strong { font-size: 1.1rem; }
.admin-request__controls { border-color: #d6e5dd; background: #f6faf7; }
.admin-toolbar__filters input, .admin-toolbar__filters select { background: #fff; }
.admin-content-form { border-color: #d5e5dc; background: #f6faf7; }
.admin-empty { border-color: #b8d6c8; background: #f7fbf8; }
.master-heading h1 { font-size: clamp(2.7rem, 5.5vw, 5.3rem); }
.master-heading__stats .pill { padding: 8px 13px; color: #1d6257; background: #dff1e8; }
.master-profile { padding: clamp(20px, 3vw, 31px); }
.master-job { gap: 27px; padding: clamp(20px, 3vw, 29px); }
.master-job__controls { border-color: #d8e8dc; background: #f6faf7; }
.master-job__details { padding-top: 15px; }
.master-status-buttons button { border-radius: 999px; }
.master-status-buttons button.is-active { border-color: #84c9ae; background: #dff4e8; }
.master-vk-status { border-left: 4px solid #70a89b; }
.staff-shell { background: radial-gradient(circle at 83% 18%, rgba(116,198,175,.15), transparent 28%), linear-gradient(145deg, #e9f1ec, #f5f7f4); }
.staff-card { border-color: #d1e3d8; box-shadow: 0 30px 75px rgba(24,53,46,.13); }
.staff-card h1 { max-width: 450px; }
.staff-tabs { background: #e7efea; }
.staff-tabs button[aria-selected='true'] { color: #145447; box-shadow: 0 5px 14px rgba(25,75,60,.09); }
.staff-panel h2 { font-size: 1.5rem; }
.staff-choice a { transition: background .2s, transform .2s, border-color .2s; }
.staff-choice a:hover { transform: translateY(-2px); }

@keyframes halo-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-45px,-30px,0); } }
@keyframes card-enter { from { transform: translateY(16px); } to { transform: translateY(0); } }
.hero__inner > div:first-child { animation: card-enter .8s both; }
.hero__meta-card { animation: card-enter .65s both; }
.hero__meta-card:nth-child(2) { animation-delay: .12s; }
.hero__meta-card:nth-child(3) { animation-delay: .24s; }
.cards > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .07s; }
.cards > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .14s; }
.cards > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .21s; }

@media (max-width: 1050px) {
  .hero__inner { grid-template-columns: 1fr 220px; }
  .nav__links { gap: 14px; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 820px) {
  .container { width: min(var(--container), calc(100% - 34px)); }
  .hero__inner { display: block; }
  .hero__meta { display: flex; }
  .help-panel { grid-template-columns: 1fr; }
  .help-panel__visual { min-height: 270px; background: linear-gradient(0deg, #263639, transparent 30%), url('/assets/service-bathroom.jpg') center/cover; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-dashboard-nav, .master-dashboard-nav { top: 82px; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; }
  .hero__inner { min-height: 0; padding: 76px 0 48px; }
  .hero h1 { font-size: clamp(3.45rem, 15vw, 5rem); }
  .hero__meta { display: grid; grid-template-columns: 1fr; margin-top: 42px; }
  .hero__meta-card { padding: 12px 17px; }
  .hero__meta-card::before { display: none; }
  .hero__meta-card strong, .hero__meta-card span { display: inline; font-size: .82rem; }
  .hero__meta-card span::before { content: ' · '; }
  .page-hero { padding: 72px 0 76px; }
  .page-hero h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .help-panel__copy { padding: 33px 25px; }
  .help-panel__visual { min-height: 220px; }
  .work-card, .work-card__image { min-height: 300px; }
  .admin-topbar { padding: 25px; }
  .admin-dashboard-nav, .master-dashboard-nav { position: static; gap: 6px; }
  .admin-dashboard-nav button, .master-dashboard-nav a { flex: 1 1 42%; text-align: center; }
  .admin-request-create { padding: 15px; }
  .staff-shell { padding: 36px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .page-hero::after, .hero__inner > div:first-child, .hero__meta-card { animation: none !important; }
  .cards > .reveal, .steps > .reveal { transition-delay: 0s !important; }
}

/* Warmer, calmer surfaces and a more compact frame. */
:root {
  --graphite-950: #1b292a;
  --graphite-900: #243536;
  --graphite-800: #344646;
  --ink: #263735;
  --muted: #667673;
  --paper: #eaf0eb;
  --surface: #fbfaf5;
  --line: #d3e0d7;
  --teal: #b0e8d4;
  --teal-strong: #2b7868;
  --copper: #e3b38a;
}
body { background: #eaf0eb; }
main > .section:not(.section--dark) { background: radial-gradient(circle at 85% 10%, rgba(195,216,201,.35), transparent 30%), linear-gradient(145deg, #edf2ec, #f5f3e9); }
main > .section:not(.section--dark):nth-of-type(3n) { background: linear-gradient(150deg, #dfeae2, #edf3eb 52%, #ece9dd); }
.site-header { background: rgba(29,43,43,.94); }
.nav { min-height: 54px; }
.brand { max-width: 210px; font-size: .72rem; }
.brand__mark { width: 32px; height: 32px; flex-basis: 32px; }
.nav__links a { font-size: .86rem; }
.nav__cta { min-height: 34px; padding: 0 14px; border-color: rgba(176,232,212,.35); font-size: .76rem; }
.nav__cta:hover { border-color: var(--teal); }
.nav__mobile-cta { display: none; }
.hero::before { background: linear-gradient(90deg, rgba(26,43,43,.97), rgba(28,48,46,.87) 40%, rgba(31,48,45,.22)), url('/assets/web-team-1.jpg') center/cover; }
.page-hero { background: linear-gradient(90deg, rgba(28,44,44,.98), rgba(31,52,48,.88) 44%, rgba(31,48,45,.35)), url('/assets/web-team-2.jpg') right 37%/cover; }
.page-hero--about { background: linear-gradient(90deg, rgba(28,44,44,.97), rgba(29,49,47,.78) 52%, rgba(29,49,47,.2)), url('/assets/web-team-2.jpg') center/cover; }
.section--dark { background: radial-gradient(circle at 84% 10%, rgba(176,232,212,.12), transparent 34%), linear-gradient(125deg, #253a39, #1d2f31); }
.service-card { background: linear-gradient(150deg, #fbfaf5, #f4f6ef); }
.service-card:nth-child(3n+2) { background: linear-gradient(150deg, #e4f0e7, #f1f5ec); }
.service-card:nth-child(3n+3) { background: linear-gradient(150deg, #f6eee4, #fbfaf5); }
.service-card::before { background: linear-gradient(90deg, #63b39b, var(--copper)); }
.content-card, .article-card, .service-row, .contact-panel, .detail__aside { background: #fcfbf7; }
.section--dark .content-card { background: rgba(231,245,233,.08); }
.step { background: #283c3b; }
.step:hover { background: #354b47; }
.contact-item, .fact, .quote { background: #f4f5ea; }
.cta-band { background: radial-gradient(circle at 90% 20%, rgba(227,179,138,.17), transparent 32%), linear-gradient(120deg, #2b4140, #203433); }
.footer { background: #243536; }
.footer__top { gap: 18px; padding: 25px 0 17px; }
.footer__brand p { margin-top: 7px; }
.footer h4 { margin-bottom: 7px; }
.footer__links { gap: 4px; }
.footer__bottom { padding: 8px 0; }
.photo-credits-link { padding-bottom: 9px; }

/* Contacts: a warm, readable form instead of a plain white block. */
.contacts-page .contact-section { background: radial-gradient(circle at 8% 14%, rgba(176,232,212,.3), transparent 28%), linear-gradient(135deg, #e1eee5, #f4f0e7 68%, #e6eee7); }
.contacts-page #request { scroll-margin-top: 65px; }
.contacts-page .contact-info h2 { color: #203c38; }
.contacts-page .contact-info > .lead { color: #4e6861; }
.contacts-page .contact-item { border-color: rgba(71,116,99,.18); background: rgba(255,255,255,.54); box-shadow: 0 12px 28px rgba(33,66,54,.06); }
.contacts-page .contact-item strong { color: #24463f; }
.contacts-page .contact-panel { border-color: rgba(69,116,99,.24); background: linear-gradient(145deg, #edf5ed, #f8f1e6); box-shadow: 0 24px 60px rgba(34,72,56,.13); }
.contacts-page .contact-panel h3 { color: #203c38; margin: 10px 0 7px; }
.contact-panel__intro { margin-bottom: 22px; color: #5b7169; font-size: .9rem; }
.contacts-page .field label { color: #34564d; }
.contacts-page .field input, .contacts-page .field textarea, .contacts-page .field select { border-color: #c6dbce; background: rgba(255,255,255,.72); }
.contacts-page .field input::placeholder, .contacts-page .field textarea::placeholder { color: #83968e; }
.contacts-page .consent, .contacts-page .form-note { color: #5b7169; }
.vk-id-field { padding: 13px 15px; border: 1px solid rgba(72,137,116,.22); border-left: 3px solid #6bae99; border-radius: 13px; background: linear-gradient(135deg, rgba(224,244,232,.88), rgba(249,243,228,.78)); }
.form-grid + .vk-id-field { margin-top: 14px; }
.vk-id-field label { margin-bottom: 4px; color: #285e50; font-weight: 700; }
.vk-id-field input { background: rgba(255,255,255,.86) !important; }
.field__hint { display: block; margin-top: 5px; color: #6b8178; font-size: .7rem; line-height: 1.45; }
.vk-id-field .field__error { margin-top: 4px; }
.contacts-page .form-success { border: 1px solid #8bcbb3; background: linear-gradient(135deg, #dff5e8, #f3f4df); color: #226454; box-shadow: 0 10px 25px rgba(46,126,99,.1); font-weight: 700; }
.request-confirmation { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(19,42,38,.68); opacity: 0; pointer-events: none; transition: opacity .24s ease; backdrop-filter: blur(8px); }
.request-confirmation.is-visible { opacity: 1; pointer-events: auto; }
.request-confirmation__card { width: min(100%, 510px); padding: clamp(25px, 5vw, 42px); border: 1px solid rgba(141,208,182,.45); border-radius: 24px; color: #29473f; background: linear-gradient(145deg, #f4fbf0, #f5eee2); box-shadow: 0 28px 80px rgba(0,0,0,.22); transform: translateY(12px) scale(.98); transition: transform .24s ease; }
.request-confirmation.is-visible .request-confirmation__card { transform: translateY(0) scale(1); }
.request-confirmation__icon { display: grid; width: 46px; height: 46px; margin-bottom: 18px; place-items: center; border-radius: 50%; color: #fff; background: #2b866d; font-size: 1.4rem; font-weight: 800; }
.request-confirmation__card h2 { margin: 10px 0 9px; color: #203b37; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.request-confirmation__card p { color: #5e766c; line-height: 1.55; }
.request-confirmation__vk { margin-top: 14px; padding: 11px 13px; border-radius: 12px; color: #2e6d5c !important; background: #e2f3e8; font-size: .84rem; }
.confirmation-open { overflow: hidden; }

/* Master workspace: distinct surfaces make the queue, active work and archive easy to scan. */
.master-shell { background: radial-gradient(circle at 8% 0%, rgba(176,232,212,.28), transparent 28%), linear-gradient(145deg, #edf3ed, #f7f3e8 68%, #e4eee7); }
.master-heading h1 { color: #203b37; letter-spacing: -.035em; }
.master-heading__stats .pill { border-color: rgba(62,127,104,.2); color: #326657; background: rgba(226,244,232,.78); }
.master-profile { border-color: rgba(62,127,104,.2); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,245,235,.9)); box-shadow: 0 20px 50px rgba(36,79,61,.12); }
.master-profile h2, .master-section__head h2, .master-history h2 { color: #203b37; }
.master-job { border-color: rgba(62,127,104,.18); background: rgba(255,255,255,.9); box-shadow: 0 15px 36px rgba(36,79,61,.09); transition: transform .22s ease, box-shadow .22s ease; }
.master-job:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(36,79,61,.14); }
.master-job--available { background: linear-gradient(135deg, #f9fff9, #eef7ed); }
.master-job__controls { border-color: rgba(62,127,104,.16); background: linear-gradient(160deg, #edf6ed, #f8f4e9); }
.master-vk-status { border-color: rgba(62,127,104,.18); background: rgba(255,255,255,.78); box-shadow: 0 10px 25px rgba(36,79,61,.06); }
.master-history-card { display: block; overflow: hidden; padding: 0; border-color: rgba(62,127,104,.18); background: rgba(255,255,255,.84); box-shadow: 0 10px 25px rgba(36,79,61,.06); }
.master-history-card summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; color: #274b42; cursor: pointer; list-style: none; }
.master-history-card summary::-webkit-details-marker { display: none; }
.master-history-card summary > span:first-child { min-width: 0; flex: 1 1 auto; }
.master-history-card summary .master-history-card__status { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #e4f3e9; }
.master-history-card summary::after { content: "＋"; display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #2d7765; background: #e3f3e8; font-size: 1rem; transition: transform .2s ease; }
.master-history-card[open] summary::after { content: "−"; transform: rotate(180deg); }
.master-history-card__body { display: grid; gap: 8px; padding: 0 18px 17px; border-top: 1px solid rgba(62,127,104,.12); color: #5d736b; font-size: .82rem; line-height: 1.5; }
.master-history-card__body strong { color: #31584d; }
.master-history-card__body p { margin: 9px 0 0; white-space: pre-wrap; }
.master-history-more[hidden] { display: none; }
@media (max-width: 720px) {
  .master-dashboard-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; overflow: visible; }
  .master-dashboard-nav a { display: grid; width: 100%; min-width: 0; place-items: center; white-space: normal; text-align: center; }
  .master-heading { align-items: stretch; }
  .master-heading > div:last-child, .master-heading > div:last-child .btn { width: 100%; }
  .master-job__controls { padding: 13px; }
  .master-history .master-section__head { align-items: start; }
  .master-history .master-section__head > .pill { flex: 0 0 auto; white-space: nowrap; }
  .master-history-card summary { align-items: start; flex-wrap: wrap; }
  .master-history-card summary > span:first-child { flex-basis: calc(100% - 43px); }
  .master-history-card summary .master-history-card__status { order: 2; }
}
.contact-photo { gap: 8px; }
.contact-photo__title { color: #34564d; font-size: .8rem; font-weight: 760; }
.contact-photo__pick { display: flex; min-height: 64px; align-items: center; gap: 11px; padding: 9px 13px 9px 9px; border: 1px dashed #8bbdac; border-radius: 12px; color: #345e51; background: rgba(225,242,231,.8); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.contact-photo__pick:hover { border-color: #398d76; background: #e4f4e9; transform: translateY(-1px); }
.contact-photo__pick input, .contact-photo > input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-photo__icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--teal-strong); font-size: 1.35rem; }
.contact-photo__pick strong, .contact-photo__pick small { display: block; }
.contact-photo__pick strong { font-size: .82rem; }
.contact-photo__pick small { margin-top: 2px; color: #6a8378; font-size: .7rem; }
.contact-photo__preview { display: flex; min-height: 64px; align-items: center; gap: 10px; padding: 7px; border: 1px solid #b6d8c1; border-radius: 12px; background: rgba(255,255,255,.72); }
.contact-photo__preview[hidden] { display: none; }
.contact-photo__preview img { width: 68px; height: 52px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.contact-photo__preview span { min-width: 0; overflow: hidden; color: #45645a; font-size: .75rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.contact-photo__preview button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid #d7aaa0; border-radius: 8px; color: #98584e; background: #fff7f4; font-size: .7rem; font-weight: 700; }

/* About page: legible text and a gallery that belongs to this page. */
.about-section { padding-block: clamp(70px,7vw,100px); }
.about-intro { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.8fr); gap: clamp(35px,6vw,100px); align-items: center; }
.about-intro__copy h2 { max-width: 760px; margin: 19px 0 23px; }
.about-intro__copy .lead { max-width: 650px; color: #4c615b; }
.about-intro__copy .btn { margin-top: 27px; }
.about-focus { position: relative; isolation: isolate; container-type: inline-size; display: grid; grid-template-rows: auto 1fr auto; gap: 26px; min-width: 0; min-height: 390px; overflow: hidden; padding: 37px; border-radius: 30px; color: #f5f7ee; background: radial-gradient(circle at 78% 20%, #627f6b, transparent 33%), linear-gradient(135deg, #314e49, #213b3a); box-shadow: 0 25px 65px rgba(28,60,49,.19); }
.about-focus::before, .about-focus::after { position: absolute; width: 360px; height: 360px; border: 1px solid rgba(176,232,212,.22); border-radius: 50%; content: ''; pointer-events: none; }
.about-focus::before { top: -150px; right: -120px; }
.about-focus::after { right: -55px; bottom: -220px; box-shadow: 0 0 0 45px rgba(176,232,212,.035), 0 0 0 90px rgba(176,232,212,.025); }
.about-focus > * { position: relative; z-index: 1; min-width: 0; }
.about-focus__line { display: block; width: 52px; height: 3px; border-radius: 3px; background: var(--copper); }
.about-focus__body { display: grid; align-content: center; justify-items: start; gap: 18px; }
.about-focus .pill { max-width: 100%; margin: 0; color: #c7f1df; background: rgba(176,232,212,.13); }
.about-focus p { width: 100%; margin: 0; color: #f5f7ee; font-size: clamp(1.2rem,3.1vw,3.1rem); font-size: clamp(1.2rem,10cqi,3.1rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.12; overflow-wrap: anywhere; }
.about-focus p > span { display: block; }
.about-focus__index { position: relative; z-index: 1; color: #b7d6c9; font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
.team-showcase { padding-top: 80px; }
.team-gallery--showcase { margin-top: 0; }
.team-gallery--showcase .team-gallery__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 14px; }
.team-gallery--showcase .team-gallery__grid button { aspect-ratio: auto; min-height: 345px; border: 1px solid rgba(255,255,255,.3); border-radius: 24px; box-shadow: 0 20px 45px rgba(33,62,51,.13); isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.team-gallery--showcase .team-gallery__grid button:first-child { min-height: 410px; }
.team-gallery--showcase .team-gallery__grid button::before { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 65px 25px 23px; color: #fff; background: linear-gradient(transparent, rgba(13,31,28,.84)); content: attr(data-caption); font-size: 1.05rem; font-weight: 760; letter-spacing: -.02em; text-align: left; transition: padding .45s var(--ease), background .45s var(--ease); }
.team-gallery--showcase .team-gallery__grid button::after { z-index: 2; right: 22px; bottom: 22px; transition: transform .35s var(--ease), background .35s var(--ease); }
.team-gallery--showcase .team-gallery__grid button:hover { border-color: rgba(176,232,212,.82); box-shadow: 0 28px 58px rgba(33,62,51,.23); transform: translateY(-7px); }
.team-gallery--showcase .team-gallery__grid button:hover::before { padding-bottom: 29px; background: linear-gradient(transparent, rgba(13,31,28,.94)); }
.team-gallery--showcase .team-gallery__grid button:hover::after { background: rgba(176,232,212,.22); transform: scale(1.08); }
.team-gallery--showcase .team-gallery__grid img { transition: transform .7s var(--ease), filter .7s var(--ease); }
.team-gallery--showcase .team-gallery__grid button:hover img { filter: saturate(1.08); transform: scale(1.055); }
.team-showcase { overflow: hidden; }
main > .section.team-showcase { background: radial-gradient(circle at 12% 78%, rgba(176,232,212,.22), transparent 29%), linear-gradient(140deg, #e7f0e8, #f3f4ea 62%, #e6ece4); }
.team-showcase::before { position: absolute; top: 110px; right: -120px; width: 360px; height: 360px; border: 1px solid rgba(53,102,87,.12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(53,102,87,.035), 0 0 0 68px rgba(53,102,87,.02); content: ''; pointer-events: none; }
.team-showcase .section__head, .team-showcase .team-gallery { position: relative; z-index: 1; }
.team-showcase h2 { color: #213a37; }
.team-showcase .lead { color: #536b65; }
.team-gallery__empty { grid-column: 1 / -1; padding: 45px; border: 1px dashed #aecaba; border-radius: 22px; color: var(--muted); background: #f8faf3; }
.about-values .content-card { min-height: 200px; padding: 28px; }
.about-values .content-card h3 { margin-top: 22px; }

/* Media controls distinguish showing a photo from deleting its file. */
.media-library { display: grid; gap: 32px; }
.media-upload { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.media-upload__pick { display: flex; min-height: 47px; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border: 1px dashed #9dc6b2; border-radius: 11px; color: #365c51; background: #eef7ef; cursor: pointer; }
.media-upload__pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.media-upload__pick strong, .media-upload__pick small { display: block; }
.media-upload__pick strong { font-size: .78rem; }
.media-upload__pick small { margin-top: 2px; color: #6a8178; font-size: .67rem; }
.media-upload__icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #fff; background: var(--teal-strong); font-size: 1.2rem; }
.media-upload__preview { display: flex; min-height: 47px; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid #afd4be; border-radius: 11px; color: #365c51; background: #e7f4e9; }
.media-upload__preview[hidden] { display: none; }
.media-upload__preview img { width: 46px; height: 34px; border-radius: 7px; object-fit: cover; }
.media-upload__preview span { min-width: 105px; }
.media-upload__preview strong, .media-upload__preview small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-upload__preview strong { font-size: .72rem; }
.media-upload__preview small { margin-top: 2px; color: #6a8178; font-size: .62rem; }
.media-upload__preview button { min-height: 30px; padding: 0 9px; border: 1px solid #d7aaa0; border-radius: 7px; color: #98584e; background: #fff7f4; font-size: .68rem; font-weight: 700; cursor: pointer; }
.media-upload__check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.media-upload__check input { accent-color: var(--teal-strong); }
.media-library__section { display: grid; gap: 14px; }
.media-library__heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.media-library__heading h3 { font-size: 1.35rem; }
.media-library__heading h3 small { display: inline-grid; min-width: 25px; height: 25px; margin-left: 5px; place-items: center; border-radius: 50%; color: #276457; background: #dcefe4; font-size: .72rem; vertical-align: middle; }
.media-grid { gap: 15px; }
.media-library__section:first-child .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card { overflow: hidden; border-radius: 17px; background: #fcfbf7; }
.media-card.is-new { outline: 3px solid #55b89e; outline-offset: 3px; box-shadow: 0 18px 45px rgba(38,124,91,.25); }
.media-card img { aspect-ratio: 1.25; object-fit: cover; }
.media-card__footer { padding: 13px; }
.media-card__actions { justify-content: space-between; }
.media-team-control { display: grid; gap: 8px; padding: 11px; border: 1px solid #d7e3d8; border-radius: 11px; background: #edf2e9; }
.media-team-control.is-active { border-color: #9bc9b2; background: #e0efe4; }
.media-team-control strong { color: #3a5e53; font-size: .74rem; }
.media-team-control input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #b7d1c0; border-radius: 8px; background: #fff; font-size: .76rem; }
.media-team-control label { display: grid; gap: 5px; color: #48645a; font-size: .72rem; font-weight: 700; }
.media-team-control .btn { width: 100%; min-height: 38px; }

@media (max-width: 1050px) {
  .nav__links { position: absolute; top: 54px; right: 17px; left: 17px; display: grid; gap: 0; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(27,43,42,.98); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav__links a { padding: 13px; }
  .nav__links a::after { display: none; }
  .nav__mobile-cta { display: flex; align-items: center; justify-content: space-between; margin: 5px 6px 2px; padding: 12px 13px !important; border: 1px solid rgba(176,232,212,.32); border-radius: 10px; color: #dff8ef !important; background: rgba(176,232,212,.1); font-weight: 760; }
  .nav__toggle { display: block; }
  .nav__cta { display: inline-flex; margin-left: auto; }
  .team-gallery--showcase .team-gallery__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-gallery--showcase .team-gallery__grid button:first-child { grid-column: 1 / -1; min-height: 360px; }
}
@media (max-width: 820px) {
  .nav__links { top: 54px; }
  .nav__mobile-cta { display: flex; align-items: center; justify-content: space-between; margin: 5px 6px 2px; padding: 12px 13px !important; border: 1px solid rgba(176,232,212,.32); border-radius: 10px; color: #dff8ef !important; background: rgba(176,232,212,.1); font-weight: 760; }
  .about-intro { grid-template-columns: 1fr; }
  .about-focus { min-height: 300px; }
  .admin-dashboard-nav, .master-dashboard-nav { top: 66px; }
  .media-library__section:first-child .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav { min-height: 52px; }
  .nav { gap: 7px; }
  .brand { max-width: 145px; gap: 7px; font-size: .61rem; }
  .brand__mark { width: 29px; height: 29px; flex-basis: 29px; }
  .nav__cta { min-height: 32px; padding: 0 9px; font-size: .67rem; }
  .nav__toggle { width: 36px; height: 36px; }
  .nav__links { top: 52px; }
  .team-gallery--showcase .team-gallery__grid { grid-template-columns: 1fr; }
  .team-gallery--showcase .team-gallery__grid button, .team-gallery--showcase .team-gallery__grid button:first-child { grid-column: auto; min-height: 270px; }
  .about-focus { min-height: 275px; padding: 27px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 14px; padding: 23px 0 16px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { padding: 8px 0; }
  .media-library__section:first-child .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-photo__preview { align-items: flex-start; flex-wrap: wrap; }
  .contact-photo__preview span { flex: 1 1 calc(100% - 80px); }
  .contact-photo__preview button { margin-left: 78px; }
}
@media (max-width: 380px) {
  .brand { max-width: none; }
  .brand > span:last-child { display: none; }
  .nav__cta { white-space: nowrap; }
}

/* Business details and small-screen reliability. */
[hidden] { display: none !important; }
.brand { min-width: 0; }
.brand > span:last-child { font-size: clamp(.69rem, 1.1vw, .9rem); letter-spacing: .035em; }
.page-hero h1 { overflow-wrap: anywhere; }
.hero > .container > div > .eyebrow { color: #b7eedb; }
@media (max-width: 820px) { .nav__contact:has([data-master-logout]) { display: flex; } }
@media (max-width: 380px) {
  .site-header .brand > span:last-child { display: inline; font-size: .6rem; }
  .site-header .brand { gap: 6px; }
  .site-header .nav__cta { display: none; }
  .nav__contact [data-master-identity] { display: none; }
}
.contact-phone { display: block; font-size: clamp(1.2rem, 4vw, 1.75rem); font-weight: 750; color: var(--ink, #163b35); overflow-wrap: anywhere; }
.contact-messengers { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.footer__links > span { font-size: .78rem; line-height: 1.5; color: #b9c6c3; }
.legal-content p { margin: 16px 0; overflow-wrap: anywhere; }
.legal-content h2 { font-size: 1.4rem; margin-top: 24px; }
.legal-content .content-card + .content-card { margin-top: 24px; }
.order-card, .admin-dashboard, .master-job, .contact-panel { min-width: 0; }
.admin-notice { min-width: 0; overflow-wrap: anywhere; }
.admin-notice .btn { max-width: 100%; white-space: normal; }
.modal--consultation .modal__service { color: #214d43; background: #dff3ea; }
.consultation-options { margin: 0 0 16px; padding: 14px; border: 1px solid #cce5da; border-radius: 14px; background: #f3fbf7; }
.consultation-options__title { display: block; margin-bottom: 10px; color: #42675d; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.consultation-options__list { display: flex; flex-wrap: wrap; gap: 8px; }
.consultation-options__list button { min-height: 35px; padding: 7px 11px; border: 1px solid #c3ded2; border-radius: 999px; color: #2c5b50; background: #fff; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.consultation-options__list button:hover { transform: translateY(-1px); border-color: #65b39b; }
.consultation-options__list button.is-selected { border-color: #214d43; color: #fff; background: #214d43; }
.empty-showcase { min-height: 250px; display: grid; align-content: center; gap: 10px; }
.empty-showcase h3 { max-width: 620px; }
.empty-showcase p { max-width: 620px; }
.admin-media .media-upload__pick input[type=file] { width: 1px; height: 1px; padding: 0; border: 0; max-width: 1px; }
@media (max-width: 600px) {
  .media-grid, .media-library__section:first-child .media-grid { grid-template-columns: 1fr; }
  .media-card__footer, .media-card__info, .media-card__actions { min-width: 0; }
  .media-card__actions { flex-wrap: wrap; }
  .media-card__delete, .media-card__replace { max-width: 100%; }
}
@media (max-width: 600px) { .contact-messengers .btn { flex: 1; } .contact-item > div { min-width: 0; } }
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  .service-card__bottom > .price { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.vk-panel { width: 100%; min-width: 0; }
.vk-panel p { margin: 8px 0; line-height: 1.55; }
.vk-panel__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.vk-panel__actions select { flex: 1 1 220px; min-width: 0; max-width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.vk-panel__help { margin-top: 14px; }
.vk-panel__help summary { cursor: pointer; font-weight: 650; }
.vk-panel__help li { margin: 8px 0; line-height: 1.6; }
.vk-panel__error { color: #934c44; }
.vk-panel__help code { overflow-wrap: anywhere; }
.vk-field-help { display: block; margin-top: 7px; font-size: .8rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
.vk-field-help a { color: #286c59; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .vk-panel__actions > .btn, .vk-panel__actions select { width: 100%; flex-basis: 100%; text-align: center; } }
