/* ===== RESET ===== */
*{
  box-sizing:border-box;
}
html,
body{
  height:100%;
}

.viewer-card{
  position:relative;
  min-height:680px;
  height:auto; 
}

.viewer-wrap{
  position:relative;
  height:auto; 
  min-height:620px; 
}

html,
body{
  margin:0;
  padding:0;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  color:#11202f;
  background:
    radial-gradient(circle at top left, rgba(47,121,185,0.08), transparent 24%),
    linear-gradient(180deg,#f8fbfd 0%,#eef3f8 100%);
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ===== BASE ===== */
.container{
  max-width:1360px;
  margin:0 auto;
  padding:0 24px;
}

/* ===== HEADER ===== */
.header{
  padding:22px 0 16px;
}

.header__topline{
  width:64px;
  height:3px;
  border-radius:2px;
  margin-bottom:14px;
  background:linear-gradient(90deg,#0f4c81,#3fa0ff);
}

.header__wrap{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
}

.header__label{
  margin-bottom:6px;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#6b7c8c;
}

.header h1{
  margin:0;
  font-size:34px;
  line-height:1.08;
  font-weight:700;
}

.header__badge{
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#0a3558,#0f4c81);
  color:#fff;
  font-size:13px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

/* ===== CRUMBS ===== */
.crumbs{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  font-size:17px;
  font-weight:600;
  background:#fff;
  border:1px solid rgba(17,32,47,0.08);
  box-shadow:0 8px 18px rgba(0,0,0,0.08);
  transition:transform .25s ease, background .25s ease, color .25s ease;
}

.back-btn:hover{
  transform:translateX(-2px);
  background:#f3f7fb;
  color:#0f4c81;
}

.crumb-current{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  font-size:17px;
  font-weight:600;
  background:linear-gradient(135deg,#0a3558,#0f4c81);
  color:#fff;
}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
  padding:10px 0 32px;
}

/* ===== CARD ===== */
.card{
  position:relative;
  min-height:360px;
  border-radius:18px;
  overflow:hidden;
  background:#dfe7ef;
  box-shadow:0 12px 28px rgba(12,35,61,0.10);
  opacity:0;
  transform:translateY(16px);
  animation:fadeUp .6s ease forwards;
  transition:transform .3s ease, box-shadow .3s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 42px rgba(8,32,58,0.18);
}

.card__image{
  position:absolute;
  inset:0;
  transition:transform .6s ease;
}

.card:hover .card__image{
  transform:scale(1.06);
}

.card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(8,40,68,0.02) 0%,
    rgba(8,40,68,0.12) 40%,
    rgba(7,40,70,0.85) 100%
  );
}

.card__content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px;
}

.card__title{
  margin:0 0 10px;
  color:#fff;
  font-size:24px;
  line-height:1.2;
}

.card__text{
  margin:0;
  color:rgba(255,255,255,0.9);
  font-size:15px;
  line-height:1.5;
}

.card__list{
  margin:8px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,0.88);
  font-size:14px;
  line-height:1.4;
}

.card__list li{
  margin-bottom:4px;
}

.card__arrow{
  margin-top:14px;
  font-size:12px;
  text-transform:uppercase;
  color:#fff;
  letter-spacing:0.08em;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(16px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.card:nth-child(1){ animation-delay:.05s; }
.card:nth-child(2){ animation-delay:.10s; }
.card:nth-child(3){ animation-delay:.15s; }
.card:nth-child(4){ animation-delay:.20s; }
.card:nth-child(5){ animation-delay:.25s; }
.card:nth-child(6){ animation-delay:.30s; }

/* ===== 3D PRODUCT PAGE ===== */
.product-stage{
  padding:8px 0 36px;
}

.product-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:24px;
  align-items:start;
}

/* ===== VIEWER ===== */
.viewer-card{
  position:relative;
  min-height:680px;


  box-shadow:none;

  display:flex;
  flex-direction:column;
}
.viewer-card{
  background:#ffffff;


}

.viewer-wrap{
  background:#ffffff;
  box-shadow:none;
}
.product-stage{
  background:
    radial-gradient(circle at top left, rgba(47,121,185,0.08), transparent 24%),
    linear-gradient(180deg,#f8fbfd 0%,#eef3f8 100%);
}

.viewer-card{

  border-radius:24px;

  border:1px solid rgba(17,32,47,0.04);
}
.viewer-toolbar{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 20px 0;
}

.viewer-note{
  font-size:13px;
  line-height:1.2;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#6b7c8c;
}

.viewer-wrap{
  position:relative;
  height:620px;
  margin-top:10px;
}
#container{
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:100% !important;
}
/* ===== INFO BUTTON ===== */
.info-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#0a3558,#0f4c81);
  color:#fff;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 12px 24px rgba(15,76,129,0.20);
  transition:transform .25s ease, box-shadow .25s ease;
}

.info-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(15,76,129,0.26);
}

/* ===== GALLERY ===== */
.gallery-panel{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#f2f6fa 100%);
  box-shadow:0 16px 40px rgba(10,35,58,0.10);
  border:1px solid rgba(17,32,47,0.06);
  padding:18px 16px 20px;
}

.gallery-panel__title{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:#6b7c8c;
  text-align:center;
}

.gallery-shell{
  margin:14px 0;
  border-radius:18px;
  overflow:hidden;
}

.gallery-arrow{
  position:relative;
  width:100%;
  height:46px;
  border:none;
  border-radius:14px;
  background:#eaf1f7;
  cursor:pointer;
  transition:background .25s ease;
}

.gallery-arrow:hover{
  background:#dde9f4;
}

.gallery-arrow:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:12px;
  border-left:2px solid #0f4c81;
  border-bottom:2px solid #0f4c81;
  transform-origin:center;
}

.gallery-arrow--up:before{
  transform:translate(-50%,-35%) rotate(135deg);
}

.gallery-arrow--down:before{
  transform:translate(-50%,-65%) rotate(-45deg);
}

.gallery-item{
  padding:7px 0;
}

.gallery-item a{
  display:block;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(10,35,58,0.10);
  border:1px solid rgba(17,32,47,0.06);
  background:#fff;
}

.gallery-item img{
  display:block;
  width:100%;
  height:150px;
  object-fit:cover;
}

/* ===== MODAL ===== */
.modal-window{
  position:fixed;
  inset:0;
  z-index:2000;
  padding:24px;
  background:rgba(7,21,34,0.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

.modal-window:target{
  opacity:1;
  pointer-events:auto;
}

.modal-window__dialog{
  position:relative;
  max-width:1240px;
  margin:2vh auto 0;
  max-height:94vh;
  overflow:auto;
  border-radius:28px;
  background:linear-gradient(180deg,#0f2134 0%,#122b42 100%);
  color:#ffffff;
  box-shadow:0 24px 60px rgba(0,0,0,0.35);
  padding:28px 28px 24px;
}

.modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.10);
  color:#fff;
  font-size:22px;
  line-height:1;
  transition:background .25s ease, transform .25s ease;
}

.modal-close:hover{
  background:rgba(255,255,255,0.16);
  transform:rotate(90deg);
}

.modal-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:36px;
  margin-top:8px;
}

.modal-window h2,
.modal-window h3{
  margin:0 0 12px;
  color:#ffffff;
  line-height:1.15;
}

.modal-window h2{
  font-size:32px;
  font-weight:700;
}

.modal-window h3{
  font-size:24px;
  font-weight:700;
  margin-top:18px;
}

.modal-window p{
  margin:0 0 14px;
  color:rgba(255,255,255,0.90);
  font-size:16px;
  line-height:1.7;
}

.modal-window hr{
  border:none;
  height:1px;
  margin:0 0 18px;
  background:rgba(255,255,255,0.12);
}

.modal-window ul{
  margin:0;
  padding-left:20px;
  color:rgba(255,255,255,0.90);
}

.modal-window li{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.6;
} 
.product-accordion{
  display:grid;
  gap:12px;
  padding:24px;
}

.product-accordion input{
  display:none;
}

.product-accordion label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:58px;
  padding:16px 20px;
  border-radius:18px;
  background:#ffffff;
  color:#0f4c81;
  font-size:15px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(10,35,58,0.08);
}

.product-accordion label:after{
  content:"+";
  font-size:24px;
  line-height:1;
  color:#0f4c81;
}

.product-accordion input:checked + label:after{
  content:"−";
}

.accordion-body{
  max-height:0;
  overflow:hidden;
  padding:0 20px;
  border-radius:0 0 18px 18px;
  background:rgba(255,255,255,0.72);
  transition:max-height .35s ease, padding .35s ease;
}

.product-accordion input:checked + label + .accordion-body{
  max-height:900px;
  padding:18px 20px 22px;
}

.accordion-body p,
.accordion-body li{
  color:#4b5563;
  font-size:16px;
  line-height:1.65;
}

.accordion-body ul{
  margin:0;
  padding-left:20px;
}

.product-info-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  margin-top:24px;
}

.product-info-card{
  background:#fff;
  border-radius:24px;
  padding:22px;
  box-shadow:0 16px 40px rgba(10,35,58,0.10);
}

.product-info-card h3{
  margin:0 0 14px;
  color:#0f4c81;
  font-size:20px;
  line-height:1.25;
}

.product-info-card img{
  width:100%;
  height:220px;
  object-fit:contain;
  background:#f4f7fa;
  border-radius:18px;
  margin-bottom:16px;
}

.product-info-card p{
  margin:0;
  color:#4b5563;
  font-size:15px;
  line-height:1.65;
}

/* ===== WIDE PRODUCT LAYOUT ===== */

.container{
  max-width: 1600px;   /* было none — теперь ограничили */
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;  /* аккуратные поля */
  padding-right: 20px;
}

.product-layout{
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px; /* чуть воздуха между блоками */
}

.product-stage{
  padding-left: 0;
  padding-right: 0;
}


/* левая большая карточка */
.viewer-card{
  min-height: auto;
  height: auto;
}





/* если галерея вертикальная slick */
.gallery-shell{
  max-height: 760px;
}

.product-info-cards{
  padding: 0 10px 24px; /* чтобы не прилипало к краям */
}

.gallery-panel{
  padding: 18px;
}

.gallery-item img{
  height: 220px;
}

.product-text {
  margin-bottom: 40px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

.product-text p {
  margin: 0;
  color: rgba(0,0,0,0.88);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}