/*
Theme Name: Uplift Group
Description: Главная страница upliftgroup.us: три компании группы (SalesUplift, Echo Digital, Echo Production) и форма заявки на сайт.
Version: 1.0.0
Author: Uplift Group
Text Domain: uplift-group
*/

@font-face {
  font-family: "Fixel";
  src: url("assets/fonts/FixelDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fixel";
  src: url("assets/fonts/FixelDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Fixel", Arial, sans-serif;
  background: #262626;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ug-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.ug-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3vw;
  padding: 3vw;
  min-height: 100%;
  cursor: pointer;
}
.ug-card--s1 { background-image: linear-gradient(196deg, #f0493a, #b2362b); }
.ug-card--s3 { background-image: linear-gradient(196deg, #f3ab08, #fdce3d); }
.ug-card--s4 { background-image: linear-gradient(16deg, #ff7f3b, #e06726); }

.ug-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vw;
  width: 100%;
}
.ug-logo svg { display: block; width: 16vw; height: 4vw; }

.ug-text {
  margin: 0;
  font-size: 1.8vw;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  color: #fff;
}
.ug-text--dark { color: #262626; }
.ug-text strong, .ug-text b { font-weight: 700; }

.ug-wrapper { display: flex; justify-content: flex-end; align-items: center; }
.ug-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4vw;
  height: 4vw;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: transform .35s cubic-bezier(.455,.03,.515,.955), background-color .35s;
}
.ug-button svg { width: 1.5vw; height: 1.5vw; display: block; }
.ug-card:hover .ug-button { transform: scale(1.15); background-color: rgba(255,255,255,.15); }
.ug-button__label {
  font-size: .7vw;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

/* Tablet & mobile: stacked cards */
@media (max-width: 991px) {
  .ug-grid { grid-template-columns: 1fr; min-height: 0; }
  .ug-card { padding: 4vw; gap: 5.5vw; }
  .ug-content { align-items: flex-start; }
  .ug-logo { align-self: center; }
  .ug-logo svg { width: 30vw; height: 10vw; }
  .ug-text { font-size: 2.5vw; }
  .ug-button { width: 6vw; height: 6vw; }
  .ug-button svg { width: 2.5vw; height: 2.5vw; }
  .ug-button__label { font-size: 1vw; }
}
@media (max-width: 767px) {
  .ug-text { font-size: 2.7vw; }
  .ug-content { align-items: center; }
  .ug-button { width: 12vw; height: 12vw; }
  .ug-button svg { width: 4vw; height: 4vw; }
  .ug-button__label { font-size: 1.5vw; }
}
@media (max-width: 479px) {
  .ug-card { padding: 6vw; gap: 6vw; }
  .ug-content { gap: 6vw; }
  .ug-logo svg { width: 44vw; height: 15vw; }
  .ug-text { font-size: 4.6vw; }
  .ug-button { width: 15vw; height: 15vw; }
  .ug-button svg { width: 5vw; height: 5vw; }
  .ug-button__label { font-size: 2.5vw; }
}

/* Модальное окно заявки */
.ug-modal[hidden] { display: none; }
.ug-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20,20,20,.7);
}
.ug-modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #fff;
  color: #262626;
  font-size: 16px;
  line-height: 1.4;
}
.ug-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #262626;
  cursor: pointer;
}
.ug-modal h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.ug-modal p.ug-sub { margin: 0 0 20px; color: #555; }
.ug-field { display: block; margin-bottom: 14px; }
.ug-field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.ug-field input, .ug-field textarea, .ug-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  font: inherit;
  color: #262626;
  background: #fff;
}
.ug-field textarea { min-height: 90px; resize: vertical; }
.ug-field input:focus, .ug-field textarea:focus, .ug-field select:focus { border-color: #f3ab08; outline: none; }
.ug-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ug-submit {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(196deg, #f3ab08, #fdce3d);
  color: #262626;
  font: 700 17px/1 "Fixel", Arial, sans-serif;
  cursor: pointer;
}
.ug-submit[disabled] { opacity: .6; cursor: wait; }
.ug-note { margin: 12px 0 0; font-size: 12px; color: #777; text-align: center; }
.ug-msg { margin: 12px 0 0; font-size: 15px; text-align: center; }
.ug-msg--ok { color: #1a7f37; }
.ug-msg--err { color: #b2362b; }
