/*
Theme Name: Киноколледж
Theme URL: podhodyashy.ru
Description: Киноколледж minimal theme
Author: Olga Strelkova
Version: 1.0 
*/


/*
    Основные стили
*/
:root {
  font-family: "Geologica", Helvetica, sans-serif;
  box-sizing: border-box;
  background-color: #efeeea;
  color: #191919;
}
body {overflow-x: hidden;}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.page-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  min-height: 80vh;
  text-align: center;
  gap: 50px;
}

h2 {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
}

/*
    Header
*/
.header {
  margin-top: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 30px;
  position: fixed;
  z-index: 10;
  max-width: 1050px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  background: rgba(239, 238, 234, 0.0509803922);
  backdrop-filter: blur(60px);
}
.header.hero-state a:not(.link-button) {
  color: rgba(239, 238, 234, 0.6);
}
.header.hero-state .logo-link .logo {
  color: #191919;
}
.header.default-state {
  background: rgba(239, 238, 234, 0.6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header.default-state a:not(.link-button) {
  color: #191919;
}
.header.default-state .logo-link .logo {
  color: #fff;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: block;
  padding: 2px 12px;
}
.logo-link .logo {
  object-fit: contain;
}

.nav-links ul, .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
    list-style: none;
}

.nav-links .sub-menu {
    display: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  height: fit-content;
}

.cta-button {
  background-color: white;
  color: black;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  appearance: none;
}
.burger svg {
  width: 40px;
  height: 40px;
}

@media (max-width: 1080px) {
  .header {
    position: static;
    max-width: calc(100% - 60px);
  }
  .header.default-state {
    box-shadow: none;
  }
  .header .header-content .logo-link .logo {
    color: #191919;
  }
  .header .nav-links {
    display: none;
  }
  .header .burger {
    display: block;
  }
}

/*
    Mobile Menu
*/

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  backdrop-filter: blur(60px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu_open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__content {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: inherit;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 80px;
}
.mobile-menu__nav a {
  font-family: Geologica;
  font-weight: 300;
  font-style: Light;
  font-size: 16px;
  line-height: 22.4px;
  text-transform: uppercase;
  color: #191919;
  text-decoration: none;
  padding: 12px 0;
  display: block;
}
.mobile-menu__nav a:hover, .mobile-menu__nav a.active {
  color: hsl(222.2, 47.4%, 11.2%);
}
.mobile-menu__button {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}
.mobile-menu__button {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 10px 10px 14px;
  width: calc(100% - 60px);
  margin: 10px auto 0;
}
.mobile-menu .logo-link {
  display: block;
  padding: 2px 12px;
}
.mobile-menu .logo-link .logo {
  object-fit: contain;
  color: #191919;
}
@media (min-width: 1080px) {
  .mobile-menu {
    display: none;
  }
}

/* Link Button */
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.5s ease;
  font-weight: 400;
}
.link-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px hsl(215, 20.2%, 65.1%);
}
.link-button[aria-disabled=true] {
  pointer-events: none;
  opacity: 0.5;
}
.link-button:hover {
  filter: invert(100%);
}
.link-button .link-button__text {
  flex-grow: 1;
  text-align: center;
}
.link-button .link-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-button.link-button__size-sm {
  padding: 0 20px;
  height: 38px;
  font-size: 14px;
  line-height: 28px;
  letter-spacing: -1px;
  border-radius: 30px;
}
.link-button__size-sm .link-button__icon {
  width: 32px;
  height: 32px;
}
.link-button__size-md {
  padding: 0 4px 0 24px;
  height: 48px;
  gap: 20px;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.21px;
  border-radius: 30px;
}
.link-button__size-md .link-button__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.link-button__size-lg {
  padding: 0 6px 0 24px;
  height: 64px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.2px;
  border-radius: 32px;
}
.link-button__size-lg .link-button__icon {
  width: 52px;
  height: 52px;
}
.link-button__size-icon {
  padding: 0;
  height: 40px;
  width: 40px;
  border-radius: 50%;
}
.link-button__size-icon .link-button__icon {
  width: 20px;
  height: 20px;
  padding: 10px;
}
.link-button__size-icon .link-button__icon svg,
.link-button__size-icon .link-button__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.link-button.link-button__variant-default {
  background-color: #191919;
  color: hsl(210, 40%, 98%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.link-button.link-button__variant-simple {
  background-color: hsl(0, 0%, 100%);
  color: hsl(222.2, 47.4%, 11.2%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.link-button.link-button__variant-ghost {
  background-color: #efeeea;
  color: #191919;
  border: 1px solid rgba(25, 25, 25, 0.1490196078) ;
}

/*
    About */

.about {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  flex-direction: column;
}
.about .about-container {
  margin: 0 auto;
  display: flex;
  gap: 30px;
}
.about .about-content {
  flex: 1;
}
.about .about-content p {
  font-weight: 300;
  font-size: 28px;
  line-height: 1.4;
}
.about .about-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(25, 25, 25, 0.6);
}

@media (max-width: 768px) {
  .about {
    margin: 40px auto;
  }
  .about .about-container {
    flex-direction: column;
    gap: 20px;
  }
  .about .about-content p {
    font-size: 20px;
  }
  .about .about-sidebar {
    font-size: 12px;
  }
}


/* Hero */
.hero {
  margin: 0 24px 80px;
  position: relative;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero .hero-video {
  border-radius: 48px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero .hero-overlay {
  border-radius: 48px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(0deg, rgba(25, 25, 25, 0.3), rgba(25, 25, 25, 0.3)), linear-gradient(180deg, rgba(0, 0, 0, 0.4) 7.65%, rgba(0, 0, 0, 0) 24.25%);
}
.hero .hero-content {
  position: relative;
  z-index: 3;
  color: white;
  padding: 40px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero .hero-content h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 575px;
}
.hero .hero-content p {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 48px;
}
.hero .hero-content .hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}
.hero .hero-content .hero-button {
  background: linear-gradient(to right, #efeeea, #f7f7f3);
  color: #191919;
  text-decoration: none;
  width: 179px;
  height: 48px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1200px) {
  .hero {
    margin: 0 10px 80px;
    min-height: calc(100vh - 20px);
  }
}
@media (max-width: 1080px) {
  .hero {
    min-height: calc(100vh - 94px);
  }
}


/* Workshops */
.workshops {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}
.workshops .card-container {
  position: relative;
}
.workshops .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  -webkit-mask-image: url("./assets/icons/card-overlay.svg");
  mask-image: url("./assets/icons/card-overlay.svg");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}
.workshops .title {
  max-width: 238px;
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -1%;
  vertical-align: bottom;
  z-index: 3;
  color: #191919;
  transition: color 0.5s ease;
}
.workshops .card-container:hover {
  cursor: pointer;
}
.workshops .card-container:hover .hover-image {
  opacity: 1;
}
.workshops .card-container:hover .title {
  color: #efeeea;
}

@media screen and (max-width: 1200px) {
  .workshops {
    flex-direction: column;
    justify-content: center;
  }
}


.cards-grid {
  margin: 0 auto;
  flex: 1;
  display: grid;
  max-width: 986px;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  gap: 16px;
}

@media screen and (max-width: 1080px) {
  .cards-grid {
    max-width: none;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(300px, 335px));
  }
}

@media screen and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 335px));
  }
}


.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: center center / contain url("./assets/icons/card-overlay.svg") no-repeat;
  z-index: 0;
}

.card-item {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 318px;
  width: 100%;
  aspect-ratio: 318 / 240;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.card-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  z-index: 2;
  transition: color 0.5s ease;
}

.card-item:hover .card-icon {
  color: #0b4a4c;
}