/*
Theme Name: Аренда / Прокат
Description: Адаптивная тема каталога проката по предоставленному макету.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: arenda-prokat
*/

:root {
  --blue:#0d4d8b;
  --blue-2:#123a63;
  --orange:#f28b1d;
  --ink:#16202a;
  --muted:#6b7280;
  --bg:#f6f8fb;
  --card:#ffffff;
  --line:#e6eaf0;
  --shadow:0 16px 40px rgba(22,32,42,.09);
  --r:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.topbar{background:var(--blue-2);color:#fff;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;min-height:38px;gap:16px}
.topbar a{opacity:.95}
header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(230,234,240,.9)}
.nav{height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800}
.brand img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.brand-title{line-height:1.05}
.brand-title b{display:block;font-size:17px}
.brand-title span{font-size:12px;color:var(--muted);font-weight:600}
.menu{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:700}
.btn{border:0;border-radius:12px;padding:13px 18px;font-weight:800;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--orange);color:#fff;box-shadow:0 8px 20px rgba(242,139,29,.25)}
.btn-secondary{background:#eef4fa;color:var(--blue)}
.btn-outline{background:#fff;border:1px solid #ccd9e7;color:var(--blue)}
.hero{padding:64px 0 42px}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:42px;align-items:center}
.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:7px 10px;border-radius:999px;background:#eaf2fb;color:var(--blue);font-size:13px;font-weight:800}
h1{font-size:56px;line-height:.98;letter-spacing:-2.4px;margin:18px 0 18px}
.hero p{font-size:18px;line-height:1.55;color:#55616f;max-width:660px}
.hero-actions{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}
.trust{display:flex;gap:20px;margin-top:28px;flex-wrap:wrap;color:#4b5563;font-size:14px;font-weight:700}
.trust span::before{content:"✓";color:var(--orange);margin-right:6px}
.hero-card{background:linear-gradient(145deg,#0f4f8c,#173d62);border-radius:30px;color:white;padding:28px;min-height:380px;position:relative;overflow:hidden;box-shadow:var(--shadow)}
.hero-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-70px;top:-80px;background:rgba(255,255,255,.08)}
.hero-card img{width:150px;height:150px;border-radius:50%;background:#fff;border:6px solid rgba(255,255,255,.14)}
.hero-card h3{font-size:28px;margin:18px 0 8px}
.hero-card p{color:#dbe9f8;font-size:15px;margin:0;max-width:430px}
.hero-price{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}
.hero-price div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.13);padding:12px;border-radius:14px}
.hero-price b{display:block;font-size:18px}
.hero-price span{font-size:12px;color:#dbe9f8}
.section{padding:50px 0}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}
.section h2{font-size:34px;letter-spacing:-1px;margin:0}
.section-sub{color:var(--muted);margin-top:6px}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-weight:700;font-size:13px;cursor:pointer}
.chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:0 6px 20px rgba(22,32,42,.04);display:flex;flex-direction:column}
.card-media{height:210px;background:linear-gradient(135deg,#eef3f8,#dde7f1);display:flex;align-items:center;justify-content:center;position:relative}
.card-media .emoji{font-size:80px;filter:drop-shadow(0 10px 20px rgba(0,0,0,.12))}
.badge{position:absolute;left:14px;top:14px;background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;color:var(--blue);box-shadow:0 3px 10px rgba(0,0,0,.08)}
.card-body{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}
.card h3{font-size:20px;margin:0}
.desc{color:var(--muted);font-size:14px;line-height:1.45;min-height:40px}
.prices{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.price{background:#f7f9fc;border:1px solid #edf0f4;border-radius:12px;padding:10px}
.price span{display:block;font-size:11px;color:var(--muted)}
.price b{font-size:15px}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.info-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.info{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}
.info b{display:block;margin:8px 0 5px}
.info p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.location{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px}
.map{min-height:320px;border-radius:22px;background:linear-gradient(135deg,#dce9f5,#eef4f9);border:1px solid var(--line);position:relative;overflow:hidden}
.map:before,.map:after{content:"";position:absolute;inset:0;background-image:linear-gradient(30deg,rgba(13,77,139,.08) 12%,transparent 12.5%,transparent 87%,rgba(13,77,139,.08) 87.5%,rgba(13,77,139,.08)),linear-gradient(150deg,rgba(13,77,139,.08) 12%,transparent 12.5%,transparent 87%,rgba(13,77,139,.08) 87.5%,rgba(13,77,139,.08));background-size:80px 140px}
.pin{position:absolute;left:54%;top:48%;transform:translate(-50%,-50%);z-index:2;background:var(--orange);color:#fff;width:54px;height:54px;border-radius:50% 50% 50% 0;rotate:-45deg;box-shadow:0 12px 24px rgba(242,139,29,.35)}
.pin:after{content:"";position:absolute;width:18px;height:18px;background:white;border-radius:50%;left:18px;top:18px}
.loc-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px}
.loc-card h3{font-size:25px;margin:0 0 10px}
.loc-card p{color:var(--muted);line-height:1.55}
.review{background:linear-gradient(145deg,#fff,#f4f7fb);border:1px solid var(--line);border-radius:22px;padding:28px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.review h3{margin:0 0 8px;font-size:25px}
.review p{margin:0;color:var(--muted);max-width:680px}
footer{background:#142235;color:#d7e0eb;margin-top:55px;padding:34px 0}
footer .wrap{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}
.modal-backdrop{position:fixed;inset:0;background:rgba(10,18,28,.54);display:none;align-items:center;justify-content:center;z-index:60;padding:18px}
.modal-backdrop.open{display:flex}
.modal{width:min(560px,100%);background:#fff;border-radius:22px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.modal h3{margin:0 0 6px;font-size:26px}
.modal p{margin:0 0 18px;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}
.field label{font-size:13px;font-weight:800}
.field input,.field select{height:46px;border:1px solid #dbe1e8;border-radius:11px;padding:0 12px;outline:none}
.field input:focus,.field select:focus{border-color:#8ab2d8;box-shadow:0 0 0 3px rgba(13,77,139,.08)}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.detail-list div{background:#f7f9fc;border-radius:12px;padding:12px}
.detail-list span{display:block;color:var(--muted);font-size:12px}
.detail-list b{font-size:15px}
@media (max-width:900px){
  .menu{display:none}
  .hero-grid,.location{grid-template-columns:1fr}
  h1{font-size:44px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .info-strip{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .topbar .wrap{font-size:12px}
  .nav{height:72px}
  .brand img{width:52px;height:52px}
  h1{font-size:38px}
  .hero{padding-top:38px}
  .grid{grid-template-columns:1fr}
  .info-strip{grid-template-columns:1fr}
  .section-head{align-items:start;flex-direction:column}
  .hero-card{min-height:auto}
  .review{align-items:flex-start;flex-direction:column}
}

/* WordPress integration, accessibility, and compact screens. */
[hidden],.card[hidden]{display:none!important}
section[id],main[id]{scroll-margin-top:110px}
.site-header{top:0}
.admin-bar .site-header{top:32px}
.modal-open{overflow:hidden}
.modal{max-height:calc(100dvh - 36px);overflow-y:auto}
.modal-backdrop{overscroll-behavior:contain}
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.25}
.btn:disabled{opacity:.65;cursor:wait;transform:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.product-photo{width:100%;height:100%;object-fit:contain;padding:16px}
.card h3 a:hover,.contact-link:hover{color:var(--blue)}
.promo-caption{display:block;margin-top:12px;color:#dbe9f8}
.map-link{position:absolute;bottom:20px;left:20px;right:20px;z-index:3;text-align:center}
.map-caption{font-size:13px;color:var(--blue);background:#ffffffd9;padding:12px;border-radius:12px}
.detail-category{font-size:13px;color:var(--blue);font-weight:900;text-transform:uppercase;margin-bottom:6px}
#detailText{white-space:pre-line}
.consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px}
.consent input{margin-top:3px;flex-shrink:0;width:16px;height:16px;accent-color:var(--blue)}
.consent a{text-decoration:underline;color:var(--blue)}
.modal .form-message{font-size:14px;line-height:1.5;margin:14px 0 0;color:var(--blue)}
.form-message:empty{display:none}
.honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip-link,.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{width:auto;height:auto;clip-path:none;left:12px;top:12px;padding:12px;background:#fff;color:var(--blue);z-index:100}
.empty-state{background:#fff;padding:28px;border:1px solid var(--line);border-radius:20px;color:var(--muted)}
.document-content{line-height:1.65;overflow-wrap:anywhere}
.document-content h1{font-size:38px;line-height:1.15;letter-spacing:-1px}
.document-content img{max-width:100%;height:auto}
.back-link{display:inline-block;color:var(--blue);margin-bottom:22px;font-weight:700}
.single-product{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.product-visual{height:420px;border-radius:22px;overflow:hidden}
.single-product h1{font-size:38px;line-height:1.15;letter-spacing:-1px;margin:0 0 20px}
.single-product .product-rates-title{font-size:22px;letter-spacing:0;margin:24px 0 14px}
.product-description p:first-child{margin-top:0}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:620px){
 .topbar .wrap{align-items:flex-start;padding-top:8px;padding-bottom:8px;gap:8px}
 .topbar .wrap span:first-child{max-width:58%}
 .topbar .wrap span:last-child{text-align:right}
 .nav{gap:10px}.brand{gap:8px}.brand-title b{font-size:13px}.brand-title span{font-size:10px}
 .nav-booking{padding:11px 10px;font-size:12px}.brand img{width:44px;height:44px}
 .hero-grid{gap:24px}.section{padding:32px 0}.section h2{font-size:30px}
 .single-product{grid-template-columns:1fr}.review .btn{width:100%}
 .product-visual{height:280px}.single-product h1{font-size:30px}
 .modal{padding:20px}.modal h3{font-size:23px}
 .field input,.field select{width:100%;min-width:0}.modal-actions .btn{padding:12px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}.btn:hover{transform:none}}
@media(max-width:380px){.brand-title span{display:none}}

/* Shared photo slider for the catalogue and product page. */
.product-slider{isolation:isolate;overflow:hidden;min-width:0}
.product-slider .badge{z-index:3;max-width:calc(100% - 100px)}
.gallery-slides,.gallery-slide{width:100%;height:100%}
.gallery-slide{display:flex;align-items:center;justify-content:center}
.gallery-slide img{display:block;user-select:none}
.product-slider[data-gallery]{touch-action:pan-y pinch-zoom}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:36px;height:36px;padding:0;border:1px solid #ffffffc9;border-radius:50%;background:#fffffff0;color:var(--blue);font-size:30px;line-height:1;cursor:pointer;box-shadow:0 4px 14px #16202a14;display:flex;align-items:center;justify-content:center}
.gallery-prev{left:10px}.gallery-next{right:10px}
.gallery-arrow:hover{background:#fff}
.gallery-count{position:absolute;right:14px;top:14px;z-index:3;padding:5px 9px;border-radius:999px;background:#ffffffed;font-size:12px;color:var(--blue);font-weight:800}
.gallery-pagination{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:3;display:flex;padding:2px 6px;background:#ffffffe8;border-radius:999px;max-width:calc(100% - 20px)}
.gallery-dot{width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%}
.gallery-dot span{width:7px;height:7px;border-radius:50%;background:#b4c5d6}
.gallery-dot[aria-pressed=true] span{background:var(--blue)}

.map-embedded{min-height:400px;background:#fff}
.map-embedded:before,.map-embedded:after{display:none}
.map-embedded iframe{display:block;width:100%;height:400px;border:0}
