:root {
  --red: #e83028;
  --dark-red: #5b0907;
  --wine: #941f18;
  --text: #424852;
  --line: #8f251e;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.logo-mark i {
  border: 2px solid #777;
  background: #d93632;
}

.logo-mark i:nth-child(2),
.logo-mark i:nth-child(3) {
  background: #595b60;
}

.logo strong {
  display: block;
  color: #cf2e2b;
  font-size: 30px;
  font-weight: 800;
  line-height: 0.9;
}

.logo small {
  display: block;
  color: #777;
  font-size: 9px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  color: #c9312b;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:hover {
  color: #8e1d16;
}

.main-nav .active {
  color: #8e1d16;
  font-weight: 600;
}

.project-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.project-link:hover .project-card{
    transform:translateY(-5px);
}

.brand-logo{
    width:100%;
    height:120px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
}
.news-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.news-card{
    overflow:hidden;
    transition:.3s;
    cursor:pointer;
}

.news-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

.news-image{
    width:100%;
    height:230px;
    overflow:hidden;
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.news-card:hover .news-image img{
    transform:scale(1.08);
}

.brand-logo img{
    width:90%;
    height:90%;
    object-fit:contain;
}

.consult-btn,
.primary-btn {
  color: #fff !important;
  background: #941f18;
  font-weight: 700;
  text-transform: uppercase;
}

.consult-btn {
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 14px;
}
.share-categories{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:48px;
    flex-wrap:wrap;

    margin:20px 0 50px;
    padding-bottom:18px;

    border-bottom:2px solid #cfcfcf;
}

.share-categories button{
    background:none;
    border:none;
    padding:0;

    font-size:18px;
    font-weight:600;
    text-transform:uppercase;

    color:#3c4b60;
    cursor:pointer;

    transition:.3s;
    position:relative;
}

.share-categories button:hover{
    color:#9c2d20;
}

.share-categories button.active{
    color:#9c2d20;
}

.share-categories button.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-20px;

    width:100%;
    height:3px;

    background:#9c2d20;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 147px;
  min-height: 40px;
  padding: 10px 24px;
  border-radius: 0;
  font-size: 14px;
}

.primary-btn:hover,
.consult-btn:hover {
  background: #c72e23;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #9b241d;
  background: #f4f4f4;
  border-radius: 6px;
}

.section {
  padding: 58px 0;
}

.page-hero,
.red-panel {
  background-color: var(--dark-red);
  background-image:
    linear-gradient(120deg, rgba(231, 45, 35, 0.62), rgba(39, 0, 0, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='520' viewBox='0 0 1440 520'%3E%3Cpolygon fill='%23ef3329' points='0,0 190,0 110,120 0,210'/%3E%3Cpolygon fill='%23730f0c' points='190,0 420,0 365,170 110,120'/%3E%3Cpolygon fill='%23b82018' points='365,170 520,0 760,0 630,220'/%3E%3Cpolygon fill='%23230303' points='760,0 1020,0 960,260 630,220'/%3E%3Cpolygon fill='%23881410' points='960,260 1180,0 1440,0 1340,230'/%3E%3Cpolygon fill='%23d52b22' points='0,520 320,520 250,310 0,210'/%3E%3Cpolygon fill='%23991914' points='250,310 630,220 720,520 320,520'/%3E%3Cpolygon fill='%23350605' points='630,220 960,260 850,520 720,520'/%3E%3Cpolygon fill='%23660b08' points='960,260 1340,230 1440,520 850,520'/%3E%3Cpolygon fill='%23180202' points='1340,230 1440,0 1440,520'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 212px;
  display: flex;
  align-items: center;
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-intro {
  padding-top: 64px;
  padding-bottom: 92px;
}

.about-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.about-copy .section-title {
  margin-bottom: 22px;
}

.about-copy p {
  margin: 0 0 14px;
  text-align: justify;
}

.team-photo {
  position: relative;
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  border-radius: 4px;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.team-photo figcaption {
  position: absolute;
  left: 15%;
  right: 10%;
  bottom: 18%;
  padding: 22px;
  color: #fff4c0;
  text-align: center;
  background: rgba(126, 24, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-photo figcaption span {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.team-photo figcaption strong {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
}

.team-photo figcaption small {
  display: block;
  color: #fff3c6;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-vision {
  padding-top: 0;
  padding-bottom: 72px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: start;
}

.red-panel {
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.mission-panel,
.vision-panel,
.value-panel {
  padding: 30px;
}

.mission-panel {
  min-height: 420px;
}

.vision-panel {
  min-height: 230px;
}

.icon-box {
  width: 73px;
  height: 73px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid #fff;
}

.icon-box svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}

.red-panel h2,
.red-panel h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.red-panel p {
  margin: 0 0 20px;
  font-weight: 600;
}

.core-values {
  padding-top: 0;
  padding-bottom: 88px;
}

.core-values .section-title {
  text-transform: uppercase;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-panel {
  min-height: 636px;
}

.home-hero {
  padding: 122px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(380px, 560px) minmax(420px, 1fr);
  gap: 100px;
  align-items: center;
}

.hero-copy h1,
.section-title,
.company-info h2,
.contact-form-wrap h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 30px;
  color: #454a53;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.hero-copy h1::before,
.section-title::before,
.company-info h2::before,
.contact-form-wrap h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 5px;
  height: 1.25em;
  background: var(--line);
}

.hero-copy h1::first-letter,
.section-title strong {
  font-weight: 800;
}

.hero-copy p {
  margin: 0 0 10px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 144px;
  margin-top: 36px;
  padding-left: 76px;
}

.marketing-visual {
  position: relative;
  min-height: 470px;
}

.dashboard {
  position: absolute;
  right: 60px;
  top: 54px;
  width: 330px;
  height: 360px;
  padding: 22px;
  background: #24265f;
  border-radius: 22px;
  box-shadow: 34px 30px 0 #e8e8fb, 0 24px 50px rgba(27, 35, 90, 0.18);
  transform: skewY(2deg);
}

.dash-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dash-top span {
  width: 48px;
  height: 8px;
  background: #696bdb;
  border-radius: 8px;
}

.chart-area {
  height: 210px;
  border-radius: 14px;
  background: linear-gradient(145deg, #303277, #171a50);
  overflow: hidden;
  padding: 20px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 70px;
}

.bars i {
  display: block;
  width: 20px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(#ffcf5d, #ff5145);
}

.bars i:nth-child(1) { height: 44px; }
.bars i:nth-child(2) { height: 66px; }
.bars i:nth-child(3) { height: 34px; }
.bars i:nth-child(4) { height: 82px; }
.bars i:nth-child(5) { height: 56px; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.dash-cards span {
  height: 55px;
  background: #f2f3ff;
  border-radius: 12px;
}

.target,
.play,
.cloud,
.cube {
  position: absolute;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 18px 36px rgba(35, 42, 112, 0.14);
}

.target {
  left: 105px;
  top: 150px;
  width: 70px;
  height: 70px;
  color: #ec3b31;
  border-radius: 50%;
}

.play {
  right: 0;
  top: 180px;
  width: 58px;
  height: 100px;
  color: #ec3b31;
  border-radius: 8px;
}

.cloud {
  right: 24px;
  top: 76px;
  width: 106px;
  height: 56px;
  background: #ececfa;
  border-radius: 40px;
}

.cloud::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -24px;
  width: 58px;
  height: 58px;
  background: #ececfa;
  border-radius: 50%;
}

.cube {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8248ff, #ffbf3c);
}

.cube-a {
  left: 70px;
  bottom: 130px;
}

.cube-b {
  right: 155px;
  bottom: 40px;
  width: 84px;
  height: 46px;
  background: linear-gradient(135deg, #fff, #dfe1ff);
}

.clients-section {
  padding-top: 36px;
}

.section-title {
  margin-bottom: 40px;
}

.logo-slider {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 12px;
  align-items: center;
}

.slider-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  border: 0;
  color: #d3342d;
  background: transparent;
  cursor: pointer;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.client-card,
.project-card,
.news-card {
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}

.client-card {
  height: 192px;
  display: grid;
  grid-template-rows: 145px 47px;
  text-align: center;
}

.brand-logo,
.project-logo {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: #3f4852;
  font-weight: 800;
  background: #fff;
}

.brand-logo span {
  font-size: 30px;
}

.brand-logo.fpi,
.project-logo.fpi {
  color: #43aa50;
}

.brand-logo.nt,
.project-logo.nt {
  color: #cfa53c;
  background: radial-gradient(circle, #fff8c9, #f7df89);
}

.brand-logo.pl,
.project-logo.pl {
  color: #294aa6;
}

.brand-logo.coach,
.project-logo.coach {
  color: #273c68;
}

.brand-logo.tooth,
.project-logo.tooth {
  color: #d3a625;
}

.client-card h3 {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 10px;
  border-top: 1px solid #eee;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-section {
  padding-top: 72px;
}

.project-archive {
  padding-top: 65px;
  padding-bottom: 96px;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.project-filters button {
  border: 0;
  min-height: 36px;
  padding: 8px 16px;
  color: #fff;
  background: #941f18;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.project-filters button:hover {
  background: #c72e23;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  height: 275px;
  display: grid;
  grid-template-rows: 205px 70px;
}

.project-logo {
  min-height: 205px;
  font-size: 28px;
  text-align: center;
}

.project-logo.wave {
  color: #e3322d;
  font-size: 20px;
}

.project-logo.ptl {
  color: #315aa3;
  font-size: 23px;
}

.project-logo.she {
  color: #ddb65b;
  background: #113777;
}

.project-logo.myc {
  color: #24522d;
}

.project-logo.dental {
  color: #5c9bd6;
  font-size: 22px;
}

.project-info {
  padding: 14px 20px;
  color: #fff;
  background: #941f18;
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.news-section {
  padding-top: 84px;
}


.share-archive {
  padding-top: 64px;
  padding-bottom: 88px;
}

.share-categories {
  width: min(978px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 34px;
  padding-bottom: 34px;
  border-bottom: 2px solid #555b62;
  color: #3f4650;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.share-categories a:hover {
  color: #941f18;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  display: grid;
  grid-template-rows: 262px 1fr 38px;
}

.news-image {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 262px;
  padding: 28px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.news-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(25deg, rgba(21, 7, 35, 0.85), rgba(205, 37, 32, 0.2));
}

.news-image span {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1;
  padding: 7px 18px;
  background: #9f2118;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-image strong {
  position: relative;
  z-index: 1;
  max-width: 300px;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
}

.news-image.trend {
  background:
    radial-gradient(circle at 72% 34%, #d8398f 0 12%, transparent 13%),
    linear-gradient(135deg, #170824 0%, #250b3d 45%, #74205f 100%);
}

.news-image.sora {
  background:
    radial-gradient(circle at 72% 50%, rgba(255,255,255,.42) 0 24%, transparent 25%),
    linear-gradient(135deg, #c82024 0%, #8f1717 52%, #353847 100%);
}

.news-image.branding {
  background:
    radial-gradient(circle at 50% 80%, rgba(255,255,255,.35) 0 14%, transparent 15%),
    linear-gradient(135deg, #210b43, #7637b6 52%, #09071c);
}

.news-image.starbucks,
.news-image.identity,
.news-image.golden {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #24272c;
  background:
    radial-gradient(circle at 12% 70%, transparent 0 9%, #d43a34 10% 14%, transparent 15%),
    radial-gradient(circle at 88% 0%, transparent 0 18%, #d43a34 19% 27%, transparent 28%),
    radial-gradient(circle at 76% 58%, transparent 0 2%, #e1c95d 3% 4%, transparent 5%),
    radial-gradient(circle at 20% 30%, transparent 0 2%, #e1c95d 3% 4%, transparent 5%),
    linear-gradient(#f5f5f5, #d8d8d8);
}

.news-image.starbucks::before,
.news-image.identity::before,
.news-image.golden::before {
  display: none;
}

.news-image.starbucks strong,
.news-image.identity strong,
.news-image.golden strong {
  max-width: 320px;
  padding: 9px 18px;
  color: #101215;
  background: #c9534f;
  border-radius: 12px;
  font-size: 23px;
}

.news-body {
  padding: 20px 16px 4px;
}

.news-body h3 {
  margin: 0 0 8px;
  color: #444a54;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 800;
}

.news-body p {
  margin: 0 0 8px;
}

.news-body a {
  font-size: 16px;
  font-weight: 500;
}

.news-card footer {
  padding: 10px 15px;
  border-top: 1px solid #e8322a;
  color: #51545c;
  font-size: 12px;
}

.news-card footer b {
  color: #e8322a;
  margin: 0 8px;
}

.footer {
  color: #fff;
  padding-top: 56px;
  background-color: var(--dark-red);
  background-image:
    linear-gradient(120deg, rgba(89, 9, 7, 0.8), rgba(29, 0, 0, 0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='520' viewBox='0 0 1440 520'%3E%3Cpolygon fill='%23ef3329' points='0,0 190,0 110,120 0,210'/%3E%3Cpolygon fill='%23730f0c' points='190,0 420,0 365,170 110,120'/%3E%3Cpolygon fill='%23b82018' points='365,170 520,0 760,0 630,220'/%3E%3Cpolygon fill='%23230303' points='760,0 1020,0 960,260 630,220'/%3E%3Cpolygon fill='%23881410' points='960,260 1180,0 1440,0 1340,230'/%3E%3Cpolygon fill='%23d52b22' points='0,520 320,520 250,310 0,210'/%3E%3Cpolygon fill='%23991914' points='250,310 630,220 720,520 320,520'/%3E%3Cpolygon fill='%23350605' points='630,220 960,260 850,520 720,520'/%3E%3Cpolygon fill='%23660b08' points='960,260 1340,230 1440,520 850,520'/%3E%3Cpolygon fill='%23180202' points='1340,230 1440,0 1440,520'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.contact-page {
  min-height: calc(100vh - 116px);
  display: flex;
  align-items: center;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 58px;
}

.company-info h2,
.contact-form-wrap h2 {
  color: #fff;
  font-size: 31px;
  font-weight: 700;
}

.company-info p {
  max-width: 610px;
  font-weight: 600;
}

.company-info ul {
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.company-info li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-weight: 700;
}

.company-info svg {
  width: 17px;
  min-width: 17px;
  margin-top: 4px;
  fill: currentColor;
}

.socials {
  display: flex;
  gap: 18px;
  margin: 18px 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.dmca {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  padding: 13px 15px;
  color: #555;
  font: inherit;
  background: #fff;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-weight: 600;
}

.checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.checks input {
  width: auto;
  accent-color: var(--red);
}

.fake-captcha {
  width: 302px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #fff;
  background: #222;
  border: 1px solid #555;
  border-radius: 3px;
}

.fake-captcha span {
  width: 28px;
  height: 28px;
  display: block;
  background: #f5f5f5;
  border: 2px solid #a9a9a9;
}

.fake-captcha svg {
  margin-left: auto;
  color: #6f8fdc;
}

.submit-btn {
  justify-self: center;
  min-width: 136px;
  border: 0;
  padding: 14px 28px;
  color: #fff;
  background: #992216;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-btn:hover {
  background: #c72e23;
}

.copyright {
  padding: 12px 0;
  background: #50565a;
  font-weight: 600;
}

.float-actions {
  position: fixed;
  right: 18px;
  top: 66%;
  z-index: 15;
  display: grid;
  gap: 12px;
}

.float-actions a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #cd342e;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 10px;
  font-weight: 800;
}

.float-actions svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 18px;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 720px;
  }

  .marketing-visual {
    min-height: 420px;
  }

  .client-row,
  .project-grid,
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid,
  .share-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .share-categories {
    justify-content: center;
    flex-wrap: wrap;
  }

  .value-panel {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: #fff;
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .consult-btn {
    text-align: center;
  }

  .home-hero {
    padding: 58px 0 30px;
  }

  .page-hero {
    min-height: 170px;
  }

  .hero-copy h1,
  .section-title,
  .company-info h2,
  .contact-form-wrap h2 {
    font-size: 25px;
  }

  .hero-actions {
    gap: 16px;
    padding-left: 0;
    flex-wrap: wrap;
  }

  .marketing-visual {
    min-height: 330px;
    transform: scale(0.82);
    transform-origin: left top;
  }

  .logo-slider {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .client-row {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-photo img {
    height: 360px;
  }

  .team-photo figcaption {
    left: 8%;
    right: 8%;
    bottom: 12%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .logo {
    min-width: 0;
  }

  .logo strong {
    font-size: 24px;
  }

  .marketing-visual {
    min-height: 270px;
    transform: scale(0.63);
  }

  .mission-panel,
  .vision-panel,
  .value-panel {
    padding: 24px;
  }

  .red-panel h2,
  .red-panel h3 {
    font-size: 24px;
  }

  .news-card {
    grid-template-rows: 220px 1fr 38px;
  }

  .news-image {
    min-height: 220px;
  }

  .fake-captcha {
    width: 100%;
  }

  .float-actions {
    right: 10px;
  }

}
  .page-hero{
    background:#f5f5f5;
    padding:18px 0;
    font-size:14px;
    color:#777;
}

.project-detail-banner{
    background:#4d0b07;
    padding:70px 0;
}

.detail-grid{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:70px;
    align-items:center;
}

.detail-heading{
    display:flex;
    align-items:center;
    gap:18px;
    color:#fff;
    font-size:42px;
    margin-bottom:20px;
}

.detail-heading.small{
    color:#333;
    font-size:38px;
    margin-bottom:25px;
}

.detail-heading span{
    width:6px;
    height:50px;
    background:#d74242;
}

.detail-text{
    color:#fff;
    font-size:18px;
    margin-bottom:35px;
}

.project-social{
    display:flex;
    gap:20px;
    margin-bottom:50px;
}

.project-social a{
    color:#fff;
    font-size:22px;
}

.project-image-box{
    background:#fff;
    border-radius:8px;
    padding:30px;
    height:420px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.project-image-box img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.gallery-empty{
    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:10px;
    padding:80px;
    text-align:center;
}

.gallery-empty img{
    width:120px;
    margin-bottom:25px;
}

.gallery-empty h3{
    color:#666;
}

.gallery-empty p{
    color:#888;
}

@media(max-width:992px){

.detail-grid{
grid-template-columns:1fr;
}

.detail-heading{
font-size:32px;
}

.detail-heading.small{
font-size:28px;
}

.project-image-box{
height:320px;
}
}
.popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.popup-overlay.active{
    display:flex;
}

.popup-box{
    width:550px;
    max-width:90%;
    background:#fff;
    border-radius:8px;
    padding:35px;
    position:relative;
    animation:popup .25s ease;
}

@keyframes popup{
    from{
        transform:translateY(-20px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

.popup-close{
    position:absolute;
    top:12px;
    right:18px;
    border:none;
    background:none;
    font-size:34px;
    color:#9b2018;
    cursor:pointer;
}

.popup-box h3{
    text-align:center;
    font-size:20px;
    margin-bottom:25px;
    color:#555;
}

.popup-box input{
    width:100%;
    height:48px;
    padding:0 15px;
    border:1px solid #ccc;
    margin-bottom:18px;
    font-size:16px;
}

.popup-btn{
    width:100%;
    height:48px;
    border:none;
    background:#941f18;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.popup-btn:hover{
    background:#b92a21;
}
.table-content{
    border:1px solid #cfd5dd;
    margin:40px 0;
}

.toc-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 25px;
    cursor:pointer;
}

.toc-header h3{
    margin:0;
    font-size:30px;
    font-weight:700;
}

.toc-toggle{
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
    transition:.3s;
}

.toc-body{
    border-top:1px solid #ddd;
    padding:25px;
    display:none;
}

.table-content.active .toc-body{
    display:block;
}

.table-content.active .toc-toggle{
    transform:rotate(180deg);
}

.toc-body ol{
    margin:0;
    padding-left:22px;
}

.toc-body li{
    margin:15px 0;
}

.toc-body a{
    color:#666;
    text-decoration:none;
}

.toc-body a:hover{
    color:#b22222;
}
.article-title{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:35px;
    font-size:46px;
    font-weight:300;
    color:#444;
}

.article-title span{
    width:5px;
    height:55px;
    background:#7d201c;
}

.article-title::first-line{
    font-weight:700;
}

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:70px;
}

.tags a{
    background:#c0392b;
    color:#fff;
    text-decoration:none;
    padding:7px 14px;
    border-radius:4px;
    font-size:14px;
    transition:.3s;
}

.tags a:hover{
    background:#8f2118;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-card{
    background:#fff;
    text-decoration:none;
    color:#333;
    border:1px solid #ddd;
    transition:.3s;
}

.news-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.news-image{
    position:relative;
}

.news-image img{
    width:100%;
    display:block;
}

.news-category{
    position:absolute;
    top:18px;
    right:18px;
    background:#7d201c;
    color:#fff;
    padding:7px 15px;
    border-radius:20px;
    font-size:13px;
}

.news-content{
    padding:25px;
}

.news-content h3{
    font-size:31px;
    line-height:1.35;
    margin-bottom:18px;
}

.news-content p{
    color:#666;
    line-height:1.8;
}

.readmore{
    color:#a62218;
    font-weight:600;
    display:inline-block;
    margin:20px 0;
}

.news-meta{
    border-top:1px solid #eee;
    padding-top:18px;
    color:#888;
    font-size:14px;
}
.article-container img {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}