/* AR.ME v1.2 — расширенный каталог с реальными фото, в визуальной системе v1.1 */
.service-card[hidden],.project-card[hidden],.project-gallery[hidden]{display:none!important}
.services{background:#f3f2ec}
.services .section-head{margin-bottom:37px}
.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce2d8;border:1px solid #dce2d8}
.service-card{background:#fffefa;padding:30px 29px 26px;min-height:285px;display:flex;flex-direction:column;transition:background .25s,box-shadow .25s;position:relative}
.service-card:hover{background:#f8fbf4;z-index:1;box-shadow:0 14px 35px #12271a15}
.service-card__meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:30px;color:#89958a;font-size:9px;font-weight:650;letter-spacing:.1em;text-transform:uppercase}
.service-card__meta span:last-child{text-align:right;color:#67846d}
.service-card h3{font:normal clamp(24px,2vw,30px)/1.23 var(--serif);letter-spacing:-.055em;margin:0 0 16px;color:#273c2f}
.service-card>p{font-size:12px;line-height:1.75;color:#657266;margin:0 0 26px;max-width:460px}
.service-card__foot{margin-top:auto;padding-top:20px;border-top:1px solid #e3e8df;display:flex;justify-content:space-between;align-items:center;gap:14px}
.service-card__price{font-size:12px;font-weight:650;color:#415b45}
.service-card__price--verify{text-decoration:underline dotted;text-underline-offset:3px}
.service-card__action{padding:9px 0 9px 12px;background:transparent;border:0;color:#536955;font-size:11px;font-weight:650;white-space:nowrap}
.service-card__action:hover{color:#b18b66}
.catalog-note{margin-top:25px;display:grid;grid-template-columns:42px 1fr auto;gap:25px;align-items:center;padding:24px 32px;background:#dfe7db}
.catalog-note>span{font-size:34px;color:#617763}
.catalog-note p{margin:0;color:#566c59;font-size:12px;line-height:1.65;max-width:790px}
.catalog-note .text-link{white-space:nowrap}
.portfolio{background:#21362c;color:#f2f1e9}
.portfolio .section-head h2,.portfolio .section-label{color:#f2f1e9}
.portfolio .section-head h2 em{color:#c1d0b7}
.portfolio .section-head>p{color:#b4c1b5}
.portfolio .section-label>span{color:#8ea994}
.portfolio .filter-pill{border-color:#68806e;color:#c6d3c7}
.portfolio .filter-pill span{color:#96ac9a}
.portfolio .filter-pill.is-active,.portfolio .filter-pill:hover{color:#263e30;background:#e6eadf;border-color:#e6eadf}
.project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.project-card{position:relative;overflow:hidden;display:block;width:100%;height:360px;text-align:left;padding:0;border:0;background:#445649;color:#fff;isolation:isolate}
.project-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease);z-index:0}
.project-card:hover>img,.project-card:focus-visible>img{transform:scale(1.065)}
.project-card__shade{position:absolute;inset:0;background:linear-gradient(180deg,#11271b24 5%,transparent 30%,#12251bbb 100%);z-index:1}
.project-card__top{position:absolute;left:19px;top:22px;z-index:2;color:#f6f6ed;font-size:9px;font-weight:650;letter-spacing:.13em;text-shadow:0 1px 4px #0008}
.project-card__bottom{position:absolute;left:20px;right:20px;bottom:23px;z-index:2;display:flex;align-items:end;justify-content:space-between;gap:10px}
.project-card__bottom small{display:block;letter-spacing:.15em;font-size:9px;margin-bottom:8px;color:#cfdfd0}
.project-card__bottom strong{font:normal clamp(23px,2.15vw,31px)/1.13 var(--serif);letter-spacing:-.04em;display:block}
.project-card__arrow{display:grid;place-items:center;width:36px;height:36px;background:#e6eae1;color:#273c30;border-radius:50%;flex:none;font-size:18px;transition:transform .3s}
.project-card:hover .project-card__arrow{transform:rotate(45deg)}
.project-card__count{position:absolute;z-index:2;top:48px;right:17px;padding:9px 12px;background:#eaece8ee;color:#27402d;font-size:10px;font-weight:650}
.portfolio__caption{text-align:right;margin:19px 0 0;color:#9bad9f;font-size:11px;line-height:1.6}
.brand-story{background:#edece4}
.brand-story__grid{display:grid;grid-template-columns:1.05fr 1fr;gap:9%;align-items:center}
.brand-story__copy .section-label{justify-content:start;margin-bottom:31px}
.brand-story h2{font-size:clamp(43px,4.6vw,74px);line-height:1.11;margin:0 0 32px}
.brand-story h2 em{color:#738975}
.brand-story__copy>p{font-size:14px;line-height:1.9;color:#657066;max-width:650px;margin-bottom:20px}
.brand-story__copy>.brand-story__fine{font-size:11px;border-left:2px solid #a9b7a8;padding:3px 0 3px 17px;color:#8c958e;margin-top:29px}
.brand-story__visual{position:relative;min-height:570px;overflow:hidden;background:#d5dbd0}
.brand-story__visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.brand-story__visual>span{position:absolute;bottom:25px;left:25px;background:#f5f4ecd9;padding:13px 15px;color:#405547;font-size:9px;font-weight:700;letter-spacing:.12em}
.review-text{font-size:14px!important;line-height:1.9!important;color:#566f5a!important;max-width:850px!important}
.review-author{font-weight:700;color:#374e3d!important}
.contact__email{gap:9px}
.contact__email a{margin-bottom:21px}
.contact__email small:last-child{font-size:10px;letter-spacing:.04em;line-height:1.6}
.project-gallery{position:fixed;inset:0;z-index:115;display:grid;place-items:center;padding:28px}
.project-gallery__backdrop{position:absolute;inset:0;background:#0c1710e8;backdrop-filter:blur(11px)}
.project-gallery__panel{position:relative;background:#e6e7dd;width:min(100%,1200px);max-height:calc(100vh - 50px);display:flex;flex-direction:column;box-shadow:0 40px 90px #0007}
.project-gallery__close{position:absolute;right:15px;top:15px;width:44px;height:44px;border-radius:50%;border:1px solid #fff8;background:#172d20db;color:#fff;z-index:3;font-size:30px;line-height:1}
.project-gallery__image{position:relative;background:#15271c;height:min(68vh,710px);display:flex;align-items:center;justify-content:center}
.project-gallery__image>img{width:100%;height:100%;object-fit:contain}
.project-gallery__image>button{position:absolute;z-index:2;top:50%;transform:translateY(-50%);height:52px;width:52px;background:#eff1e9ec;border:0;border-radius:50%;font-size:24px;color:#24402b}
.project-gallery__image>[data-gallery-prev]{left:20px}
.project-gallery__image>[data-gallery-next]{right:20px}
.project-gallery__info{padding:25px 32px;display:flex;justify-content:space-between;align-items:end;gap:20px;overflow:auto;min-height:105px}
.project-gallery__info>div>span{color:#7c957f;font-size:9px;font-weight:750;letter-spacing:.15em}
.project-gallery__info h2{font:normal 30px/1.2 var(--serif);letter-spacing:-.04em;margin:7px 0 0}
.project-gallery__info p{font-size:12px;line-height:1.5;color:#667866;margin:10px 0 0}
.project-gallery__info strong{font-size:13px;white-space:nowrap;color:#66816a}
@media(max-width:1100px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{height:325px}.brand-story__grid{gap:5%}.brand-story__visual{min-height:500px}}
@media(max-width:760px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-card{min-height:280px;padding:24px 20px}.service-card__meta{margin-bottom:24px}.service-card h3{font-size:25px}.catalog-note{grid-template-columns:30px 1fr}.catalog-note .text-link{grid-column:2;justify-self:start}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card{height:300px}.brand-story__grid{grid-template-columns:1fr;gap:34px}.brand-story__visual{min-height:430px}.project-gallery{padding:10px}.project-gallery__panel{max-height:calc(100vh - 20px)}.project-gallery__image{height:min(67vh,610px)}}
@media(max-width:520px){.service-grid{grid-template-columns:1fr}.service-card{min-height:228px}.service-card__meta{margin-bottom:22px}.service-card h3{font-size:28px}.catalog-note{padding:22px 18px;gap:15px}.project-grid{grid-template-columns:1fr}.project-card{height:330px}.project-card__bottom strong{font-size:31px}.brand-story__visual{min-height:310px}.brand-story h2{font-size:46px}.contact__email a{font-size:clamp(23px,6.8vw,34px)}.project-gallery{padding:0}.project-gallery__panel{max-height:100dvh;height:100dvh}.project-gallery__image{height:auto;min-height:0;flex:1}.project-gallery__image>button{width:42px;height:42px;font-size:21px}.project-gallery__image>[data-gallery-prev]{left:8px}.project-gallery__image>[data-gallery-next]{right:8px}.project-gallery__info{padding:18px 18px 32px;min-height:105px}.project-gallery__info h2{font-size:26px}.project-gallery__close{right:10px;top:10px}}
@media(prefers-reduced-motion:reduce){.project-card>img,.service-card{transition:none}}

/* v1.3 — сквозная галерея: управление мышью/клавиатурой и пальцем */
.project-gallery__tools{position:absolute;top:16px;right:16px;z-index:7;display:flex;gap:9px}
.project-gallery__close,.project-gallery__fullscreen{position:static;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff60;background:#192a21e0;color:#fff;line-height:1;box-shadow:0 5px 22px #0004}
.project-gallery__close{font-size:27px}
.project-gallery__fullscreen{font-size:24px}
.project-gallery__fullscreen:hover,.project-gallery__close:hover{background:#e8ece3;color:#1d3727}
.project-gallery__image{touch-action:pan-y pinch-zoom;overflow:hidden;min-height:0}
.project-gallery__image img{user-select:none;-webkit-user-drag:none;overscroll-behavior:contain}
.project-gallery__image>.project-gallery__nav{opacity:0;pointer-events:none;transition:opacity .2s ease,background .2s ease}
.project-gallery__image>.project-gallery__nav:focus-visible{opacity:1;pointer-events:auto}
.project-gallery__image>.project-gallery__nav:hover{background:#fff}
.project-gallery__info small{display:block;color:#849586;font-size:10px;margin-top:11px;line-height:1.5}
.project-gallery__status{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.project-gallery__swipe-hint{font-size:10px;color:#889c8c;display:none}
@media(hover:hover) and (pointer:fine){.project-gallery__image:hover>.project-gallery__nav{opacity:1;pointer-events:auto}}
@media(hover:none),(pointer:coarse){.project-gallery__image>.project-gallery__nav{display:none!important}.project-gallery__swipe-hint{display:inline}}
.project-gallery.is-immersive{padding:0;background:#101b14}
.project-gallery.is-immersive .project-gallery__panel,.project-gallery__panel:fullscreen{width:100vw;max-width:none;height:100dvh;max-height:none;background:#101b14}
.project-gallery.is-immersive .project-gallery__image,.project-gallery__panel:fullscreen .project-gallery__image{height:auto;flex:1;min-height:0;background:#101b14}
.project-gallery.is-immersive .project-gallery__info,.project-gallery__panel:fullscreen .project-gallery__info{display:none}
.project-gallery.is-immersive .project-gallery__image>img,.project-gallery__panel:fullscreen .project-gallery__image>img{object-fit:contain}
@media(max-width:520px){.project-gallery__tools{top:calc(12px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right))}.project-gallery__close,.project-gallery__fullscreen{width:43px;height:43px}.project-gallery__info{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.project-gallery__info strong{font-size:13px}}

/* v1.3 — бриф не открывает клавиатуру сам; при её появлении форма видна */
.modal{top:var(--brief-viewport-top,0px);bottom:auto;height:var(--brief-viewport-height,100dvh)}
.modal__panel{max-height:min(88dvh,calc(var(--brief-viewport-height,100dvh) - 28px));overscroll-behavior:contain;scroll-padding:26px;-webkit-overflow-scrolling:touch}
.modal form input,.modal form select,.modal form textarea{scroll-margin-block:70px}
@media(max-width:760px){.modal{padding:max(8px,env(safe-area-inset-top)) 10px max(8px,env(safe-area-inset-bottom))}.modal__panel{max-height:calc(var(--brief-viewport-height,100dvh) - 20px);padding-bottom:max(28px,env(safe-area-inset-bottom))}.modal form input,.modal form select,.modal form textarea{font-size:16px;line-height:1.4}.modal textarea{min-height:112px}.modal__close{z-index:2}}

/* v1.4 — нижняя панель быстрого действия, не закрывающая контент */
.mobile-actions{display:none}
.back-to-top{position:fixed;z-index:39;right:24px;bottom:24px;width:46px;height:46px;display:grid;place-items:center;border:1px solid #b5c5b8;border-radius:50%;background:#f8faf4f2;color:#263d2c;box-shadow:0 8px 28px #15332223;backdrop-filter:blur(12px);transition:transform .2s ease,background .2s ease}
.back-to-top[hidden]{display:none!important}
.back-to-top svg{width:22px;height:22px}
.back-to-top:hover{transform:translateY(-3px);background:#dce8d8}
@media(max-width:1100px){
  .mobile-actions{position:fixed;z-index:45;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:center;gap:4px;min-height:80px;padding:7px max(13px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-left));border-top:1px solid #d7dfd3;background:#f9f9f4f5;box-shadow:0 -9px 30px #1b312114;backdrop-filter:blur(20px)}
  .mobile-actions__item,.mobile-actions__call{min-width:0;min-height:59px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;color:#526755;font-size:11px;font-weight:650;line-height:1.2;letter-spacing:.02em;text-align:center;text-decoration:none;-webkit-tap-highlight-color:transparent}
  .mobile-actions__item svg{width:22px;height:22px;flex:none}
  .mobile-actions__item:active{color:#1f3d2b}
  .mobile-actions__call{gap:5px;color:#253c2c;align-self:start;transform:translateY(-17px);min-height:76px;font-size:11px}
  .mobile-actions__call-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;background:#3b6446;color:#fff;border:4px solid #f9f9f4;box-shadow:0 5px 18px #21472a48;transition:background .2s,transform .2s}
  .mobile-actions__call-icon svg{width:26px;height:26px}
  .mobile-actions__call:active .mobile-actions__call-icon{background:#244c32;transform:scale(.95)}
  .back-to-top{right:calc(15px + env(safe-area-inset-right));bottom:calc(101px + env(safe-area-inset-bottom));width:43px;height:43px;z-index:43}
  .footer{padding-bottom:calc(77px + env(safe-area-inset-bottom))}
  html{scroll-padding-bottom:calc(105px + env(safe-area-inset-bottom))}
  body.modal-open .mobile-actions,body.modal-open .back-to-top{display:none!important}
}
@media(max-width:360px){.mobile-actions{grid-template-columns:1fr 1.06fr 1fr;padding-inline:9px}.mobile-actions__item,.mobile-actions__call{font-size:10px}.mobile-actions__call-icon{width:56px;height:56px}}
@media(prefers-reduced-motion:reduce){.back-to-top,.mobile-actions__call-icon{transition:none}}

/* v3.0.1 — кнопка меню находится в нижней панели вместо дубля «Услуги». */
@media(max-width:1100px){
  .mobile-actions__menu{gap:6px;align-self:center}
  .mobile-actions__menu small{display:block;color:inherit;font:inherit;font-size:11px;line-height:1.2;font-weight:650}
}
