/*
Theme Name: MT Portfolio
Theme URI: https://example.com/
Author: Built for Miloš Stanković
Description: One-page portfolio theme for videography, video editing and motion graphics. Fixed left sidebar, six full-screen sections, built-in English/Serbian language switch. Everything is editable from Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mt-portfolio
Tags: one-page, portfolio, video, dark, custom-colors
*/

/* =========================================================================
   1. TOKENS
   Colours come from the Customizer (Appearance > Customize > Colours).
   The values below are only fallbacks.
   ========================================================================= */

:root {
	--c-sidebar:        #12081e;
	--c-sidebar-line:   #350f70;
	--c-bg:             #220e42;
	--c-hero-bg:        #424242;
	--c-text:           #dcd4e8;
	--c-accent:         #fdb20c;
	--c-ghost:          #350f70;
	--c-rule:           #502c96;
	--c-card:           #310745;
	--c-card-line:      #4a159e;
	--c-icon-well:      #210644;
	--c-purple:         #720e9b;
	--c-logo-ring:      #430358;
	--c-field:          #dcd4e8;
	--c-field-text:     #120223;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--sidebar-w: 15.625rem;   /* 250px */
	--stage-w:  104.375rem;   /* 1670px — the area to the right of the sidebar */
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* The whole desktop design is drawn at 1920px wide. Every size below is written
   in rem, so changing the root font-size scales the entire layout proportionally
   and it keeps matching the original artwork at any desktop width. */
html { font-size: 16px; }
@media (max-width: 1919px) { html { font-size: calc(100vw / 120); } }
@media (max-width: 1279px) { html { font-size: 16px; } }   /* mobile layout takes over */

/* =========================================================================
   2. BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Language switching: one copy of every string per language lives in the page,
   and only the active one is shown. Scoped to <html> so it cannot collide with
   the data attributes on the language buttons themselves. */
html[data-lang="en"] .l-sr,
html[data-lang="sr"] .l-en { display: none !important; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; top: -3rem; left: 0; z-index: 999;
	background: var(--c-accent); color: #1a1a1a;
	padding: .5rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* =========================================================================
   3. SIDEBAR
   ========================================================================= */

.sidebar {
	position: fixed; inset: 0 auto 0 0; z-index: 60;
	width: var(--sidebar-w);
	background: var(--c-sidebar);
	border-right: 1px solid var(--c-sidebar-line);
	display: flex; flex-direction: column;
}

/* --- logo ------------------------------------------------------------- */
.sidebar__brand {
	height: 17.9375rem;                 /* 287px — divider sits at y287 */
	border-bottom: 1px solid var(--c-sidebar-line);
	display: flex; align-items: center; justify-content: center;
	flex: none;
}
.brand-disc {
	width: 10.0625rem; height: 10.0625rem;   /* 161px */
	border-radius: 50%;
	background: var(--c-logo-ring);
	padding: .34375rem;                      /* 5.5px ring */
	flex: none;
}
.brand-disc__inner {
	width: 100%; height: 100%;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.brand-disc__inner img { width: 100%; height: 100%; object-fit: cover; }

/* --- section links ---------------------------------------------------- */
.sidebar__nav {
	flex: none;
	padding: 1.125rem 0;                     /* 18px */
	border-bottom: 1px solid var(--c-sidebar-line);
}
.sidebar__nav a {
	display: block;
	padding: 1.1875rem 0 1.1875rem 2rem;     /* 19px / 32px */
	font-size: .9375rem;                     /* 15px */
	font-weight: 800;
	line-height: 1;
	letter-spacing: .02em;
	color: var(--c-text);
	transition: color .18s ease;
}
.sidebar__nav a:hover,
.sidebar__nav a:focus-visible { color: var(--c-accent); }
.sidebar__nav a.is-active { color: var(--c-accent); }

/* --- language buttons ------------------------------------------------- */
.sidebar__lang {
	flex: none;
	display: flex; justify-content: space-between;
	padding: 2rem 1.75rem 0 2rem;            /* 32px / 28px / 32px */
}
.sidebar__lang button {
	background: none; border: 0; padding: 0; cursor: pointer;
	font-size: .9375rem; font-weight: 800; line-height: 1;
	letter-spacing: .02em;
	color: var(--c-text);
	transition: color .18s ease;
}
.sidebar__lang button:hover { color: var(--c-accent); }
.sidebar__lang button.is-active { color: var(--c-accent); }

/* --- mobile bar (hidden on desktop) ----------------------------------- */
.sidebar__bar { display: none; }

/* =========================================================================
   4. SECTION SHELL
   ========================================================================= */

.stage { margin-left: var(--sidebar-w); }

.section {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex; flex-direction: column; align-items: center;
	padding: 6.3125rem 0 0;                  /* 101px to the title block */
	background: var(--c-bg);
}

.section__inner {
	width: var(--stage-w);
	max-width: 100%;
	flex: 1;
	display: flex; align-items: center; justify-content: center;
	padding-bottom: 8.75rem;                 /* lifts content to match artwork */
}

/* --- the layered section heading --------------------------------------
   The three pieces are placed exactly as in the artwork: the oversized
   ghost word, the yellow label on top of it, and the two-tone rule.      */
.sec-head {
	position: relative;
	flex: none;
	width: 100%;
	height: 3.125rem;                        /* 50px */
	text-align: center;
}
.sec-head__ghost {
	position: absolute; left: 0; right: 0; top: 0;
	font-size: 4.375rem;                     /* 70px */
	font-weight: 900;
	line-height: 1;
	color: var(--c-ghost);
	opacity: .3;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.sec-head__label {
	position: absolute; left: 0; right: 0; top: .5625rem;   /* 9px */
	margin: 0;
	font-size: 1.28125rem;                   /* 20.5px */
	font-weight: 600;
	line-height: 1;
	color: var(--c-accent);
}
.sec-head__rule {
	position: absolute; left: 50%; top: 2.65625rem;         /* 42.5px */
	transform: translateX(-50%);
	width: 8.9375rem;                        /* 143px */
	height: .1875rem;                        /* 3px */
	background: var(--c-rule);
}
.sec-head__rule::after {
	content: "";
	position: absolute; left: 50%; top: 0;
	transform: translateX(-50%);
	width: 3.6875rem;                        /* 59px */
	height: 100%;
	background: var(--c-accent);
}

/* =========================================================================
   5. WELCOME
   ========================================================================= */

#welcome { background: var(--c-hero-bg); overflow: hidden; }

.hero-media {
	position: absolute; inset: 0; z-index: 0;
	background: var(--c-hero-bg);
	overflow: hidden;
}
.hero-media video,
.hero-media img {
	width: 100%; height: 100%;
	object-fit: cover;
}
.hero-media__tint { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); }

#welcome .sec-head,
#welcome .section__inner { position: relative; z-index: 1; }

.hero { text-align: center; width: 100%; }

.hero__title {
	margin: 0;
	font-size: 4.4875rem;                    /* 71.8px */
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.005em;
}
.hero__title .accent { color: var(--c-accent); }

.hero__sub {
	margin: .9375rem 0 0;                    /* 15px */
	font-size: 1.25rem;                      /* 20px */
	font-weight: 400;
	line-height: 1.4;
}

.hero__social {
	margin-top: 3.1875rem;                   /* 51px */
	display: flex; justify-content: center;
	gap: 1.8125rem;                          /* 29px */
}
.hero__social a {
	width: 3.25rem; height: 3.25rem;         /* 52px */
	border: 1.5px solid var(--c-sidebar-line);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: border-color .2s ease, transform .2s var(--ease), background-color .2s ease;
}
.hero__social a:hover {
	border-color: var(--c-accent);
	background: rgba(253, 178, 12, .1);
	transform: translateY(-2px);
}
.hero__social i {
	display: block;
	background: var(--c-card);
	transition: background-color .2s ease;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain;   mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
}
.hero__social a:hover i { background: var(--c-accent); }
.hero__social .i-upwork   { width: 1.875rem; height: 1.875rem; }   /* 30px */
.hero__social .i-linkedin { width: 1.625rem; height: 1.625rem; }   /* 26px */

/* =========================================================================
   6. ABOUT
   ========================================================================= */

.about {
	display: flex;
	align-items: flex-start;
	gap: 4.875rem;                           /* 78px */
	width: 100%;
	padding-left: 21.1875rem;                /* 339px — matches the artwork */
}
.about__photo {
	flex: none;
	width: 26.875rem;                        /* 430px */
	height: 30.25rem;                        /* 484px */
	background: #fff;
	overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__text {
	width: 37.5rem;                          /* 600px */
	font-size: 1.25rem;                      /* 20px */
	line-height: 1.2;                        /* 24px */
	padding-top: 1.6875rem;                  /* 27px */
}
.about__text p { margin: 0 0 1.5rem; }
.about__text p:last-child { margin-bottom: 0; }

/* =========================================================================
   7. SERVICES
   ========================================================================= */

.services {
	display: flex;
	justify-content: center;
	gap: 1.8125rem;                          /* 29px */
	width: 100%;
}
.service {
	width: 19.375rem;                        /* 310px */
	height: 14.0625rem;                      /* 225px */
	background: var(--c-card);
	border: 1px solid var(--c-card-line);
	display: flex; flex-direction: column; align-items: center;
	padding-top: 2.125rem;                   /* 34px */
	transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.service:hover {
	transform: translateY(-4px);
	border-color: var(--c-accent);
	box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .35);
}
.service__well {
	width: 6.625rem; height: 6.625rem;       /* 106px */
	border-radius: 50%;
	background: var(--c-icon-well);
	border: 1px solid var(--c-card-line);
	display: flex; align-items: center; justify-content: center;
	flex: none;
}
.service__icon {
	display: block;
	width: 4.25rem; height: 4.25rem;         /* 68px box, art is centred inside */
	background: var(--c-purple);
	transition: background-color .25s ease;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain;   mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
}
.service:hover .service__icon { background: var(--c-accent); }
.service__icon img { width: 100%; height: 100%; object-fit: contain; }
.service__icon.is-image { background: none; }

.service__name {
	margin-top: 1.6875rem;                   /* 27px */
	font-size: .9375rem;                     /* 15px */
	font-weight: 600;
	line-height: 1;
	text-align: center;
	padding: 0 .75rem;
}

/* =========================================================================
   8. CV
   ========================================================================= */

.cv {
	display: flex;
	gap: 0;
	width: 61.375rem;                        /* 982px — two 491px columns */
	margin: 0 auto;
}
.cv__col { flex: 1 1 0; min-width: 0; padding-right: .625rem; }

.cv__head {
	display: flex; align-items: center;
	gap: 1.1875rem;                          /* 19px */
	margin-bottom: 2.4375rem;                /* 39px */
}
.cv__head i {
	display: block; flex: none;
	background: var(--c-purple);
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain;   mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
}
.cv__head .i-education  { width: 2.03125rem; height: 2.175rem; }
.cv__head .i-experience { width: 2.59375rem; height: 2.71875rem; }
.cv__head h3 {
	margin: 0;
	font-size: 1.25rem;                      /* 20px */
	font-weight: 700;
	line-height: 1;
}

.cv__list { position: relative; padding-left: 3.1875rem; }   /* 51px */
.cv__list::before {                                           /* the timeline rail */
	content: "";
	position: absolute; left: 1.15625rem; top: .375rem; bottom: .75rem;
	width: .1875rem;                         /* 3px */
	background: var(--c-purple);
}
.cv__item { position: relative; margin-bottom: 1.125rem; }   /* 18px */
.cv__item:last-child { margin-bottom: 0; }
.cv__item::before {                                           /* the bullet */
	content: "";
	position: absolute; left: -2.3125rem; top: .1875rem;
	width: .75rem; height: .75rem;           /* 12px */
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 0 .1875rem var(--c-bg);
}
.cv__item p {
	margin: 0;
	font-size: .9375rem;                     /* 15px */
	line-height: 1.2;                        /* 18px */
}

/* =========================================================================
   9. PORTFOLIO
   ========================================================================= */

/* The artwork places this block a little lower than the other sections. */
#portfolio .section__inner { padding-bottom: 2.875rem; }   /* 46px */

.work {
	width: 62.96875rem;                      /* 1007.5px */
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;                                  /* the artwork has the tiles flush */
	background: #000;
}
.work__item {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	display: block;
}
.work__item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s var(--ease), opacity .3s ease;
}
.work__item:hover img { transform: scale(1.06); opacity: .75; }

.work__play {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 6.4375rem; height: 6.4375rem;     /* 103px */
	border: .28125rem solid rgba(255, 255, 255, .22);   /* 4.5px */
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: border-color .25s ease, transform .25s var(--ease);
	pointer-events: none;
}
.work__play::after {
	content: "";
	display: block;
	margin-left: .375rem;
	width: 0; height: 0;
	border-left: 2.3125rem solid rgba(255, 255, 255, .22);   /* 37px */
	border-top: 1.5rem solid transparent;                     /* 24px */
	border-bottom: 1.5rem solid transparent;
	transition: border-left-color .25s ease;
}
.work__item:hover .work__play {
	border-color: var(--c-accent);
	transform: translate(-50%, -50%) scale(1.06);
}
.work__item:hover .work__play::after { border-left-color: var(--c-accent); }

.work__label {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 2.5rem .9375rem .75rem;
	font-size: .8125rem; font-weight: 600; line-height: 1.3;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
	opacity: 0;
	transition: opacity .25s ease;
}
.work__item:hover .work__label { opacity: 1; }

.work__empty {
	position: absolute; inset: 0;
	background: #000;
}

/* =========================================================================
   10. CONTACT
   ========================================================================= */

.contact {
	display: flex;
	gap: 1.1875rem;                          /* 19px */
	width: 42.6875rem;                       /* 683px */
	margin: 0 auto;
	align-items: flex-start;
}

.contact__form { width: 27rem; flex: none; }   /* 432px */

.contact__form input,
.contact__form textarea {
	display: block;
	width: 100%;
	background: var(--c-field);
	color: var(--c-field-text);
	border: 1px solid rgba(18, 2, 35, .18);
	border-radius: 0;
	font-family: inherit;
	font-size: .74375rem;                    /* 11.9px */
	font-weight: 500;
	line-height: 1.2;
	padding: 0 .625rem;                      /* 10px */
	margin-bottom: .375rem;                  /* 6px */
	transition: box-shadow .2s ease;
}
.contact__form input { height: 2.3125rem; }        /* 37px */
.contact__form textarea {
	height: 9.3125rem;                       /* 149px */
	padding-top: .625rem;
	resize: vertical;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--c-field-text); opacity: 1; }
.contact__form input:focus,
.contact__form textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--c-accent);
}

.contact__send {
	margin-top: .5625rem;                    /* 9px */
	width: 10.875rem; height: 1.625rem;      /* 174 x 26px */
	background: var(--c-purple);
	border: 0;
	color: var(--c-text);
	font-size: .8125rem; font-weight: 700;   /* 13px */
	line-height: 1;
	letter-spacing: .02em;
	text-align: left;
	padding-left: .6875rem;                  /* 11px */
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.contact__send:hover { background: var(--c-accent); color: #1a1a1a; }

.contact__notice {
	margin-bottom: .75rem;
	padding: .625rem .75rem;
	font-size: .8125rem;
	line-height: 1.4;
	border-left: .1875rem solid var(--c-accent);
	background: rgba(253, 178, 12, .12);
}
.contact__notice.is-error {
	border-left-color: #ff6b6b;
	background: rgba(255, 107, 107, .12);
}

.contact__info {
	width: 14.4375rem;                       /* 231px */
	font-size: .9375rem;                     /* 15px */
	line-height: 1.2;                        /* 18px */
	padding-top: .125rem;
}
.contact__info p { margin: 0 0 1.125rem; }
.contact__info h3 {
	margin: 0 0 1.0625rem;
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
}
.contact__row {
	display: flex;
	gap: .3125rem;                           /* 5px */
	margin-bottom: .1875rem;
}
.contact__row i {
	display: block; flex: none;
	margin-top: .0625rem;
	background: var(--c-purple);
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain;   mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
}
.contact__row .i-phone { width: .875rem; height: .875rem; }
.contact__row .i-email { width: 1.1875rem; height: .875rem; }
.contact__sub { margin: 0 0 1.4375rem; }
.contact__sub:last-child { margin-bottom: 0; }
.contact__info a { transition: color .2s ease; }
.contact__info a:hover { color: var(--c-accent); }

/* =========================================================================
   11. MOBILE / TABLET  (below 1280px)
   Content is identical — only the layout changes, so every edit you make in
   the Customizer updates the mobile view automatically.
   ========================================================================= */

@media (max-width: 1279px) {

	.stage { margin-left: 0; }

	/* --- sidebar becomes a top bar --- */
	.sidebar {
		inset: 0 0 auto 0;
		width: 100%;
		height: auto;
		border-right: 0;
		border-bottom: 1px solid var(--c-sidebar-line);
	}
	.sidebar__bar {
		display: flex; align-items: center; justify-content: space-between;
		height: 64px;
		padding: 0 16px;
	}
	.sidebar__brand--desktop { display: none; }
	.sidebar__brand {
		height: auto; border: 0;
		justify-content: flex-start;
	}
	.brand-disc { width: 44px; height: 44px; padding: 2px; }

	.sidebar__toggle {
		width: 44px; height: 44px;
		background: none; border: 0; cursor: pointer;
		display: flex; flex-direction: column;
		align-items: center; justify-content: center; gap: 5px;
	}
	.sidebar__toggle span {
		display: block; width: 24px; height: 2px;
		background: var(--c-text);
		transition: transform .25s var(--ease), opacity .2s ease;
	}
	.sidebar.is-open .sidebar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.sidebar.is-open .sidebar__toggle span:nth-child(2) { opacity: 0; }
	.sidebar.is-open .sidebar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.sidebar__panel {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows .3s var(--ease);
		background: var(--c-sidebar);
	}
	.sidebar.is-open .sidebar__panel { grid-template-rows: 1fr; }
	.sidebar__panel > div { overflow: hidden; }

	.sidebar__nav {
		padding: 8px 0;
		border-bottom: 1px solid var(--c-sidebar-line);
		border-top: 1px solid var(--c-sidebar-line);
	}
	.sidebar__nav a { padding: 14px 20px; font-size: 14px; }

	.sidebar__lang { padding: 14px 20px 18px; justify-content: flex-start; gap: 24px; }
	.sidebar__lang button { font-size: 14px; }

	/* --- sections --- */
	.section { padding: 96px 20px 0; min-height: 100svh; }
	.section__inner { padding: 28px 0 64px; width: 100%; }
	#portfolio .section__inner { padding-bottom: 64px; }

	.sec-head { height: 42px; }
	.sec-head__ghost { font-size: 44px; top: 0; }
	.sec-head__label { font-size: 17px; top: 5px; }
	.sec-head__rule { top: 32px; width: 120px; }
	.sec-head__rule::after { width: 50px; }

	.hero__title { font-size: clamp(30px, 8.2vw, 48px); }
	.hero__sub   { font-size: clamp(14px, 3.6vw, 17px); margin-top: 14px; }
	.hero__social { margin-top: 32px; gap: 20px; }
	.hero__social a { width: 46px; height: 46px; }
	.hero__social .i-upwork   { width: 26px; height: 26px; }
	.hero__social .i-linkedin { width: 23px; height: 23px; }

	.about {
		flex-direction: column;
		align-items: center;
		padding-left: 0;
		gap: 28px;
	}
	.about__photo { width: min(320px, 82vw); height: auto; aspect-ratio: 430 / 484; }
	.about__text { width: 100%; max-width: 560px; font-size: 16px; padding-top: 0; }
	.about__text p { margin-bottom: 16px; }

	.services { flex-wrap: wrap; gap: 16px; }
	.service { width: min(300px, 100%); height: auto; padding: 26px 0 24px; }
	.service__well { width: 86px; height: 86px; }
	.service__icon { width: 54px; height: 54px; }
	.service__name { font-size: 14px; margin-top: 18px; }

	.cv { flex-direction: column; gap: 36px; width: 100%; max-width: 560px; }
	.cv__head { gap: 12px; margin-bottom: 22px; }
	.cv__head h3 { font-size: 18px; }
	.cv__head .i-education  { width: 26px; height: 28px; }
	.cv__head .i-experience { width: 30px; height: 32px; }
	.cv__list { padding-left: 30px; }
	.cv__list::before { left: 4px; width: 2px; }
	.cv__item::before { left: -30px; top: 4px; width: 10px; height: 10px; box-shadow: 0 0 0 3px var(--c-bg); }
	.cv__item p { font-size: 14px; line-height: 1.45; }
	.cv__item { margin-bottom: 18px; }

	.work { width: 100%; max-width: 560px; grid-template-columns: repeat(2, 1fr); }
	.work__play { width: 56px; height: 56px; border-width: 3px; }
	.work__play::after { border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; margin-left: 4px; }
	.work__label { opacity: 1; font-size: 11px; padding: 24px 8px 6px; }

	.contact { flex-direction: column; width: 100%; max-width: 480px; gap: 32px; }
	.contact__form { width: 100%; }
	.contact__form input,
	.contact__form textarea { font-size: 16px; padding: 0 12px; margin-bottom: 10px; }
	.contact__form input { height: 46px; }
	.contact__form textarea { height: 150px; padding-top: 12px; }
	.contact__send { width: 100%; height: 46px; font-size: 14px; text-align: center; padding-left: 0; }
	.contact__info { width: 100%; font-size: 15px; }
	.contact__info h3 { font-size: 15px; }
	.contact__row .i-phone { width: 15px; height: 15px; }
	.contact__row .i-email { width: 20px; height: 15px; }
}

@media (max-width: 600px) {
	.work { grid-template-columns: 1fr; max-width: 420px; }
	.sec-head__ghost { font-size: 34px; }
}

/* Respect the visitor's motion preference. */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}

/* WordPress admin bar offset */
body.admin-bar .sidebar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sidebar { top: 46px; } }
