:root{
  --bg: #ffffff;
  --text: #0b0c0f;
  --muted: rgba(11,12,15,0.62);

  --card: #ffffff;
  --border: rgba(0,0,0,0.14);
  --border2: rgba(0,0,0,0.10);

  --shadow: 0 10px 28px rgba(0,0,0,0.06);
  --radius: 22px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}
a{ color: inherit; text-decoration: none; }

.container{ max-width: 1160px; margin: 0 auto; padding: 20px; }

/* Topbar */
.topbar{
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border2);
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand__logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.brand__name{ font-weight: 800; letter-spacing: 0.2px; }

.nav{ display:flex; gap: 18px; align-items:center; }
.nav a{ opacity: 0.85; font-weight: 800; }
.nav a:hover{ opacity: 1; }

.menuBtn{
  display:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 18px;
}

/* Mobile menu */
.mobileMenu{
  display:none;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border2);
  padding: 12px 20px;
}
.mobileMenu[hidden]{ display:none !important; }
.mobileMenu a{
  display:block;
  padding: 12px 0;
  color: rgba(0,0,0,0.86);
  font-weight: 900;
}
.mobileMenu a:hover{ color:#000; }

/* Hero */
.hero{
  padding-top: 90px !important;   /* было 48px — сделай больше */
  padding-bottom: 135px;
}

/* если у тебя сверху прилипает из-за container */
.container{
  padding-top: 225px;              /* можно 30–50 */
}
.hero--simple .hero__left{ max-width: 860px; }

.hero__title{
  margin: 0 0 10px;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.8px;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.ctaRow{ display:flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn{
  display: inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: #111;
  color: #fff;
  border-color: #111;
}
.btn--primary:hover{ opacity: 0.92; }

.btn--ghost{
  background: #fff;
  color: #111;
  border-color: var(--border);
}
.btn--ghost:hover{ box-shadow: var(--shadow); }

.btn--store{
  background: #fff;
  color: #111;
  border: 2px solid rgba(0,0,0,0.18); /* рамка как ты просил */
  border-radius: 22px;
  padding: 18px 20px;
  font-size: 18px;
}
.btn--store:hover{ box-shadow: var(--shadow); }




/* Sections */
.section{
  padding-top: 56px;     /* было меньше */
  padding-bottom: 10px;
}

.hero__title{
  margin-top: 0;         /* чтобы не прилипал к верху */
  margin-bottom: 12px;
}

.hero__subtitle{
  margin-bottom: 22px;
}

.ctaRow{
  margin-bottom: 22px;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* OUR PRODUCTS GRID */
.productsGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  
}

.productCard{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: 28px;
  padding: 18px 18px;

  display: flex;
  align-items: center;
  gap: 16px;

  box-shadow: var(--shadow);
  min-height: 108px;
}

/* иконка */
.productIcon{
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 2px solid rgba(0,0,0,0.14);
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}

/* контейнер для текста справа */
.productText{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0; /* важно для нормального сжатия */
}

/* первая строка: DUX */
.productBrand{
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.4px;
}

/* вторая строка: Manufactory */
.productName{
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.2px;

  /* ключевое: НЕ ломать слово */
  word-break: normal;
  overflow-wrap: normal;

  /* если вдруг слишком длинно — будет ... */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ABOUT APPS (иконка + имя + описание) */
.aboutGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.aboutCard{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 26px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
}



.aboutIcon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,0.14);
  object-fit: cover;
  flex: 0 0 auto;
}

.aboutText h3{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 950;
}
.aboutText p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Screens grid */
.screensGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 22px;
  margin-bottom: 10px;
}

.shot{
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.shot img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Download buttons layout */
.storeButtons--grid3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Contact */
.form{
  max-width: 560px;
  display: grid;
  gap: 12px;
}

label{ display: grid; gap: 6px; font-weight: 900; }

input, textarea{
  font: inherit;
  padding: 14px 14px;
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,0.14);
  outline: none;
  background: #fff;
}
input:focus, textarea:focus{ border-color: rgba(0,0,0,0.30); }

.btn--send{
  background: #fff;
  color: #111;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: 22px;
  padding: 16px 18px;
  width: 100%;
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: 0.2px;
}
input::placeholder,
textarea::placeholder{
  font-weight: 400; /* normal */
}

.btn--send:hover{
  border-color: rgba(0,0,0,0.22);
  box-shadow: var(--shadow);
}

.btn--send:active{
  transform: translateY(1px);
}

.btnSpinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: rgba(0,0,0,0.80);
  display: none;
  animation: spin 0.8s linear infinite;
}

textarea {
  resize: none;
}
.btn.is-loading .btnSpinner{ display: inline-block; }
.btn.is-loading .btnText{ opacity: 0.80; }

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.lightbox.is-open{ display: flex; }

.lightbox__img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.25);
  background: #000;
}
.lightbox__close{
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(20,20,20,0.70);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.footer{
  margin-top: 34px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer__left{ display:flex; align-items:center; gap: 12px; }
.footer__logo{
  width: 34px; height: 34px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.footer__name{ font-weight: 950; }
.footer__right{ display:flex; gap: 10px; align-items:center; color: var(--muted); }
.footer__right a:hover{ color: #000; }
.dot{ opacity: 0.5; }

/* Responsive */
@media (max-width: 1000px){
  .productsGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screensGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storeButtons--grid3{ grid-template-columns: 1fr; }
  .hero__title{ font-size: 44px; }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .menuBtn{ display:inline-flex; }
  .mobileMenu{ display:block; }
}

@media (max-width: 600px){
  .productsGrid{ grid-template-columns: 1fr; }
  .screensGrid{ grid-template-columns: 1fr; }
  .shot img{ height: 210px; }
}

/* WINDOWS PAGE styles */
.windowsPage .windowsGrid{ gap: 18px; }

.windowsPage .grid3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.windowsPage .appCard{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.windowsPage .appCard__top{
  display: flex;
  gap: 14px;
  align-items: center;
}

.windowsPage .appIcon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.14);
  background: #fff;
  flex: 0 0 auto;
}

.windowsPage .appMeta h3{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.windowsPage .appMeta p{
  margin: 6px 0 0;
  color: var(--muted);
}

.windowsPage .appCard .btn{
  width: 100%;
}

@media (max-width: 1000px){
  .windowsPage .grid3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .windowsPage .grid3{ grid-template-columns: 1fr; }
}


.aboutGrid{
  display: grid;
  gap: 18px;
}

.aboutCard{
  display: flex;
  align-items: center;
  gap: 45px;              /* ✅ вот этот spacer между иконкой и текстом */
  padding: 22px 26px;
  border-radius: 28px;
  border: 2px solid rgba(0,0,0,0.14);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.aboutIcon{
  align-self: center;       /* ✅ только иконку в центр */
}

.aboutIcon{
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-left: 6px;       /* маленький воздух слева */
}

.aboutText h3{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.aboutText p{
  margin: 0 0 10px;
  color: rgba(0,0,0,0.70);
  line-height: 1.6;
}

.aboutList{
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(0,0,0,0.70);
}

.aboutList li{
  margin: 6px 0;
}

@media (max-width: 700px){
  .aboutCard{ gap: 14px; }
  .aboutIcon{
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 22px;
  }
}

.footerCols{
  display: flex;
  justify-content: space-between; /* раздвигает влево/вправо */
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.footerAddr{
  color: rgba(0,0,0,0.65);
  line-height: 1.7;
  font-size: 16px;
  max-width: 520px; /* чтобы текст не тянулся бесконечно */
}

.footerAddr--right{
  text-align: right;
  margin-left: auto; /* гарантирует прижим вправо */
}

@media (max-width: 700px){
  .footerCols{
    flex-direction: column;
    gap: 14px;
  }
  .footerAddr--right{
    text-align: left;
    margin-left: 0;
  }
}


@font-face{
  font-family: "AlteHaas";
  src:
    url("assets/fonts/RomanSerif.ttf") format("woff2"),
    url("assets/fonts/RomanSerif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body{
  font-family: "AlteHaas", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}