:root{font-family:Inter,Arial,sans-serif;color:#17202a;background:#f7f8f7}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}.wrap{max-width:1220px;margin:auto;padding:0 24px}header{background:white;border-bottom:1px solid #e5e8e5}.nav{height:76px;display:flex;align-items:center;justify-content:space-between}.logo{font-size:23px;font-weight:900;letter-spacing:-1px}.logo span{font-size:12px;letter-spacing:1.4px;color:#6a7771}.nav nav{display:flex;gap:24px;font-size:14px}h1{font-size:clamp(30px,4vw,58px);letter-spacing:-2px;line-height:1.12;margin:16px 0}h2{font-size:25px;letter-spacing:-.7px}.hero{padding:75px 0 56px}.hero p{font-size:17px;color:#64716b}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#35806a}.filters{background:#fff;padding:20px;border:1px solid #e5e8e5;border-radius:14px;display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px}.filters .check{grid-column:span 2}input,select,textarea{width:100%;padding:13px;border:1px solid #d8dfda;border-radius:8px;background:white;color:#202922;font:inherit;min-width:0}button,.button{background:#153f32;border:0;color:white;padding:14px 22px;border-radius:8px;cursor:pointer;font-weight:700;font-size:14px;display:inline-block}button:hover,.button:hover{background:#27654e}.secondary{background:#eee;color:#222}.check{display:flex;align-items:center;gap:9px;font-size:14px}.check input{width:auto}.clear{align-self:center;font-size:14px;color:#64716b}.section-head{display:flex;justify-content:space-between;align-items:center;margin:35px 0 20px}.section-head span,.muted{color:#7a837e}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.product-card{background:white;border:1px solid #e7eae7;border-radius:12px;overflow:hidden;transition:transform .15s}.product-card:hover{transform:translateY(-3px)}.photo{aspect-ratio:4/5;background:#ecefeb}.photo img{width:100%;height:100%;object-fit:cover}.product-info{padding:16px}.tag{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#41846e}.product-info h3{font-size:15px;line-height:1.45;min-height:44px;margin:10px 0 16px}.details{font-size:13px;font-weight:700;color:#205b45}.pagination{display:flex;justify-content:center;align-items:center;gap:25px;margin:38px 0}.pagination a{font-weight:700;color:#27654e}.breadcrumb{margin:28px 0;color:#6d7771;font-size:13px}.product-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:52px;margin:20px 0 70px}.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;align-content:start}.gallery img{width:100%;background:#e9edea;border-radius:9px}.product-side{position:sticky;top:20px;align-self:start}.product-side h1{font-size:38px;letter-spacing:-1px}.notice{background:#edf4ef;padding:16px;border-radius:9px;color:#315643;font-size:14px}.order-form,.edit-form,.auth form{display:grid;gap:17px;margin-top:25px}.order-form label,.edit-form label,.auth label{font-size:13px;font-weight:700;display:grid;gap:7px}.order-form small{color:#748079;line-height:1.5}.auth{max-width:400px;margin:70px auto}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:30px 0}.stats div{background:white;border:1px solid #e5e8e5;border-radius:12px;padding:24px;display:grid;gap:7px}.stats strong{font-size:32px}.stats span{color:#66756d}.search-admin{display:flex;gap:12px;margin:20px 0}.table-scroll{overflow:auto;background:white;border:1px solid #e5e8e5;border-radius:10px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:13px;text-align:left;border-bottom:1px solid #edf0ed}th{background:#f2f5f2}td a{color:#1e7455;font-weight:700}.table-product{display:flex;align-items:center;gap:12px;min-width:280px}.table-product img{width:52px;height:58px;object-fit:cover;border-radius:5px}.table-product small{display:block;color:#839087;margin-top:5px}.edit-form{max-width:650px}.edit-form .check{display:flex}.compact{max-width:700px;margin:40px 0}footer{border-top:1px solid #e3e8e4;padding-top:30px!important;padding-bottom:40px!important;color:#7b877e;font-size:13px}@media(max-width:850px){.products{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr 1fr}.product-layout{grid-template-columns:1fr;gap:20px}.product-side{position:static}.hero{padding:45px 0 30px}}@media(max-width:520px){.wrap{padding:0 14px}.nav{height:62px}.logo{font-size:18px}.logo span{display:none}.filters{grid-template-columns:1fr}.filters .check{grid-column:auto}.products{gap:10px}.product-info{padding:10px}.product-info h3{font-size:13px}.stats{gap:8px}.stats div{padding:12px}.stats strong{font-size:22px}.gallery{gap:7px}}


/* Кнопки управления галереей */
.gallery button {
    background-color: #1C378F !important;
    color: #ffffff !important;
    border: 1px solid #1C378F !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
}

/* Цвет значков внутри кнопок */
.gallery button svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* Наведение курсора */
.gallery button:hover {
    background-color: #1C378F !important;
    border-color: #1C378F !important;
}

/* Нажатие */
.gallery button:active {
    background-color: #092b21 !important;
}
.empty-photo {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1rem;
  color: #53615b;
  background: #ecefeb;
  text-align: center;
}
.photo .empty-photo { height: 100%; }
