/* license.css — только страница «Лицензия» */

.license-page{overflow:hidden;background:#f5f8fd}
.license-hero{
  position:relative;min-height:690px;overflow:hidden;color:#fff;
  background:
    radial-gradient(circle at 88% 16%,rgba(37,217,255,.24),transparent 24%),
    radial-gradient(circle at 8% 92%,rgba(123,88,255,.26),transparent 28%),
    linear-gradient(135deg,#031226 0%,#092d65 52%,#0b6580 100%);
}
.license-hero__grid{
  position:absolute;inset:0;opacity:.12;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:44px 44px;mask-image:linear-gradient(90deg,#000,transparent 72%);
}
.license-orb{position:absolute;border-radius:50%;pointer-events:none}
.license-orb--1{width:340px;height:340px;left:-100px;bottom:-120px;background:radial-gradient(circle,rgba(37,217,255,.32),transparent 68%)}
.license-orb--2{width:300px;height:300px;right:27%;top:-130px;background:radial-gradient(circle,rgba(137,92,255,.26),transparent 68%)}
.license-hero__inner{
  position:relative;z-index:2;min-height:690px;display:grid;
  grid-template-columns:.95fr 1.05fr;align-items:center;gap:64px;padding:66px 0;
}
.license-hero__copy h1{
  margin:18px 0 20px;max-width:760px;font-size:clamp(52px,6.4vw,88px);
  line-height:.94;letter-spacing:-.055em;font-weight:950
}
.license-hero__copy h1 span{
  background:linear-gradient(90deg,#6deaff,#4be4ce,#9277ff,#ff6dc5);
  -webkit-background-clip:text;background-clip:text;color:transparent
}
.license-hero__copy>p{max-width:680px;margin:0;color:#d7e5f5;font-size:19px;line-height:1.72}
.license-hero__facts{display:grid;grid-template-columns:1.5fr 1fr .7fr;gap:10px;margin-top:30px}
.license-hero__facts>div{
  padding:16px 17px;border:1px solid rgba(255,255,255,.13);border-radius:16px;
  background:rgba(5,27,59,.48);backdrop-filter:blur(12px)
}
.license-hero__facts small{display:block;color:#91b3d7;font-size:14px;font-weight:800}
.license-hero__facts strong{display:block;margin-top:5px;color:#fff;font-size:18px;word-break:break-word}
.license-hero__document{position:relative;display:flex;justify-content:center}
.license-hero__sheet{
  width:min(100%,470px);aspect-ratio:.71;overflow:hidden;border-radius:20px;
  background:#fff;border:1px solid rgba(255,255,255,.18);
  box-shadow:0 32px 90px rgba(0,0,0,.34);transform:perspective(1200px) rotateY(-5deg) rotateX(1deg)
}
.license-hero__sheet img{width:100%;height:100%;object-fit:contain;background:#fff}
.license-hero__stamp{
  position:absolute;right:4%;top:10%;padding:15px 17px;border-radius:16px;
  background:rgba(5,24,51,.84);border:1px solid rgba(255,255,255,.15);
  box-shadow:0 15px 38px rgba(0,0,0,.24);backdrop-filter:blur(16px)
}
.license-hero__stamp span,.license-hero__stamp strong{display:block}
.license-hero__stamp span{color:#74e9ff;font-size:14px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.license-hero__stamp strong{font-size:28px}

.license-summary{background:#fff}
.license-summary__grid{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:16px}
.license-summary__main,.license-info-card{
  border:1px solid #dde7f3;border-radius:24px;background:linear-gradient(180deg,#fff,#f9fbff);
  box-shadow:0 12px 32px rgba(18,58,108,.055)
}
.license-summary__main{padding:30px}
.license-summary__main h2{margin:12px 0 12px;font-size:clamp(30px,3.3vw,44px);line-height:1.03;letter-spacing:-.035em}
.license-summary__main p{margin:0;color:#647893;font-size:17px;line-height:1.7}
.license-info-card{position:relative;overflow:hidden;padding:27px 23px}
.license-info-card>span{color:#dce8f8;font-size:50px;font-weight:950;line-height:1}
.license-info-card strong{display:block;margin:18px 0 9px;color:#10223e;font-size:19px}
.license-info-card p{margin:0;color:#667a95;font-size:15px;line-height:1.62}
.license-archive-note{
  margin-top:18px;padding:22px 24px;display:flex;align-items:flex-start;gap:16px;
  border:1px solid #d9e6f4;border-radius:20px;background:#f5f9ff
}
.license-archive-note__icon{
  width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;
  color:#fff;font-size:23px;font-weight:900;background:linear-gradient(135deg,#2d70ff,#25d9ff)
}
.license-archive-note strong{display:block;color:#11233f;font-size:18px}
.license-archive-note p{margin:6px 0 0;color:#667b97;font-size:15px;line-height:1.65}

.license-gallery-section{
  background:
    radial-gradient(circle at 92% 8%,rgba(37,217,255,.07),transparent 20%),
    radial-gradient(circle at 5% 70%,rgba(123,88,255,.06),transparent 22%),
    #f5f8fd
}
.license-gallery-section .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}
.license-filter{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.license-filter button{
  min-height:42px;padding:0 14px;border-radius:12px;border:1px solid #d4e1f1;background:#fff;
  color:#39506e;font-size:14px;font-weight:900;cursor:pointer;transition:.18s ease
}
.license-filter button:hover,.license-filter button.is-active{
  color:#fff;border-color:transparent;background:linear-gradient(135deg,#2d70ff,#1aaadf);
  box-shadow:0 10px 24px rgba(45,112,255,.18)
}
.license-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.license-card{
  position:relative;overflow:hidden;padding:0;text-align:left;border:1px solid #dce6f2;border-radius:20px;
  background:#fff;box-shadow:0 10px 28px rgba(17,50,96,.06);cursor:pointer;transition:.22s ease
}
.license-card:hover{transform:translateY(-6px);border-color:#bed5f4;box-shadow:0 22px 48px rgba(20,69,148,.13)}
.license-card[hidden]{display:none!important}
.license-card__page{
  position:absolute;z-index:3;left:13px;top:13px;width:39px;height:39px;display:grid;place-items:center;
  border-radius:12px;color:#fff;font-size:14px;font-weight:950;background:rgba(5,27,58,.83);backdrop-filter:blur(12px)
}
.license-card__image-wrap{display:block;aspect-ratio:.72;background:#edf3fa;overflow:hidden}
.license-card__image-wrap img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;transition:transform .35s ease}
.license-card:hover img{transform:scale(1.025)}
.license-card__meta{display:block;padding:16px 17px 18px}
.license-card__meta strong{display:block;color:#10233f;font-size:16px}
.license-card__meta small{display:block;margin-top:4px;color:#70839d;font-size:14px}
.license-card__zoom{
  position:absolute;right:14px;bottom:15px;width:34px;height:34px;display:grid;place-items:center;
  border-radius:11px;color:#1765da;background:#edf5ff;font-size:20px;font-weight:800
}

.license-dialog{
  width:min(96vw,1320px);height:min(94vh,940px);padding:0;border:0;border-radius:22px;
  background:#08172d;color:#fff;box-shadow:0 35px 110px rgba(0,0,0,.55);overflow:hidden
}
.license-dialog::backdrop{background:rgba(0,7,20,.78);backdrop-filter:blur(8px)}
.license-dialog__toolbar{
  height:64px;padding:0 14px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid rgba(255,255,255,.08);background:#071426
}
.license-dialog__toolbar>div:first-child{display:flex;align-items:center;gap:12px}
.license-dialog__toolbar strong{font-size:16px}
.license-dialog__toolbar span{color:#8eabc9;font-size:14px}
.license-dialog__actions{display:flex;gap:7px}
.license-dialog__actions button{
  min-width:40px;height:40px;border:1px solid rgba(255,255,255,.10);border-radius:11px;
  color:#fff;background:rgba(255,255,255,.06);font-size:16px;font-weight:850;cursor:pointer
}
.license-dialog__actions button:hover{background:rgba(37,217,255,.14);border-color:rgba(37,217,255,.25)}
.license-dialog__close{font-size:23px!important}
.license-dialog__stage{position:relative;height:calc(100% - 64px);display:flex;align-items:center;justify-content:center;background:#102039}
.license-dialog__canvas{
  width:100%;height:100%;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:26px
}
.license-dialog__canvas img{
  width:auto;max-width:100%;height:auto;max-height:none;background:#fff;box-shadow:0 18px 55px rgba(0,0,0,.3);
  transform-origin:top center;transition:width .14s ease
}
.license-dialog__nav{
  position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:48px;height:66px;border:0;border-radius:14px;
  color:#fff;background:rgba(4,19,39,.70);backdrop-filter:blur(10px);font-size:38px;cursor:pointer
}
.license-dialog__nav:hover{background:rgba(34,126,224,.8)}
.license-dialog__nav--prev{left:12px}.license-dialog__nav--next{right:12px}

.reveal{opacity:0;transform:translateY(28px)}
.reveal.is-visible{opacity:1;transform:none;transition:opacity .7s cubic-bezier(.18,.8,.25,1),transform .7s cubic-bezier(.18,.8,.25,1)}

@media(max-width:1150px){
  .license-hero__inner{grid-template-columns:1fr;gap:40px}
  .license-hero__document{max-width:520px;margin:0 auto;width:100%}
  .license-summary__grid{grid-template-columns:1fr 1fr}
  .license-summary__main{grid-column:1/-1}
  .license-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:800px){
  .license-hero__facts{grid-template-columns:1fr}
  .license-gallery-section .section-heading{display:block}
  .license-filter{justify-content:flex-start;margin-top:18px}
  .license-grid{grid-template-columns:repeat(2,1fr)}
  .license-summary__grid{grid-template-columns:1fr}
  .license-summary__main{grid-column:auto}
  .license-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}
  .license-dialog__nav{width:40px;height:58px}
}
@media(max-width:520px){
  .license-hero__copy h1{font-size:clamp(45px,14vw,62px)}
  .license-hero__copy>p{font-size:17px}
  .license-grid{grid-template-columns:1fr}
  .license-card__image-wrap{aspect-ratio:.88}
  .license-dialog__toolbar{height:58px;padding-left:12px}
  .license-dialog__toolbar strong{display:none}
  .license-dialog__stage{height:calc(100% - 58px)}
  .license-dialog__canvas{padding:14px}
}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1!important;transform:none!important}
}
